getGeoMatchSet method

Future<GetGeoMatchSetResponse> getGeoMatchSet({
  1. required String geoMatchSetId,
})

Implementation

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

  return GetGeoMatchSetResponse.fromJson(jsonResponse.body);
}