Class CfnVolumeAttachmentPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnVolumeAttachmentPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumeAttachmentPropsMixin>
- Enclosing class:
CfnVolumeAttachmentPropsMixin
@Stability(Stable)
public static final class CfnVolumeAttachmentPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumeAttachmentPropsMixin>
A fluent builder for
CfnVolumeAttachmentPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) The device name (for example,/dev/sdhorxvdh).ebsCardIndex(Number ebsCardIndex) The index of the EBS card.instanceId(String instanceId) The ID of the instance to which the volume attaches.instanceId(IInstanceRef instanceId) The ID of the instance to which the volume attaches.The ID of the Amazon EBS volume.volumeId(IVolumeRef volumeId) The ID of the Amazon EBS volume.
-
Method Details
-
create
@Stability(Stable) public static CfnVolumeAttachmentPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnVolumeAttachmentPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnVolumeAttachmentPropsMixin.Builder.
-
device
The device name (for example,/dev/sdhorxvdh).- Parameters:
device- The device name (for example,/dev/sdhorxvdh). This parameter is required.- Returns:
this- See Also:
-
ebsCardIndex
The index of the EBS card.Some instance types support multiple EBS cards. The default EBS card index is 0.
- Parameters:
ebsCardIndex- The index of the EBS card. This parameter is required.- Returns:
this- See Also:
-
instanceId
The ID of the instance to which the volume attaches.This value can be a reference to an
AWS::EC2::Instanceresource, or it can be the physical ID of an existing EC2 instance.- Parameters:
instanceId- The ID of the instance to which the volume attaches. This parameter is required.- Returns:
this- See Also:
-
instanceId
The ID of the instance to which the volume attaches.This value can be a reference to an
AWS::EC2::Instanceresource, or it can be the physical ID of an existing EC2 instance.- Parameters:
instanceId- The ID of the instance to which the volume attaches. This parameter is required.- Returns:
this- See Also:
-
volumeId
The ID of the Amazon EBS volume.The volume and instance must be within the same Availability Zone. This value can be a reference to an
AWS::EC2::Volumeresource, or it can be the volume ID of an existing Amazon EBS volume.- Parameters:
volumeId- The ID of the Amazon EBS volume. This parameter is required.- Returns:
this- See Also:
-
volumeId
The ID of the Amazon EBS volume.The volume and instance must be within the same Availability Zone. This value can be a reference to an
AWS::EC2::Volumeresource, or it can be the volume ID of an existing Amazon EBS volume.- Parameters:
volumeId- The ID of the Amazon EBS volume. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumeAttachmentPropsMixin>- Returns:
- a newly built instance of
CfnVolumeAttachmentPropsMixin.
-