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

****************************
disassociate_source_resource
****************************



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

  

  Removes the association between a source resource and a migration task.

  

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


  **Request Syntax**
  ::

    response = client.disassociate_source_resource(
        ProgressUpdateStream='string',
        MigrationTaskName='string',
        SourceResourceName='string',
        DryRun=True|False
    )
    
  :type ProgressUpdateStream: string
  :param ProgressUpdateStream: **[REQUIRED]** 

    The name of the progress-update stream, which is used for access control as well as a namespace for migration-task names that is implicitly linked to your AWS account. The progress-update stream must uniquely identify the migration tool as it is used for all updates made by the tool; however, it does not need to be unique for each AWS account because it is scoped to the AWS account.

    

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

    A unique identifier that references the migration task. *Do not include sensitive data in this field.*

    

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

    The name that was specified for the source resource.

    

  
  :type DryRun: boolean
  :param DryRun: 

    This is an optional parameter that you can use to test whether the call will succeed. Set this parameter to ``true`` to verify that you have the permissions that are required to make the call, and that you have specified the other parameters in the call correctly.

    

  
  
  :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.ResourceNotFoundException`

  