getApplicationVersion method

Future<GetApplicationVersionResponse> getApplicationVersion({
  1. required String applicationId,
  2. required int applicationVersion,
})

Returns details about a specific version of a specific application.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter applicationId : The unique identifier of the application.

Parameter applicationVersion : The specific version of the application.

Implementation

Future<GetApplicationVersionResponse> getApplicationVersion({
  required String applicationId,
  required int applicationVersion,
}) async {
  _s.validateNumRange(
    'applicationVersion',
    applicationVersion,
    1,
    1152921504606846976,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/applications/${Uri.encodeComponent(applicationId)}/versions/${Uri.encodeComponent(applicationVersion.toString())}',
    exceptionFnMap: _exceptionFns,
  );
  return GetApplicationVersionResponse.fromJson(response);
}