getSamplingRules method

Future<GetSamplingRulesResult> getSamplingRules({
  1. String? nextToken,
})

Retrieves all sampling rules.

May throw InvalidRequestException. May throw ThrottledException.

Parameter nextToken : Pagination token.

Implementation

Future<GetSamplingRulesResult> getSamplingRules({
  String? nextToken,
}) async {
  final $payload = <String, dynamic>{
    if (nextToken != null) 'NextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/GetSamplingRules',
    exceptionFnMap: _exceptionFns,
  );
  return GetSamplingRulesResult.fromJson(response);
}