Interface CfnVolumeAttachmentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVolumeAttachmentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.250Z")
@Stability(Stable)
public interface CfnVolumeAttachmentProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnVolumeAttachment
.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnVolumeAttachmentProps
static final class
An implementation forCfnVolumeAttachmentProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The device name (for example,/dev/sdh
orxvdh
).The ID of the instance to which the volume attaches.The ID of the Amazon EBS volume.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDevice
The device name (for example,/dev/sdh
orxvdh
). -
getInstanceId
The ID of the instance to which the volume attaches.This value can be a reference to an
AWS::EC2::Instance
resource, or it can be the physical ID of an existing EC2 instance. -
getVolumeId
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::Volume
resource, or it can be the volume ID of an existing Amazon EBS volume. -
builder
- Returns:
- a
CfnVolumeAttachmentProps.Builder
ofCfnVolumeAttachmentProps
-