CodeStarconnections / Client / list_repository_sync_definitions

list_repository_sync_definitions#

CodeStarconnections.Client.list_repository_sync_definitions(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response = client.list_repository_sync_definitions(
    RepositoryLinkId='string',
    SyncType='CFN_STACK_SYNC'
)
Parameters:
  • RepositoryLinkId (string) –

    [REQUIRED]

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

  • SyncType (string) –

    [REQUIRED]

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

Return type:

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

  • CodeStarconnections.Client.exceptions.AccessDeniedException

  • CodeStarconnections.Client.exceptions.InternalServerException

  • CodeStarconnections.Client.exceptions.InvalidInputException

  • CodeStarconnections.Client.exceptions.ResourceNotFoundException

  • CodeStarconnections.Client.exceptions.ThrottlingException