Class CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.autoscaling.CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty>
- Enclosing interface:
CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty
@Stability(Stable)
public static final class CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deviceName(String deviceName) Sets the value ofCfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty.getEbs()ebs(IResolvable ebs) Sets the value ofCfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty.getEbs()noDevice(IResolvable noDevice) virtualName(String virtualName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
deviceName
@Stability(Stable) public CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty.Builder deviceName(String deviceName) - Parameters:
deviceName- The device name assigned to the volume (for example,/dev/sdhorxvdh). For more information, see Device naming on Linux instances in the Amazon EC2 User Guide .To define a block device mapping, set the device name and exactly one of the following properties:
Ebs,NoDevice, orVirtualName.- Returns:
this
-
ebs
@Stability(Stable) public CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty.Builder ebs(IResolvable ebs) Sets the value ofCfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty.getEbs()- Parameters:
ebs- Information to attach an EBS volume to an instance at launch.- Returns:
this
-
ebs
@Stability(Stable) public CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty.Builder ebs(CfnLaunchConfigurationPropsMixin.BlockDeviceProperty ebs) Sets the value ofCfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty.getEbs()- Parameters:
ebs- Information to attach an EBS volume to an instance at launch.- Returns:
this
-
noDevice
@Stability(Stable) public CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty.Builder noDevice(Boolean noDevice) - Parameters:
noDevice- Setting this value totrueprevents a volume that is included in the block device mapping of the AMI from being mapped to the specified device name at launch. IfNoDeviceistruefor the root device, instances might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches replacement instances.- Returns:
this
-
noDevice
@Stability(Stable) public CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty.Builder noDevice(IResolvable noDevice) - Parameters:
noDevice- Setting this value totrueprevents a volume that is included in the block device mapping of the AMI from being mapped to the specified device name at launch. IfNoDeviceistruefor the root device, instances might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches replacement instances.- Returns:
this
-
virtualName
@Stability(Stable) public CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty.Builder virtualName(String virtualName) - Parameters:
virtualName- The name of the instance store volume (virtual device) to attach to an instance at launch. The name must be in the form ephemeral X where X is a number starting from zero (0), for example,ephemeral0.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty>- Returns:
- a new instance of
CfnLaunchConfigurationPropsMixin.BlockDeviceMappingProperty - Throws:
NullPointerException- if any required attribute was not provided
-