Skip to content

ECS  >  Operations  >  delete_attributes

delete_attributes

Operation

delete_attributes async

delete_attributes(request: DeleteAttributesInput | DeleteAttributesInputDict, /, *, plugins: list[Plugin] | None = None) -> DeleteAttributesOutput
delete_attributes(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteAttributesInputDict]) -> DeleteAttributesOutput

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

Parameters:

Name Type Description Default
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

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

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.

Dictionaries

DeleteAttributesInputDict

Bases: TypedDict

Dictionary form of DeleteAttributesInput.

Attributes
attributes instance-attribute

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 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.