untagResource method
Removes metadata tags from a specified resource.
May throw NotFoundException.
Parameter arn
:
The ARN of the resource from which to remove metadata tags. Required.
Parameter tagKeys
:
The tags to be removed from the specified resource. Do not provide system
tags. Required.
Implementation
Future<void> untagResource({
required String arn,
required List<String> tagKeys,
}) async {
ArgumentError.checkNotNull(arn, 'arn');
ArgumentError.checkNotNull(tagKeys, 'tagKeys');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.UntagResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Arn': arn,
'TagKeys': tagKeys,
},
);
}