Class CfnVolume.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesinstances.CfnVolume.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolume>
- Enclosing class:
CfnVolume
@Stability(Stable)
public static final class CfnVolume.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolume>
A fluent builder for
CfnVolume
.-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) The Availability Zone in which to create the volume.build()
static CfnVolume.Builder
Indicates whether the volume should be encrypted.encrypted
(IResolvable encrypted) Indicates whether the volume should be encrypted.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.snapshotId
(String snapshotId) The snapshot from which to create the volume.tagSpecifications
(List<? extends Object> tagSpecifications) The tags passed to EBS volume.tagSpecifications
(IResolvable tagSpecifications) The tags passed to EBS volume.throughput
(Number throughput) The throughput to provision for a volume, with a maximum of 1,000 MiB/s.volumeType
(String volumeType) The volume type.
-
Method Details
-
create
@Stability(Stable) public static CfnVolume.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnVolume.Builder
.
-
availabilityZone
The Availability Zone in which to create the volume.- Parameters:
availabilityZone
- The Availability Zone in which to create the volume. This parameter is required.- Returns:
this
- See Also:
-
encrypted
Indicates whether the volume should be encrypted.- Parameters:
encrypted
- Indicates whether the volume should be encrypted. This parameter is required.- Returns:
this
- See Also:
-
encrypted
Indicates whether the volume should be encrypted.- Parameters:
encrypted
- Indicates whether the volume should be encrypted. This parameter is required.- Returns:
this
- See Also:
-
iops
The number of I/O operations per second (IOPS).- Parameters:
iops
- The number of I/O operations per second (IOPS). This parameter is required.- Returns:
this
- See Also:
-
kmsKeyId
The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption.- Parameters:
kmsKeyId
- The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption. This parameter is required.- Returns:
this
- See Also:
-
sizeInGb
The size of the volume, in GiBs.- Parameters:
sizeInGb
- The size of the volume, in GiBs. This parameter is required.- Returns:
this
- See Also:
-
snapshotId
The snapshot from which to create the volume.- Parameters:
snapshotId
- The snapshot from which to create the volume. This parameter is required.- Returns:
this
- See Also:
-
tagSpecifications
The tags passed to EBS volume.- Parameters:
tagSpecifications
- The tags passed to EBS volume. This parameter is required.- Returns:
this
- See Also:
-
tagSpecifications
@Stability(Stable) public CfnVolume.Builder tagSpecifications(List<? extends Object> tagSpecifications) The tags passed to EBS volume.- Parameters:
tagSpecifications
- The tags passed to EBS volume. This parameter is required.- Returns:
this
- See Also:
-
throughput
The throughput to provision for a volume, with a maximum of 1,000 MiB/s.- Parameters:
throughput
- The throughput to provision for a volume, with a maximum of 1,000 MiB/s. This parameter is required.- Returns:
this
- See Also:
-
volumeType
The volume type.- Parameters:
volumeType
- The volume type. This parameter is required.- Returns:
this
- See Also:
-
build
-