getIPSet method

Future<GetIPSetResponse> getIPSet({
  1. required String iPSetId,
})

Implementation

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

  return GetIPSetResponse.fromJson(jsonResponse.body);
}