Class CfnVolume
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.workspacesinstances.CfnVolume
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-07-16T11:43:24.622Z")
@Stability(Stable)
public class CfnVolume
extends CfnResource
implements IInspectable
Resource Type definition for AWS::WorkspacesInstances::Volume - Manages WorkSpaces Volume resources.
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.*; CfnVolume cfnVolume = CfnVolume.Builder.create(this, "MyCfnVolume") .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 TypeClassDescriptionstatic final class
A fluent builder forCfnVolume
.static interface
Example:Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnVolume
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnVolume
(software.amazon.jsii.JsiiObjectRef objRef) CfnVolume
(software.constructs.Construct scope, String id, CfnVolumeProps props) -
Method Summary
Modifier and TypeMethodDescriptionUnique identifier for the volume.The Availability Zone in which to create the volume.Indicates whether the volume should be encrypted.getIops()
The number of I/O operations per second (IOPS).The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption.The size of the volume, in GiBs.The snapshot from which to create the volume.The tags passed to EBS volume.The throughput to provision for a volume, with a maximum of 1,000 MiB/s.The volume type.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setAvailabilityZone
(String value) The Availability Zone in which to create the volume.void
setEncrypted
(Boolean value) Indicates whether the volume should be encrypted.void
setEncrypted
(IResolvable value) Indicates whether the volume should be encrypted.void
The number of I/O operations per second (IOPS).void
setKmsKeyId
(String value) The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption.void
setSizeInGb
(Number value) The size of the volume, in GiBs.void
setSnapshotId
(String value) The snapshot from which to create the volume.void
setTagSpecifications
(List<Object> value) The tags passed to EBS volume.void
setTagSpecifications
(IResolvable value) The tags passed to EBS volume.void
setThroughput
(Number value) The throughput to provision for a volume, with a maximum of 1,000 MiB/s.void
setVolumeType
(String value) The volume type.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnVolume
protected CfnVolume(software.amazon.jsii.JsiiObjectRef objRef) -
CfnVolume
protected CfnVolume(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnVolume
@Stability(Stable) public CfnVolume(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnVolumeProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrVolumeId
Unique identifier for the volume. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getAvailabilityZone
The Availability Zone in which to create the volume. -
setAvailabilityZone
The Availability Zone in which to create the volume. -
getEncrypted
Indicates whether the volume should be encrypted. -
setEncrypted
Indicates whether the volume should be encrypted. -
setEncrypted
Indicates whether the volume should be encrypted. -
getIops
The number of I/O operations per second (IOPS). -
setIops
The number of I/O operations per second (IOPS). -
getKmsKeyId
The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption. -
setKmsKeyId
The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption. -
getSizeInGb
The size of the volume, in GiBs. -
setSizeInGb
The size of the volume, in GiBs. -
getSnapshotId
The snapshot from which to create the volume. -
setSnapshotId
The snapshot from which to create the volume. -
getTagSpecifications
The tags passed to EBS volume. -
setTagSpecifications
The tags passed to EBS volume. -
setTagSpecifications
The tags passed to EBS volume. -
getThroughput
The throughput to provision for a volume, with a maximum of 1,000 MiB/s. -
setThroughput
The throughput to provision for a volume, with a maximum of 1,000 MiB/s. -
getVolumeType
The volume type. -
setVolumeType
The volume type.
-