untag_resource
(**kwargs)¶Removes tags from the specified resource.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
ResourceARN='string',
TagKeys=[
'string',
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the contact or escalation plan.
[REQUIRED]
The key of the tag that you want to remove.
dict
Response Syntax
{}
Response Structure
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': {
'...': '...',
},
}