Interface CfnInstancePropsMixin.VolumeProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInstancePropsMixin.VolumeProperty.Jsii$Proxy
- Enclosing class:
CfnInstancePropsMixin
@Stability(Stable)
public static interface CfnInstancePropsMixin.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.cfnpropertymixins.services.ec2.*;
VolumeProperty volumeProperty = VolumeProperty.builder()
.device("device")
.volumeId("volumeId")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInstancePropsMixin.VolumePropertystatic final classAn implementation forCfnInstancePropsMixin.VolumeProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDevice
The device name (for example,/dev/sdhorxvdh).- See Also:
-
getVolumeId
The ID of the EBS volume.The volume and instance must be within the same Availability Zone.
Returns union: either
StringorIVolumeRef- See Also:
-
builder
-