1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. imagebuilder
  5. getImage

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

aws-native.imagebuilder.getImage

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi

Resource schema for AWS::ImageBuilder::Image

Using getImage

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getImage(args: GetImageArgs, opts?: InvokeOptions): Promise<GetImageResult>
function getImageOutput(args: GetImageOutputArgs, opts?: InvokeOptions): Output<GetImageResult>
Copy
def get_image(arn: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetImageResult
def get_image_output(arn: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetImageResult]
Copy
func LookupImage(ctx *Context, args *LookupImageArgs, opts ...InvokeOption) (*LookupImageResult, error)
func LookupImageOutput(ctx *Context, args *LookupImageOutputArgs, opts ...InvokeOption) LookupImageResultOutput
Copy

> Note: This function is named LookupImage in the Go SDK.

public static class GetImage 
{
    public static Task<GetImageResult> InvokeAsync(GetImageArgs args, InvokeOptions? opts = null)
    public static Output<GetImageResult> Invoke(GetImageInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetImageResult> getImage(GetImageArgs args, InvokeOptions options)
public static Output<GetImageResult> getImage(GetImageArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:imagebuilder:getImage
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Arn This property is required. string
The Amazon Resource Name (ARN) of the image.
Arn This property is required. string
The Amazon Resource Name (ARN) of the image.
arn This property is required. String
The Amazon Resource Name (ARN) of the image.
arn This property is required. string
The Amazon Resource Name (ARN) of the image.
arn This property is required. str
The Amazon Resource Name (ARN) of the image.
arn This property is required. String
The Amazon Resource Name (ARN) of the image.

getImage Result

The following output properties are available:

Arn string
The Amazon Resource Name (ARN) of the image.
ExecutionRole string
The execution role name/ARN for the image build, if provided
ImageId string
The AMI ID of the EC2 AMI in current region.
ImageUri string
URI for containers created in current Region with default ECR image tag
Name string
The name of the image.
Arn string
The Amazon Resource Name (ARN) of the image.
ExecutionRole string
The execution role name/ARN for the image build, if provided
ImageId string
The AMI ID of the EC2 AMI in current region.
ImageUri string
URI for containers created in current Region with default ECR image tag
Name string
The name of the image.
arn String
The Amazon Resource Name (ARN) of the image.
executionRole String
The execution role name/ARN for the image build, if provided
imageId String
The AMI ID of the EC2 AMI in current region.
imageUri String
URI for containers created in current Region with default ECR image tag
name String
The name of the image.
arn string
The Amazon Resource Name (ARN) of the image.
executionRole string
The execution role name/ARN for the image build, if provided
imageId string
The AMI ID of the EC2 AMI in current region.
imageUri string
URI for containers created in current Region with default ECR image tag
name string
The name of the image.
arn str
The Amazon Resource Name (ARN) of the image.
execution_role str
The execution role name/ARN for the image build, if provided
image_id str
The AMI ID of the EC2 AMI in current region.
image_uri str
URI for containers created in current Region with default ECR image tag
name str
The name of the image.
arn String
The Amazon Resource Name (ARN) of the image.
executionRole String
The execution role name/ARN for the image build, if provided
imageId String
The AMI ID of the EC2 AMI in current region.
imageUri String
URI for containers created in current Region with default ECR image tag
name String
The name of the image.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 2025 by Pulumi