Skip to content

delete_collaboration

delete_collaboration(
    collaboration_identifier: CollaborationIdentifier,
    *,
    config_overrides: Optional[CleanRoomsClientConfig] = None,
) -> DeleteCollaborationOutput

Deletes a collaboration. It can only be called by the collaboration owner.

Parameters:

Raises:

Source code in docs_src/capo_cleanrooms/_services/clean_rooms.py
def delete_collaboration(
    self,
    collaboration_identifier: "capo_cleanrooms.types.collaboration_identifier.CollaborationIdentifier",
    *,
    config_overrides: Optional[CleanRoomsClientConfig] = None,
) -> "capo_cleanrooms.types.delete_collaboration_output.DeleteCollaborationOutput":
    """<p>Deletes a collaboration. It can only be called by the collaboration owner.</p>

    Args:
        collaboration_identifier: <p>The identifier for the collaboration.</p>

    Raises:
        capo_cleanrooms.errors.access_denied_exception.AccessDeniedException: <p>Caller does not have sufficient access to perform this action.</p>
        capo_cleanrooms.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
        capo_cleanrooms.errors.throttling_exception.ThrottlingException: <p>Request was denied due to request throttling.</p>
        capo_cleanrooms.errors.validation_exception.ValidationException: <p>The input fails to satisfy the specified constraints.</p>
        capo_cleanrooms.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_cleanrooms.types.delete_collaboration_input.DeleteCollaborationInput]",
    ) -> OperationResponse[
        "capo_cleanrooms.types.delete_collaboration_output.DeleteCollaborationOutput"
    ]:
        import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.delete_collaboration

        output, http_response = (
            capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.delete_collaboration.delete_collaboration(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteCollaboration")
    )
    input_: capo_cleanrooms.types.delete_collaboration_input.DeleteCollaborationInput = {
        "collaboration_identifier": collaboration_identifier
    }

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