untagResource method
Deassigns a resource tag.
May throw InvalidParameterException. May throw DependencyException. May throw ResourceNotFoundException.
Parameter resourceArn
:
ARN of a resource.
Parameter tagKeys
:
Keys of a resource tag.
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,
);
}