Interface CfnLaunchTemplate.BlockDeviceMappingProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnLaunchTemplate.BlockDeviceMappingProperty extends
Information about a block device mapping for an Amazon EC2 launch template.

BlockDeviceMapping is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .


 // 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 (for example, /dev/sdh or xvdh).
    • getEbs

      @Stability(Stable) @Nullable default Object getEbs()
      Parameters used to automatically set up EBS volumes when the instance is launched.
    • getNoDevice

      @Stability(Stable) @Nullable default String getNoDevice()
      To omit the device from the block device mapping, specify an empty string.
    • getVirtualName

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

      Instance store volumes are numbered starting from 0. An instance type with 2 available instance store volumes can specify mappings for ephemeral0 and ephemeral1. The number of available instance store volumes depends on the instance type. After you connect to the instance, you must mount the volume.

    • builder

      @Stability(Stable) static CfnLaunchTemplate.BlockDeviceMappingProperty.Builder builder()
      a CfnLaunchTemplate.BlockDeviceMappingProperty.Builder of CfnLaunchTemplate.BlockDeviceMappingProperty