getByteMatchSet method

Future<GetByteMatchSetResponse> getByteMatchSet({
  1. required String byteMatchSetId,
})

Implementation

Future<GetByteMatchSetResponse> getByteMatchSet({
  required String byteMatchSetId,
}) async {
  ArgumentError.checkNotNull(byteMatchSetId, 'byteMatchSetId');
  _s.validateStringLength(
    'byteMatchSetId',
    byteMatchSetId,
    1,
    128,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSWAF_20150824.GetByteMatchSet'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ByteMatchSetId': byteMatchSetId,
    },
  );

  return GetByteMatchSetResponse.fromJson(jsonResponse.body);
}