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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnInstance.VolumeProperty
static final class
An implementation forCfnInstance.VolumeProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The device name (for example,/dev/sdh
orxvdh
).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/sdh
orxvdh
).- See Also:
-
getVolumeId
The ID of the EBS volume.The volume and instance must be within the same Availability Zone.
- See Also:
-
builder
- Returns:
- a
CfnInstance.VolumeProperty.Builder
ofCfnInstance.VolumeProperty
-