Lambda.Client.
untag_resource
(**kwargs)¶Removes tags from a function.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
Resource='string',
TagKeys=[
'string',
]
)
[REQUIRED]
The function's Amazon Resource Name (ARN).
[REQUIRED]
A list of tag keys to remove from the function.
None
Exceptions
Lambda.Client.exceptions.ServiceException
Lambda.Client.exceptions.ResourceNotFoundException
Lambda.Client.exceptions.InvalidParameterValueException
Lambda.Client.exceptions.TooManyRequestsException
Lambda.Client.exceptions.ResourceConflictException
Examples
The following example removes the tag with the key name DEPARTMENT tag from the my-function Lambda function.
response = client.untag_resource(
Resource='arn:aws:lambda:us-west-2:123456789012:function:my-function',
TagKeys=[
'DEPARTMENT',
],
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}