@Stability(value=Stable) public static final class EbsDeviceOptions.Builder extends Object implements software.amazon.jsii.Builder<EbsDeviceOptions>
EbsDeviceOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
EbsDeviceOptions |
build()
Builds the configured instance.
|
EbsDeviceOptions.Builder |
deleteOnTermination(Boolean deleteOnTermination)
Sets the value of
EbsDeviceOptionsBase.getDeleteOnTermination() |
EbsDeviceOptions.Builder |
encrypted(Boolean encrypted)
Sets the value of
EbsDeviceOptions.getEncrypted() |
EbsDeviceOptions.Builder |
iops(Number iops)
Sets the value of
EbsDeviceOptionsBase.getIops() |
EbsDeviceOptions.Builder |
kmsKey(IKey kmsKey)
Sets the value of
EbsDeviceOptions.getKmsKey() |
EbsDeviceOptions.Builder |
volumeType(EbsDeviceVolumeType volumeType)
Sets the value of
EbsDeviceOptionsBase.getVolumeType() |
@Stability(value=Stable) public EbsDeviceOptions.Builder encrypted(Boolean encrypted)
EbsDeviceOptions.getEncrypted()encrypted - Specifies whether the EBS volume is encrypted.
Encrypted EBS volumes can only be attached to instances that support Amazon EBS encryptionthis@Stability(value=Stable) public EbsDeviceOptions.Builder kmsKey(IKey kmsKey)
EbsDeviceOptions.getKmsKey()kmsKey - The ARN of the AWS Key Management Service (AWS KMS) CMK used for encryption.
You have to ensure that the KMS CMK has the correct permissions to be used by the service launching the ec2 instances.this@Stability(value=Stable) public EbsDeviceOptions.Builder deleteOnTermination(Boolean deleteOnTermination)
EbsDeviceOptionsBase.getDeleteOnTermination()deleteOnTermination - Indicates whether to delete the volume when the instance is terminated.this@Stability(value=Stable) public EbsDeviceOptions.Builder iops(Number iops)
EbsDeviceOptionsBase.getIops()iops - The number of I/O operations per second (IOPS) to provision for the volume.
Must only be set for {@link volumeType}: {@link EbsDeviceVolumeType.IO1}
The maximum ratio of IOPS to volume size (in GiB) is 50:1, so for 5,000 provisioned IOPS, you need at least 100 GiB storage on the volume.
this@Stability(value=Stable) public EbsDeviceOptions.Builder volumeType(EbsDeviceVolumeType volumeType)
EbsDeviceOptionsBase.getVolumeType()volumeType - The EBS volume type.this@Stability(value=Stable) public EbsDeviceOptions build()
build in interface software.amazon.jsii.Builder<EbsDeviceOptions>EbsDeviceOptionsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.