AWS v6.60.0 published on Tuesday, Nov 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:imagebuilder/getImage:getImage
arguments:
# arguments dictionary
The following arguments are supported:
- Arn 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 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 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 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 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 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 List<GetImage Image Scanning Configuration Ecr Configuration> - Configuration block with ECR configuration.
- Image
Scanning boolEnabled - 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 []GetImage Image Scanning Configuration Ecr Configuration - Configuration block with ECR configuration.
- Image
Scanning boolEnabled - 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 List<GetImage Image Scanning Configuration Ecr Configuration> - Configuration block with ECR configuration.
- image
Scanning BooleanEnabled - 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 GetImage Image Scanning Configuration Ecr Configuration[] - Configuration block with ECR configuration.
- image
Scanning booleanEnabled - 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 Sequence[GetImage Image Scanning Configuration Ecr Configuration] - Configuration block with ECR configuration.
- image_
scanning_ boolenabled - 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 List<Property Map> - Configuration block with ECR configuration.
- image
Scanning BooleanEnabled - 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
- List<string>
- Set of tags for Image Builder to apply to the output container image that that Amazon Inspector scans.
- Repository
Name string - The name of the container repository that Amazon Inspector scans to identify findings for your container images.
- []string
- Set of tags for Image Builder to apply to the output container image that that Amazon Inspector scans.
- Repository
Name string - The name of the container repository that Amazon Inspector scans to identify findings for your container images.
- List<String>
- Set of tags for Image Builder to apply to the output container image that that Amazon Inspector scans.
- repository
Name String - The name of the container repository that Amazon Inspector scans to identify findings for your container images.
- string[]
- Set of tags for Image Builder to apply to the output container image that that Amazon Inspector scans.
- repository
Name string - The name of the container repository that Amazon Inspector scans to identify findings for your container images.
- Sequence[str]
- Set of tags for Image Builder to apply to the output container image that that Amazon Inspector scans.
- repository_
name str - The name of the container repository that Amazon Inspector scans to identify findings for your container images.
- List<String>
- Set of tags for Image Builder to apply to the output container image that that Amazon Inspector scans.
- repository
Name String - The name of the container repository that Amazon Inspector scans to identify findings for your container images.
GetImageImageTestsConfiguration
- Image
Tests boolEnabled - Whether image tests are enabled.
- Timeout
Minutes int - Number of minutes before image tests time out.
- Image
Tests boolEnabled - Whether image tests are enabled.
- Timeout
Minutes int - Number of minutes before image tests time out.
- image
Tests BooleanEnabled - Whether image tests are enabled.
- timeout
Minutes Integer - Number of minutes before image tests time out.
- image
Tests booleanEnabled - Whether image tests are enabled.
- timeout
Minutes number - Number of minutes before image tests time out.
- image_
tests_ boolenabled - Whether image tests are enabled.
- timeout_
minutes int - Number of minutes before image tests time out.
- image
Tests BooleanEnabled - Whether image tests are enabled.
- timeout
Minutes Number - Number of minutes before image tests time out.
GetImageOutputResource
- Amis
List<Get
Image Output Resource Ami> - Set of objects with each Amazon Machine Image (AMI) created.
- Containers
List<Get
Image Output Resource Container> - Set of objects with each container image created and stored in the output repository.
- Amis
[]Get
Image Output Resource Ami - Set of objects with each Amazon Machine Image (AMI) created.
- Containers
[]Get
Image Output Resource Container - Set of objects with each container image created and stored in the output repository.
- amis
List<Get
Image Output Resource Ami> - Set of objects with each Amazon Machine Image (AMI) created.
- containers
List<Get
Image Output Resource Container> - Set of objects with each container image created and stored in the output repository.
- amis
Get
Image Output Resource Ami[] - Set of objects with each Amazon Machine Image (AMI) created.
- containers
Get
Image Output Resource Container[] - Set of objects with each container image created and stored in the output repository.
- amis
Sequence[Get
Image Output Resource Ami] - Set of objects with each Amazon Machine Image (AMI) created.
- containers
Sequence[Get
Image Output Resource Container] - Set of objects with each container image created and stored in the output repository.
- amis List<Property Map>
- Set of objects with each Amazon Machine Image (AMI) created.
- containers List<Property Map>
- Set of objects with each container image created and stored in the output repository.
GetImageOutputResourceAmi
- Account
Id string - Account identifier of the AMI.
- Description string
- Description of the AMI.
- Image string
- Identifier of the AMI.
- Name string
- Name of the AMI.
- Region string
- Region of the container image.
- Account
Id string - Account identifier of the AMI.
- Description string
- Description of the AMI.
- Image string
- Identifier of the AMI.
- Name string
- Name of the AMI.
- Region string
- Region of the container image.
- account
Id String - Account identifier of the AMI.
- description String
- Description of the AMI.
- image String
- Identifier of the AMI.
- name String
- Name of the AMI.
- region String
- Region of the container image.
- account
Id string - Account identifier of the AMI.
- description string
- Description of the AMI.
- image string
- Identifier of the AMI.
- name string
- Name of the AMI.
- region string
- Region of the container image.
- account_
id str - Account identifier of the AMI.
- description str
- Description of the AMI.
- image str
- Identifier of the AMI.
- name str
- Name of the AMI.
- region str
- Region of the container image.
- account
Id String - Account identifier of the AMI.
- description String
- Description of the AMI.
- image String
- Identifier of the AMI.
- name String
- Name of the AMI.
- region String
- Region of the container image.
GetImageOutputResourceContainer
- image_
uris Sequence[str] - Set of URIs for created containers.
- region 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.