GetVolumeResult

data class GetVolumeResult(val autoEnableIo: Boolean? = null, val availabilityZone: String? = null, val encrypted: Boolean? = null, val iops: Int? = null, val kmsKeyId: String? = null, val multiAttachEnabled: Boolean? = null, val outpostArn: String? = null, val size: Int? = null, val snapshotId: String? = null, val tags: List<VolumeTag>? = null, val throughput: Int? = null, val volumeId: String? = null, val volumeType: String? = null)

Constructors

Link copied to clipboard
fun GetVolumeResult(autoEnableIo: Boolean? = null, availabilityZone: String? = null, encrypted: Boolean? = null, iops: Int? = null, kmsKeyId: String? = null, multiAttachEnabled: Boolean? = null, outpostArn: String? = null, size: Int? = null, snapshotId: String? = null, tags: List<VolumeTag>? = null, throughput: Int? = null, volumeId: String? = null, volumeType: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val autoEnableIo: Boolean? = null

The Availability Zone in which to create the volume.

Link copied to clipboard

The Availability Zone in which to create the volume.

Link copied to clipboard
val encrypted: Boolean? = null

Specifies whether the volume should be encrypted. The 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 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 Supported instance types.

Link copied to clipboard
val iops: Int? = null

The number of I/O operations per second (IOPS) to provision for an io1 or io2 volume, with a maximum ratio of 50 IOPS/GiB for io1, and 500 IOPS/GiB for io2. Range is 100 to 64,000 IOPS for volumes in most Regions. Maximum IOPS of 64,000 is guaranteed only on Nitro-based instances. Other instance families guarantee performance up to 32,000 IOPS. For more information, see Amazon EBS volume types in the Amazon Elastic Compute Cloud User Guide. This parameter is valid only for Provisioned IOPS SSD (io1 and io2) volumes.

Link copied to clipboard
val kmsKeyId: String? = null

The identifier of the AWS Key Management Service (AWS KMS) customer master key (CMK) to use for Amazon EBS encryption. If KmsKeyId is specified, the encrypted state must be true. If you omit this property and your account is enabled for encryption by default, or Encrypted is set to true, then the volume is encrypted using the default CMK specified for your account. If your account does not have a default CMK, then the volume is encrypted using the AWS managed CMK. Alternatively, if you want to specify a different CMK, you can specify one of the following: Key ID. For example, 1234abcd-12ab-34cd-56ef-1234567890ab. Key alias. Specify the alias for the CMK, prefixed with alias/. For example, for a CMK with the alias my_cmk, use alias/my_cmk. Or to specify the AWS managed CMK, use alias/aws/ebs. Key ARN. For example, arn:aws:kms:us-east-1:012345678910:key/1234abcd-12ab-34cd-56ef-1234567890ab. Alias ARN. For example, arn:aws:kms:us-east-1:012345678910:alias/ExampleAlias.

Link copied to clipboard

Indicates whether Amazon EBS Multi-Attach is enabled.

Link copied to clipboard
val outpostArn: String? = null

The Amazon Resource Name (ARN) of the Outpost.

Link copied to clipboard
val size: Int? = null

The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. Constraints: 1-16,384 for gp2, 4-16,384 for io1 and io2, 500-16,384 for st1, 500-16,384 for sc1, and 1-1,024 for standard. If you specify a snapshot, the volume size must be equal to or larger than the snapshot size. Default: If you're creating the volume from a snapshot and don't specify a volume size, the default is the snapshot size.

Link copied to clipboard
val snapshotId: String? = null

The snapshot from which to create the volume. You must specify either a snapshot ID or a volume size.

Link copied to clipboard
val tags: List<VolumeTag>? = null

The tags to apply to the volume during creation.

Link copied to clipboard
val throughput: Int? = null

The throughput that the volume supports, in MiB/s.

Link copied to clipboard
val volumeId: String? = null
Link copied to clipboard
val volumeType: String? = null

The volume type. This parameter can be one of the following values: General Purpose SSD: gp2 | gp3, Provisioned IOPS SSD: io1 | io2, Throughput Optimized HDD: st1, Cold HDD: sc1, Magnetic: standard