:doc:`CodeStarconnections <../../codestar-connections>` / Client / update_repository_link

**********************
update_repository_link
**********************



.. py:method:: CodeStarconnections.Client.update_repository_link(**kwargs)

  

  Updates the association between your connection and a specified external Git repository. A repository link allows Git sync to monitor and sync changes to files in a specified Git repository.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codestar-connections-2019-12-01/UpdateRepositoryLink>`_  


  **Request Syntax**
  ::

    response = client.update_repository_link(
        ConnectionArn='string',
        EncryptionKeyArn='string',
        RepositoryLinkId='string'
    )
    
  :type ConnectionArn: string
  :param ConnectionArn: 

    The Amazon Resource Name (ARN) of the connection for the repository link to be updated. The updated connection ARN must have the same providerType (such as GitHub) as the original connection ARN for the repo link.

    

  
  :type EncryptionKeyArn: string
  :param EncryptionKeyArn: 

    The Amazon Resource Name (ARN) of the encryption key for the repository link to be updated.

    

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

    The ID of the repository link to be updated.

    

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

    
    ::

      {
          'RepositoryLinkInfo': {
              'ConnectionArn': 'string',
              'EncryptionKeyArn': 'string',
              'OwnerId': 'string',
              'ProviderType': 'Bitbucket'|'GitHub'|'GitHubEnterpriseServer'|'GitLab'|'GitLabSelfManaged',
              'RepositoryLinkArn': 'string',
              'RepositoryLinkId': 'string',
              'RepositoryName': 'string'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RepositoryLinkInfo** *(dict) --* 

        Information about the repository link to be updated.

        
        

        - **ConnectionArn** *(string) --* 

          The Amazon Resource Name (ARN) of the connection associated with the repository link.

          
        

        - **EncryptionKeyArn** *(string) --* 

          The Amazon Resource Name (ARN) of the encryption key for the repository associated with the repository link.

          
        

        - **OwnerId** *(string) --* 

          The owner ID for the repository associated with the repository link, such as the owner ID in GitHub.

          
        

        - **ProviderType** *(string) --* 

          The provider type for the connection, such as GitHub, associated with the repository link.

          
        

        - **RepositoryLinkArn** *(string) --* 

          The Amazon Resource Name (ARN) of the repository link.

          
        

        - **RepositoryLinkId** *(string) --* 

          The ID of the repository link.

          
        

        - **RepositoryName** *(string) --* 

          The name of the repository associated with the repository link.

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

  
  *   :py:class:`CodeStarconnections.Client.exceptions.ConditionalCheckFailedException`

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

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

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

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

  
  *   :py:class:`CodeStarconnections.Client.exceptions.UpdateOutOfSyncException`

  