Batch / Client / untag_resource

untag_resource#

Batch.Client.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',
    ]
)
Parameters:
  • resourceArn (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.

  • tagKeys (list) –

    [REQUIRED]

    The keys of the tags to be removed.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

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': {
        '...': '...',
    },
}