deleteSubscriptionFilter method
Deletes the specified subscription filter.
May throw InvalidParameterException. May throw ResourceNotFoundException. May throw OperationAbortedException. May throw ServiceUnavailableException.
Parameter filterName
:
The name of the subscription filter.
Parameter logGroupName
:
The name of the log group.
Implementation
Future<void> deleteSubscriptionFilter({
required String filterName,
required String logGroupName,
}) async {
ArgumentError.checkNotNull(filterName, 'filterName');
_s.validateStringLength(
'filterName',
filterName,
1,
512,
isRequired: true,
);
ArgumentError.checkNotNull(logGroupName, 'logGroupName');
_s.validateStringLength(
'logGroupName',
logGroupName,
1,
512,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Logs_20140328.DeleteSubscriptionFilter'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'filterName': filterName,
'logGroupName': logGroupName,
},
);
}