getApplication method

Future<GetApplicationResponse> getApplication({
  1. required String applicationId,
  2. String? semanticVersion,
})

Gets 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 semanticVersion : The semantic version of the application to get.

Implementation

Future<GetApplicationResponse> getApplication({
  required String applicationId,
  String? semanticVersion,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  final $query = <String, List<String>>{
    if (semanticVersion != null) 'semanticVersion': [semanticVersion],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/applications/${Uri.encodeComponent(applicationId)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetApplicationResponse.fromJson(response);
}