getOutpostBillingInformation method

Future<GetOutpostBillingInformationOutput> getOutpostBillingInformation({
  1. required String outpostIdentifier,
  2. int? maxResults,
  3. String? nextToken,
})

Gets current and historical billing information about the specified Outpost.

May throw AccessDeniedException. May throw InternalServerException. May throw NotFoundException.

Parameter outpostIdentifier : The ID or ARN of the Outpost.

Implementation

Future<GetOutpostBillingInformationOutput> getOutpostBillingInformation({
  required String outpostIdentifier,
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1000,
  );
  final $query = <String, List<String>>{
    if (maxResults != null) 'MaxResults': [maxResults.toString()],
    if (nextToken != null) 'NextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/outpost/${Uri.encodeComponent(outpostIdentifier)}/billing-information',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetOutpostBillingInformationOutput.fromJson(response);
}