CreateContainerRecipeRequest
¶
Source code in docs_src/capo_imagebuilder/types/create_container_recipe_request.py
client_token
instance-attribute
¶
client_token: ClientToken
A unique, case-sensitive identifier you provide to ensure that the operation runs no more than one time. If you retry a request with the same client token, Image Builder returns the original response without running the operation again. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
components
instance-attribute
¶
components: NotRequired[ComponentConfigurationList]
The components included in the container recipe. You can specify each component only one time in a recipe.
description
instance-attribute
¶
description: NotRequired[NonEmptyString]
The description of the container recipe.
dockerfile_template_data
instance-attribute
¶
dockerfile_template_data: NotRequired[InlineDockerFileTemplate]
The Dockerfile template used to build your image, as an inline data blob. You must specify exactly one of the dockerfileTemplateData or dockerfileTemplateUri properties. For the contextual variables that the template can include, see Create a new version of a container recipe in the EC2 Image Builder User Guide.
dockerfile_template_uri
instance-attribute
¶
dockerfile_template_uri: NotRequired[Uri]
The Amazon S3 URI for the Dockerfile template that is used to build your container image. You must have permission to read the object. Image Builder reads the object once, when it creates the recipe, and stores its content in the recipe. Later changes to the S3 object don't affect the recipe. You must specify exactly one of the dockerfileTemplateData or dockerfileTemplateUri properties.
dry_run
instance-attribute
¶
dry_run: Boolean
Validates the required permissions and request parameters without performing the operation. If validation succeeds, the operation returns a DryRunOperationException error response.
image_os_version_override
instance-attribute
¶
image_os_version_override: NotRequired[NonEmptyString]
Specifies the operating system version for the base image. Use this property only when the base image is a container image from a registry. When the base image is an Image Builder image, the operating system version comes from the parent image.
instance_configuration
instance-attribute
¶
instance_configuration: NotRequired[InstanceConfiguration]
A group of options that can be used to configure an instance for building and testing container images.
kms_key_id
instance-attribute
¶
kms_key_id: NotRequired[NonEmptyString]
The Amazon Resource Name (ARN) that uniquely identifies which KMS key is used to encrypt the Dockerfile template. This can be either the Key ARN or the Alias ARN. For more information, see Key identifiers (KeyId) in the Key Management Service Developer Guide.
name
instance-attribute
¶
name: ResourceName
The name of the container recipe. The recipe name, combined with the semantic version, must be unique to your account in each Amazon Web Services Region. Image Builder generates the container recipe ARN from a normalized form of the name, so names that differ only in case, spaces, or underscores count as the same name.
parent_image
instance-attribute
¶
parent_image: NonEmptyString
The base image for the container recipe. This can be an Image Builder image resource ARN or a container image URI from a registry, for example amazonlinux:latest.
platform_override
instance-attribute
¶
platform_override: NotRequired[Platform]
Specifies the operating system platform when you use a custom base image. Container recipes support only the Linux and Windows platforms.
semantic_version
instance-attribute
¶
semantic_version: WildcardVersionNumber
The semantic version of the container recipe. This version follows the semantic version syntax.
The semantic version has four nodes:
Assignment: For the first three nodes, you can assign any positive integer value, including zero. The upper limit is 2^30-1, or 1073741823, for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
target_repository
instance-attribute
¶
target_repository: TargetContainerRepository
The destination repository for the container image. The Amazon ECR repository must already exist in the Amazon Web Services Region where the build runs.
working_directory
instance-attribute
¶
working_directory: NotRequired[NonEmptyString]
The working directory for use during build and test workflows.