AWS v6.73.0 published on Wednesday, Mar 19, 2025 by Pulumi
aws.imagebuilder.getImage
Explore with Pulumi AI
Provides details about an Image Builder Image.
Example Usage
Latest
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.imagebuilder.getImage({
arn: "arn:aws:imagebuilder:us-west-2:aws:image/amazon-linux-2-x86/x.x.x",
});
import pulumi
import pulumi_aws as aws
example = aws.imagebuilder.get_image(arn="arn:aws:imagebuilder:us-west-2:aws:image/amazon-linux-2-x86/x.x.x")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/imagebuilder"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := imagebuilder.LookupImage(ctx, &imagebuilder.LookupImageArgs{
Arn: "arn:aws:imagebuilder:us-west-2:aws:image/amazon-linux-2-x86/x.x.x",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.ImageBuilder.GetImage.Invoke(new()
{
Arn = "arn:aws:imagebuilder:us-west-2:aws:image/amazon-linux-2-x86/x.x.x",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.imagebuilder.ImagebuilderFunctions;
import com.pulumi.aws.imagebuilder.inputs.GetImageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = ImagebuilderFunctions.getImage(GetImageArgs.builder()
.arn("arn:aws:imagebuilder:us-west-2:aws:image/amazon-linux-2-x86/x.x.x")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:imagebuilder:getImage
arguments:
arn: arn:aws:imagebuilder:us-west-2:aws:image/amazon-linux-2-x86/x.x.x
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>
def get_image(arn: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetImageResult
def get_image_output(arn: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetImageResult]
func LookupImage(ctx *Context, args *LookupImageArgs, opts ...InvokeOption) (*LookupImageResult, error)
func LookupImageOutput(ctx *Context, args *LookupImageOutputArgs, opts ...InvokeOption) LookupImageResultOutput
> 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)
}
public static CompletableFuture<GetImageResult> getImage(GetImageArgs args, InvokeOptions options)
public static Output<GetImageResult> getImage(GetImageArgs args, InvokeOptions options)
fn::invoke:
function: aws:imagebuilder/getImage:getImage
arguments:
# arguments dictionary
The following arguments are supported:
- Arn
This property is required. string - ARN of the image. The suffix can either be specified with wildcards (
x.x.x
) to fetch the latest build version or a full build version (e.g.,2020.11.26/1
) to fetch an exact version. - Dictionary<string, string>
- Key-value map of resource tags for the image.
- Arn
This property is required. string - ARN of the image. The suffix can either be specified with wildcards (
x.x.x
) to fetch the latest build version or a full build version (e.g.,2020.11.26/1
) to fetch an exact version. - map[string]string
- Key-value map of resource tags for the image.
- arn
This property is required. String - ARN of the image. The suffix can either be specified with wildcards (
x.x.x
) to fetch the latest build version or a full build version (e.g.,2020.11.26/1
) to fetch an exact version. - Map<String,String>
- Key-value map of resource tags for the image.
- arn
This property is required. string - ARN of the image. The suffix can either be specified with wildcards (
x.x.x
) to fetch the latest build version or a full build version (e.g.,2020.11.26/1
) to fetch an exact version. - {[key: string]: string}
- Key-value map of resource tags for the image.
- arn
This property is required. str - ARN of the image. The suffix can either be specified with wildcards (
x.x.x
) to fetch the latest build version or a full build version (e.g.,2020.11.26/1
) to fetch an exact version. - Mapping[str, str]
- Key-value map of resource tags for the image.
- arn
This property is required. String - ARN of the image. The suffix can either be specified with wildcards (
x.x.x
) to fetch the latest build version or a full build version (e.g.,2020.11.26/1
) to fetch an exact version. - Map<String>
- Key-value map of resource tags for the image.
getImage Result
The following output properties are available:
- Arn string
- Build
Version stringArn - Build version ARN of the image. This will always have the
#.#.#/#
suffix. - Container
Recipe stringArn - ARN of the container recipe.
- Date
Created string - Date the image was created.
- Distribution
Configuration stringArn - ARN of the Image Builder Distribution Configuration.
- Enhanced
Image boolMetadata Enabled - Whether additional information about the image being created is collected.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Recipe stringArn - ARN of the image recipe.
- Image
Scanning List<GetConfigurations Image Image Scanning Configuration> - List of an object with image scanning configuration fields.
- Image
Tests List<GetConfigurations Image Image Tests Configuration> - List of an object with image tests configuration.
- Infrastructure
Configuration stringArn - ARN of the Image Builder Infrastructure Configuration.
- Name string
- Name of the AMI.
- Os
Version string - Operating System version of the image.
- Output
Resources List<GetImage Output Resource> - List of objects with resources created by the image.
- Platform string
- Platform of the image.
- Dictionary<string, string>
- Key-value map of resource tags for the image.
- Version string
- Version of the image.
- Arn string
- Build
Version stringArn - Build version ARN of the image. This will always have the
#.#.#/#
suffix. - Container
Recipe stringArn - ARN of the container recipe.
- Date
Created string - Date the image was created.
- Distribution
Configuration stringArn - ARN of the Image Builder Distribution Configuration.
- Enhanced
Image boolMetadata Enabled - Whether additional information about the image being created is collected.
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Recipe stringArn - ARN of the image recipe.
- Image
Scanning []GetConfigurations Image Image Scanning Configuration - List of an object with image scanning configuration fields.
- Image
Tests []GetConfigurations Image Image Tests Configuration - List of an object with image tests configuration.
- Infrastructure
Configuration stringArn - ARN of the Image Builder Infrastructure Configuration.
- Name string
- Name of the AMI.
- Os
Version string - Operating System version of the image.
- Output
Resources []GetImage Output Resource - List of objects with resources created by the image.
- Platform string
- Platform of the image.
- map[string]string
- Key-value map of resource tags for the image.
- Version string
- Version of the image.
- arn String
- build
Version StringArn - Build version ARN of the image. This will always have the
#.#.#/#
suffix. - container
Recipe StringArn - ARN of the container recipe.
- date
Created String - Date the image was created.
- distribution
Configuration StringArn - ARN of the Image Builder Distribution Configuration.
- enhanced
Image BooleanMetadata Enabled - Whether additional information about the image being created is collected.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Recipe StringArn - ARN of the image recipe.
- image
Scanning List<GetConfigurations Image Image Scanning Configuration> - List of an object with image scanning configuration fields.
- image
Tests List<GetConfigurations Image Image Tests Configuration> - List of an object with image tests configuration.
- infrastructure
Configuration StringArn - ARN of the Image Builder Infrastructure Configuration.
- name String
- Name of the AMI.
- os
Version String - Operating System version of the image.
- output
Resources List<GetImage Output Resource> - List of objects with resources created by the image.
- platform String
- Platform of the image.
- Map<String,String>
- Key-value map of resource tags for the image.
- version String
- Version of the image.
- arn string
- build
Version stringArn - Build version ARN of the image. This will always have the
#.#.#/#
suffix. - container
Recipe stringArn - ARN of the container recipe.
- date
Created string - Date the image was created.
- distribution
Configuration stringArn - ARN of the Image Builder Distribution Configuration.
- enhanced
Image booleanMetadata Enabled - Whether additional information about the image being created is collected.
- id string
- The provider-assigned unique ID for this managed resource.
- image
Recipe stringArn - ARN of the image recipe.
- image
Scanning GetConfigurations Image Image Scanning Configuration[] - List of an object with image scanning configuration fields.
- image
Tests GetConfigurations Image Image Tests Configuration[] - List of an object with image tests configuration.
- infrastructure
Configuration stringArn - ARN of the Image Builder Infrastructure Configuration.
- name string
- Name of the AMI.
- os
Version string - Operating System version of the image.
- output
Resources GetImage Output Resource[] - List of objects with resources created by the image.
- platform string
- Platform of the image.
- {[key: string]: string}
- Key-value map of resource tags for the image.
- version string
- Version of the image.
- arn str
- build_
version_ strarn - Build version ARN of the image. This will always have the
#.#.#/#
suffix. - container_
recipe_ strarn - ARN of the container recipe.
- date_
created str - Date the image was created.
- distribution_
configuration_ strarn - ARN of the Image Builder Distribution Configuration.
- enhanced_
image_ boolmetadata_ enabled - Whether additional information about the image being created is collected.
- id str
- The provider-assigned unique ID for this managed resource.
- image_
recipe_ strarn - ARN of the image recipe.
- image_
scanning_ Sequence[Getconfigurations Image Image Scanning Configuration] - List of an object with image scanning configuration fields.
- image_
tests_ Sequence[Getconfigurations Image Image Tests Configuration] - List of an object with image tests configuration.
- infrastructure_
configuration_ strarn - ARN of the Image Builder Infrastructure Configuration.
- name str
- Name of the AMI.
- os_
version str - Operating System version of the image.
- output_
resources Sequence[GetImage Output Resource] - List of objects with resources created by the image.
- platform str
- Platform of the image.
- Mapping[str, str]
- Key-value map of resource tags for the image.
- version str
- Version of the image.
- arn String
- build
Version StringArn - Build version ARN of the image. This will always have the
#.#.#/#
suffix. - container
Recipe StringArn - ARN of the container recipe.
- date
Created String - Date the image was created.
- distribution
Configuration StringArn - ARN of the Image Builder Distribution Configuration.
- enhanced
Image BooleanMetadata Enabled - Whether additional information about the image being created is collected.
- id String
- The provider-assigned unique ID for this managed resource.
- image
Recipe StringArn - ARN of the image recipe.
- image
Scanning List<Property Map>Configurations - List of an object with image scanning configuration fields.
- image
Tests List<Property Map>Configurations - List of an object with image tests configuration.
- infrastructure
Configuration StringArn - ARN of the Image Builder Infrastructure Configuration.
- name String
- Name of the AMI.
- os
Version String - Operating System version of the image.
- output
Resources List<Property Map> - List of objects with resources created by the image.
- platform String
- Platform of the image.
- Map<String>
- Key-value map of resource tags for the image.
- version String
- Version of the image.
Supporting Types
GetImageImageScanningConfiguration
- Ecr
Configurations This property is required. List<GetImage Image Scanning Configuration Ecr Configuration> - Configuration block with ECR configuration.
- Image
Scanning Enabled This property is required. bool - Indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
- Ecr
Configurations This property is required. []GetImage Image Scanning Configuration Ecr Configuration - Configuration block with ECR configuration.
- Image
Scanning Enabled This property is required. bool - Indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
- ecr
Configurations This property is required. List<GetImage Image Scanning Configuration Ecr Configuration> - Configuration block with ECR configuration.
- image
Scanning Enabled This property is required. Boolean - Indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
- ecr
Configurations This property is required. GetImage Image Scanning Configuration Ecr Configuration[] - Configuration block with ECR configuration.
- image
Scanning Enabled This property is required. boolean - Indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
- ecr_
configurations This property is required. Sequence[GetImage Image Scanning Configuration Ecr Configuration] - Configuration block with ECR configuration.
- image_
scanning_ enabled This property is required. bool - Indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
- ecr
Configurations This property is required. List<Property Map> - Configuration block with ECR configuration.
- image
Scanning Enabled This property is required. Boolean - Indicates whether Image Builder keeps a snapshot of the vulnerability scans that Amazon Inspector runs against the build instance when you create a new image.
GetImageImageScanningConfigurationEcrConfiguration
This property is required. List<string>- Set of tags for Image Builder to apply to the output container image that that Amazon Inspector scans.
- Repository
Name This property is required. string - The name of the container repository that Amazon Inspector scans to identify findings for your container images.
This property is required. []string- Set of tags for Image Builder to apply to the output container image that that Amazon Inspector scans.
- Repository
Name This property is required. string - The name of the container repository that Amazon Inspector scans to identify findings for your container images.
This property is required. List<String>- Set of tags for Image Builder to apply to the output container image that that Amazon Inspector scans.
- repository
Name This property is required. String - The name of the container repository that Amazon Inspector scans to identify findings for your container images.
This property is required. string[]- Set of tags for Image Builder to apply to the output container image that that Amazon Inspector scans.
- repository
Name This property is required. string - The name of the container repository that Amazon Inspector scans to identify findings for your container images.
This property is required. Sequence[str]- Set of tags for Image Builder to apply to the output container image that that Amazon Inspector scans.
- repository_
name This property is required. str - The name of the container repository that Amazon Inspector scans to identify findings for your container images.
This property is required. List<String>- Set of tags for Image Builder to apply to the output container image that that Amazon Inspector scans.
- repository
Name This property is required. String - The name of the container repository that Amazon Inspector scans to identify findings for your container images.
GetImageImageTestsConfiguration
- Image
Tests Enabled This property is required. bool - Whether image tests are enabled.
- Timeout
Minutes This property is required. int - Number of minutes before image tests time out.
- Image
Tests Enabled This property is required. bool - Whether image tests are enabled.
- Timeout
Minutes This property is required. int - Number of minutes before image tests time out.
- image
Tests Enabled This property is required. Boolean - Whether image tests are enabled.
- timeout
Minutes This property is required. Integer - Number of minutes before image tests time out.
- image
Tests Enabled This property is required. boolean - Whether image tests are enabled.
- timeout
Minutes This property is required. number - Number of minutes before image tests time out.
- image_
tests_ enabled This property is required. bool - Whether image tests are enabled.
- timeout_
minutes This property is required. int - Number of minutes before image tests time out.
- image
Tests Enabled This property is required. Boolean - Whether image tests are enabled.
- timeout
Minutes This property is required. Number - Number of minutes before image tests time out.
GetImageOutputResource
- Amis
This property is required. List<GetImage Output Resource Ami> - Set of objects with each Amazon Machine Image (AMI) created.
- Containers
This property is required. List<GetImage Output Resource Container> - Set of objects with each container image created and stored in the output repository.
- Amis
This property is required. []GetImage Output Resource Ami - Set of objects with each Amazon Machine Image (AMI) created.
- Containers
This property is required. []GetImage Output Resource Container - Set of objects with each container image created and stored in the output repository.
- amis
This property is required. List<GetImage Output Resource Ami> - Set of objects with each Amazon Machine Image (AMI) created.
- containers
This property is required. List<GetImage Output Resource Container> - Set of objects with each container image created and stored in the output repository.
- amis
This property is required. GetImage Output Resource Ami[] - Set of objects with each Amazon Machine Image (AMI) created.
- containers
This property is required. GetImage Output Resource Container[] - Set of objects with each container image created and stored in the output repository.
- amis
This property is required. Sequence[GetImage Output Resource Ami] - Set of objects with each Amazon Machine Image (AMI) created.
- containers
This property is required. Sequence[GetImage Output Resource Container] - Set of objects with each container image created and stored in the output repository.
- amis
This property is required. List<Property Map> - Set of objects with each Amazon Machine Image (AMI) created.
- containers
This property is required. List<Property Map> - Set of objects with each container image created and stored in the output repository.
GetImageOutputResourceAmi
- Account
Id This property is required. string - Account identifier of the AMI.
- Description
This property is required. string - Description of the AMI.
- Image
This property is required. string - Identifier of the AMI.
- Name
This property is required. string - Name of the AMI.
- Region
This property is required. string - Region of the container image.
- Account
Id This property is required. string - Account identifier of the AMI.
- Description
This property is required. string - Description of the AMI.
- Image
This property is required. string - Identifier of the AMI.
- Name
This property is required. string - Name of the AMI.
- Region
This property is required. string - Region of the container image.
- account
Id This property is required. String - Account identifier of the AMI.
- description
This property is required. String - Description of the AMI.
- image
This property is required. String - Identifier of the AMI.
- name
This property is required. String - Name of the AMI.
- region
This property is required. String - Region of the container image.
- account
Id This property is required. string - Account identifier of the AMI.
- description
This property is required. string - Description of the AMI.
- image
This property is required. string - Identifier of the AMI.
- name
This property is required. string - Name of the AMI.
- region
This property is required. string - Region of the container image.
- account_
id This property is required. str - Account identifier of the AMI.
- description
This property is required. str - Description of the AMI.
- image
This property is required. str - Identifier of the AMI.
- name
This property is required. str - Name of the AMI.
- region
This property is required. str - Region of the container image.
- account
Id This property is required. String - Account identifier of the AMI.
- description
This property is required. String - Description of the AMI.
- image
This property is required. String - Identifier of the AMI.
- name
This property is required. String - Name of the AMI.
- region
This property is required. String - Region of the container image.
GetImageOutputResourceContainer
- image_
uris This property is required. Sequence[str] - Set of URIs for created containers.
- region
This property is required. str - Region of the container image.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.