MigrationHubRefactorSpaces / Client / get_route



Gets an Amazon Web Services Migration Hub Refactor Spaces route.

See also: AWS API Documentation

Request Syntax

response = client.get_route(
  • ApplicationIdentifier (string) –


    The ID of the application.

  • EnvironmentIdentifier (string) –


    The ID of the environment.

  • RouteIdentifier (string) –


    The ID of the route.

Return type:



Response Syntax

    'ApplicationId': 'string',
    'Arn': 'string',
    'CreatedByAccountId': 'string',
    'CreatedTime': datetime(2015, 1, 1),
    'EnvironmentId': 'string',
    'Error': {
        'AccountId': 'string',
        'AdditionalDetails': {
            'string': 'string'
        'Message': 'string',
        'ResourceIdentifier': 'string',
    'IncludeChildPaths': True|False,
    'LastUpdatedTime': datetime(2015, 1, 1),
    'Methods': [
    'OwnerAccountId': 'string',
    'PathResourceToId': {
        'string': 'string'
    'RouteId': 'string',
    'RouteType': 'DEFAULT'|'URI_PATH',
    'ServiceId': 'string',
    'SourcePath': 'string',
    'Tags': {
        'string': 'string'

Response Structure

  • (dict) –

    • ApplicationId (string) –

      The ID of the application that the route belongs to.

    • Arn (string) –

      The Amazon Resource Name (ARN) of the route.

    • CreatedByAccountId (string) –

      The Amazon Web Services account ID of the route creator.

    • CreatedTime (datetime) –

      The timestamp of when the route is created.

    • EnvironmentId (string) –

      Unique identifier of the environment.

    • Error (dict) –

      Any error associated with the route resource.

      • AccountId (string) –

        The Amazon Web Services account ID of the resource owner.

      • AdditionalDetails (dict) –

        Additional details about the error.

        • (string) –

          • (string) –

      • Code (string) –

        The error code associated with the error.

      • Message (string) –

        The message associated with the error.

      • ResourceIdentifier (string) –

        The ID of the resource.

      • ResourceType (string) –

        The type of resource.

    • IncludeChildPaths (boolean) –

      Indicates whether to match all subpaths of the given source path. If this value is false, requests must match the source path exactly before they are forwarded to this route’s service.

    • LastUpdatedTime (datetime) –

      A timestamp that indicates when the route was last updated.

    • Methods (list) –

      A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service.

      • (string) –

    • OwnerAccountId (string) –

      The Amazon Web Services account ID of the route owner.

    • PathResourceToId (dict) –

      A mapping of Amazon API Gateway path resources to resource IDs.

      • (string) –

        • (string) –

    • RouteId (string) –

      The unique identifier of the route.

      DEFAULT: All traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created.

      URI_PATH: A route that is based on a URI path.

    • RouteType (string) –

      The type of route.

    • ServiceId (string) –

      The unique identifier of the service.

    • SourcePath (string) –

      The path to use to match traffic. Paths must start with / and are relative to the base of the application.

    • State (string) –

      The current state of the route.

    • Tags (dict) –

      The tags assigned to the route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair.

      • (string) –

        • (string) –


  • MigrationHubRefactorSpaces.Client.exceptions.ResourceNotFoundException

  • MigrationHubRefactorSpaces.Client.exceptions.InternalServerException

  • MigrationHubRefactorSpaces.Client.exceptions.ValidationException

  • MigrationHubRefactorSpaces.Client.exceptions.ThrottlingException

  • MigrationHubRefactorSpaces.Client.exceptions.AccessDeniedException