Show / Hide Table of Contents

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 CfnContainerRecipe.IInstanceConfigurationProperty
Syntax (vb)
Public Interface CfnContainerRecipe.IInstanceConfigurationProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-instanceconfiguration.html

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 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.

object? BlockDeviceMappings { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-instanceconfiguration.html#cfn-imagebuilder-containerrecipe-instanceconfiguration-blockdevicemappings

Type union: either IResolvable or (either IResolvable or CfnContainerRecipe.IInstanceBlockDeviceMappingProperty)[]

Image

The base image for a container build and test instance.

string? Image { get; }
Property Value

string

Remarks

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-imagebuilder-containerrecipe-instanceconfiguration.html#cfn-imagebuilder-containerrecipe-instanceconfiguration-image

Back to top Generated by DocFX