Interface CfnLaunchTemplate.IEbsProperty
Parameters for a block device for an EBS volume in an Amazon EC2 launch template.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IEbsProperty
Syntax (vb)
Public Interface IEbsProperty
Remarks
Ebs
is a property of AWS::EC2::LaunchTemplate BlockDeviceMapping .
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.EC2;
var ebsProperty = new EbsProperty {
DeleteOnTermination = false,
Encrypted = false,
Iops = 123,
KmsKeyId = "kmsKeyId",
SnapshotId = "snapshotId",
Throughput = 123,
VolumeSize = 123,
VolumeType = "volumeType"
};
Synopsis
Properties
DeleteOnTermination | Indicates whether the EBS volume is deleted on instance termination. |
Encrypted | Indicates whether the EBS volume is encrypted. |
Iops | The number of I/O operations per second (IOPS). |
KmsKeyId | Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption. |
SnapshotId | The ID of the snapshot. |
Throughput | The throughput to provision for a |
VolumeSize | The size of the volume, in GiBs. |
VolumeType | The volume type. |
Properties
DeleteOnTermination
Indicates whether the EBS volume is deleted on instance termination.
virtual object DeleteOnTermination { get; }
Property Value
System.Object
Remarks
Encrypted
Indicates whether the EBS volume is encrypted.
virtual object Encrypted { get; }
Property Value
System.Object
Remarks
Encrypted volumes can only be attached to instances that support Amazon EBS encryption. If you are creating a volume from a snapshot, you can't specify an encryption value.
Iops
The number of I/O operations per second (IOPS).
virtual Nullable<double> Iops { get; }
Property Value
System.Nullable<System.Double>
Remarks
For gp3
, io1
, and io2
volumes, this represents the number of IOPS that are provisioned for the volume. For gp2
volumes, this represents the baseline performance of the volume and the rate at which the volume accumulates I/O credits for bursting.
The following are the supported values for each volume type:
For io2
volumes, you can achieve up to 256,000 IOPS on instances built on the Nitro System . On other instances, you can achieve performance up to 32,000 IOPS.
This parameter is supported for io1
, io2
, and gp3
volumes only.
KmsKeyId
Identifier (key ID, key alias, key ARN, or alias ARN) of the customer managed KMS key to use for EBS encryption.
virtual string KmsKeyId { get; }
Property Value
System.String
Remarks
SnapshotId
The ID of the snapshot.
virtual string SnapshotId { get; }
Property Value
System.String
Remarks
Throughput
The throughput to provision for a gp3
volume, with a maximum of 1,000 MiB/s.
virtual Nullable<double> Throughput { get; }
Property Value
System.Nullable<System.Double>
Remarks
Valid Range: Minimum value of 125. Maximum value of 1000.
VolumeSize
The size of the volume, in GiBs.
virtual Nullable<double> VolumeSize { get; }
Property Value
System.Nullable<System.Double>
Remarks
You must specify either a snapshot ID or a volume size. The following are the supported volumes sizes for each volume type:
VolumeType
The volume type.
virtual string VolumeType { get; }
Property Value
System.String
Remarks
For more information, see Amazon EBS volume types in the Amazon EBS User Guide .