Class CfnContainerRecipe.InstanceConfigurationProperty
Defines a custom base AMI and block device mapping configurations of an instance used for building and testing container images.
Inheritance
System.Object
CfnContainerRecipe.InstanceConfigurationProperty
Namespace: Amazon.CDK.AWS.ImageBuilder
Assembly: Amazon.CDK.AWS.ImageBuilder.dll
Syntax (csharp)
public class InstanceConfigurationProperty : Object, CfnContainerRecipe.IInstanceConfigurationProperty
Syntax (vb)
Public Class InstanceConfigurationProperty
Inherits Object
Implements CfnContainerRecipe.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
Constructors
InstanceConfigurationProperty() |
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. |
Constructors
InstanceConfigurationProperty()
public InstanceConfigurationProperty()
Properties
BlockDeviceMappings
Defines the block devices to attach for building an instance from this Image Builder AMI.
public object BlockDeviceMappings { get; set; }
Property Value
System.Object
Remarks
Image
The AMI ID to use as the base image for a container build and test instance.
public string Image { get; set; }
Property Value
System.String
Remarks
If not specified, Image Builder will use the appropriate ECS-optimized AMI as a base image.