removeTagsFromResource method
Removes the tags identified by the TagKeys
list from the
named resource.
May throw CacheClusterNotFoundFault. May throw SnapshotNotFoundFault. May throw InvalidARNFault. May throw TagNotFoundFault.
Parameter resourceName
:
The Amazon Resource Name (ARN) of the resource from which you want the
tags removed, for example
arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster
or
arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot
.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
Parameter tagKeys
:
A list of TagKeys
identifying the tags you want removed from
the named resource.
Implementation
Future<TagListMessage> removeTagsFromResource({
required String resourceName,
required List<String> tagKeys,
}) async {
ArgumentError.checkNotNull(resourceName, 'resourceName');
ArgumentError.checkNotNull(tagKeys, 'tagKeys');
final $request = <String, dynamic>{};
$request['ResourceName'] = resourceName;
$request['TagKeys'] = tagKeys;
final $result = await _protocol.send(
$request,
action: 'RemoveTagsFromResource',
version: '2015-02-02',
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
shape: shapes['RemoveTagsFromResourceMessage'],
shapes: shapes,
resultWrapper: 'RemoveTagsFromResourceResult',
);
return TagListMessage.fromXml($result);
}