Interface CfnSpotFleet.BlockDeviceMappingProperty

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

@Stability(Stable) public static interface CfnSpotFleet.BlockDeviceMappingProperty extends software.amazon.jsii.JsiiSerializable
Specifies a block device mapping.

You can specify Ebs or VirtualName , but not both.

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.*;
 BlockDeviceMappingProperty blockDeviceMappingProperty = BlockDeviceMappingProperty.builder()
         .deviceName("deviceName")
         // the properties below are optional
         .ebs(EbsBlockDeviceProperty.builder()
                 .deleteOnTermination(false)
                 .encrypted(false)
                 .iops(123)
                 .snapshotId("snapshotId")
                 .volumeSize(123)
                 .volumeType("volumeType")
                 .build())
         .noDevice("noDevice")
         .virtualName("virtualName")
         .build();
 

See Also: