getRoute method

Future<GetRouteResponse> getRoute({
  1. required String applicationIdentifier,
  2. required String environmentIdentifier,
  3. required String routeIdentifier,
})

Gets an Amazon Web Services Migration Hub Refactor Spaces route.

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.

Parameter routeIdentifier : The ID of the route.

Implementation

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