Interface CfnVolumeAttachmentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVolumeAttachmentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:03.346Z")
@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 classA builder forCfnVolumeAttachmentPropsstatic final classAn 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::Instanceresource, 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::Volumeresource, or it can be the volume ID of an existing Amazon EBS volume.- See Also:
-
getDevice
The device name (for example,/dev/sdhorxvdh).- See Also:
-
builder
- Returns:
- a
CfnVolumeAttachmentProps.BuilderofCfnVolumeAttachmentProps
-