Skip to content

delete_sync_configuration

delete_sync_configuration(
    sync_type: SyncConfigurationType,
    resource_name: ResourceName,
    *,
    config_overrides: Optional[CodeConnectionsClientConfig] = None,
) -> DeleteSyncConfigurationOutput

Deletes the sync configuration for a specified repository and connection.

Parameters:

  • sync_type (SyncConfigurationType) –

    The type of sync configuration to be deleted.

  • resource_name (ResourceName) –

    The name of the Amazon Web Services resource associated with the sync configuration to be deleted.

Raises:

Source code in docs_src/capo_codeconnections/_services/code_connections.py
def delete_sync_configuration(
    self,
    sync_type: "capo_codeconnections.types.sync_configuration_type.SyncConfigurationType",
    resource_name: "capo_codeconnections.types.resource_name.ResourceName",
    *,
    config_overrides: Optional[CodeConnectionsClientConfig] = None,
) -> "capo_codeconnections.types.delete_sync_configuration_output.DeleteSyncConfigurationOutput":
    """<p>Deletes the sync configuration for a specified repository and connection.</p>

    Args:
        sync_type: <p>The type of sync configuration to be deleted.</p>
        resource_name: <p>The name of the Amazon Web Services resource associated with the sync configuration to be deleted.</p>

    Raises:
        capo_codeconnections.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_codeconnections.errors.concurrent_modification_exception.ConcurrentModificationException: <p>Exception thrown as a result of concurrent modification to an application. For example, two individuals attempting to edit the same application at the same time. </p>
        capo_codeconnections.errors.internal_server_exception.InternalServerException: <p>Received an internal server exception. Try again later.</p>
        capo_codeconnections.errors.invalid_input_exception.InvalidInputException: <p>The input is not valid. Verify that the action is typed correctly.</p>
        capo_codeconnections.errors.limit_exceeded_exception.LimitExceededException: <p>Exceeded the maximum limit for connections.</p>
        capo_codeconnections.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_codeconnections.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_codeconnections.types.delete_sync_configuration_input.DeleteSyncConfigurationInput]",
    ) -> OperationResponse[
        "capo_codeconnections.types.delete_sync_configuration_output.DeleteSyncConfigurationOutput"
    ]:
        import capo_codeconnections._operations.code_connections_20231201.delete_sync_configuration

        output, http_response = (
            capo_codeconnections._operations.code_connections_20231201.delete_sync_configuration.delete_sync_configuration(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteSyncConfiguration")
    )
    input_: capo_codeconnections.types.delete_sync_configuration_input.DeleteSyncConfigurationInput = {
        "sync_type": sync_type,
        "resource_name": resource_name,
    }

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