deleteRuleGroup method
Future<DeleteRuleGroupResponse>
deleteRuleGroup(
{ - required String changeToken,
- required String ruleGroupId,
})
Implementation
Future<DeleteRuleGroupResponse> deleteRuleGroup({
required String changeToken,
required String ruleGroupId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSWAF_20150824.DeleteRuleGroup'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ChangeToken': changeToken,
'RuleGroupId': ruleGroupId,
},
);
return DeleteRuleGroupResponse.fromJson(jsonResponse.body);
}