Skip to content

populate_intermediate_table async

populate_intermediate_table(
    intermediate_table_identifier: IntermediateTableIdentifier,
    membership_identifier: MembershipIdentifier,
    *,
    config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
    parameters: Optional[ParameterMap] = None,
    compute_configuration: Optional[IntermediateTableComputeConfiguration] = None,
    analysis_payer_account_id: Optional[AccountId] = None,
) -> PopulateIntermediateTableOutput

Runs the stored query of an intermediate table and makes the results available for querying. Each call creates a new version. Use GetProtectedQuery with the returned analysis ID to track progress. Only the intermediate table owner can call this operation.

Parameters:

  • intermediate_table_identifier (IntermediateTableIdentifier) –

    The unique identifier of the intermediate table to populate.

  • membership_identifier (MembershipIdentifier) –

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

  • parameters (Optional[ParameterMap], default: None ) –

    The runtime parameter values that override the defaults in the stored query.

  • compute_configuration (Optional[IntermediateTableComputeConfiguration], default: None ) –

    The compute configuration for the population query execution.

  • analysis_payer_account_id (Optional[AccountId], default: None ) –

    The account ID of the member that pays for the analysis compute costs.

Raises:

Source code in docs_src/capo_cleanrooms/_services/async_clean_rooms.py
async def populate_intermediate_table(
    self,
    intermediate_table_identifier: "capo_cleanrooms.types.intermediate_table_identifier.IntermediateTableIdentifier",
    membership_identifier: "capo_cleanrooms.types.membership_identifier.MembershipIdentifier",
    *,
    config_overrides: Optional[AsyncCleanRoomsClientConfig] = None,
    parameters: Optional["capo_cleanrooms.types.parameter_map.ParameterMap"] = None,
    compute_configuration: Optional[
        "capo_cleanrooms.types.intermediate_table_compute_configuration.IntermediateTableComputeConfiguration"
    ] = None,
    analysis_payer_account_id: Optional[
        "capo_cleanrooms.types.account_id.AccountId"
    ] = None,
) -> "capo_cleanrooms.types.populate_intermediate_table_output.PopulateIntermediateTableOutput":
    """<p>Runs the stored query of an intermediate table and makes the results available for querying. Each call creates a new version. Use <code>GetProtectedQuery</code> with the returned analysis ID to track progress. Only the intermediate table owner can call this operation.</p>

    Args:
        intermediate_table_identifier: <p>The unique identifier of the intermediate table to populate.</p>
        membership_identifier: <p>The unique identifier of the membership that contains the intermediate table.</p>
        parameters: <p>The runtime parameter values that override the defaults in the stored query.</p>
        compute_configuration: <p>The compute configuration for the population query execution.</p>
        analysis_payer_account_id: <p>The account ID of the member that pays for the analysis compute costs.</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.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_cleanrooms.types.populate_intermediate_table_input.PopulateIntermediateTableInput]",
    ) -> AsyncOperationResponse[
        "capo_cleanrooms.types.populate_intermediate_table_output.PopulateIntermediateTableOutput"
    ]:
        import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.populate_intermediate_table

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

    def _redact_input(
        input_: "capo_cleanrooms.types.populate_intermediate_table_input.PopulateIntermediateTableInput",
    ) -> dict[str, Any]:
        import capo_cleanrooms.types.populate_intermediate_table_input

        return capo_cleanrooms.types.populate_intermediate_table_input.redact_sensitive(
            input_
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("PopulateIntermediateTable", redact_input=_redact_input),
    )
    input_: capo_cleanrooms.types.populate_intermediate_table_input.PopulateIntermediateTableInput = {
        "intermediate_table_identifier": intermediate_table_identifier,
        "membership_identifier": membership_identifier,
    }
    if parameters is not None:
        input_["parameters"] = parameters
    if compute_configuration is not None:
        input_["compute_configuration"] = compute_configuration
    if analysis_payer_account_id is not None:
        input_["analysis_payer_account_id"] = analysis_payer_account_id

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