@Stability(value=Stable) @Internal public static final class VolumeProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements VolumeProps
VolumePropssoftware.amazon.jsii.JsiiObject.InitializationModeVolumeProps.Builder, VolumeProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(VolumeProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
VolumeProps.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Boolean |
getAutoEnableIo()
Indicates whether the volume is auto-enabled for I/O operations.
|
String |
getAvailabilityZone()
The Availability Zone in which to create the volume.
|
Boolean |
getEnableMultiAttach()
Indicates whether Amazon EBS Multi-Attach is enabled.
|
Boolean |
getEncrypted()
Specifies whether the volume should be encrypted.
|
IKey |
getEncryptionKey()
The customer-managed encryption key that is used to encrypt the Volume.
|
Number |
getIops()
The number of I/O operations per second (IOPS) to provision for the volume.
|
RemovalPolicy |
getRemovalPolicy()
Policy to apply when the volume is removed from the stack.
|
Size |
getSize()
The size of the volume, in GiBs.
|
String |
getSnapshotId()
The snapshot from which to create the volume.
|
String |
getVolumeName()
The value of the physicalName property of this resource.
|
EbsDeviceVolumeType |
getVolumeType()
The type of the volume;
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(VolumeProps.Builder builder)
VolumeProps.Builder.public final String getAvailabilityZone()
VolumePropsgetAvailabilityZone in interface VolumePropspublic final Boolean getAutoEnableIo()
VolumePropsBy default, Amazon EBS disables I/O to the volume from attached EC2 instances when it determines that a volume's data is potentially inconsistent. If the consistency of the volume is not a concern, and you prefer that the volume be made available immediately if it's impaired, you can configure the volume to automatically enable I/O.
Default: false
getAutoEnableIo in interface VolumePropspublic final Boolean getEnableMultiAttach()
VolumePropsSee {@link https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volumes-multi.html#considerations|Considerations and limitations} for the constraints of multi-attach.
Default: false
getEnableMultiAttach in interface VolumePropspublic final Boolean getEncrypted()
VolumePropsThe effect of setting the encryption state to true depends on the volume origin (new or from a snapshot), starting encryption state, ownership, and whether encryption by default is enabled. For more information, see {@link https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#encryption-by-default|Encryption by Default} in the Amazon Elastic Compute Cloud User Guide.
Encrypted Amazon EBS volumes must be attached to instances that support Amazon EBS encryption. For more information, see {@link https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html#EBSEncryption_supported_instances|Supported Instance Types.}
Default: false
getEncrypted in interface VolumePropspublic final IKey getEncryptionKey()
VolumePropsThe encrypted property must be true if this is provided.
Note: If using an {@link aws-kms.IKey} created from a {@link aws-kms.Key.fromKeyArn()} here, then the KMS key must have the following in its Key policy; otherwise, the Volume will fail to create.
{
"Effect": "Allow",
"Principal": { "AWS": "<arn for your account-user> ex: arn:aws:iam::00000000000:root" },
"Resource": "*",
"Action": [
"kms:DescribeKey",
"kms:GenerateDataKeyWithoutPlainText",
],
"Condition": {
"StringEquals": {
"kms:ViaService": "ec2.<Region>.amazonaws.com", (eg: ec2.us-east-1.amazonaws.com)
"kms:CallerAccount": "0000000000" (your account ID)
}
}
}
Default: The default KMS key for the account, region, and EC2 service is used.
getEncryptionKey in interface VolumePropspublic final Number getIops()
VolumePropsThe maximum ratio is 50 IOPS/GiB for PROVISIONED_IOPS_SSD, and 500 IOPS/GiB for both PROVISIONED_IOPS_SSD_IO2 and GENERAL_PURPOSE_SSD_GP3. See {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html} for more information.
This parameter is valid only for PROVISIONED_IOPS_SSD, PROVISIONED_IOPS_SSD_IO2 and GENERAL_PURPOSE_SSD_GP3 volumes.
Default: None -- Required for io1 and io2 volumes. The default for gp3 volumes is 3,000 IOPS if omitted.
getIops in interface VolumePropspublic final RemovalPolicy getRemovalPolicy()
VolumePropsDefault: RemovalPolicy.RETAIN
getRemovalPolicy in interface VolumePropspublic final Size getSize()
VolumePropsYou must specify either a snapshot ID or a volume size. See {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ebs-volume.html} for details on the allowable size for each type of volume.
Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.
getSize in interface VolumePropspublic final String getSnapshotId()
VolumePropsYou must specify either a snapshot ID or a volume size.
Default: The EBS volume is not created from a snapshot.
getSnapshotId in interface VolumePropspublic final String getVolumeName()
VolumePropsDefault: The physical name will be allocated by CloudFormation at deployment time
getVolumeName in interface VolumePropspublic final EbsDeviceVolumeType getVolumeType()
VolumePropswhat type of storage to use to form the EBS Volume.
Default: EbsDeviceVolumeType.GENERAL_PURPOSE_SSD
getVolumeType in interface VolumeProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.