Interface BlockDeviceMapping.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<BlockDeviceMapping.Builder,,- BlockDeviceMapping> - SdkBuilder<BlockDeviceMapping.Builder,,- BlockDeviceMapping> - SdkPojo
- Enclosing class:
- BlockDeviceMapping
- 
Method SummaryModifier and TypeMethodDescriptiondeviceName(String deviceName) The device name assigned to the volume (for example,/dev/sdhorxvdh).default BlockDeviceMapping.Builderebs(Consumer<Ebs.Builder> ebs) Information to attach an EBS volume to an instance at launch.Information to attach an EBS volume to an instance at launch.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.virtualName(String virtualName) The name of the instance store volume (virtual device) to attach to an instance at launch.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
virtualNameThe name of the instance store volume (virtual device) to attach to an instance at launch. The name must be in the form ephemeralX where X is a number starting from zero (0), for example, ephemeral0.- 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 ephemeralX where X is a number starting from zero (0), for example,- ephemeral0.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
deviceNameThe 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.- Parameters:
- deviceName- The device name assigned to the volume (for example,- /dev/sdhor- xvdh). 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, or- VirtualName.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
ebsInformation to attach an EBS volume to an instance at launch. - Parameters:
- ebs- Information to attach an EBS volume to an instance at launch.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
ebsInformation to attach an EBS volume to an instance at launch. This is a convenience method that creates an instance of theEbs.Builderavoiding the need to create one manually viaEbs.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toebs(Ebs).- Parameters:
- ebs- a consumer that will call methods on- Ebs.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
noDeviceSetting this value to trueprevents a volume that is included in the block device mapping of the AMI from being mapped to the specified device name at launch.If NoDeviceistruefor the root device, instances might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches replacement instances.- Parameters:
- noDevice- Setting this value to- trueprevents a volume that is included in the block device mapping of the AMI from being mapped to the specified device name at launch.- If - NoDeviceis- truefor the root device, instances might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches replacement instances.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
 
-