Skip to content

list_repository_sync_definitions

list_repository_sync_definitions(
    repository_name: RepositoryName,
    repository_provider: RepositoryProvider,
    sync_type: SyncType,
    *,
    config_overrides: Optional[ProtonClientConfig] = None,
    next_token: Optional[EmptyNextToken] = None,
) -> ListRepositorySyncDefinitionsOutput

List repository sync definitions with detail data.

Parameters:

  • repository_name (RepositoryName) –

    The repository name.

  • repository_provider (RepositoryProvider) –

    The repository provider.

  • sync_type (SyncType) –

    The sync type. The only supported value is TEMPLATE_SYNC.

  • next_token (Optional[EmptyNextToken], default: None ) –

    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.

Raises:

Source code in docs_src/capo_proton/_services/proton.py
def list_repository_sync_definitions(
    self,
    repository_name: "capo_proton.types.repository_name.RepositoryName",
    repository_provider: "capo_proton.types.repository_provider.RepositoryProvider",
    sync_type: "capo_proton.types.sync_type.SyncType",
    *,
    config_overrides: Optional[ProtonClientConfig] = None,
    next_token: Optional[
        "capo_proton.types.empty_next_token.EmptyNextToken"
    ] = None,
) -> "capo_proton.types.list_repository_sync_definitions_output.ListRepositorySyncDefinitionsOutput":
    """<p>List repository sync definitions with detail data.</p>

    Args:
        repository_name: <p>The repository name.</p>
        repository_provider: <p>The repository provider.</p>
        sync_type: <p>The sync type. The only supported value is <code>TEMPLATE_SYNC</code>.</p>
        next_token: <p>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.</p>

    Raises:
        capo_proton.errors.access_denied_exception.AccessDeniedException: <p>There <i>isn't</i> sufficient access for performing this action.</p>
        capo_proton.errors.internal_server_exception.InternalServerException: <p>The request failed to register with the service.</p>
        capo_proton.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_proton.errors.validation_exception.ValidationException: <p>The input is invalid or an out-of-range value was supplied for the input parameter.</p>
        capo_proton.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_proton.types.list_repository_sync_definitions_input.ListRepositorySyncDefinitionsInput]",
    ) -> OperationResponse[
        "capo_proton.types.list_repository_sync_definitions_output.ListRepositorySyncDefinitionsOutput"
    ]:
        import capo_proton._operations.aws_proton20200720.list_repository_sync_definitions

        output, http_response = (
            capo_proton._operations.aws_proton20200720.list_repository_sync_definitions.list_repository_sync_definitions(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListRepositorySyncDefinitions")
    )
    input_: capo_proton.types.list_repository_sync_definitions_input.ListRepositorySyncDefinitionsInput = {
        "repository_name": repository_name,
        "repository_provider": repository_provider,
        "sync_type": sync_type,
    }
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output