untagResource method
Removes tags from the resource.
May throw ResourceNotFoundException.
Parameter resourceARN :
The Amazon Resource Name (ARN) of the resource from which to remove tags.
Parameter tagKeys :
The list of tag keys specifying which tags to remove.
Implementation
Future<UntagResourceOutput> untagResource({
required String resourceARN,
required List<String> tagKeys,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'BackupOnPremises_v20210101.UntagResource'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceARN': resourceARN,
'TagKeys': tagKeys,
},
);
return UntagResourceOutput.fromJson(jsonResponse.body);
}