Lambda / Client / untag_resource
untag_resource¶
- Lambda.Client.untag_resource(**kwargs)¶
Removes tags from a function, event source mapping, or code signing configuration.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource( Resource='string', TagKeys=[ 'string', ] )
- Parameters:
Resource (string) –
[REQUIRED]
The resource’s Amazon Resource Name (ARN).
TagKeys (list) –
[REQUIRED]
A list of tag keys to remove from the resource.
(string) –
- Returns:
None
Exceptions
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': { '...': '...', }, }