Interface CfnVolumeProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnVolumeProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T10:47:32.008Z")
@Stability(Stable)
public interface CfnVolumeProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnVolume.
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.workspacesinstances.*;
CfnVolumeProps cfnVolumeProps = CfnVolumeProps.builder()
.availabilityZone("availabilityZone")
// the properties below are optional
.encrypted(false)
.iops(123)
.kmsKeyId("kmsKeyId")
.sizeInGb(123)
.snapshotId("snapshotId")
.tagSpecifications(List.of(TagSpecificationProperty.builder()
.resourceType("resourceType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build()))
.throughput(123)
.volumeType("volumeType")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnVolumePropsstatic final classAn implementation forCfnVolumeProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnVolumeProps.Builderbuilder()The Availability Zone in which to create the volume.default ObjectIndicates whether the volume should be encrypted.default NumbergetIops()The number of I/O operations per second (IOPS).default StringThe identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption.default NumberThe size of the volume, in GiBs.default StringThe snapshot from which to create the volume.default ObjectThe tags passed to EBS volume.default NumberThe throughput to provision for a volume, with a maximum of 1,000 MiB/s.default StringThe volume type.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAvailabilityZone
The Availability Zone in which to create the volume.- See Also:
-
getEncrypted
Indicates whether the volume should be encrypted.Returns union: either
BooleanorIResolvable- See Also:
-
getIops
The number of I/O operations per second (IOPS).- See Also:
-
getKmsKeyId
The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption.- See Also:
-
getSizeInGb
The size of the volume, in GiBs.- See Also:
-
getSnapshotId
The snapshot from which to create the volume.- See Also:
-
getTagSpecifications
The tags passed to EBS volume.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnVolume.TagSpecificationProperty>- See Also:
-
getThroughput
The throughput to provision for a volume, with a maximum of 1,000 MiB/s.- See Also:
-
getVolumeType
The volume type.- See Also:
-
builder
- Returns:
- a
CfnVolumeProps.BuilderofCfnVolumeProps
-