untagResource method
Use to remove one or more tags from a resource.
May throw InternalServerException. May throw ValidationException. May throw ResourceNotFoundException.
Parameter resourceArn
:
The Amazon Resource Name (ARN) of the resource that contains the tags to
remove.
Parameter tagKeys
:
A list of tag keys. Existing tags of resources with keys in this list are
removed from the specified resource.
Implementation
Future<void> untagResource({
required String resourceArn,
required List<String> tagKeys,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
ArgumentError.checkNotNull(tagKeys, 'tagKeys');
final $query = <String, List<String>>{
'tagKeys': tagKeys,
};
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/tags/${Uri.encodeComponent(resourceArn)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}