Interface CfnInstance.EbsProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnInstance.EbsProperty.Jsii$Proxy
Enclosing class:
CfnInstance

@Stability(Stable) public static interface CfnInstance.EbsProperty extends software.amazon.jsii.JsiiSerializable
Specifies a block device for an EBS volume.

Ebs is a property of the Amazon EC2 BlockDeviceMapping property.

After the instance is running, you can modify only the DeleteOnTermination parameters for the attached volumes without interrupting the instance. Modifying any other parameter results in instance replacement .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 EbsProperty ebsProperty = EbsProperty.builder()
         .deleteOnTermination(false)
         .encrypted(false)
         .iops(123)
         .kmsKeyId("kmsKeyId")
         .snapshotId("snapshotId")
         .volumeSize(123)
         .volumeType("volumeType")
         .build();
 

See Also: