UNPKG

@pulumi/databricks

Version:

A Pulumi package for creating and managing databricks cloud resources.

94 lines 4.39 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.DatabaseSyncedDatabaseTable = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Lakebase Synced Database Tables are Postgres tables automatically synced from a source table inside Unity Catalog. * They can be used to serve realtime queries without the operational overhead of managing ETL pipelines. * * Synced Database Tables can be configured inside either Database Catalogs or Standard Catalogs. Multiple * Synced Database Tables can be bin packed inside a single pipeline to optimize costs. * * ## Example Usage * * ## Import * * As of Pulumi v1.5, resources can be imported through configuration. * * hcl * * import { * * id = "name" * * to = databricks_database_synced_database_table.this * * } * * If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows: * * ```sh * $ pulumi import databricks:index/databaseSyncedDatabaseTable:DatabaseSyncedDatabaseTable databricks_database_synced_database_table "name" * ``` */ class DatabaseSyncedDatabaseTable extends pulumi.CustomResource { /** * Get an existing DatabaseSyncedDatabaseTable resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new DatabaseSyncedDatabaseTable(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of DatabaseSyncedDatabaseTable. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === DatabaseSyncedDatabaseTable.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["dataSynchronizationStatus"] = state?.dataSynchronizationStatus; resourceInputs["databaseInstanceName"] = state?.databaseInstanceName; resourceInputs["effectiveDatabaseInstanceName"] = state?.effectiveDatabaseInstanceName; resourceInputs["effectiveLogicalDatabaseName"] = state?.effectiveLogicalDatabaseName; resourceInputs["logicalDatabaseName"] = state?.logicalDatabaseName; resourceInputs["name"] = state?.name; resourceInputs["spec"] = state?.spec; resourceInputs["unityCatalogProvisioningState"] = state?.unityCatalogProvisioningState; resourceInputs["workspaceId"] = state?.workspaceId; } else { const args = argsOrState; resourceInputs["databaseInstanceName"] = args?.databaseInstanceName; resourceInputs["logicalDatabaseName"] = args?.logicalDatabaseName; resourceInputs["name"] = args?.name; resourceInputs["spec"] = args?.spec; resourceInputs["workspaceId"] = args?.workspaceId; resourceInputs["dataSynchronizationStatus"] = undefined /*out*/; resourceInputs["effectiveDatabaseInstanceName"] = undefined /*out*/; resourceInputs["effectiveLogicalDatabaseName"] = undefined /*out*/; resourceInputs["unityCatalogProvisioningState"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(DatabaseSyncedDatabaseTable.__pulumiType, name, resourceInputs, opts); } } exports.DatabaseSyncedDatabaseTable = DatabaseSyncedDatabaseTable; /** @internal */ DatabaseSyncedDatabaseTable.__pulumiType = 'databricks:index/databaseSyncedDatabaseTable:DatabaseSyncedDatabaseTable'; //# sourceMappingURL=databaseSyncedDatabaseTable.js.map