getSqlInjectionMatchSet method

Future<GetSqlInjectionMatchSetResponse> getSqlInjectionMatchSet({
  1. required String sqlInjectionMatchSetId,
})

Implementation

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

  return GetSqlInjectionMatchSetResponse.fromJson(jsonResponse.body);
}