listApplicationDependencies method

Future<ListApplicationDependenciesResponse> listApplicationDependencies({
  1. required String applicationId,
  2. int? maxItems,
  3. String? nextToken,
  4. String? semanticVersion,
})

Retrieves the list of applications nested in the containing 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.

Parameter semanticVersion : The semantic version of the application to get.

Implementation

Future<ListApplicationDependenciesResponse> listApplicationDependencies({
  required String applicationId,
  int? maxItems,
  String? nextToken,
  String? semanticVersion,
}) 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],
    if (semanticVersion != null) 'semanticVersion': [semanticVersion],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/applications/${Uri.encodeComponent(applicationId)}/dependencies',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListApplicationDependenciesResponse.fromJson(response);
}