FSx.Client.
untag_resource
(**kwargs)¶This action removes a tag from an Amazon FSx resource.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
ResourceARN='string',
TagKeys=[
'string',
]
)
[REQUIRED]
The ARN of the Amazon FSx resource to untag.
[REQUIRED]
A list of keys of tags on the resource to untag. In case the tag key doesn't exist, the call will still succeed to be idempotent.
A string of 1 to 128 characters that specifies the key for a tag. Tag keys must be unique for the resource to which they are attached.
dict
Response Syntax
{}
Response Structure
(dict) --
The response object for UntagResource
action.
Exceptions
FSx.Client.exceptions.BadRequest
FSx.Client.exceptions.InternalServerError
FSx.Client.exceptions.ResourceNotFound
FSx.Client.exceptions.NotServiceResourceError
FSx.Client.exceptions.ResourceDoesNotSupportTagging
Examples
This operation untags an Amazon FSx resource.
response = client.untag_resource(
ResourceARN='arn:aws:fsx:us-east-1:012345678912:file-system/fs-0498eed5fe91001ec',
TagKeys=[
'Name',
],
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}