public static interface CfnInstance.VolumeProperty
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnInstance.VolumeProperty.Builder
A builder for
CfnInstance.VolumeProperty |
static class |
CfnInstance.VolumeProperty.Jsii$Proxy
An implementation for
CfnInstance.VolumeProperty |
Modifier and Type | Method and Description |
---|---|
static CfnInstance.VolumeProperty.Builder |
builder() |
java.lang.String |
getDevice()
The device name (for example, `/dev/sdh` or `xvdh` ).
|
java.lang.String |
getVolumeId()
The ID of the EBS volume.
|
java.lang.String getDevice()
java.lang.String getVolumeId()
The volume and instance must be within the same Availability Zone.
static CfnInstance.VolumeProperty.Builder builder()
CfnInstance.VolumeProperty.Builder
of CfnInstance.VolumeProperty