public static final class CfnVolumeAttachment.Builder
extends java.lang.Object
CfnVolumeAttachment
.Modifier and Type | Method and Description |
---|---|
CfnVolumeAttachment |
build() |
static CfnVolumeAttachment.Builder |
create(Construct scope,
java.lang.String id) |
CfnVolumeAttachment.Builder |
device(java.lang.String device)
The device name (for example, `/dev/sdh` or `xvdh` ).
|
CfnVolumeAttachment.Builder |
instanceId(java.lang.String instanceId)
The ID of the instance to which the volume attaches.
|
CfnVolumeAttachment.Builder |
volumeId(java.lang.String volumeId)
The ID of the Amazon EBS volume.
|
public static CfnVolumeAttachment.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnVolumeAttachment.Builder
.public CfnVolumeAttachment.Builder device(java.lang.String device)
device
- The device name (for example, `/dev/sdh` or `xvdh` ). This parameter is required.this
public CfnVolumeAttachment.Builder instanceId(java.lang.String instanceId)
This value can be a reference to an AWS::EC2::Instance
resource, or it can be the physical ID of an existing EC2 instance.
instanceId
- The ID of the instance to which the volume attaches. This parameter is required.this
public CfnVolumeAttachment.Builder volumeId(java.lang.String volumeId)
The volume and instance must be within the same Availability Zone. This value can be a reference to an AWS::EC2::Volume
resource, or it can be the volume ID of an existing Amazon EBS volume.
volumeId
- The ID of the Amazon EBS volume. This parameter is required.this
public CfnVolumeAttachment build()