updateWebACL method
Future<UpdateWebACLResponse>
updateWebACL(
{ - required String changeToken,
- required String webACLId,
- WafAction? defaultAction,
- List<WebACLUpdate>? updates,
})
Implementation
Future<UpdateWebACLResponse> updateWebACL({
required String changeToken,
required String webACLId,
WafAction? defaultAction,
List<WebACLUpdate>? updates,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSWAF_20150824.UpdateWebACL'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ChangeToken': changeToken,
'WebACLId': webACLId,
if (defaultAction != null) 'DefaultAction': defaultAction,
if (updates != null) 'Updates': updates,
},
);
return UpdateWebACLResponse.fromJson(jsonResponse.body);
}