untagLogGroup method
Removes the specified tags from the specified log group.
To list the tags for a log group, use ListTagsLogGroup. To add tags, use TagLogGroup.
May throw ResourceNotFoundException.
Parameter logGroupName
:
The name of the log group.
Parameter tags
:
The tag keys. The corresponding tags are removed from the log group.
Implementation
Future<void> untagLogGroup({
required String logGroupName,
required List<String> tags,
}) async {
ArgumentError.checkNotNull(logGroupName, 'logGroupName');
_s.validateStringLength(
'logGroupName',
logGroupName,
1,
512,
isRequired: true,
);
ArgumentError.checkNotNull(tags, 'tags');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Logs_20140328.UntagLogGroup'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'logGroupName': logGroupName,
'tags': tags,
},
);
}