@pulumi/databricks 1.74.0-alpha.1754977334 → 1.74.0-alpha.1755193124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accountNetworkPolicy.d.ts +12 -0
- package/accountNetworkPolicy.js +12 -0
- package/accountNetworkPolicy.js.map +1 -1
- package/alertV2.d.ts +10 -3
- package/alertV2.js +1 -1
- package/alertV2.js.map +1 -1
- package/cleanRoomAsset.d.ts +282 -0
- package/cleanRoomAsset.js +121 -0
- package/cleanRoomAsset.js.map +1 -0
- package/cleanRoomAutoApprovalRule.d.ts +135 -0
- package/cleanRoomAutoApprovalRule.js +82 -0
- package/cleanRoomAutoApprovalRule.js.map +1 -0
- package/cleanRoomsCleanRoom.d.ts +161 -0
- package/cleanRoomsCleanRoom.js +92 -0
- package/cleanRoomsCleanRoom.js.map +1 -0
- package/connection.d.ts +75 -0
- package/connection.js +74 -0
- package/connection.js.map +1 -1
- package/databaseDatabaseCatalog.d.ts +152 -0
- package/databaseDatabaseCatalog.js +132 -0
- package/databaseDatabaseCatalog.js.map +1 -0
- package/databaseInstance.d.ts +176 -3
- package/databaseInstance.js +58 -1
- package/databaseInstance.js.map +1 -1
- package/databaseSyncedDatabaseTable.d.ts +180 -0
- package/databaseSyncedDatabaseTable.js +92 -0
- package/databaseSyncedDatabaseTable.js.map +1 -0
- package/dbfsFile.d.ts +2 -0
- package/dbfsFile.js +2 -0
- package/dbfsFile.js.map +1 -1
- package/disableLegacyAccessSetting.d.ts +43 -0
- package/disableLegacyAccessSetting.js +34 -0
- package/disableLegacyAccessSetting.js.map +1 -1
- package/disableLegacyDbfsSetting.d.ts +14 -4
- package/disableLegacyDbfsSetting.js +14 -4
- package/disableLegacyDbfsSetting.js.map +1 -1
- package/disableLegacyFeaturesSetting.d.ts +16 -3
- package/disableLegacyFeaturesSetting.js +16 -3
- package/disableLegacyFeaturesSetting.js.map +1 -1
- package/entitlements.d.ts +1 -1
- package/entitlements.js +1 -1
- package/externalLocation.d.ts +0 -9
- package/externalLocation.js.map +1 -1
- package/externalMetadata.d.ts +232 -0
- package/externalMetadata.js +133 -0
- package/externalMetadata.js.map +1 -0
- package/getAccountNetworkPolicies.d.ts +32 -0
- package/getAccountNetworkPolicies.js +32 -0
- package/getAccountNetworkPolicies.js.map +1 -1
- package/getAccountNetworkPolicy.d.ts +10 -0
- package/getAccountNetworkPolicy.js +10 -0
- package/getAccountNetworkPolicy.js.map +1 -1
- package/getAlertV2.d.ts +19 -8
- package/getAlertV2.js +2 -0
- package/getAlertV2.js.map +1 -1
- package/getCleanRoomAsset.d.ts +235 -0
- package/getCleanRoomAsset.js +70 -0
- package/getCleanRoomAsset.js.map +1 -0
- package/getCleanRoomAssetRevisionsCleanRoomAsset.d.ts +207 -0
- package/getCleanRoomAssetRevisionsCleanRoomAsset.js +42 -0
- package/getCleanRoomAssetRevisionsCleanRoomAsset.js.map +1 -0
- package/getCleanRoomAssetRevisionsCleanRoomAssets.d.ts +14 -0
- package/getCleanRoomAssetRevisionsCleanRoomAssets.js +18 -0
- package/getCleanRoomAssetRevisionsCleanRoomAssets.js.map +1 -0
- package/getCleanRoomAssets.d.ts +42 -0
- package/getCleanRoomAssets.js +46 -0
- package/getCleanRoomAssets.js.map +1 -0
- package/getCleanRoomAutoApprovalRule.d.ts +88 -0
- package/getCleanRoomAutoApprovalRule.js +30 -0
- package/getCleanRoomAutoApprovalRule.js.map +1 -0
- package/getCleanRoomAutoApprovalRules.d.ts +14 -0
- package/getCleanRoomAutoApprovalRules.js +18 -0
- package/getCleanRoomAutoApprovalRules.js.map +1 -0
- package/getCleanRoomsCleanRoom.d.ts +138 -0
- package/getCleanRoomsCleanRoom.js +62 -0
- package/getCleanRoomsCleanRoom.js.map +1 -0
- package/getCleanRoomsCleanRooms.d.ts +42 -0
- package/getCleanRoomsCleanRooms.js +46 -0
- package/getCleanRoomsCleanRooms.js.map +1 -0
- package/getClusters.d.ts +2 -2
- package/getClusters.js +2 -2
- package/getDatabaseDatabaseCatalog.d.ts +106 -0
- package/getDatabaseDatabaseCatalog.js +60 -0
- package/getDatabaseDatabaseCatalog.js.map +1 -0
- package/getDatabaseDatabaseCatalogs.d.ts +14 -0
- package/getDatabaseDatabaseCatalogs.js +18 -0
- package/getDatabaseDatabaseCatalogs.js.map +1 -0
- package/getDatabaseInstance.d.ts +98 -2
- package/getDatabaseInstance.js +8 -0
- package/getDatabaseInstance.js.map +1 -1
- package/getDatabaseSyncedDatabaseTable.d.ts +132 -0
- package/getDatabaseSyncedDatabaseTable.js +60 -0
- package/getDatabaseSyncedDatabaseTable.js.map +1 -0
- package/getDatabaseSyncedDatabaseTables.d.ts +14 -0
- package/getDatabaseSyncedDatabaseTables.js +18 -0
- package/getDatabaseSyncedDatabaseTables.js.map +1 -0
- package/getExternalMetadata.d.ts +180 -0
- package/getExternalMetadata.js +72 -0
- package/getExternalMetadata.js.map +1 -0
- package/getExternalMetadatas.d.ts +24 -0
- package/getExternalMetadatas.js +28 -0
- package/getExternalMetadatas.js.map +1 -0
- package/getMaterializedFeaturesFeatureTag.d.ts +40 -0
- package/getMaterializedFeaturesFeatureTag.js +24 -0
- package/getMaterializedFeaturesFeatureTag.js.map +1 -0
- package/getMaterializedFeaturesFeatureTags.d.ts +14 -0
- package/getMaterializedFeaturesFeatureTags.js +18 -0
- package/getMaterializedFeaturesFeatureTags.js.map +1 -0
- package/getOnlineStore.d.ts +15 -3
- package/getOnlineStore.js +2 -0
- package/getOnlineStore.js.map +1 -1
- package/getPipelines.d.ts +15 -15
- package/getPipelines.js +10 -10
- package/getPolicyInfo.d.ts +223 -0
- package/getPolicyInfo.js +44 -0
- package/getPolicyInfo.js.map +1 -0
- package/getPolicyInfos.d.ts +14 -0
- package/getPolicyInfos.js +18 -0
- package/getPolicyInfos.js.map +1 -0
- package/getQualityMonitorV2.d.ts +1 -1
- package/getServicePrincipal.d.ts +22 -7
- package/getServicePrincipal.js +4 -2
- package/getServicePrincipal.js.map +1 -1
- package/getServicePrincipals.d.ts +3 -3
- package/getSqlWarehouse.d.ts +5 -5
- package/getSqlWarehouse.js +2 -2
- package/getSqlWarehouses.d.ts +2 -2
- package/getSqlWarehouses.js +2 -2
- package/getUser.d.ts +2 -2
- package/getUser.js +2 -2
- package/getWorkspaceNetworkOption.d.ts +36 -0
- package/getWorkspaceNetworkOption.js +36 -0
- package/getWorkspaceNetworkOption.js.map +1 -1
- package/gitCredential.d.ts +40 -3
- package/gitCredential.js +17 -0
- package/gitCredential.js.map +1 -1
- package/grant.d.ts +3 -1
- package/grant.js +3 -1
- package/grant.js.map +1 -1
- package/grants.d.ts +7 -12
- package/grants.js +7 -12
- package/grants.js.map +1 -1
- package/groupInstanceProfile.d.ts +1 -1
- package/groupInstanceProfile.js +1 -1
- package/groupMember.d.ts +1 -1
- package/groupMember.js +1 -1
- package/groupRole.d.ts +1 -1
- package/groupRole.js +1 -1
- package/index.d.ts +78 -0
- package/index.js +101 -6
- package/index.js.map +1 -1
- package/ipAccessList.d.ts +1 -1
- package/ipAccessList.js +1 -1
- package/job.d.ts +12 -9
- package/job.js +2 -0
- package/job.js.map +1 -1
- package/lakehouseMonitor.d.ts +2 -2
- package/library.d.ts +10 -5
- package/library.js +1 -5
- package/library.js.map +1 -1
- package/materializedFeaturesFeatureTag.d.ts +63 -0
- package/materializedFeaturesFeatureTag.js +75 -0
- package/materializedFeaturesFeatureTag.js.map +1 -0
- package/mlflowExperiment.d.ts +4 -4
- package/mlflowExperiment.js +1 -1
- package/modelServing.d.ts +32 -0
- package/modelServing.js +6 -0
- package/modelServing.js.map +1 -1
- package/modelServingProvisionedThroughput.d.ts +12 -0
- package/modelServingProvisionedThroughput.js +2 -0
- package/modelServingProvisionedThroughput.js.map +1 -1
- package/mwsNccPrivateEndpointRule.d.ts +26 -14
- package/mwsNccPrivateEndpointRule.js +8 -2
- package/mwsNccPrivateEndpointRule.js.map +1 -1
- package/mwsNetworkConnectivityConfig.d.ts +30 -3
- package/mwsNetworkConnectivityConfig.js.map +1 -1
- package/mwsPermissionAssignment.d.ts +1 -1
- package/mwsPermissionAssignment.js +1 -1
- package/mwsWorkspaces.d.ts +3 -3
- package/oboToken.d.ts +1 -1
- package/oboToken.js +1 -1
- package/onlineStore.d.ts +15 -3
- package/onlineStore.js +5 -0
- package/onlineStore.js.map +1 -1
- package/package.json +2 -2
- package/permissionAssignment.d.ts +1 -1
- package/permissionAssignment.js +1 -1
- package/permissions.d.ts +69 -14
- package/permissions.js +67 -14
- package/permissions.js.map +1 -1
- package/pipeline.d.ts +31 -30
- package/pipeline.js +9 -8
- package/pipeline.js.map +1 -1
- package/policyInfo.d.ts +274 -0
- package/policyInfo.js +109 -0
- package/policyInfo.js.map +1 -0
- package/qualityMonitor.d.ts +2 -2
- package/qualityMonitorV2.d.ts +2 -2
- package/repo.d.ts +1 -1
- package/repo.js +1 -1
- package/secret.d.ts +1 -1
- package/secret.js +1 -1
- package/servicePrincipal.d.ts +3 -2
- package/servicePrincipal.js +3 -2
- package/servicePrincipal.js.map +1 -1
- package/servicePrincipalSecret.d.ts +1 -1
- package/servicePrincipalSecret.js +1 -1
- package/share.d.ts +9 -0
- package/share.js.map +1 -1
- package/sqlDashboard.d.ts +1 -1
- package/sqlDashboard.js +1 -1
- package/sqlEndpoint.d.ts +7 -13
- package/sqlEndpoint.js +1 -1
- package/sqlEndpoint.js.map +1 -1
- package/sqlGlobalConfig.d.ts +2 -2
- package/sqlGlobalConfig.js +2 -2
- package/sqlPermissions.d.ts +1 -1
- package/sqlPermissions.js +1 -1
- package/sqlQuery.d.ts +1 -1
- package/sqlQuery.js +1 -1
- package/sqlTable.d.ts +3 -3
- package/sqlWidget.d.ts +3 -1
- package/sqlWidget.js +3 -1
- package/sqlWidget.js.map +1 -1
- package/types/input.d.ts +3947 -829
- package/types/output.d.ts +5416 -1433
- package/user.d.ts +1 -1
- package/user.js +1 -1
- package/workspaceNetworkOption.d.ts +24 -0
- package/workspaceNetworkOption.js +24 -0
- package/workspaceNetworkOption.js.map +1 -1
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Database Catalogs are databases inside a Lakebase Database Instance which are synced into a Postgres Catalog inside Unity Catalog.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ### Example
|
|
8
|
+
*
|
|
9
|
+
* This example creates a Database Catalog based on an existing database in the Database Instance
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as databricks from "@pulumi/databricks";
|
|
13
|
+
*
|
|
14
|
+
* const _this = new databricks.DatabaseDatabaseCatalog("this", {
|
|
15
|
+
* name: "my_registered_catalog",
|
|
16
|
+
* databaseInstanceName: "my-database-instance",
|
|
17
|
+
* databaseName: "databricks_postgres",
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* This example creates a Database Catalog along with a new database inside an existing Database Instance
|
|
22
|
+
* ```typescript
|
|
23
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
24
|
+
* import * as databricks from "@pulumi/databricks";
|
|
25
|
+
*
|
|
26
|
+
* const _this = new databricks.DatabaseDatabaseCatalog("this", {
|
|
27
|
+
* name: "my_registered_catalog",
|
|
28
|
+
* databaseInstanceName: "my-database-instance",
|
|
29
|
+
* databaseName: "new_registered_catalog_database",
|
|
30
|
+
* createDatabaseIfNotExists: true,
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* This example creates a DatabaseInstance and then a Database Catalog inside it
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as databricks from "@pulumi/databricks";
|
|
38
|
+
*
|
|
39
|
+
* const instance = new databricks.DatabaseInstance("instance", {
|
|
40
|
+
* name: "my-database-instance",
|
|
41
|
+
* capacity: "CU_1",
|
|
42
|
+
* });
|
|
43
|
+
* const catalog = new databricks.DatabaseDatabaseCatalog("catalog", {
|
|
44
|
+
* name: "my_registered_catalog",
|
|
45
|
+
* databaseInstanceName: instance.name,
|
|
46
|
+
* databaseName: "new_registered_catalog_database",
|
|
47
|
+
* createDatabaseIfNotExists: true,
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ## Import
|
|
52
|
+
*
|
|
53
|
+
* As of Pulumi v1.5, resources can be imported through configuration.
|
|
54
|
+
*
|
|
55
|
+
* hcl
|
|
56
|
+
*
|
|
57
|
+
* import {
|
|
58
|
+
*
|
|
59
|
+
* id = name
|
|
60
|
+
*
|
|
61
|
+
* to = databricks_database_database_catalog.this
|
|
62
|
+
*
|
|
63
|
+
* }
|
|
64
|
+
*
|
|
65
|
+
* If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows:
|
|
66
|
+
*
|
|
67
|
+
* ```sh
|
|
68
|
+
* $ pulumi import databricks:index/databaseDatabaseCatalog:DatabaseDatabaseCatalog databricks_database_database_catalog name
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export declare class DatabaseDatabaseCatalog extends pulumi.CustomResource {
|
|
72
|
+
/**
|
|
73
|
+
* Get an existing DatabaseDatabaseCatalog resource's state with the given name, ID, and optional extra
|
|
74
|
+
* properties used to qualify the lookup.
|
|
75
|
+
*
|
|
76
|
+
* @param name The _unique_ name of the resulting resource.
|
|
77
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
78
|
+
* @param state Any extra arguments used during the lookup.
|
|
79
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
80
|
+
*/
|
|
81
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DatabaseDatabaseCatalogState, opts?: pulumi.CustomResourceOptions): DatabaseDatabaseCatalog;
|
|
82
|
+
/**
|
|
83
|
+
* Returns true if the given object is an instance of DatabaseDatabaseCatalog. This is designed to work even
|
|
84
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
85
|
+
*/
|
|
86
|
+
static isInstance(obj: any): obj is DatabaseDatabaseCatalog;
|
|
87
|
+
readonly createDatabaseIfNotExists: pulumi.Output<boolean>;
|
|
88
|
+
/**
|
|
89
|
+
* The name of the DatabaseInstance housing the database
|
|
90
|
+
*/
|
|
91
|
+
readonly databaseInstanceName: pulumi.Output<string>;
|
|
92
|
+
/**
|
|
93
|
+
* The name of the database (in a instance) associated with the catalog
|
|
94
|
+
*/
|
|
95
|
+
readonly databaseName: pulumi.Output<string>;
|
|
96
|
+
/**
|
|
97
|
+
* The name of the catalog in UC
|
|
98
|
+
*/
|
|
99
|
+
readonly name: pulumi.Output<string>;
|
|
100
|
+
/**
|
|
101
|
+
* (string)
|
|
102
|
+
*/
|
|
103
|
+
readonly uid: pulumi.Output<string>;
|
|
104
|
+
/**
|
|
105
|
+
* Create a DatabaseDatabaseCatalog resource with the given unique name, arguments, and options.
|
|
106
|
+
*
|
|
107
|
+
* @param name The _unique_ name of the resource.
|
|
108
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
109
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
110
|
+
*/
|
|
111
|
+
constructor(name: string, args: DatabaseDatabaseCatalogArgs, opts?: pulumi.CustomResourceOptions);
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Input properties used for looking up and filtering DatabaseDatabaseCatalog resources.
|
|
115
|
+
*/
|
|
116
|
+
export interface DatabaseDatabaseCatalogState {
|
|
117
|
+
createDatabaseIfNotExists?: pulumi.Input<boolean>;
|
|
118
|
+
/**
|
|
119
|
+
* The name of the DatabaseInstance housing the database
|
|
120
|
+
*/
|
|
121
|
+
databaseInstanceName?: pulumi.Input<string>;
|
|
122
|
+
/**
|
|
123
|
+
* The name of the database (in a instance) associated with the catalog
|
|
124
|
+
*/
|
|
125
|
+
databaseName?: pulumi.Input<string>;
|
|
126
|
+
/**
|
|
127
|
+
* The name of the catalog in UC
|
|
128
|
+
*/
|
|
129
|
+
name?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* (string)
|
|
132
|
+
*/
|
|
133
|
+
uid?: pulumi.Input<string>;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* The set of arguments for constructing a DatabaseDatabaseCatalog resource.
|
|
137
|
+
*/
|
|
138
|
+
export interface DatabaseDatabaseCatalogArgs {
|
|
139
|
+
createDatabaseIfNotExists?: pulumi.Input<boolean>;
|
|
140
|
+
/**
|
|
141
|
+
* The name of the DatabaseInstance housing the database
|
|
142
|
+
*/
|
|
143
|
+
databaseInstanceName: pulumi.Input<string>;
|
|
144
|
+
/**
|
|
145
|
+
* The name of the database (in a instance) associated with the catalog
|
|
146
|
+
*/
|
|
147
|
+
databaseName: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* The name of the catalog in UC
|
|
150
|
+
*/
|
|
151
|
+
name?: pulumi.Input<string>;
|
|
152
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.DatabaseDatabaseCatalog = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Database Catalogs are databases inside a Lakebase Database Instance which are synced into a Postgres Catalog inside Unity Catalog.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ### Example
|
|
14
|
+
*
|
|
15
|
+
* This example creates a Database Catalog based on an existing database in the Database Instance
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as databricks from "@pulumi/databricks";
|
|
19
|
+
*
|
|
20
|
+
* const _this = new databricks.DatabaseDatabaseCatalog("this", {
|
|
21
|
+
* name: "my_registered_catalog",
|
|
22
|
+
* databaseInstanceName: "my-database-instance",
|
|
23
|
+
* databaseName: "databricks_postgres",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* This example creates a Database Catalog along with a new database inside an existing Database Instance
|
|
28
|
+
* ```typescript
|
|
29
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
30
|
+
* import * as databricks from "@pulumi/databricks";
|
|
31
|
+
*
|
|
32
|
+
* const _this = new databricks.DatabaseDatabaseCatalog("this", {
|
|
33
|
+
* name: "my_registered_catalog",
|
|
34
|
+
* databaseInstanceName: "my-database-instance",
|
|
35
|
+
* databaseName: "new_registered_catalog_database",
|
|
36
|
+
* createDatabaseIfNotExists: true,
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* This example creates a DatabaseInstance and then a Database Catalog inside it
|
|
41
|
+
* ```typescript
|
|
42
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
43
|
+
* import * as databricks from "@pulumi/databricks";
|
|
44
|
+
*
|
|
45
|
+
* const instance = new databricks.DatabaseInstance("instance", {
|
|
46
|
+
* name: "my-database-instance",
|
|
47
|
+
* capacity: "CU_1",
|
|
48
|
+
* });
|
|
49
|
+
* const catalog = new databricks.DatabaseDatabaseCatalog("catalog", {
|
|
50
|
+
* name: "my_registered_catalog",
|
|
51
|
+
* databaseInstanceName: instance.name,
|
|
52
|
+
* databaseName: "new_registered_catalog_database",
|
|
53
|
+
* createDatabaseIfNotExists: true,
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* ## Import
|
|
58
|
+
*
|
|
59
|
+
* As of Pulumi v1.5, resources can be imported through configuration.
|
|
60
|
+
*
|
|
61
|
+
* hcl
|
|
62
|
+
*
|
|
63
|
+
* import {
|
|
64
|
+
*
|
|
65
|
+
* id = name
|
|
66
|
+
*
|
|
67
|
+
* to = databricks_database_database_catalog.this
|
|
68
|
+
*
|
|
69
|
+
* }
|
|
70
|
+
*
|
|
71
|
+
* If you are using an older version of Pulumi, import the resource using the `pulumi import` command as follows:
|
|
72
|
+
*
|
|
73
|
+
* ```sh
|
|
74
|
+
* $ pulumi import databricks:index/databaseDatabaseCatalog:DatabaseDatabaseCatalog databricks_database_database_catalog name
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
class DatabaseDatabaseCatalog extends pulumi.CustomResource {
|
|
78
|
+
/**
|
|
79
|
+
* Get an existing DatabaseDatabaseCatalog resource's state with the given name, ID, and optional extra
|
|
80
|
+
* properties used to qualify the lookup.
|
|
81
|
+
*
|
|
82
|
+
* @param name The _unique_ name of the resulting resource.
|
|
83
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
84
|
+
* @param state Any extra arguments used during the lookup.
|
|
85
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
86
|
+
*/
|
|
87
|
+
static get(name, id, state, opts) {
|
|
88
|
+
return new DatabaseDatabaseCatalog(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Returns true if the given object is an instance of DatabaseDatabaseCatalog. This is designed to work even
|
|
92
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
93
|
+
*/
|
|
94
|
+
static isInstance(obj) {
|
|
95
|
+
if (obj === undefined || obj === null) {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
return obj['__pulumiType'] === DatabaseDatabaseCatalog.__pulumiType;
|
|
99
|
+
}
|
|
100
|
+
constructor(name, argsOrState, opts) {
|
|
101
|
+
let resourceInputs = {};
|
|
102
|
+
opts = opts || {};
|
|
103
|
+
if (opts.id) {
|
|
104
|
+
const state = argsOrState;
|
|
105
|
+
resourceInputs["createDatabaseIfNotExists"] = state ? state.createDatabaseIfNotExists : undefined;
|
|
106
|
+
resourceInputs["databaseInstanceName"] = state ? state.databaseInstanceName : undefined;
|
|
107
|
+
resourceInputs["databaseName"] = state ? state.databaseName : undefined;
|
|
108
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
109
|
+
resourceInputs["uid"] = state ? state.uid : undefined;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
const args = argsOrState;
|
|
113
|
+
if ((!args || args.databaseInstanceName === undefined) && !opts.urn) {
|
|
114
|
+
throw new Error("Missing required property 'databaseInstanceName'");
|
|
115
|
+
}
|
|
116
|
+
if ((!args || args.databaseName === undefined) && !opts.urn) {
|
|
117
|
+
throw new Error("Missing required property 'databaseName'");
|
|
118
|
+
}
|
|
119
|
+
resourceInputs["createDatabaseIfNotExists"] = args ? args.createDatabaseIfNotExists : undefined;
|
|
120
|
+
resourceInputs["databaseInstanceName"] = args ? args.databaseInstanceName : undefined;
|
|
121
|
+
resourceInputs["databaseName"] = args ? args.databaseName : undefined;
|
|
122
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
123
|
+
resourceInputs["uid"] = undefined /*out*/;
|
|
124
|
+
}
|
|
125
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
126
|
+
super(DatabaseDatabaseCatalog.__pulumiType, name, resourceInputs, opts);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.DatabaseDatabaseCatalog = DatabaseDatabaseCatalog;
|
|
130
|
+
/** @internal */
|
|
131
|
+
DatabaseDatabaseCatalog.__pulumiType = 'databricks:index/databaseDatabaseCatalog:DatabaseDatabaseCatalog';
|
|
132
|
+
//# sourceMappingURL=databaseDatabaseCatalog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"databaseDatabaseCatalog.js","sourceRoot":"","sources":["../databaseDatabaseCatalog.ts"],"names":[],"mappings":"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"}
|
package/databaseInstance.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
2
4
|
/**
|
|
3
|
-
* Database Instances are managed Postgres instances, composed of a primary Postgres compute instance and 0 or more read replica instances.
|
|
5
|
+
* Lakebase Database Instances are managed Postgres instances, composed of a primary Postgres compute instance and 0 or more read replica instances.
|
|
4
6
|
*
|
|
5
7
|
* ## Example Usage
|
|
6
8
|
*
|
|
9
|
+
* ### Basic Example
|
|
10
|
+
*
|
|
11
|
+
* This example creates a simple Database Instance with the specified name and capacity.
|
|
12
|
+
*
|
|
7
13
|
* ```typescript
|
|
8
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
9
15
|
* import * as databricks from "@pulumi/databricks";
|
|
@@ -14,6 +20,39 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
14
20
|
* });
|
|
15
21
|
* ```
|
|
16
22
|
*
|
|
23
|
+
* ### Example with Readable Secondaries
|
|
24
|
+
*
|
|
25
|
+
* This example creates a Database Instance with readable secondaries (and HA) enabled.
|
|
26
|
+
*
|
|
27
|
+
* ```typescript
|
|
28
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
29
|
+
* import * as databricks from "@pulumi/databricks";
|
|
30
|
+
*
|
|
31
|
+
* const _this = new databricks.DatabaseInstance("this", {
|
|
32
|
+
* name: "my-database-instance",
|
|
33
|
+
* capacity: "CU_2",
|
|
34
|
+
* nodeCount: 2,
|
|
35
|
+
* enableReadableSecondaries: true,
|
|
36
|
+
* });
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* ### Example Child Instance Created From Parent
|
|
40
|
+
*
|
|
41
|
+
* This example creates a child Database Instance from a specified parent Database Instance at the current point in time.
|
|
42
|
+
*
|
|
43
|
+
* ```typescript
|
|
44
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
45
|
+
* import * as databricks from "@pulumi/databricks";
|
|
46
|
+
*
|
|
47
|
+
* const child = new databricks.DatabaseInstance("child", {
|
|
48
|
+
* name: "my-database-instance",
|
|
49
|
+
* capacity: "CU_2",
|
|
50
|
+
* parentInstanceRef: {
|
|
51
|
+
* name: "my-parent-instance",
|
|
52
|
+
* },
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
17
56
|
* ## Import
|
|
18
57
|
*
|
|
19
58
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -54,6 +93,11 @@ export declare class DatabaseInstance extends pulumi.CustomResource {
|
|
|
54
93
|
* The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
|
|
55
94
|
*/
|
|
56
95
|
readonly capacity: pulumi.Output<string | undefined>;
|
|
96
|
+
/**
|
|
97
|
+
* (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is
|
|
98
|
+
* parent instance
|
|
99
|
+
*/
|
|
100
|
+
readonly childInstanceRefs: pulumi.Output<outputs.DatabaseInstanceChildInstanceRef[]>;
|
|
57
101
|
/**
|
|
58
102
|
* (string) - The timestamp when the instance was created
|
|
59
103
|
*/
|
|
@@ -62,24 +106,73 @@ export declare class DatabaseInstance extends pulumi.CustomResource {
|
|
|
62
106
|
* (string) - The email of the creator of the instance
|
|
63
107
|
*/
|
|
64
108
|
readonly creator: pulumi.Output<string>;
|
|
109
|
+
/**
|
|
110
|
+
* (boolean) - xref AIP-129. `enableReadableSecondaries` is owned by the client, while `effectiveEnableReadableSecondaries` is owned by the server.
|
|
111
|
+
* `enableReadableSecondaries` will only be set in Create/Update response messages if and only if the user provides the field via the request.
|
|
112
|
+
* `effectiveEnableReadableSecondaries` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
113
|
+
*/
|
|
114
|
+
readonly effectiveEnableReadableSecondaries: pulumi.Output<boolean>;
|
|
115
|
+
/**
|
|
116
|
+
* (integer) - xref AIP-129. `nodeCount` is owned by the client, while `effectiveNodeCount` is owned by the server.
|
|
117
|
+
* `nodeCount` will only be set in Create/Update response messages if and only if the user provides the field via the request.
|
|
118
|
+
* `effectiveNodeCount` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
119
|
+
*/
|
|
120
|
+
readonly effectiveNodeCount: pulumi.Output<number>;
|
|
121
|
+
/**
|
|
122
|
+
* (integer) - xref AIP-129. `retentionWindowInDays` is owned by the client, while `effectiveRetentionWindowInDays` is owned by the server.
|
|
123
|
+
* `retentionWindowInDays` will only be set in Create/Update response messages if and only if the user provides the field via the request.
|
|
124
|
+
* `effectiveRetentionWindowInDays` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
125
|
+
*/
|
|
126
|
+
readonly effectiveRetentionWindowInDays: pulumi.Output<number>;
|
|
65
127
|
/**
|
|
66
128
|
* (boolean) - xref AIP-129. `stopped` is owned by the client, while `effectiveStopped` is owned by the server.
|
|
67
129
|
* `stopped` will only be set in Create/Update response messages if and only if the user provides the field via the request.
|
|
68
130
|
* `effectiveStopped` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
69
131
|
*/
|
|
70
132
|
readonly effectiveStopped: pulumi.Output<boolean>;
|
|
133
|
+
/**
|
|
134
|
+
* Whether to enable secondaries to serve read-only traffic. Defaults to false
|
|
135
|
+
*/
|
|
136
|
+
readonly enableReadableSecondaries: pulumi.Output<boolean | undefined>;
|
|
71
137
|
/**
|
|
72
138
|
* The name of the instance. This is the unique identifier for the instance
|
|
73
139
|
*/
|
|
74
140
|
readonly name: pulumi.Output<string>;
|
|
141
|
+
/**
|
|
142
|
+
* The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
143
|
+
* 1 primary and 0 secondaries
|
|
144
|
+
*/
|
|
145
|
+
readonly nodeCount: pulumi.Output<number | undefined>;
|
|
146
|
+
/**
|
|
147
|
+
* The ref of the parent instance. This is only available if the instance is
|
|
148
|
+
* child instance.
|
|
149
|
+
* Input: For specifying the parent instance to create a child instance. Optional.
|
|
150
|
+
* Output: Only populated if provided as input to create a child instance
|
|
151
|
+
*/
|
|
152
|
+
readonly parentInstanceRef: pulumi.Output<outputs.DatabaseInstanceParentInstanceRef | undefined>;
|
|
75
153
|
/**
|
|
76
154
|
* (string) - The version of Postgres running on the instance
|
|
77
155
|
*/
|
|
78
156
|
readonly pgVersion: pulumi.Output<string>;
|
|
157
|
+
/**
|
|
158
|
+
* Purge the resource on delete
|
|
159
|
+
*/
|
|
160
|
+
readonly purgeOnDelete: pulumi.Output<boolean | undefined>;
|
|
161
|
+
/**
|
|
162
|
+
* (string) - The DNS endpoint to connect to the instance for read only access. This is only available if
|
|
163
|
+
* enableReadableSecondaries is true
|
|
164
|
+
*/
|
|
165
|
+
readonly readOnlyDns: pulumi.Output<string>;
|
|
79
166
|
/**
|
|
80
167
|
* (string) - The DNS endpoint to connect to the instance for read+write access
|
|
81
168
|
*/
|
|
82
169
|
readonly readWriteDns: pulumi.Output<string>;
|
|
170
|
+
/**
|
|
171
|
+
* The retention window for the instance. This is the time window in days
|
|
172
|
+
* for which the historical data is retained. The default value is 7 days.
|
|
173
|
+
* Valid values are 2 to 35 days
|
|
174
|
+
*/
|
|
175
|
+
readonly retentionWindowInDays: pulumi.Output<number | undefined>;
|
|
83
176
|
/**
|
|
84
177
|
* (string) - The current state of the instance. Possible values are: `AVAILABLE`, `DELETING`, `FAILING_OVER`, `STARTING`, `STOPPED`, `UPDATING`
|
|
85
178
|
*/
|
|
@@ -89,7 +182,7 @@ export declare class DatabaseInstance extends pulumi.CustomResource {
|
|
|
89
182
|
*/
|
|
90
183
|
readonly stopped: pulumi.Output<boolean | undefined>;
|
|
91
184
|
/**
|
|
92
|
-
* (string) -
|
|
185
|
+
* (string) - Id of the ref database instance
|
|
93
186
|
*/
|
|
94
187
|
readonly uid: pulumi.Output<string>;
|
|
95
188
|
/**
|
|
@@ -109,6 +202,11 @@ export interface DatabaseInstanceState {
|
|
|
109
202
|
* The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
|
|
110
203
|
*/
|
|
111
204
|
capacity?: pulumi.Input<string>;
|
|
205
|
+
/**
|
|
206
|
+
* (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is
|
|
207
|
+
* parent instance
|
|
208
|
+
*/
|
|
209
|
+
childInstanceRefs?: pulumi.Input<pulumi.Input<inputs.DatabaseInstanceChildInstanceRef>[]>;
|
|
112
210
|
/**
|
|
113
211
|
* (string) - The timestamp when the instance was created
|
|
114
212
|
*/
|
|
@@ -117,24 +215,73 @@ export interface DatabaseInstanceState {
|
|
|
117
215
|
* (string) - The email of the creator of the instance
|
|
118
216
|
*/
|
|
119
217
|
creator?: pulumi.Input<string>;
|
|
218
|
+
/**
|
|
219
|
+
* (boolean) - xref AIP-129. `enableReadableSecondaries` is owned by the client, while `effectiveEnableReadableSecondaries` is owned by the server.
|
|
220
|
+
* `enableReadableSecondaries` will only be set in Create/Update response messages if and only if the user provides the field via the request.
|
|
221
|
+
* `effectiveEnableReadableSecondaries` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
222
|
+
*/
|
|
223
|
+
effectiveEnableReadableSecondaries?: pulumi.Input<boolean>;
|
|
224
|
+
/**
|
|
225
|
+
* (integer) - xref AIP-129. `nodeCount` is owned by the client, while `effectiveNodeCount` is owned by the server.
|
|
226
|
+
* `nodeCount` will only be set in Create/Update response messages if and only if the user provides the field via the request.
|
|
227
|
+
* `effectiveNodeCount` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
228
|
+
*/
|
|
229
|
+
effectiveNodeCount?: pulumi.Input<number>;
|
|
230
|
+
/**
|
|
231
|
+
* (integer) - xref AIP-129. `retentionWindowInDays` is owned by the client, while `effectiveRetentionWindowInDays` is owned by the server.
|
|
232
|
+
* `retentionWindowInDays` will only be set in Create/Update response messages if and only if the user provides the field via the request.
|
|
233
|
+
* `effectiveRetentionWindowInDays` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
234
|
+
*/
|
|
235
|
+
effectiveRetentionWindowInDays?: pulumi.Input<number>;
|
|
120
236
|
/**
|
|
121
237
|
* (boolean) - xref AIP-129. `stopped` is owned by the client, while `effectiveStopped` is owned by the server.
|
|
122
238
|
* `stopped` will only be set in Create/Update response messages if and only if the user provides the field via the request.
|
|
123
239
|
* `effectiveStopped` on the other hand will always bet set in all response messages (Create/Update/Get/List)
|
|
124
240
|
*/
|
|
125
241
|
effectiveStopped?: pulumi.Input<boolean>;
|
|
242
|
+
/**
|
|
243
|
+
* Whether to enable secondaries to serve read-only traffic. Defaults to false
|
|
244
|
+
*/
|
|
245
|
+
enableReadableSecondaries?: pulumi.Input<boolean>;
|
|
126
246
|
/**
|
|
127
247
|
* The name of the instance. This is the unique identifier for the instance
|
|
128
248
|
*/
|
|
129
249
|
name?: pulumi.Input<string>;
|
|
250
|
+
/**
|
|
251
|
+
* The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
252
|
+
* 1 primary and 0 secondaries
|
|
253
|
+
*/
|
|
254
|
+
nodeCount?: pulumi.Input<number>;
|
|
255
|
+
/**
|
|
256
|
+
* The ref of the parent instance. This is only available if the instance is
|
|
257
|
+
* child instance.
|
|
258
|
+
* Input: For specifying the parent instance to create a child instance. Optional.
|
|
259
|
+
* Output: Only populated if provided as input to create a child instance
|
|
260
|
+
*/
|
|
261
|
+
parentInstanceRef?: pulumi.Input<inputs.DatabaseInstanceParentInstanceRef>;
|
|
130
262
|
/**
|
|
131
263
|
* (string) - The version of Postgres running on the instance
|
|
132
264
|
*/
|
|
133
265
|
pgVersion?: pulumi.Input<string>;
|
|
266
|
+
/**
|
|
267
|
+
* Purge the resource on delete
|
|
268
|
+
*/
|
|
269
|
+
purgeOnDelete?: pulumi.Input<boolean>;
|
|
270
|
+
/**
|
|
271
|
+
* (string) - The DNS endpoint to connect to the instance for read only access. This is only available if
|
|
272
|
+
* enableReadableSecondaries is true
|
|
273
|
+
*/
|
|
274
|
+
readOnlyDns?: pulumi.Input<string>;
|
|
134
275
|
/**
|
|
135
276
|
* (string) - The DNS endpoint to connect to the instance for read+write access
|
|
136
277
|
*/
|
|
137
278
|
readWriteDns?: pulumi.Input<string>;
|
|
279
|
+
/**
|
|
280
|
+
* The retention window for the instance. This is the time window in days
|
|
281
|
+
* for which the historical data is retained. The default value is 7 days.
|
|
282
|
+
* Valid values are 2 to 35 days
|
|
283
|
+
*/
|
|
284
|
+
retentionWindowInDays?: pulumi.Input<number>;
|
|
138
285
|
/**
|
|
139
286
|
* (string) - The current state of the instance. Possible values are: `AVAILABLE`, `DELETING`, `FAILING_OVER`, `STARTING`, `STOPPED`, `UPDATING`
|
|
140
287
|
*/
|
|
@@ -144,7 +291,7 @@ export interface DatabaseInstanceState {
|
|
|
144
291
|
*/
|
|
145
292
|
stopped?: pulumi.Input<boolean>;
|
|
146
293
|
/**
|
|
147
|
-
* (string) -
|
|
294
|
+
* (string) - Id of the ref database instance
|
|
148
295
|
*/
|
|
149
296
|
uid?: pulumi.Input<string>;
|
|
150
297
|
}
|
|
@@ -156,10 +303,36 @@ export interface DatabaseInstanceArgs {
|
|
|
156
303
|
* The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
|
|
157
304
|
*/
|
|
158
305
|
capacity?: pulumi.Input<string>;
|
|
306
|
+
/**
|
|
307
|
+
* Whether to enable secondaries to serve read-only traffic. Defaults to false
|
|
308
|
+
*/
|
|
309
|
+
enableReadableSecondaries?: pulumi.Input<boolean>;
|
|
159
310
|
/**
|
|
160
311
|
* The name of the instance. This is the unique identifier for the instance
|
|
161
312
|
*/
|
|
162
313
|
name?: pulumi.Input<string>;
|
|
314
|
+
/**
|
|
315
|
+
* The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to
|
|
316
|
+
* 1 primary and 0 secondaries
|
|
317
|
+
*/
|
|
318
|
+
nodeCount?: pulumi.Input<number>;
|
|
319
|
+
/**
|
|
320
|
+
* The ref of the parent instance. This is only available if the instance is
|
|
321
|
+
* child instance.
|
|
322
|
+
* Input: For specifying the parent instance to create a child instance. Optional.
|
|
323
|
+
* Output: Only populated if provided as input to create a child instance
|
|
324
|
+
*/
|
|
325
|
+
parentInstanceRef?: pulumi.Input<inputs.DatabaseInstanceParentInstanceRef>;
|
|
326
|
+
/**
|
|
327
|
+
* Purge the resource on delete
|
|
328
|
+
*/
|
|
329
|
+
purgeOnDelete?: pulumi.Input<boolean>;
|
|
330
|
+
/**
|
|
331
|
+
* The retention window for the instance. This is the time window in days
|
|
332
|
+
* for which the historical data is retained. The default value is 7 days.
|
|
333
|
+
* Valid values are 2 to 35 days
|
|
334
|
+
*/
|
|
335
|
+
retentionWindowInDays?: pulumi.Input<number>;
|
|
163
336
|
/**
|
|
164
337
|
* Whether the instance is stopped
|
|
165
338
|
*/
|
package/databaseInstance.js
CHANGED
|
@@ -6,10 +6,14 @@ exports.DatabaseInstance = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Database Instances are managed Postgres instances, composed of a primary Postgres compute instance and 0 or more read replica instances.
|
|
9
|
+
* Lakebase Database Instances are managed Postgres instances, composed of a primary Postgres compute instance and 0 or more read replica instances.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
+
* ### Basic Example
|
|
14
|
+
*
|
|
15
|
+
* This example creates a simple Database Instance with the specified name and capacity.
|
|
16
|
+
*
|
|
13
17
|
* ```typescript
|
|
14
18
|
* import * as pulumi from "@pulumi/pulumi";
|
|
15
19
|
* import * as databricks from "@pulumi/databricks";
|
|
@@ -20,6 +24,39 @@ const utilities = require("./utilities");
|
|
|
20
24
|
* });
|
|
21
25
|
* ```
|
|
22
26
|
*
|
|
27
|
+
* ### Example with Readable Secondaries
|
|
28
|
+
*
|
|
29
|
+
* This example creates a Database Instance with readable secondaries (and HA) enabled.
|
|
30
|
+
*
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
33
|
+
* import * as databricks from "@pulumi/databricks";
|
|
34
|
+
*
|
|
35
|
+
* const _this = new databricks.DatabaseInstance("this", {
|
|
36
|
+
* name: "my-database-instance",
|
|
37
|
+
* capacity: "CU_2",
|
|
38
|
+
* nodeCount: 2,
|
|
39
|
+
* enableReadableSecondaries: true,
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* ### Example Child Instance Created From Parent
|
|
44
|
+
*
|
|
45
|
+
* This example creates a child Database Instance from a specified parent Database Instance at the current point in time.
|
|
46
|
+
*
|
|
47
|
+
* ```typescript
|
|
48
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
+
* import * as databricks from "@pulumi/databricks";
|
|
50
|
+
*
|
|
51
|
+
* const child = new databricks.DatabaseInstance("child", {
|
|
52
|
+
* name: "my-database-instance",
|
|
53
|
+
* capacity: "CU_2",
|
|
54
|
+
* parentInstanceRef: {
|
|
55
|
+
* name: "my-parent-instance",
|
|
56
|
+
* },
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
23
60
|
* ## Import
|
|
24
61
|
*
|
|
25
62
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -69,12 +106,22 @@ class DatabaseInstance extends pulumi.CustomResource {
|
|
|
69
106
|
if (opts.id) {
|
|
70
107
|
const state = argsOrState;
|
|
71
108
|
resourceInputs["capacity"] = state ? state.capacity : undefined;
|
|
109
|
+
resourceInputs["childInstanceRefs"] = state ? state.childInstanceRefs : undefined;
|
|
72
110
|
resourceInputs["creationTime"] = state ? state.creationTime : undefined;
|
|
73
111
|
resourceInputs["creator"] = state ? state.creator : undefined;
|
|
112
|
+
resourceInputs["effectiveEnableReadableSecondaries"] = state ? state.effectiveEnableReadableSecondaries : undefined;
|
|
113
|
+
resourceInputs["effectiveNodeCount"] = state ? state.effectiveNodeCount : undefined;
|
|
114
|
+
resourceInputs["effectiveRetentionWindowInDays"] = state ? state.effectiveRetentionWindowInDays : undefined;
|
|
74
115
|
resourceInputs["effectiveStopped"] = state ? state.effectiveStopped : undefined;
|
|
116
|
+
resourceInputs["enableReadableSecondaries"] = state ? state.enableReadableSecondaries : undefined;
|
|
75
117
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
118
|
+
resourceInputs["nodeCount"] = state ? state.nodeCount : undefined;
|
|
119
|
+
resourceInputs["parentInstanceRef"] = state ? state.parentInstanceRef : undefined;
|
|
76
120
|
resourceInputs["pgVersion"] = state ? state.pgVersion : undefined;
|
|
121
|
+
resourceInputs["purgeOnDelete"] = state ? state.purgeOnDelete : undefined;
|
|
122
|
+
resourceInputs["readOnlyDns"] = state ? state.readOnlyDns : undefined;
|
|
77
123
|
resourceInputs["readWriteDns"] = state ? state.readWriteDns : undefined;
|
|
124
|
+
resourceInputs["retentionWindowInDays"] = state ? state.retentionWindowInDays : undefined;
|
|
78
125
|
resourceInputs["state"] = state ? state.state : undefined;
|
|
79
126
|
resourceInputs["stopped"] = state ? state.stopped : undefined;
|
|
80
127
|
resourceInputs["uid"] = state ? state.uid : undefined;
|
|
@@ -82,12 +129,22 @@ class DatabaseInstance extends pulumi.CustomResource {
|
|
|
82
129
|
else {
|
|
83
130
|
const args = argsOrState;
|
|
84
131
|
resourceInputs["capacity"] = args ? args.capacity : undefined;
|
|
132
|
+
resourceInputs["enableReadableSecondaries"] = args ? args.enableReadableSecondaries : undefined;
|
|
85
133
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
134
|
+
resourceInputs["nodeCount"] = args ? args.nodeCount : undefined;
|
|
135
|
+
resourceInputs["parentInstanceRef"] = args ? args.parentInstanceRef : undefined;
|
|
136
|
+
resourceInputs["purgeOnDelete"] = args ? args.purgeOnDelete : undefined;
|
|
137
|
+
resourceInputs["retentionWindowInDays"] = args ? args.retentionWindowInDays : undefined;
|
|
86
138
|
resourceInputs["stopped"] = args ? args.stopped : undefined;
|
|
139
|
+
resourceInputs["childInstanceRefs"] = undefined /*out*/;
|
|
87
140
|
resourceInputs["creationTime"] = undefined /*out*/;
|
|
88
141
|
resourceInputs["creator"] = undefined /*out*/;
|
|
142
|
+
resourceInputs["effectiveEnableReadableSecondaries"] = undefined /*out*/;
|
|
143
|
+
resourceInputs["effectiveNodeCount"] = undefined /*out*/;
|
|
144
|
+
resourceInputs["effectiveRetentionWindowInDays"] = undefined /*out*/;
|
|
89
145
|
resourceInputs["effectiveStopped"] = undefined /*out*/;
|
|
90
146
|
resourceInputs["pgVersion"] = undefined /*out*/;
|
|
147
|
+
resourceInputs["readOnlyDns"] = undefined /*out*/;
|
|
91
148
|
resourceInputs["readWriteDns"] = undefined /*out*/;
|
|
92
149
|
resourceInputs["state"] = undefined /*out*/;
|
|
93
150
|
resourceInputs["uid"] = undefined /*out*/;
|