listOrders method

Future<ListOrdersOutput> listOrders({
  1. int? maxResults,
  2. String? nextToken,
  3. String? outpostIdentifierFilter,
})

Lists the Outpost orders for your Amazon Web Services account.

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

Parameter outpostIdentifierFilter : The ID or the Amazon Resource Name (ARN) of the Outpost.

Implementation

Future<ListOrdersOutput> listOrders({
  int? maxResults,
  String? nextToken,
  String? outpostIdentifierFilter,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    1000,
  );
  final $query = <String, List<String>>{
    if (maxResults != null) 'MaxResults': [maxResults.toString()],
    if (nextToken != null) 'NextToken': [nextToken],
    if (outpostIdentifierFilter != null)
      'OutpostIdentifierFilter': [outpostIdentifierFilter],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/list-orders',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListOrdersOutput.fromJson(response);
}