listTaxExemptions method

Future<ListTaxExemptionsResponse> listTaxExemptions({
  1. int? maxResults,
  2. String? nextToken,
})

Retrieves the tax exemption of accounts listed in a consolidated billing family. The IAM action is tax:GetExemptions.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter maxResults : The number of results you want in one response.

Parameter nextToken : The token to retrieve the next set of results.

Implementation

Future<ListTaxExemptionsResponse> listTaxExemptions({
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1000,
  );
  final $payload = <String, dynamic>{
    if (maxResults != null) 'maxResults': maxResults,
    if (nextToken != null) 'nextToken': nextToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/ListTaxExemptions',
    exceptionFnMap: _exceptionFns,
  );
  return ListTaxExemptionsResponse.fromJson(response);
}