:doc:`Proton <../../proton>` / Client / list_repository_sync_definitions

********************************
list_repository_sync_definitions
********************************



.. py:method:: Proton.Client.list_repository_sync_definitions(**kwargs)

  

  List repository sync definitions with detail data.

  

  .. danger::

        This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.


  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/proton-2020-07-20/ListRepositorySyncDefinitions>`_  


  **Request Syntax**
  ::

    response = client.list_repository_sync_definitions(
        nextToken='string',
        repositoryName='string',
        repositoryProvider='GITHUB'|'GITHUB_ENTERPRISE'|'BITBUCKET',
        syncType='TEMPLATE_SYNC'|'SERVICE_SYNC'
    )
    
  :type nextToken: string
  :param nextToken: 

    A token that indicates the location of the next repository sync definition in the array of repository sync definitions, after the list of repository sync definitions previously requested.

    

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

    The repository name.

    

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

    The repository provider.

    

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

    The sync type. The only supported value is ``TEMPLATE_SYNC``.

    

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

    
    ::

      {
          'nextToken': 'string',
          'syncDefinitions': [
              {
                  'branch': 'string',
                  'directory': 'string',
                  'parent': 'string',
                  'target': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        A token that indicates the location of the next repository sync definition in the array of repository sync definitions, after the current requested list of repository sync definitions.

        
      

      - **syncDefinitions** *(list) --* 

        An array of repository sync definitions.

        
        

        - *(dict) --* 

          A repository sync definition.

          
          

          - **branch** *(string) --* 

            The repository branch.

            
          

          - **directory** *(string) --* 

            The directory in the repository.

            
          

          - **parent** *(string) --* 

            The resource that is synced from.

            
          

          - **target** *(string) --* 

            The resource that is synced to.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Proton.Client.exceptions.ValidationException`

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

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

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

  