AWS::ImageBuilder::ImageCreates a new image. This request will create a new image along with all of the configured output resources defined in the distribution configuration. You must specify exactly one recipe for your image, using either a ContainerRecipeArn or an ImageRecipeArn.
import { CfnImage } from 'aws-cdk-lib/aws-imagebuilder';Or use the module namespace:
import * as imagebuilder from 'aws-cdk-lib/aws-imagebuilder';
// imagebuilder.CfnImageConfiguration passed to the constructor as CfnImageProps.
containerRecipeArnOptionalstringThe Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.
deletionSettingsOptionalIResolvable | DeletionSettingsPropertyEnables deletion of underlying resources of an image when it is replaced or deleted, including its Amazon Machine Images (AMIs), snapshots, or containers.
distributionConfigurationArnOptionalstring | IDistributionConfigurationRefThe Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.
enhancedImageMetadataEnabledOptionalboolean | IResolvableCollects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
executionRoleOptionalstringThe name or Amazon Resource Name (ARN) for the IAM role you create that grants Image Builder access to perform workflow actions.
imagePipelineExecutionSettingsOptionalIResolvable | ImagePipelineExecutionSettingsPropertyThe image pipeline execution settings of the image.
imageRecipeArnOptionalstring | IImageRecipeRefThe Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.
imageScanningConfigurationOptionalIResolvable | ImageScanningConfigurationPropertyContains settings for vulnerability scans.
imageTestsConfigurationOptionalIResolvable | ImageTestsConfigurationPropertyThe image tests configuration of the image.
infrastructureConfigurationArnOptionalstring | IInfrastructureConfigurationRefThe Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.
loggingConfigurationOptionalIResolvable | ImageLoggingConfigurationPropertyThe logging configuration that's defined for the image. Image Builder uses the defined settings to direct execution log output during image creation.
tagsOptional{ [key: string]: string }The tags of the image.
workflowsOptionalIResolvable | IResolvable | WorkflowConfigurationProperty[]Contains an array of workflow configuration objects.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-imagebuilderAWS::ImageBuilder::Image