Skip to content

create_configured_table_association_analysis_rule async

create_configured_table_association_analysis_rule(
    membership_identifier: MembershipIdentifier,
    configured_table_association_identifier: ConfiguredTableAssociationIdentifier,
    analysis_rule_type: ConfiguredTableAssociationAnalysisRuleType,
    analysis_rule_policy: ConfiguredTableAssociationAnalysisRulePolicy,
    *,
    config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
) -> CreateConfiguredTableAssociationAnalysisRuleOutput

Creates a new analysis rule for an associated configured table.

Parameters:

Raises:

Source code in docs_src/capo_cleanrooms/_services/async_clean_rooms.py
async def create_configured_table_association_analysis_rule(
    self,
    membership_identifier: "capo_cleanrooms.types.membership_identifier.MembershipIdentifier",
    configured_table_association_identifier: "capo_cleanrooms.types.configured_table_association_identifier.ConfiguredTableAssociationIdentifier",
    analysis_rule_type: "capo_cleanrooms.types.configured_table_association_analysis_rule_type.ConfiguredTableAssociationAnalysisRuleType",
    analysis_rule_policy: "capo_cleanrooms.types.configured_table_association_analysis_rule_policy.ConfiguredTableAssociationAnalysisRulePolicy",
    *,
    config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
) -> "capo_cleanrooms.types.create_configured_table_association_analysis_rule_output.CreateConfiguredTableAssociationAnalysisRuleOutput":
    """<p> Creates a new analysis rule for an associated configured table.</p>

    Args:
        membership_identifier: <p> A unique identifier for the membership that the configured table association belongs to. Currently accepts the membership ID.</p>
        configured_table_association_identifier: <p> The unique ID for the configured table association. Currently accepts the configured table association ID.</p>
        analysis_rule_type: <p> The type of analysis rule.</p>
        analysis_rule_policy: <p>The analysis rule policy that was created for the configured table association.</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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cleanrooms.types.create_configured_table_association_analysis_rule_input.CreateConfiguredTableAssociationAnalysisRuleInput]",
    ) -> AsyncOperationResponse[
        "capo_cleanrooms.types.create_configured_table_association_analysis_rule_output.CreateConfiguredTableAssociationAnalysisRuleOutput"
    ]:
        import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.create_configured_table_association_analysis_rule

        (
            output,
            http_response,
        ) = await capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.create_configured_table_association_analysis_rule.async_create_configured_table_association_analysis_rule(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("CreateConfiguredTableAssociationAnalysisRule"),
    )
    input_: capo_cleanrooms.types.create_configured_table_association_analysis_rule_input.CreateConfiguredTableAssociationAnalysisRuleInput = {
        "membership_identifier": membership_identifier,
        "configured_table_association_identifier": configured_table_association_identifier,
        "analysis_rule_type": analysis_rule_type,
        "analysis_rule_policy": analysis_rule_policy,
    }

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output