Skip to content

delete_intermediate_table_analysis_rule

delete_intermediate_table_analysis_rule(
    membership_identifier: MembershipIdentifier,
    intermediate_table_identifier: IntermediateTableIdentifier,
    analysis_rule_type: IntermediateTableAnalysisRuleType,
    *,
    config_overrides: Optional[CleanRoomsClientConfig] = None,
) -> DeleteIntermediateTableAnalysisRuleOutput

Deletes an analysis rule from an intermediate table. After the analysis rule is deleted, the intermediate table becomes unqueryable until a new analysis rule is attached. Only the intermediate table owner can call this operation.

Parameters:

  • membership_identifier (MembershipIdentifier) –

    The unique identifier of the membership that contains the intermediate table.

  • intermediate_table_identifier (IntermediateTableIdentifier) –

    The unique identifier of the intermediate table from which to delete the analysis rule.

  • analysis_rule_type (IntermediateTableAnalysisRuleType) –

    The type of analysis rule to delete. Currently, only CUSTOM is supported.

Raises:

Source code in docs_src/capo_cleanrooms/_services/clean_rooms.py
def delete_intermediate_table_analysis_rule(
    self,
    membership_identifier: "capo_cleanrooms.types.membership_identifier.MembershipIdentifier",
    intermediate_table_identifier: "capo_cleanrooms.types.intermediate_table_identifier.IntermediateTableIdentifier",
    analysis_rule_type: "capo_cleanrooms.types.intermediate_table_analysis_rule_type.IntermediateTableAnalysisRuleType",
    *,
    config_overrides: Optional[CleanRoomsClientConfig] = None,
) -> "capo_cleanrooms.types.delete_intermediate_table_analysis_rule_output.DeleteIntermediateTableAnalysisRuleOutput":
    """<p>Deletes an analysis rule from an intermediate table. After the analysis rule is deleted, the intermediate table becomes unqueryable until a new analysis rule is attached. Only the intermediate table owner can call this operation.</p>

    Args:
        membership_identifier: <p>The unique identifier of the membership that contains the intermediate table.</p>
        intermediate_table_identifier: <p>The unique identifier of the intermediate table from which to delete the analysis rule.</p>
        analysis_rule_type: <p>The type of analysis rule to delete. Currently, only <code>CUSTOM</code> is supported.</p>

    Raises:
        capo_cleanrooms.errors.access_denied_exception.AccessDeniedException: <p>Caller does not have sufficient access to perform this action.</p>
        capo_cleanrooms.errors.conflict_exception.ConflictException: <p>Updating or deleting a resource can cause an inconsistent state.</p>
        capo_cleanrooms.errors.internal_server_exception.InternalServerException: <p>Unexpected error during processing of request.</p>
        capo_cleanrooms.errors.resource_not_found_exception.ResourceNotFoundException: <p>Request references a resource which does not exist.</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_intermediate_table_analysis_rule_input.DeleteIntermediateTableAnalysisRuleInput]",
    ) -> OperationResponse[
        "capo_cleanrooms.types.delete_intermediate_table_analysis_rule_output.DeleteIntermediateTableAnalysisRuleOutput"
    ]:
        import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.delete_intermediate_table_analysis_rule

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteIntermediateTableAnalysisRule")
    )
    input_: capo_cleanrooms.types.delete_intermediate_table_analysis_rule_input.DeleteIntermediateTableAnalysisRuleInput = {
        "membership_identifier": membership_identifier,
        "intermediate_table_identifier": intermediate_table_identifier,
        "analysis_rule_type": analysis_rule_type,
    }

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