@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.399Z") @Stability(value=Stable) public interface CfnVolumeAttachmentProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnVolumeAttachmentProps cfnVolumeAttachmentProps = CfnVolumeAttachmentProps.builder()
.device("device")
.instanceId("instanceId")
.volumeId("volumeId")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnVolumeAttachmentProps.Builder
A builder for
CfnVolumeAttachmentProps |
static class |
CfnVolumeAttachmentProps.Jsii$Proxy
An implementation for
CfnVolumeAttachmentProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnVolumeAttachmentProps.Builder |
builder() |
String |
getDevice()
The device name (for example, `/dev/sdh` or `xvdh` ).
|
String |
getInstanceId()
The ID of the instance to which the volume attaches.
|
String |
getVolumeId()
The ID of the Amazon EBS volume.
|
@Stability(value=Stable) @NotNull String getDevice()
@Stability(value=Stable) @NotNull String getInstanceId()
This value can be a reference to an AWS::EC2::Instance resource, or it can be the physical ID of an existing EC2 instance.
@Stability(value=Stable) @NotNull String getVolumeId()
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.
@Stability(value=Stable) static CfnVolumeAttachmentProps.Builder builder()
CfnVolumeAttachmentProps.Builder of CfnVolumeAttachmentPropsCopyright © 2022. All rights reserved.