InstanceConfigurationProperty Struct
Defines a custom base AMI and block device mapping configurations of an instance used for building and testing container images.
Example
ts
// 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-lib';
const instanceConfigurationProperty: imagebuilder.CfnContainerRecipe.InstanceConfigurationProperty = {
blockDeviceMappings: [{
deviceName: 'deviceName',
ebs: {
deleteOnTermination: false,
encrypted: false,
iops: 123,
kmsKeyId: 'kmsKeyId',
snapshotId: 'snapshotId',
throughput: 123,
volumeSize: 123,
volumeType: 'volumeType',
},
noDevice: 'noDevice',
virtualName: 'virtualName',
}],
image: 'image',
};
Properties
blockDeviceMappingsIResolvable | IResolvable | CfnContainerRecipe.InstanceBlockDeviceMappingProperty[]block_device_mappingstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InstanceBlockDeviceMappingProperty]]]blockDeviceMappingsIResolvableBlockDeviceMappingsIResolvableBlockDeviceMappingsinterface{}#Defines the block devices to attach for building an instance from this Image Builder AMI.
The base image for a container build and test instance.
notes
This can contain an AMI ID or it can specify an AWS Systems Manager (SSM) Parameter Store Parameter, prefixed by ssm: , followed by the parameter name or ARN.
If not specified, Image Builder uses the appropriate ECS-optimized AMI as a base image.