untagResource method
Removes the specified tags from the specified resource.
May throw InvalidRequestException. May throw InvalidParameterException. May throw InternalServiceException. May throw ResourceNotFoundException. May throw ThrottlingException.
Parameter resourceArn
:
The Amazon Resource Name (ARN) of the resource.
Parameter tagKeys
:
The tag keys.
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,
};
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/tags/${Uri.encodeComponent(resourceArn)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}