untagResource method
Disassociates tags from an AWS resource. Tags are key:value pairs that you
can associate with AWS resources. For example, the tag key might be
"customer" and the tag value might be "companyA." You can specify one or
more tags to add to each container. You can add up to 50 tags to each AWS
resource.
May throw WAFInternalErrorException. May throw WAFInvalidParameterException. May throw WAFNonexistentItemException. May throw WAFTagOperationException. May throw WAFTagOperationInternalErrorException. May throw WAFInvalidOperationException.
Parameter resourceARN
:
The Amazon Resource Name (ARN) of the resource.
Parameter tagKeys
:
An array of keys identifying the tags to disassociate from the resource.
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 headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSWAF_20190729.UntagResource'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResourceARN': resourceARN,
'TagKeys': tagKeys,
},
);
}