Skip to content

ECS  >  Operations  >  delete_attributes

delete_attributes

Operation

delete_attributes async

delete_attributes(input: DeleteAttributesInput, plugins: list[Plugin] | None = None) -> DeleteAttributesOutput

Deletes one or more custom attributes from an Amazon ECS resource.

Parameters:

Name Type Description Default
input DeleteAttributesInput

An instance of DeleteAttributesInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteAttributesOutput

An instance of DeleteAttributesOutput.

Input

DeleteAttributesInput dataclass

Bases: _SerdeShape

Attributes

attributes class-attribute instance-attribute
attributes: list[Attribute] | None = ...

The attributes to delete from your resource. You can specify up to 10 attributes for each request. For custom attributes, specify the attribute name and target ID, but don't specify the value. If you specify the target ID using the short form, you must also specify the target type.

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

The short name or full Amazon Resource Name (ARN) of the cluster that contains the resource to delete attributes. If you do not specify a cluster, the default cluster is assumed.

Output

DeleteAttributesOutput dataclass

Bases: _SerdeShape

Attributes

attributes class-attribute instance-attribute
attributes: list[Attribute] | None = ...

A list of attribute objects that were successfully deleted from your resource.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.