Interface CfnInstance.BlockDeviceMappingProperty

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

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

This data type maps directly to the Amazon EC2 BlockDeviceMapping data type.

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.opsworks.*;
 BlockDeviceMappingProperty blockDeviceMappingProperty = BlockDeviceMappingProperty.builder()
         .deviceName("deviceName")
         .ebs(EbsBlockDeviceProperty.builder()
                 .deleteOnTermination(false)
                 .iops(123)
                 .snapshotId("snapshotId")
                 .volumeSize(123)
                 .volumeType("volumeType")
                 .build())
         .noDevice("noDevice")
         .virtualName("virtualName")
         .build();
 
  • Method Details

    • getDeviceName

      @Stability(Stable) @Nullable default String getDeviceName()
      The device name that is exposed to the instance, such as /dev/sdh .

      For the root device, you can use the explicit device name or you can set this parameter to ROOT_DEVICE and AWS OpsWorks Stacks will provide the correct device name.

    • getEbs

      @Stability(Stable) @Nullable default Object getEbs()
      An EBSBlockDevice that defines how to configure an Amazon EBS volume when the instance is launched.

      You can specify either the VirtualName or Ebs , but not both.

    • getNoDevice

      @Stability(Stable) @Nullable default String getNoDevice()
      Suppresses the specified device included in the AMI's block device mapping.
    • getVirtualName

      @Stability(Stable) @Nullable default String getVirtualName()
      The virtual device name.

      For more information, see BlockDeviceMapping . You can specify either the VirtualName or Ebs , but not both.

    • builder

      @Stability(Stable) static CfnInstance.BlockDeviceMappingProperty.Builder builder()
      Returns:
      a CfnInstance.BlockDeviceMappingProperty.Builder of CfnInstance.BlockDeviceMappingProperty