getRegexPatternSet method

Future<GetRegexPatternSetResponse> getRegexPatternSet({
  1. required String regexPatternSetId,
})

Implementation

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

  return GetRegexPatternSetResponse.fromJson(jsonResponse.body);
}