@Stability(value=Stable) public static final class CfnLaunchConfiguration.BlockDeviceMappingProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnLaunchConfiguration.BlockDeviceMappingProperty>
CfnLaunchConfiguration.BlockDeviceMappingProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnLaunchConfiguration.BlockDeviceMappingProperty.Builder deviceName(String deviceName)
CfnLaunchConfiguration.BlockDeviceMappingProperty.getDeviceName()deviceName - The device name exposed to the EC2 instance (for example, `/dev/sdh` or `xvdh` ). This parameter is required.
For more information, see Device naming on Linux instances in the Amazon EC2 User Guide for Linux Instances .this@Stability(value=Stable) public CfnLaunchConfiguration.BlockDeviceMappingProperty.Builder ebs(CfnLaunchConfiguration.BlockDeviceProperty ebs)
CfnLaunchConfiguration.BlockDeviceMappingProperty.getEbs()ebs - Parameters used to automatically set up EBS volumes when an instance is launched.
You can specify either VirtualName or Ebs , but not both.this@Stability(value=Stable) public CfnLaunchConfiguration.BlockDeviceMappingProperty.Builder ebs(IResolvable ebs)
CfnLaunchConfiguration.BlockDeviceMappingProperty.getEbs()ebs - Parameters used to automatically set up EBS volumes when an instance is launched.
You can specify either VirtualName or Ebs , but not both.this@Stability(value=Stable) public CfnLaunchConfiguration.BlockDeviceMappingProperty.Builder noDevice(Boolean noDevice)
CfnLaunchConfiguration.BlockDeviceMappingProperty.getNoDevice()noDevice - Setting this value to `true` suppresses the specified device included in the block device mapping of the AMI.
If NoDevice is true for the root device, instances might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches replacement instances.
If you specify NoDevice , you cannot specify Ebs .
this@Stability(value=Stable) public CfnLaunchConfiguration.BlockDeviceMappingProperty.Builder noDevice(IResolvable noDevice)
CfnLaunchConfiguration.BlockDeviceMappingProperty.getNoDevice()noDevice - Setting this value to `true` suppresses the specified device included in the block device mapping of the AMI.
If NoDevice is true for the root device, instances might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches replacement instances.
If you specify NoDevice , you cannot specify Ebs .
this@Stability(value=Stable) public CfnLaunchConfiguration.BlockDeviceMappingProperty.Builder virtualName(String virtualName)
CfnLaunchConfiguration.BlockDeviceMappingProperty.getVirtualName()virtualName - The name of the virtual device.
The name must be in the form ephemeral X where X is a number starting from zero (0), for example, ephemeral0 .
You can specify either VirtualName or Ebs , but not both.
this@Stability(value=Stable) public CfnLaunchConfiguration.BlockDeviceMappingProperty build()
build in interface software.amazon.jsii.Builder<CfnLaunchConfiguration.BlockDeviceMappingProperty>CfnLaunchConfiguration.BlockDeviceMappingPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.