Skip to content

ECS  >  Structures  >  Attachment

Attachment

Structure Class

Attachment dataclass

Bases: _SerdeShape

An object representing a container instance or task attachment.

Attributes

details class-attribute instance-attribute
details: list[KeyValuePair] | None = ...

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 class-attribute instance-attribute
id: str | None = ...

The unique identifier for the attachment.

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

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

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

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