:doc:`CodeConnections <../../codeconnections>` / Client / list_repository_sync_definitions

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



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

  

  Lists the repository sync definitions for repository links in your account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codeconnections-2023-12-01/ListRepositorySyncDefinitions>`_  


  **Request Syntax**
  ::

    response = client.list_repository_sync_definitions(
        RepositoryLinkId='string',
        SyncType='CFN_STACK_SYNC'
    )
    
  :type RepositoryLinkId: string
  :param RepositoryLinkId: **[REQUIRED]** 

    The ID of the repository link for the sync definition for which you want to retrieve information.

    

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

    The sync type of the repository link for the the sync definition for which you want to retrieve information.

    

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

    
    ::

      {
          'RepositorySyncDefinitions': [
              {
                  'Branch': 'string',
                  'Directory': 'string',
                  'Parent': 'string',
                  'Target': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **RepositorySyncDefinitions** *(list) --* 

        The list of repository sync definitions returned by the request. A ``RepositorySyncDefinition`` is a mapping from a repository branch to all the Amazon Web Services resources that are being synced from that branch.

        
        

        - *(dict) --* 

          The definition for a repository with a sync configuration.

          
          

          - **Branch** *(string) --* 

            The branch specified for a repository sync definition.

            
          

          - **Directory** *(string) --* 

            The configuration file for a repository sync definition. This value comes from creating or updating the ``config-file`` field of a ``sync-configuration``.

            
          

          - **Parent** *(string) --* 

            The parent resource specified for a repository sync definition.

            
          

          - **Target** *(string) --* 

            The target resource specified for a repository sync definition. In some cases, such as CFN_STACK_SYNC, the parent and target resource are the same.

            
      
    
      

      - **NextToken** *(string) --* 

        An enumeration token that, when provided in a request, returns the next batch of the results.

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

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

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

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

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

  