Interface CfnContainerRecipe.IInstanceConfigurationProperty
Defines a custom base AMI and block device mapping configurations of an instance used for building and testing container images.
Namespace: Amazon.CDK.AWS.ImageBuilder
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IInstanceConfigurationProperty
Syntax (vb)
Public Interface IInstanceConfigurationProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ImageBuilder;
var instanceConfigurationProperty = new InstanceConfigurationProperty {
BlockDeviceMappings = new [] { new InstanceBlockDeviceMappingProperty {
DeviceName = "deviceName",
Ebs = new EbsInstanceBlockDeviceSpecificationProperty {
DeleteOnTermination = false,
Encrypted = false,
Iops = 123,
KmsKeyId = "kmsKeyId",
SnapshotId = "snapshotId",
Throughput = 123,
VolumeSize = 123,
VolumeType = "volumeType"
},
NoDevice = "noDevice",
VirtualName = "virtualName"
} },
Image = "image"
};
Synopsis
Properties
BlockDeviceMappings | Defines the block devices to attach for building an instance from this Image Builder AMI. |
Image | The AMI ID to use as the base image for a container build and test instance. |
Properties
BlockDeviceMappings
Defines the block devices to attach for building an instance from this Image Builder AMI.
virtual object BlockDeviceMappings { get; }
Property Value
System.Object
Remarks
Image
The AMI ID to use as the base image for a container build and test instance.
virtual string Image { get; }
Property Value
System.String
Remarks
If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.