@Stability(value=Stable) public static final class CfnInstance.BlockDeviceMappingProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnInstance.BlockDeviceMappingProperty>
CfnInstance.BlockDeviceMappingProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnInstance.BlockDeviceMappingProperty |
build()
Builds the configured instance.
|
CfnInstance.BlockDeviceMappingProperty.Builder |
deviceName(String deviceName)
Sets the value of
CfnInstance.BlockDeviceMappingProperty.getDeviceName() |
CfnInstance.BlockDeviceMappingProperty.Builder |
ebs(CfnInstance.EbsBlockDeviceProperty ebs)
Sets the value of
CfnInstance.BlockDeviceMappingProperty.getEbs() |
CfnInstance.BlockDeviceMappingProperty.Builder |
ebs(IResolvable ebs)
Sets the value of
CfnInstance.BlockDeviceMappingProperty.getEbs() |
CfnInstance.BlockDeviceMappingProperty.Builder |
noDevice(String noDevice)
Sets the value of
CfnInstance.BlockDeviceMappingProperty.getNoDevice() |
CfnInstance.BlockDeviceMappingProperty.Builder |
virtualName(String virtualName)
Sets the value of
CfnInstance.BlockDeviceMappingProperty.getVirtualName() |
@Stability(value=Stable) public CfnInstance.BlockDeviceMappingProperty.Builder deviceName(String deviceName)
CfnInstance.BlockDeviceMappingProperty.getDeviceName()deviceName - 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.this@Stability(value=Stable) public CfnInstance.BlockDeviceMappingProperty.Builder ebs(CfnInstance.EbsBlockDeviceProperty ebs)
CfnInstance.BlockDeviceMappingProperty.getEbs()ebs - 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.this@Stability(value=Stable) public CfnInstance.BlockDeviceMappingProperty.Builder ebs(IResolvable ebs)
CfnInstance.BlockDeviceMappingProperty.getEbs()ebs - 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.this@Stability(value=Stable) public CfnInstance.BlockDeviceMappingProperty.Builder noDevice(String noDevice)
CfnInstance.BlockDeviceMappingProperty.getNoDevice()noDevice - Suppresses the specified device included in the AMI's block device mapping.this@Stability(value=Stable) public CfnInstance.BlockDeviceMappingProperty.Builder virtualName(String virtualName)
CfnInstance.BlockDeviceMappingProperty.getVirtualName()virtualName - The virtual device name.
For more information, see BlockDeviceMapping . You can specify either the VirtualName or Ebs , but not both.this@Stability(value=Stable) public CfnInstance.BlockDeviceMappingProperty build()
build in interface software.amazon.jsii.Builder<CfnInstance.BlockDeviceMappingProperty>CfnInstance.BlockDeviceMappingPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.