CfnImageRecipeMixinProps
- class aws_cdk.mixins_preview.aws_imagebuilder.mixins.CfnImageRecipeMixinProps(*, additional_instance_configuration=None, ami_tags=None, block_device_mappings=None, components=None, description=None, name=None, parent_image=None, tags=None, version=None, working_directory=None)
Bases:
objectProperties for CfnImageRecipePropsMixin.
- Parameters:
additional_instance_configuration (
Union[IResolvable,AdditionalInstanceConfigurationProperty,Dict[str,Any],None]) – 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 an instance is launched from your AMI.ami_tags (
Union[Mapping[str,str],IResolvable,None]) – Tags that are applied to the AMI that Image Builder creates during the Build phase prior to image distribution.block_device_mappings (
Union[IResolvable,Sequence[Union[IResolvable,InstanceBlockDeviceMappingProperty,Dict[str,Any]]],None]) – The block device mappings to apply when creating images from this recipe.components (
Union[IResolvable,Sequence[Union[IResolvable,ComponentConfigurationProperty,Dict[str,Any]]],None]) – The components that are included in the image recipe. Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.description (
Optional[str]) – The description of the image recipe.name (
Optional[str]) – The name of the image recipe.parent_image (
Optional[str]) – 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) - AWS Systems Manager (SSM) Parameter Store Parameter, prefixed byssm:, followed by the parameter name or ARN. - AWS Marketplace product IDtags (
Optional[Mapping[str,str]]) – The tags of the image recipe.version (
Optional[str]) – The version of the image recipe.working_directory (
Optional[str]) – The working directory to be used 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.mixins_preview.aws_imagebuilder import mixins as imagebuilder_mixins cfn_image_recipe_mixin_props = imagebuilder_mixins.CfnImageRecipeMixinProps( additional_instance_configuration=imagebuilder_mixins.CfnImageRecipePropsMixin.AdditionalInstanceConfigurationProperty( systems_manager_agent=imagebuilder_mixins.CfnImageRecipePropsMixin.SystemsManagerAgentProperty( uninstall_after_build=False ), user_data_override="userDataOverride" ), ami_tags={ "ami_tags_key": "amiTags" }, block_device_mappings=[imagebuilder_mixins.CfnImageRecipePropsMixin.InstanceBlockDeviceMappingProperty( device_name="deviceName", ebs=imagebuilder_mixins.CfnImageRecipePropsMixin.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" )], components=[imagebuilder_mixins.CfnImageRecipePropsMixin.ComponentConfigurationProperty( component_arn="componentArn", parameters=[imagebuilder_mixins.CfnImageRecipePropsMixin.ComponentParameterProperty( name="name", value=["value"] )] )], description="description", name="name", parent_image="parentImage", tags={ "tags_key": "tags" }, version="version", working_directory="workingDirectory" )
Attributes
- additional_instance_configuration
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 an instance is launched from your AMI.
- ami_tags
Tags that are applied to the AMI that Image Builder creates during the Build phase prior to image distribution.
- block_device_mappings
The block device mappings to apply when creating images from this recipe.
- components
The components that are included in the image recipe.
Recipes require a minimum of one build component, and can have a maximum of 20 build and test components in any combination.
- description
The description of the image recipe.
- name
The name of the image recipe.
- parent_image
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)
AWS Systems Manager (SSM) Parameter Store Parameter, prefixed by
ssm:, followed by the parameter name or ARN.AWS Marketplace product ID
- tags
The tags of the image recipe.
- version
The version of the image recipe.
- working_directory
The working directory to be used during build and test workflows.