@Stability(value=Stable)
public static interface CfnInstance.VolumeProperty
extends software.amazon.jsii.JsiiSerializable
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() |
String |
getDevice()
The device name (for example, `/dev/sdh` or `xvdh` ).
|
String |
getVolumeId()
The ID of the EBS volume.
|
@Stability(value=Stable) @NotNull String getDevice()
@Stability(value=Stable) @NotNull String getVolumeId()
The volume and instance must be within the same Availability Zone.
@Stability(value=Stable) static CfnInstance.VolumeProperty.Builder builder()
CfnInstance.VolumeProperty.Builder of CfnInstance.VolumePropertyCopyright © 2022. All rights reserved.