untagResource method
Removes the given tags (metadata) from the resource.
May throw InvalidRequestException. May throw InternalFailureException. May throw ServiceUnavailableException. May throw ThrottlingException. May throw LimitExceededException. May throw ResourceNotFoundException.
Parameter resourceArn
:
The ARN of the resource whose tags you want to remove.
Parameter tagKeys
:
The keys of those tags which you want to remove.
Implementation
Future<void> untagResource({
required String resourceArn,
required List<String> tagKeys,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
_s.validateStringLength(
'resourceArn',
resourceArn,
20,
2048,
isRequired: true,
);
ArgumentError.checkNotNull(tagKeys, 'tagKeys');
final $query = <String, List<String>>{
'resourceArn': [resourceArn],
'tagKeys': tagKeys,
};
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/tags',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
}