Skip to content

update_configured_table_analysis_rule

update_configured_table_analysis_rule(
    configured_table_identifier: ConfiguredTableIdentifier,
    analysis_rule_type: ConfiguredTableAnalysisRuleType,
    analysis_rule_policy: ConfiguredTableAnalysisRulePolicy,
    *,
    config_overrides: Optional[CleanRoomsClientConfig] = None,
) -> UpdateConfiguredTableAnalysisRuleOutput

Updates a configured table analysis rule.

Parameters:

  • configured_table_identifier (ConfiguredTableIdentifier) –

    The unique identifier for the configured table that the analysis rule applies to. Currently accepts the configured table ID.

  • analysis_rule_type (ConfiguredTableAnalysisRuleType) –

    The analysis rule type to be updated. Configured table analysis rules are uniquely identified by their configured table identifier and analysis rule type.

  • analysis_rule_policy (ConfiguredTableAnalysisRulePolicy) –

    The new analysis rule policy for the configured table analysis rule.

Raises:

Source code in docs_src/capo_cleanrooms/_services/clean_rooms.py
def update_configured_table_analysis_rule(
    self,
    configured_table_identifier: "capo_cleanrooms.types.configured_table_identifier.ConfiguredTableIdentifier",
    analysis_rule_type: "capo_cleanrooms.types.configured_table_analysis_rule_type.ConfiguredTableAnalysisRuleType",
    analysis_rule_policy: "capo_cleanrooms.types.configured_table_analysis_rule_policy.ConfiguredTableAnalysisRulePolicy",
    *,
    config_overrides: Optional[CleanRoomsClientConfig] = None,
) -> "capo_cleanrooms.types.update_configured_table_analysis_rule_output.UpdateConfiguredTableAnalysisRuleOutput":
    """<p>Updates a configured table analysis rule.</p>

    Args:
        configured_table_identifier: <p>The unique identifier for the configured table that the analysis rule applies to. Currently accepts the configured table ID.</p>
        analysis_rule_type: <p>The analysis rule type to be updated. Configured table analysis rules are uniquely identified by their configured table identifier and analysis rule type.</p>
        analysis_rule_policy: <p>The new analysis rule policy for the configured table analysis rule.</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.service_quota_exceeded_exception.ServiceQuotaExceededException: <p>Request denied because service quota has been exceeded.</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.update_configured_table_analysis_rule_input.UpdateConfiguredTableAnalysisRuleInput]",
    ) -> OperationResponse[
        "capo_cleanrooms.types.update_configured_table_analysis_rule_output.UpdateConfiguredTableAnalysisRuleOutput"
    ]:
        import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.update_configured_table_analysis_rule

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("UpdateConfiguredTableAnalysisRule")
    )
    input_: capo_cleanrooms.types.update_configured_table_analysis_rule_input.UpdateConfiguredTableAnalysisRuleInput = {
        "configured_table_identifier": configured_table_identifier,
        "analysis_rule_type": analysis_rule_type,
        "analysis_rule_policy": analysis_rule_policy,
    }

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