:doc:`MigrationHubRefactorSpaces <../../migration-hub-refactor-spaces>` / Client / update_route

************
update_route
************



.. py:method:: MigrationHubRefactorSpaces.Client.update_route(**kwargs)

  

  Updates an Amazon Web Services Migration Hub Refactor Spaces route.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/migration-hub-refactor-spaces-2021-10-26/UpdateRoute>`_  


  **Request Syntax**
  ::

    response = client.update_route(
        ActivationState='ACTIVE'|'INACTIVE',
        ApplicationIdentifier='string',
        EnvironmentIdentifier='string',
        RouteIdentifier='string'
    )
    
  :type ActivationState: string
  :param ActivationState: **[REQUIRED]** 

    If set to ``ACTIVE``, traffic is forwarded to this route’s service after the route is updated.

    

  
  :type ApplicationIdentifier: string
  :param ApplicationIdentifier: **[REQUIRED]** 

    The ID of the application within which the route is being updated.

    

  
  :type EnvironmentIdentifier: string
  :param EnvironmentIdentifier: **[REQUIRED]** 

    The ID of the environment in which the route is being updated.

    

  
  :type RouteIdentifier: string
  :param RouteIdentifier: **[REQUIRED]** 

    The unique identifier of the route to update.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'ApplicationId': 'string',
          'Arn': 'string',
          'LastUpdatedTime': datetime(2015, 1, 1),
          'RouteId': 'string',
          'ServiceId': 'string',
          'State': 'CREATING'|'ACTIVE'|'DELETING'|'FAILED'|'UPDATING'|'INACTIVE'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ApplicationId** *(string) --* 

        The ID of the application in which the route is being updated.

        
      

      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) of the route. The format for this ARN is ``arn:aws:refactor-spaces:region:account-id:resource-type/resource-id ``. For more information about ARNs, see `Amazon Resource Names (ARNs) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference*.

        
      

      - **LastUpdatedTime** *(datetime) --* 

        A timestamp that indicates when the route was last updated.

        
      

      - **RouteId** *(string) --* 

        The unique identifier of the route.

        
      

      - **ServiceId** *(string) --* 

        The ID of service in which the route was created. Traffic that matches this route is forwarded to this service.

        
      

      - **State** *(string) --* 

        The current state of the route.

        
  
  **Exceptions**
  
  *   :py:class:`MigrationHubRefactorSpaces.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`MigrationHubRefactorSpaces.Client.exceptions.InternalServerException`

  
  *   :py:class:`MigrationHubRefactorSpaces.Client.exceptions.ValidationException`

  
  *   :py:class:`MigrationHubRefactorSpaces.Client.exceptions.ThrottlingException`

  
  *   :py:class:`MigrationHubRefactorSpaces.Client.exceptions.AccessDeniedException`

  