updateRegexMatchSet method
Future<UpdateRegexMatchSetResponse>
updateRegexMatchSet({
- required String changeToken,
- required String regexMatchSetId,
- required List<
RegexMatchSetUpdate> updates,
Implementation
Future<UpdateRegexMatchSetResponse> updateRegexMatchSet({
required String changeToken,
required String regexMatchSetId,
required List<RegexMatchSetUpdate> updates,
}) async {
ArgumentError.checkNotNull(changeToken, 'changeToken');
_s.validateStringLength(
'changeToken',
changeToken,
1,
128,
isRequired: true,
);
ArgumentError.checkNotNull(regexMatchSetId, 'regexMatchSetId');
_s.validateStringLength(
'regexMatchSetId',
regexMatchSetId,
1,
128,
isRequired: true,
);
ArgumentError.checkNotNull(updates, 'updates');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSWAF_20150824.UpdateRegexMatchSet'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ChangeToken': changeToken,
'RegexMatchSetId': regexMatchSetId,
'Updates': updates,
},
);
return UpdateRegexMatchSetResponse.fromJson(jsonResponse.body);
}