Skip to content

update_intermediate_table

update_intermediate_table(
    intermediate_table_identifier: IntermediateTableIdentifier,
    membership_identifier: MembershipIdentifier,
    *,
    config_overrides: Optional[CleanRoomsClientConfig] = None,
    description: Optional[ResourceDescription] = None,
    kms_key_arn: Optional[KMSKeyArn] = None,
    columns: Optional[IntermediateTableColumnList] = None,
) -> UpdateIntermediateTableOutput

Updates an intermediate table. You can update the description, KMS key ARN, and column types of existing columns. Only the intermediate table owner can call this operation.

Parameters:

  • intermediate_table_identifier (IntermediateTableIdentifier) –

    The unique identifier of the intermediate table to update.

  • membership_identifier (MembershipIdentifier) –

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

  • description (Optional[ResourceDescription], default: None ) –

    A new description for the intermediate table.

  • kms_key_arn (Optional[KMSKeyArn], default: None ) –

    The Amazon Resource Name (ARN) of the customer-managed KMS key to use for encrypting future population data.

  • columns (Optional[IntermediateTableColumnList], default: None ) –

    The list of columns with updated type definitions. Only the type of existing columns can be updated.

Raises:

Source code in docs_src/capo_cleanrooms/_services/clean_rooms.py
def update_intermediate_table(
    self,
    intermediate_table_identifier: "capo_cleanrooms.types.intermediate_table_identifier.IntermediateTableIdentifier",
    membership_identifier: "capo_cleanrooms.types.membership_identifier.MembershipIdentifier",
    *,
    config_overrides: Optional[CleanRoomsClientConfig] = None,
    description: Optional[
        "capo_cleanrooms.types.resource_description.ResourceDescription"
    ] = None,
    kms_key_arn: Optional["capo_cleanrooms.types.kms_key_arn.KMSKeyArn"] = None,
    columns: Optional[
        "capo_cleanrooms.types.intermediate_table_column_list.IntermediateTableColumnList"
    ] = None,
) -> "capo_cleanrooms.types.update_intermediate_table_output.UpdateIntermediateTableOutput":
    """<p>Updates an intermediate table. You can update the description, KMS key ARN, and column types of existing columns. Only the intermediate table owner can call this operation.</p>

    Args:
        intermediate_table_identifier: <p>The unique identifier of the intermediate table to update.</p>
        membership_identifier: <p>The unique identifier of the membership that contains the intermediate table.</p>
        description: <p>A new description for the intermediate table.</p>
        kms_key_arn: <p>The Amazon Resource Name (ARN) of the customer-managed KMS key to use for encrypting future population data.</p>
        columns: <p>The list of columns with updated type definitions. Only the type of existing columns can be updated.</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.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.update_intermediate_table_input.UpdateIntermediateTableInput]",
    ) -> OperationResponse[
        "capo_cleanrooms.types.update_intermediate_table_output.UpdateIntermediateTableOutput"
    ]:
        import capo_cleanrooms._operations.aws_bastion_control_plane_service_lambda.update_intermediate_table

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

    def _redact_output(
        output: "capo_cleanrooms.types.update_intermediate_table_output.UpdateIntermediateTableOutput",
    ) -> dict[str, Any]:
        import capo_cleanrooms.types.update_intermediate_table_output

        return (
            capo_cleanrooms.types.update_intermediate_table_output.redact_sensitive(
                output
            )
        )

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("UpdateIntermediateTable", redact_output=_redact_output),
    )
    input_: capo_cleanrooms.types.update_intermediate_table_input.UpdateIntermediateTableInput = {
        "intermediate_table_identifier": intermediate_table_identifier,
        "membership_identifier": membership_identifier,
    }
    if description is not None:
        input_["description"] = description
    if kms_key_arn is not None:
        input_["kms_key_arn"] = kms_key_arn
    if columns is not None:
        input_["columns"] = columns

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