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();
 
  • Method Details

    • getDevice

      @Stability(Stable) @NotNull String getDevice()
      The device name (for example, /dev/sdh or xvdh ).
    • getInstanceId

      @Stability(Stable) @NotNull String 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

      @Stability(Stable) @NotNull String 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

      @Stability(Stable) static CfnVolumeAttachmentProps.Builder builder()
      Returns:
      a CfnVolumeAttachmentProps.Builder of CfnVolumeAttachmentProps