Skip to content

Attachment

Source code in docs_src/capo_ecs/types/attachment.py
class Attachment(TypedDict, closed=True):
    id: NotRequired["capo_ecs.types.string.String"]
    """<p>The unique identifier for the attachment.</p>"""
    type: NotRequired["capo_ecs.types.string.String"]
    """<p>The type of the attachment, such as <code>ElasticNetworkInterface</code>, <code>Service Connect</code>, and <code>AmazonElasticBlockStorage</code>.</p>"""
    status: NotRequired["capo_ecs.types.string.String"]
    """<p> The status of the attachment. Valid values are <code>PRECREATED</code>, <code>CREATED</code>, <code>ATTACHING</code>, <code>ATTACHED</code>, <code>DETACHING</code>, <code>DETACHED</code>, <code>DELETED</code>, and <code>FAILED</code>.</p>"""
    details: NotRequired["capo_ecs.types.attachment_details.AttachmentDetails"]
    """<p>Details of the attachment.</p> <p>For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.</p> <p>For Service Connect services, this includes <code>portName</code>, <code>clientAliases</code>, <code>discoveryName</code>, and <code>ingressPortOverride</code>.</p> <p>For Elastic Block Storage, this includes <code>roleArn</code>, <code>deleteOnTermination</code>, <code>volumeName</code>, <code>volumeId</code>, and <code>statusReason</code> (only when the attachment fails to create or attach).</p>"""

details instance-attribute

details: NotRequired[AttachmentDetails]

Details of the attachment.

For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.

For Service Connect services, this includes portName, clientAliases, discoveryName, and ingressPortOverride.

For Elastic Block Storage, this includes roleArn, deleteOnTermination, volumeName, volumeId, and statusReason (only when the attachment fails to create or attach).

id instance-attribute

id: NotRequired[String]

The unique identifier for the attachment.

status instance-attribute

status: NotRequired[String]

The status of the attachment. Valid values are PRECREATED, CREATED, ATTACHING, ATTACHED, DETACHING, DETACHED, DELETED, and FAILED.

type instance-attribute

type: NotRequired[String]

The type of the attachment, such as ElasticNetworkInterface, Service Connect, and AmazonElasticBlockStorage.