describeAggregationAuthorizations method

Future<DescribeAggregationAuthorizationsResponse> describeAggregationAuthorizations({
  1. int? limit,
  2. String? nextToken,
})

Returns a list of authorizations granted to various aggregator accounts and regions.

May throw InvalidParameterValueException. May throw InvalidNextTokenException. May throw InvalidLimitException.

Parameter limit : The maximum number of AggregationAuthorizations returned on each page. The default is maximum. If you specify 0, AWS Config uses the default.

Parameter nextToken : The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

Implementation

Future<DescribeAggregationAuthorizationsResponse>
    describeAggregationAuthorizations({
  int? limit,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'limit',
    limit,
    0,
    100,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'StarlingDoveService.DescribeAggregationAuthorizations'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (limit != null) 'Limit': limit,
      if (nextToken != null) 'NextToken': nextToken,
    },
  );

  return DescribeAggregationAuthorizationsResponse.fromJson(
      jsonResponse.body);
}