:doc:`MigrationHub <../../mgh>` / Client / notify_application_state

************************
notify_application_state
************************



.. py:method:: MigrationHub.Client.notify_application_state(**kwargs)

  

  Sets the migration state of an application. For a given application identified by the value passed to ``ApplicationId``, its status is set or updated by passing one of three values to ``Status``: ``NOT_STARTED | IN_PROGRESS | COMPLETED``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/AWSMigrationHub-2017-05-31/NotifyApplicationState>`_  


  **Request Syntax**
  ::

    response = client.notify_application_state(
        ApplicationId='string',
        Status='NOT_STARTED'|'IN_PROGRESS'|'COMPLETED',
        UpdateDateTime=datetime(2015, 1, 1),
        DryRun=True|False
    )
    
  :type ApplicationId: string
  :param ApplicationId: **[REQUIRED]** 

    The configurationId in Application Discovery Service that uniquely identifies the grouped application.

    

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

    Status of the application - Not Started, In-Progress, Complete.

    

  
  :type UpdateDateTime: datetime
  :param UpdateDateTime: 

    The timestamp when the application state changed.

    

  
  :type DryRun: boolean
  :param DryRun: 

    Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`MigrationHub.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`MigrationHub.Client.exceptions.InternalServerError`

  
  *   :py:class:`MigrationHub.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`MigrationHub.Client.exceptions.DryRunOperation`

  
  *   :py:class:`MigrationHub.Client.exceptions.UnauthorizedOperation`

  
  *   :py:class:`MigrationHub.Client.exceptions.InvalidInputException`

  
  *   :py:class:`MigrationHub.Client.exceptions.PolicyErrorException`

  
  *   :py:class:`MigrationHub.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`MigrationHub.Client.exceptions.HomeRegionNotSetException`

  