getRateBasedRuleManagedKeys method

Future<GetRateBasedRuleManagedKeysResponse> getRateBasedRuleManagedKeys({
  1. required String ruleId,
  2. String? nextMarker,
})

Implementation

Future<GetRateBasedRuleManagedKeysResponse> getRateBasedRuleManagedKeys({
  required String ruleId,
  String? nextMarker,
}) async {
  ArgumentError.checkNotNull(ruleId, 'ruleId');
  _s.validateStringLength(
    'ruleId',
    ruleId,
    1,
    128,
    isRequired: true,
  );
  _s.validateStringLength(
    'nextMarker',
    nextMarker,
    1,
    1224,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSWAF_Regional_20161128.GetRateBasedRuleManagedKeys'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'RuleId': ruleId,
      if (nextMarker != null) 'NextMarker': nextMarker,
    },
  );

  return GetRateBasedRuleManagedKeysResponse.fromJson(jsonResponse.body);
}