Interface CfnVolumeAttachmentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVolumeAttachmentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:14.829Z")
@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() .instanceId("instanceId") .volumeId("volumeId") // the properties below are optional .device("device") .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnVolumeAttachmentProps
static final class
An implementation forCfnVolumeAttachmentProps
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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.- See Also:
-
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.- See Also:
-
getDevice
The device name (for example,/dev/sdh
orxvdh
).- See Also:
-
builder
- Returns:
- a
CfnVolumeAttachmentProps.Builder
ofCfnVolumeAttachmentProps
-