listSubscribedRuleGroups method

Future<ListSubscribedRuleGroupsResponse> listSubscribedRuleGroups({
  1. int? limit,
  2. String? nextMarker,
})

Implementation

Future<ListSubscribedRuleGroupsResponse> listSubscribedRuleGroups({
  int? limit,
  String? nextMarker,
}) async {
  _s.validateNumRange(
    'limit',
    limit,
    0,
    100,
  );
  _s.validateStringLength(
    'nextMarker',
    nextMarker,
    1,
    1224,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSWAF_Regional_20161128.ListSubscribedRuleGroups'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (limit != null) 'Limit': limit,
      if (nextMarker != null) 'NextMarker': nextMarker,
    },
  );

  return ListSubscribedRuleGroupsResponse.fromJson(jsonResponse.body);
}