ECS.Client.
untag_resource
(**kwargs)¶Deletes specified tags from a resource.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
resourceArn='string',
tagKeys=[
'string',
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource to delete tags from. Currently, the supported resources are Amazon ECS capacity providers, tasks, services, task definitions, clusters, and container instances.
[REQUIRED]
The keys of the tags to be removed.
dict
Response Syntax
{}
Response Structure
Exceptions
ECS.Client.exceptions.ServerException
ECS.Client.exceptions.ClientException
ECS.Client.exceptions.ClusterNotFoundException
ECS.Client.exceptions.ResourceNotFoundException
ECS.Client.exceptions.InvalidParameterException
Examples
This example deletes the 'team' tag from the 'dev' cluster.
response = client.untag_resource(
resourceArn='arn:aws:ecs:region:aws_account_id:cluster/dev',
tagKeys=[
'team',
],
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}