listActivatedRulesInRuleGroup method

Future<ListActivatedRulesInRuleGroupResponse> listActivatedRulesInRuleGroup({
  1. int? limit,
  2. String? nextMarker,
  3. String? ruleGroupId,
})

Implementation

Future<ListActivatedRulesInRuleGroupResponse> listActivatedRulesInRuleGroup({
  int? limit,
  String? nextMarker,
  String? ruleGroupId,
}) async {
  _s.validateNumRange(
    'limit',
    limit,
    0,
    100,
  );
  _s.validateStringLength(
    'nextMarker',
    nextMarker,
    1,
    1224,
  );
  _s.validateStringLength(
    'ruleGroupId',
    ruleGroupId,
    1,
    128,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSWAF_20150824.ListActivatedRulesInRuleGroup'
  };
  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,
      if (ruleGroupId != null) 'RuleGroupId': ruleGroupId,
    },
  );

  return ListActivatedRulesInRuleGroupResponse.fromJson(jsonResponse.body);
}