SSMContacts / Client / untag_resource

untag_resource#

SSMContacts.Client.untag_resource(**kwargs)#

Removes tags from the specified 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 contact or escalation plan.

  • TagKeys (list) –

    [REQUIRED]

    The key of the tag that you want to remove.

    • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • SSMContacts.Client.exceptions.AccessDeniedException

  • SSMContacts.Client.exceptions.ThrottlingException

  • SSMContacts.Client.exceptions.ResourceNotFoundException

  • SSMContacts.Client.exceptions.ValidationException

  • SSMContacts.Client.exceptions.InternalServerException

Examples

The following untag-resource example removes the group1 tag from the specified contact.

response = client.untag_resource(
    ResourceARN='arn:aws:ssm-contacts:us-east-1:111122223333:contact/akuam',
    TagKeys=[
        'group1',
    ],
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}