:doc:`Glue <../../glue>` / Client / update_source_control_from_job

******************************
update_source_control_from_job
******************************



.. py:method:: Glue.Client.update_source_control_from_job(**kwargs)

  

  Synchronizes a job to the source control repository. This operation takes the job artifacts from the Glue internal stores and makes a commit to the remote repository that is configured on the job.

   

  This API supports optional parameters which take in the repository information.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/UpdateSourceControlFromJob>`_  


  **Request Syntax**
  ::

    response = client.update_source_control_from_job(
        JobName='string',
        Provider='GITHUB'|'GITLAB'|'BITBUCKET'|'AWS_CODE_COMMIT',
        RepositoryName='string',
        RepositoryOwner='string',
        BranchName='string',
        Folder='string',
        CommitId='string',
        AuthStrategy='PERSONAL_ACCESS_TOKEN'|'AWS_SECRETS_MANAGER',
        AuthToken='string'
    )
    
  :type JobName: string
  :param JobName: 

    The name of the Glue job to be synchronized to or from the remote repository.

    

  
  :type Provider: string
  :param Provider: 

    The provider for the remote repository. Possible values: GITHUB, AWS_CODE_COMMIT, GITLAB, BITBUCKET.

    

  
  :type RepositoryName: string
  :param RepositoryName: 

    The name of the remote repository that contains the job artifacts. For BitBucket providers, ``RepositoryName`` should include ``WorkspaceName``. Use the format ``<WorkspaceName>/<RepositoryName>``.

    

  
  :type RepositoryOwner: string
  :param RepositoryOwner: 

    The owner of the remote repository that contains the job artifacts.

    

  
  :type BranchName: string
  :param BranchName: 

    An optional branch in the remote repository.

    

  
  :type Folder: string
  :param Folder: 

    An optional folder in the remote repository.

    

  
  :type CommitId: string
  :param CommitId: 

    A commit ID for a commit in the remote repository.

    

  
  :type AuthStrategy: string
  :param AuthStrategy: 

    The type of authentication, which can be an authentication token stored in Amazon Web Services Secrets Manager, or a personal access token.

    

  
  :type AuthToken: string
  :param AuthToken: 

    The value of the authorization token.

    

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

    
    ::

      {
          'JobName': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **JobName** *(string) --* 

        The name of the Glue job.

        
  
  **Exceptions**
  
  *   :py:class:`Glue.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Glue.Client.exceptions.AlreadyExistsException`

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

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

  
  *   :py:class:`Glue.Client.exceptions.EntityNotFoundException`

  
  *   :py:class:`Glue.Client.exceptions.InternalServiceException`

  
  *   :py:class:`Glue.Client.exceptions.OperationTimeoutException`

  