Skip to content

EC2  >  Structures  >  VolumeAttachment

VolumeAttachment

Structure Class

VolumeAttachment dataclass

Bases: _SerdeShape

Describes volume attachment details.

Attributes

associated_resource class-attribute instance-attribute
associated_resource: str | None = ...

The ARN of the Amazon Web Services-managed resource to which the volume is attached.

attach_time class-attribute instance-attribute
attach_time: datetime | None = ...

The time stamp when the attachment initiated.

delete_on_termination class-attribute instance-attribute
delete_on_termination: bool | None = ...

Indicates whether the EBS volume is deleted on instance termination.

device class-attribute instance-attribute
device: str | None = ...

The device name.

If the volume is attached to an Amazon Web Services-managed resource, this parameter returns null.

ebs_card_index class-attribute instance-attribute
ebs_card_index: int | None = ...

The index of the EBS card. Some instance types support multiple EBS cards. The default EBS card index is 0.

instance_id class-attribute instance-attribute
instance_id: str | None = ...

The ID of the instance.

If the volume is attached to an Amazon Web Services-managed resource, this parameter returns null.

instance_owning_service class-attribute instance-attribute
instance_owning_service: str | None = ...

The service principal of the Amazon Web Services service that owns the underlying resource to which the volume is attached.

This parameter is returned only for volumes that are attached to Amazon Web Services-managed resources.

state class-attribute instance-attribute
state: str | None = ...

The attachment state of the volume.

volume_id class-attribute instance-attribute
volume_id: str | None = ...

The ID of the volume.