Skip to content

VolumeAttachment

Source code in docs_src/capo_ec2/types/volume_attachment.py
class VolumeAttachment(TypedDict, closed=True):
    delete_on_termination: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Indicates whether the EBS volume is deleted on instance termination.</p>"""
    associated_resource: NotRequired["capo_ec2.types.string.String"]
    """<p>The ARN of the Amazon Web Services-managed resource to which the volume is attached.</p>"""
    instance_owning_service: NotRequired["capo_ec2.types.string.String"]
    """<p>The service principal of the Amazon Web Services service that owns the underlying resource to which the volume is attached.</p> <p>This parameter is returned only for volumes that are attached to Amazon Web Services-managed resources.</p>"""
    ebs_card_index: NotRequired["capo_ec2.types.integer.Integer"]
    """<p>The index of the EBS card. Some instance types support multiple EBS cards. The default EBS card index is 0.</p>"""
    volume_id: NotRequired["capo_ec2.types.string.String"]
    """<p>The ID of the volume.</p>"""
    instance_id: NotRequired["capo_ec2.types.string.String"]
    """<p>The ID of the instance.</p> <p>If the volume is attached to an Amazon Web Services-managed resource, this parameter returns <code>null</code>.</p>"""
    device: NotRequired["capo_ec2.types.string.String"]
    """<p>The device name.</p> <p>If the volume is attached to an Amazon Web Services-managed resource, this parameter returns <code>null</code>.</p>"""
    state: NotRequired["capo_ec2.types.volume_attachment_state.VolumeAttachmentState"]
    """<p>The attachment state of the volume.</p>"""
    attach_time: NotRequired["capo_ec2.types.date_time.DateTime"]
    """<p>The time stamp when the attachment initiated.</p>"""

associated_resource instance-attribute

associated_resource: NotRequired[String]

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

attach_time instance-attribute

attach_time: NotRequired[DateTime]

The time stamp when the attachment initiated.

delete_on_termination instance-attribute

delete_on_termination: NotRequired[Boolean]

Indicates whether the EBS volume is deleted on instance termination.

device instance-attribute

device: NotRequired[String]

The device name.

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

ebs_card_index instance-attribute

ebs_card_index: NotRequired[Integer]

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

instance_id instance-attribute

instance_id: NotRequired[String]

The ID of the instance.

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

instance_owning_service instance-attribute

instance_owning_service: NotRequired[String]

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 instance-attribute

state: NotRequired[VolumeAttachmentState]

The attachment state of the volume.

volume_id instance-attribute

volume_id: NotRequired[String]

The ID of the volume.