updateByteMatchSet method

Future<UpdateByteMatchSetResponse> updateByteMatchSet({
  1. required String byteMatchSetId,
  2. required String changeToken,
  3. required List<ByteMatchSetUpdate> updates,
})

Implementation

Future<UpdateByteMatchSetResponse> updateByteMatchSet({
  required String byteMatchSetId,
  required String changeToken,
  required List<ByteMatchSetUpdate> updates,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSWAF_Regional_20161128.UpdateByteMatchSet'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ByteMatchSetId': byteMatchSetId,
      'ChangeToken': changeToken,
      'Updates': updates,
    },
  );

  return UpdateByteMatchSetResponse.fromJson(jsonResponse.body);
}