Table of Contents

Class EbsDeviceOptions

Namespace
Amazon.CDK.AWS.AutoScaling
Assembly
Amazon.CDK.AWS.AutoScaling.dll

Block device options for an EBS volume.

public class EbsDeviceOptions : IEbsDeviceOptions, IEbsDeviceOptionsBase
Inheritance
EbsDeviceOptions
Implements
Inherited Members

Examples

// The code below shows an example of how to instantiate this type.
            // The values are placeholders you should change.
            using Amazon.CDK.AWS.AutoScaling;

            var ebsDeviceOptions = new EbsDeviceOptions {
                DeleteOnTermination = false,
                Encrypted = false,
                Iops = 123,
                VolumeType = EbsDeviceVolumeType.STANDARD
            };

Remarks

ExampleMetadata: fixture=_generated

Constructors

EbsDeviceOptions()

public EbsDeviceOptions()

Properties

DeleteOnTermination

Indicates whether to delete the volume when the instance is terminated.

public bool? DeleteOnTermination { get; set; }

Property Value

bool?

Remarks

Default: - true for Amazon EC2 Auto Scaling, false otherwise (e.g. EBS)

Encrypted

Specifies whether the EBS volume is encrypted.

public bool? Encrypted { get; set; }

Property Value

bool?

Remarks

Encrypted EBS volumes can only be attached to instances that support Amazon EBS encryption

Default: false

See: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances

Iops

The number of I/O operations per second (IOPS) to provision for the volume.

public double? Iops { get; set; }

Property Value

double?

Remarks

Must only be set for {@link volumeType}: {@link EbsDeviceVolumeType.IO1}

The maximum ratio of IOPS to volume size (in GiB) is 50:1, so for 5,000 provisioned IOPS, you need at least 100 GiB storage on the volume.

Default: - none, required for {@link EbsDeviceVolumeType.IO1}

See: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumeTypes.html

VolumeType

The EBS volume type.

public EbsDeviceVolumeType? VolumeType { get; set; }

Property Value

EbsDeviceVolumeType?

Remarks