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