VolumeAttributes

class aws_cdk.aws_ec2.VolumeAttributes(*, availability_zone, volume_id, encryption_key=None)

Bases: object

Attributes required to import an existing EBS Volume into the Stack.

Parameters
  • availability_zone (str) – The availability zone that the EBS Volume is contained within (ex: us-west-2a).

  • volume_id (str) – The EBS Volume’s ID.

  • encryption_key (Optional[IKey]) – The customer-managed encryption key that is used to encrypt the Volume. Default: None – The EBS Volume is not using a customer-managed KMS key for encryption.

Attributes

availability_zone

us-west-2a).

Type

The availability zone that the EBS Volume is contained within (ex

Return type

str

encryption_key

The customer-managed encryption key that is used to encrypt the Volume.

Default

None – The EBS Volume is not using a customer-managed KMS key for encryption.

Return type

Optional[IKey]

volume_id

The EBS Volume’s ID.

Return type

str