listApplicationVersions method

Future<ListApplicationVersionsResponse> listApplicationVersions({
  1. required String applicationId,
  2. int? maxItems,
  3. String? nextToken,
})

Lists versions for the specified application.

May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException. May throw InternalServerErrorException. May throw ForbiddenException.

Parameter applicationId : The Amazon Resource Name (ARN) of the application.

Parameter maxItems : The total number of items to return.

Parameter nextToken : A token to specify where to start paginating.

Implementation

Future<ListApplicationVersionsResponse> listApplicationVersions({
  required String applicationId,
  int? maxItems,
  String? nextToken,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  _s.validateNumRange(
    'maxItems',
    maxItems,
    1,
    100,
  );
  final $query = <String, List<String>>{
    if (maxItems != null) 'maxItems': [maxItems.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/applications/${Uri.encodeComponent(applicationId)}/versions',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListApplicationVersionsResponse.fromJson(response);
}