Removes one or more tags from the specified resource. This operation is supported in storage gateways of all types.
See also: AWS API Documentation
Request Syntax
response = client.remove_tags_from_resource(
ResourceARN='string',
TagKeys=[
'string',
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource you want to remove the tags from.
[REQUIRED]
The keys of the tags you want to remove from the specified resource. A tag is composed of a key-value pair.
dict
Response Syntax
{
'ResourceARN': 'string'
}
Response Structure
(dict) --
RemoveTagsFromResourceOutput
ResourceARN (string) --
The Amazon Resource Name (ARN) of the resource that the tags were removed from.
Exceptions
StorageGateway.Client.exceptions.InvalidGatewayRequestException
StorageGateway.Client.exceptions.InternalServerError
Examples
Lists the iSCSI stored volumes of a gateway. Removes one or more tags from the specified resource.
response = client.remove_tags_from_resource(
ResourceARN='arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B',
TagKeys=[
'Dev Gatgeway Region',
'East Coast',
],
)
print(response)
Expected Output:
{
'ResourceARN': 'arn:aws:storagegateway:us-east-1:111122223333:gateway/sgw-11A2222B',
'ResponseMetadata': {
'...': '...',
},
}