updateXssMatchSet method
Future<UpdateXssMatchSetResponse>
updateXssMatchSet(
{ - required String changeToken,
- required List<XssMatchSetUpdate> updates,
- required String xssMatchSetId,
})
Implementation
Future<UpdateXssMatchSetResponse> updateXssMatchSet({
required String changeToken,
required List<XssMatchSetUpdate> updates,
required String xssMatchSetId,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSWAF_20150824.UpdateXssMatchSet'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ChangeToken': changeToken,
'Updates': updates,
'XssMatchSetId': xssMatchSetId,
},
);
return UpdateXssMatchSetResponse.fromJson(jsonResponse.body);
}