untagResource method
Removes tags from a resource.
May throw InvalidInputException. May throw InternalServiceException. May throw OperationTimeoutException. May throw EntityNotFoundException.
Parameter resourceArn
:
The Amazon Resource Name (ARN) of the resource from which to remove the
tags.
Parameter tagsToRemove
:
Tags to remove from this resource.
Implementation
Future<void> untagResource({
required String resourceArn,
required List<String> tagsToRemove,
}) async {
ArgumentError.checkNotNull(resourceArn, 'resourceArn');
_s.validateStringLength(
'resourceArn',
resourceArn,
1,
10240,
isRequired: true,
);
ArgumentError.checkNotNull(tagsToRemove, 'tagsToRemove');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSGlue.UntagResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceArn': resourceArn,
'TagsToRemove': tagsToRemove,
},
);
}