ImageRecipe
¶
Source code in docs_src/capo_imagebuilder/types/image_recipe.py
additional_instance_configuration
instance-attribute
¶
additional_instance_configuration: NotRequired[AdditionalInstanceConfiguration]
Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration. Instance configuration adds a layer of control over those instances. You can define settings and add scripts to run when Image Builder launches your build instance.
ami_tags
instance-attribute
¶
ami_tags: NotRequired[TagMap]
Tags that are applied to the AMI that Image Builder creates during the Build phase prior to image distribution.
ami_watermarks
instance-attribute
¶
ami_watermarks: NotRequired[AmiWatermarksList]
The AMI watermark names attached to the output AMI from this recipe. AMI watermarks are lineage markers that automatically propagate to derivative AMIs when the source AMI is copied or distributed.
arn
instance-attribute
¶
arn: NotRequired[ImageBuilderArn]
The Amazon Resource Name (ARN) of the image recipe.
block_device_mappings
instance-attribute
¶
block_device_mappings: NotRequired[InstanceBlockDeviceMappings]
The block device mappings to apply when creating images from this recipe.
components
instance-attribute
¶
components: NotRequired[ComponentConfigurationList]
The components that are included in the image recipe. A recipe can contain a maximum of 20 build and test components in any combination, by default. This maximum is an adjustable quota. For more information, see EC2 Image Builder endpoints and quotas in the Amazon Web Services General Reference.
date_created
instance-attribute
¶
date_created: NotRequired[DateTime]
The date on which this image recipe was created.
description
instance-attribute
¶
description: NotRequired[NonEmptyString]
The description of the image recipe.
parent_image
instance-attribute
¶
parent_image: NotRequired[NonEmptyString]
The base image for customizations specified in the image recipe. You can specify the parent image using one of the following options:
-
AMI ID
-
Image Builder image Amazon Resource Name (ARN)
-
Amazon Web Services Systems Manager (SSM) Parameter Store Parameter, prefixed by
ssm:, followed by the parameter name or ARN. -
Amazon Web Services Marketplace product ID
type
instance-attribute
¶
type: NotRequired[ImageType]
The output image type. For an image recipe, this is always AMI. Container images are built from container recipes, a separate resource. This field isn't currently returned in responses.
working_directory
instance-attribute
¶
working_directory: NotRequired[NonEmptyString]
The working directory used during build and test workflows. If you don't specify a working directory, Image Builder uses /tmp for Linux and macOS build instances, and C:/ for Windows build instances.