Interface CfnInstance.BlockDeviceMappingProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

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

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


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 BlockDeviceMappingProperty blockDeviceMappingProperty = BlockDeviceMappingProperty.builder()
  • 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()
      a CfnInstance.BlockDeviceMappingProperty.Builder of CfnInstance.BlockDeviceMappingProperty