untag_resource
(**kwargs)¶Deletes specified tags from an Batch 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 from which to delete tags. Batch resources that support tags are compute environments, jobs, job definitions, job queues, and scheduling policies. ARNs for child jobs of array and multi-node parallel (MNP) jobs aren't supported.
[REQUIRED]
The keys of the tags to be removed.
dict
Response Syntax
{}
Response Structure
Exceptions
Batch.Client.exceptions.ClientException
Batch.Client.exceptions.ServerException
Examples
This demonstrates calling the UntagResource action.
response = client.untag_resource(
resourceArn='arn:aws:batch:us-east-1:123456789012:job-definition/sleep30:1',
tagKeys=[
'Stage',
],
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}