Class CfnVolumeAttachment.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVolumeAttachment.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumeAttachment>
- Enclosing class:
CfnVolumeAttachment
@Stability(Stable)
public static final class CfnVolumeAttachment.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumeAttachment>
A fluent builder for
CfnVolumeAttachment.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnVolumeAttachment.BuilderThe device name (for example,/dev/sdhorxvdh).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 CfnVolumeAttachment.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnVolumeAttachment.Builder.
-
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:
-
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:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumeAttachment>- Returns:
- a newly built instance of
CfnVolumeAttachment.
-