Interface CfnInstance.VolumeProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInstance.VolumeProperty.Jsii$Proxy
- Enclosing class:
- CfnInstance
@Stability(Stable)
public static interface CfnInstance.VolumeProperty
extends software.amazon.jsii.JsiiSerializable
Specifies a volume to attach to an instance.
Volume is an embedded property of the AWS::EC2::Instance resource.
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.*;
VolumeProperty volumeProperty = VolumeProperty.builder()
.device("device")
.volumeId("volumeId")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInstance.VolumePropertystatic final classAn implementation forCfnInstance.VolumeProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The device name (for example,/dev/sdhorxvdh).The ID of the EBS volume.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDevice
The device name (for example,/dev/sdhorxvdh). -
getVolumeId
The ID of the EBS volume.The volume and instance must be within the same Availability Zone.
-
builder
- Returns:
- a
CfnInstance.VolumeProperty.BuilderofCfnInstance.VolumeProperty
-