getApplication method

Future<GetApplicationResponse> getApplication({
  1. required String applicationIdentifier,
  2. required String environmentIdentifier,
})

Gets an Amazon Web Services Migration Hub Refactor Spaces application.

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

Parameter applicationIdentifier : The ID of the application.

Parameter environmentIdentifier : The ID of the environment.

Implementation

Future<GetApplicationResponse> getApplication({
  required String applicationIdentifier,
  required String environmentIdentifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/environments/${Uri.encodeComponent(environmentIdentifier)}/applications/${Uri.encodeComponent(applicationIdentifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetApplicationResponse.fromJson(response);
}