CfnContainerRecipeProps
- class aws_cdk.aws_imagebuilder.CfnContainerRecipeProps(*, components, container_type, name, parent_image, target_repository, version, description=None, dockerfile_template_data=None, dockerfile_template_uri=None, image_os_version_override=None, instance_configuration=None, kms_key_id=None, platform_override=None, tags=None, working_directory=None)
Bases:
object
Properties for defining a
CfnContainerRecipe
.- Parameters:
components (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,ComponentConfigurationProperty
,Dict
[str
,Any
]]]]) – Build and test components that are included in the container recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.container_type (
str
) – Specifies the type of container, such as Docker.name (
str
) – The name of the container recipe.parent_image (
str
) – The base image for the container recipe.target_repository (
Union
[IResolvable
,TargetContainerRepositoryProperty
,Dict
[str
,Any
]]) – The destination repository for the container image.version (
str
) – The semantic version of the container recipe. .. epigraph:: The semantic version has four nodes: ../. You can assign values for the first three, and can filter on all of them. Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 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. Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.description (
Optional
[str
]) – The description of the container recipe.dockerfile_template_data (
Optional
[str
]) – Dockerfiles are text documents that are used to build Docker containers, and ensure that they contain all of the elements required by the application running inside. The template data consists of contextual variables where Image Builder places build information or scripts, based on your container image recipe.dockerfile_template_uri (
Optional
[str
]) – The S3 URI for the Dockerfile that will be used to build your container image.image_os_version_override (
Optional
[str
]) – Specifies the operating system version for the base image.instance_configuration (
Union
[IResolvable
,InstanceConfigurationProperty
,Dict
[str
,Any
],None
]) – A group of options that can be used to configure an instance for building and testing container images.kms_key_id (
Optional
[str
]) – Identifies which KMS key is used to encrypt the container image for distribution to the target Region.platform_override (
Optional
[str
]) – Specifies the operating system platform when you use a custom base image.tags (
Optional
[Mapping
[str
,str
]]) – Tags that are attached to the container recipe.working_directory (
Optional
[str
]) – The working directory for use during build and test workflows.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_imagebuilder as imagebuilder cfn_container_recipe_props = imagebuilder.CfnContainerRecipeProps( components=[imagebuilder.CfnContainerRecipe.ComponentConfigurationProperty( component_arn="componentArn", parameters=[imagebuilder.CfnContainerRecipe.ComponentParameterProperty( name="name", value=["value"] )] )], container_type="containerType", name="name", parent_image="parentImage", target_repository=imagebuilder.CfnContainerRecipe.TargetContainerRepositoryProperty( repository_name="repositoryName", service="service" ), version="version", # the properties below are optional description="description", dockerfile_template_data="dockerfileTemplateData", dockerfile_template_uri="dockerfileTemplateUri", image_os_version_override="imageOsVersionOverride", instance_configuration=imagebuilder.CfnContainerRecipe.InstanceConfigurationProperty( block_device_mappings=[imagebuilder.CfnContainerRecipe.InstanceBlockDeviceMappingProperty( device_name="deviceName", ebs=imagebuilder.CfnContainerRecipe.EbsInstanceBlockDeviceSpecificationProperty( delete_on_termination=False, encrypted=False, iops=123, kms_key_id="kmsKeyId", snapshot_id="snapshotId", throughput=123, volume_size=123, volume_type="volumeType" ), no_device="noDevice", virtual_name="virtualName" )], image="image" ), kms_key_id="kmsKeyId", platform_override="platformOverride", tags={ "tags_key": "tags" }, working_directory="workingDirectory" )
Attributes
- components
Build and test components that are included in the container recipe.
Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.
- container_type
Specifies the type of container, such as Docker.
- description
The description of the container recipe.
- dockerfile_template_data
Dockerfiles are text documents that are used to build Docker containers, and ensure that they contain all of the elements required by the application running inside.
The template data consists of contextual variables where Image Builder places build information or scripts, based on your container image recipe.
- dockerfile_template_uri
The S3 URI for the Dockerfile that will be used to build your container image.
- image_os_version_override
Specifies the operating system version for the base image.
- instance_configuration
A group of options that can be used to configure an instance for building and testing container images.
- kms_key_id
Identifies which KMS key is used to encrypt the container image for distribution to the target Region.
- name
The name of the container recipe.
- parent_image
The base image for the container recipe.
- platform_override
Specifies the operating system platform when you use a custom base image.
- tags
Tags that are attached to the container recipe.
- target_repository
The destination repository for the container image.
- version
The semantic version of the container recipe.
The semantic version has four nodes: ../. You can assign values for the first three, and can filter on all of them.
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 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.
Filtering: With semantic versioning, you have the flexibility to use wildcards (x) to specify the most recent versions or nodes when selecting the base image or components for your recipe. When you use a wildcard in any node, all nodes to the right of the first wildcard must also be wildcards.
- working_directory
The working directory for use during build and test workflows.