interface CfnImageRecipeMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.ImageBuilder.CfnImageRecipeMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsimagebuilder#CfnImageRecipeMixinProps |
Java | software.amazon.awscdk.cfnpropertymixins.services.imagebuilder.CfnImageRecipeMixinProps |
Python | aws_cdk.cfn_property_mixins.aws_imagebuilder.CfnImageRecipeMixinProps |
TypeScript | @aws-cdk/cfn-property-mixins » aws_imagebuilder » CfnImageRecipeMixinProps |
Properties for CfnImageRecipePropsMixin.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_imagebuilder as imagebuilder } from '@aws-cdk/cfn-property-mixins';
const cfnImageRecipeMixinProps: imagebuilder.CfnImageRecipeMixinProps = {
additionalInstanceConfiguration: {
systemsManagerAgent: {
uninstallAfterBuild: false,
},
userDataOverride: 'userDataOverride',
},
amiTags: {
amiTagsKey: 'amiTags',
},
amiWatermarks: ['amiWatermarks'],
blockDeviceMappings: [{
deviceName: 'deviceName',
ebs: {
deleteOnTermination: false,
encrypted: false,
iops: 123,
kmsKeyId: 'kmsKeyId',
snapshotId: 'snapshotId',
throughput: 123,
volumeSize: 123,
volumeType: 'volumeType',
},
noDevice: 'noDevice',
virtualName: 'virtualName',
}],
components: [{
componentArn: 'componentArn',
parameters: [{
name: 'name',
value: ['value'],
}],
}],
description: 'description',
name: 'name',
parentImage: 'parentImage',
tags: {
tagsKey: 'tags',
},
version: 'version',
workingDirectory: 'workingDirectory',
};
Properties
| Name | Type | Description |
|---|---|---|
| additional | IResolvable | Additional | Before you create a new AMI, Image Builder launches temporary Amazon EC2 instances to build and test your image configuration. |
| ami | IResolvable | { [string]: string } | Tags that are applied to the AMI that Image Builder creates during the Build phase prior to image distribution. |
| ami | string[] | The AMI watermark names to attach to the output AMI from this recipe. |
| block | IResolvable | (IResolvable | Instance)[] | The block device mappings to apply when creating images from this recipe. |
| components? | IResolvable | (IResolvable | Component)[] | The components that are included in the image recipe. |
| description? | string | The description of the image recipe. |
| name? | string | The name of the image recipe. |
| parent | string | The base image for customizations specified in the image recipe. |
| tags? | { [string]: string } | The tags of the image recipe. |
| version? | string | The semantic version of the image recipe. This version follows the semantic version syntax. |
| working | string | The working directory to be used during build and test workflows. |
additionalInstanceConfiguration?
Type:
IResolvable | Additional
(optional)
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.
amiTags?
Type:
IResolvable | { [string]: string }
(optional)
Tags that are applied to the AMI that Image Builder creates during the Build phase prior to image distribution.
amiWatermarks?
Type:
string[]
(optional)
The AMI watermark names to attach 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.
blockDeviceMappings?
Type:
IResolvable | (IResolvable | Instance)[]
(optional)
The block device mappings to apply when creating images from this recipe.
components?
Type:
IResolvable | (IResolvable | Component)[]
(optional)
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?
Type:
string
(optional)
The description of the image recipe.
name?
Type:
string
(optional)
The name of the image recipe.
parentImage?
Type:
string
(optional)
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?
Type:
{ [string]: string }
(optional)
The tags of the image recipe.
version?
Type:
string
(optional)
The semantic version of the image recipe. This version follows the semantic version syntax.
The semantic version has four nodes: <major>.<minor>.<patch>/<build>. 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.
workingDirectory?
Type:
string
(optional)
The working directory to be used during build and test workflows.

.NET
Go
Java
Python
TypeScript