Skip to content

ECS  >  Operations  >  put_attributes

put_attributes

Operation

put_attributes async

put_attributes(input: PutAttributesInput, plugins: list[Plugin] | None = None) -> PutAttributesOutput

Create or update an attribute on an Amazon ECS resource. If the attribute doesn't exist, it's created. If the attribute exists, its value is replaced with the specified value. To delete an attribute, use DeleteAttributes. For more information, see Attributes in the Amazon Elastic Container Service Developer Guide.

Parameters:

Name Type Description Default
input PutAttributesInput

An instance of PutAttributesInput.

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
PutAttributesOutput

An instance of PutAttributesOutput.

Input

PutAttributesInput dataclass

Bases: _SerdeShape

Attributes

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

The attributes to apply to your resource. You can specify up to 10 custom attributes for each resource. You can specify up to 10 attributes in a single call.

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 apply attributes. If you do not specify a cluster, the default cluster is assumed.

Output

PutAttributesOutput dataclass

Bases: _SerdeShape

Attributes

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

The attributes applied to 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.