@Stability(value=Stable) public static final class CfnVolumeAttachment.Builder extends Object implements software.amazon.jsii.Builder<CfnVolumeAttachment>
CfnVolumeAttachment.| Modifier and Type | Method and Description |
|---|---|
CfnVolumeAttachment |
build() |
static CfnVolumeAttachment.Builder |
create(software.constructs.Construct scope,
String id) |
CfnVolumeAttachment.Builder |
device(String device)
The device name (for example, `/dev/sdh` or `xvdh` ).
|
CfnVolumeAttachment.Builder |
instanceId(String instanceId)
The ID of the instance to which the volume attaches.
|
CfnVolumeAttachment.Builder |
volumeId(String volumeId)
The ID of the Amazon EBS volume.
|
@Stability(value=Stable) public static CfnVolumeAttachment.Builder create(software.constructs.Construct scope, 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.@Stability(value=Stable) public CfnVolumeAttachment.Builder device(String device)
device - The device name (for example, `/dev/sdh` or `xvdh` ). This parameter is required.this@Stability(value=Stable) public CfnVolumeAttachment.Builder instanceId(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@Stability(value=Stable) public CfnVolumeAttachment.Builder volumeId(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@Stability(value=Stable) public CfnVolumeAttachment build()
build in interface software.amazon.jsii.Builder<CfnVolumeAttachment>Copyright © 2022. All rights reserved.