@pulumi/databricks 1.78.0-alpha.1762407761 → 1.78.0-alpha.1762486781
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/accountFederationPolicy.d.ts +13 -0
- package/accountFederationPolicy.js +13 -0
- package/accountFederationPolicy.js.map +1 -1
- package/accountNetworkPolicy.d.ts +26 -0
- package/accountNetworkPolicy.js +26 -0
- package/accountNetworkPolicy.js.map +1 -1
- package/alertV2.d.ts +37 -0
- package/alertV2.js +37 -0
- package/alertV2.js.map +1 -1
- package/app.d.ts +33 -0
- package/app.js +33 -0
- package/app.js.map +1 -1
- package/appsSettingsCustomTemplate.d.ts +34 -0
- package/appsSettingsCustomTemplate.js +34 -0
- package/appsSettingsCustomTemplate.js.map +1 -1
- package/catalog.d.ts +3 -3
- package/clusterPolicy.d.ts +63 -0
- package/clusterPolicy.js +63 -0
- package/clusterPolicy.js.map +1 -1
- package/config/vars.d.ts +2 -0
- package/config/vars.js +12 -0
- package/config/vars.js.map +1 -1
- package/databaseSyncedDatabaseTable.d.ts +113 -0
- package/databaseSyncedDatabaseTable.js +113 -0
- package/databaseSyncedDatabaseTable.js.map +1 -1
- package/externalLocation.d.ts +75 -3
- package/externalLocation.js +72 -0
- package/externalLocation.js.map +1 -1
- package/file.d.ts +1 -1
- package/file.js +1 -1
- package/getAwsAssumeRolePolicy.d.ts +10 -10
- package/getAwsAssumeRolePolicy.js +10 -10
- package/getAwsBucketPolicy.d.ts +12 -12
- package/getAwsBucketPolicy.js +12 -12
- package/getAwsUnityCatalogAssumeRolePolicy.d.ts +10 -10
- package/getAwsUnityCatalogAssumeRolePolicy.js +10 -10
- package/getAwsUnityCatalogPolicy.d.ts +10 -10
- package/getAwsUnityCatalogPolicy.js +10 -10
- package/getCluster.d.ts +62 -0
- package/getCluster.js +62 -0
- package/getCluster.js.map +1 -1
- package/getCurrentConfig.d.ts +4 -4
- package/getCurrentConfig.js +4 -4
- package/getMetastore.d.ts +4 -4
- package/getMetastore.js +4 -4
- package/getNotebook.d.ts +11 -0
- package/getNotebook.js +2 -0
- package/getNotebook.js.map +1 -1
- package/getServicePrincipals.d.ts +88 -0
- package/getServicePrincipals.js +88 -0
- package/getServicePrincipals.js.map +1 -1
- package/instanceProfile.d.ts +0 -107
- package/instanceProfile.js +0 -107
- package/instanceProfile.js.map +1 -1
- package/metastore.d.ts +46 -3
- package/metastore.js +43 -0
- package/metastore.js.map +1 -1
- package/metastoreDataAccess.d.ts +28 -0
- package/metastoreDataAccess.js +28 -0
- package/metastoreDataAccess.js.map +1 -1
- package/mlflowWebhook.d.ts +2 -2
- package/mlflowWebhook.js +2 -2
- package/mwsCredentials.d.ts +4 -4
- package/mwsCredentials.js +4 -4
- package/mwsCustomerManagedKeys.d.ts +0 -152
- package/mwsCustomerManagedKeys.js +0 -152
- package/mwsCustomerManagedKeys.js.map +1 -1
- package/mwsLogDelivery.d.ts +90 -0
- package/mwsLogDelivery.js +90 -0
- package/mwsLogDelivery.js.map +1 -1
- package/mwsStorageConfigurations.d.ts +5 -5
- package/mwsStorageConfigurations.js +5 -5
- package/mwsVpcEndpoint.d.ts +5 -5
- package/mwsVpcEndpoint.js +5 -5
- package/mwsWorkspaces.d.ts +24 -21
- package/mwsWorkspaces.js +20 -18
- package/mwsWorkspaces.js.map +1 -1
- package/notebook.d.ts +14 -0
- package/notebook.js +2 -0
- package/notebook.js.map +1 -1
- package/package.json +2 -2
- package/permissionAssignment.d.ts +14 -0
- package/permissionAssignment.js +2 -0
- package/permissionAssignment.js.map +1 -1
- package/permissions.d.ts +3 -3
- package/permissions.js +3 -3
- package/provider.d.ts +3 -0
- package/provider.js +2 -0
- package/provider.js.map +1 -1
- package/recipient.d.ts +41 -0
- package/recipient.js +41 -0
- package/recipient.js.map +1 -1
- package/registeredModel.d.ts +3 -3
- package/schema.d.ts +3 -3
- package/servicePrincipalFederationPolicy.d.ts +15 -0
- package/servicePrincipalFederationPolicy.js +15 -0
- package/servicePrincipalFederationPolicy.js.map +1 -1
- package/sqlTable.d.ts +3 -3
- package/types/input.d.ts +30 -42
- package/types/output.d.ts +24 -42
- package/volume.d.ts +3 -3
|
@@ -14,6 +14,19 @@ import * as outputs from "./types/output";
|
|
|
14
14
|
*
|
|
15
15
|
* ## Example Usage
|
|
16
16
|
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as databricks from "@pulumi/databricks";
|
|
20
|
+
*
|
|
21
|
+
* const _this = new databricks.AccountFederationPolicy("this", {
|
|
22
|
+
* policyId: "my-policy",
|
|
23
|
+
* oidcPolicy: {
|
|
24
|
+
* issuer: "https://myidp.example.com",
|
|
25
|
+
* subjectClaim: "sub",
|
|
26
|
+
* },
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
17
30
|
* ## Import
|
|
18
31
|
*
|
|
19
32
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -18,6 +18,19 @@ const utilities = require("./utilities");
|
|
|
18
18
|
*
|
|
19
19
|
* ## Example Usage
|
|
20
20
|
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as databricks from "@pulumi/databricks";
|
|
24
|
+
*
|
|
25
|
+
* const _this = new databricks.AccountFederationPolicy("this", {
|
|
26
|
+
* policyId: "my-policy",
|
|
27
|
+
* oidcPolicy: {
|
|
28
|
+
* issuer: "https://myidp.example.com",
|
|
29
|
+
* subjectClaim: "sub",
|
|
30
|
+
* },
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
21
34
|
* ## Import
|
|
22
35
|
*
|
|
23
36
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountFederationPolicy.js","sourceRoot":"","sources":["../accountFederationPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;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QAAQ,CAAC;YAC7C,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,EAAE,kBAAkB,CAAC;YACjE,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,EAAE,GAAG,CAAC;YACnC,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;SACpD;aAAM;YACH,MAAM,IAAI,GAAG,WAAsD,CAAC;YACpE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC3C,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC1C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,uBAAuB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;;AAjGL,0DAkGC;AApFG,gBAAgB;AACO,oCAAY,GAAG,kEAAkE,CAAC"}
|
|
@@ -18,6 +18,32 @@ import * as outputs from "./types/output";
|
|
|
18
18
|
*
|
|
19
19
|
* ## Example Usage
|
|
20
20
|
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as databricks from "@pulumi/databricks";
|
|
24
|
+
*
|
|
25
|
+
* const exampleNetworkPolicy = new databricks.AccountNetworkPolicy("example_network_policy", {
|
|
26
|
+
* networkPolicyId: "example-network-policy",
|
|
27
|
+
* egress: {
|
|
28
|
+
* networkAccess: {
|
|
29
|
+
* restrictionMode: "RESTRICTED_ACCESS",
|
|
30
|
+
* allowedInternetDestinations: [{
|
|
31
|
+
* destination: "example.com",
|
|
32
|
+
* internetDestinationType: "DNS_NAME",
|
|
33
|
+
* }],
|
|
34
|
+
* allowedStorageDestinations: [{
|
|
35
|
+
* bucketName: "example-aws-cloud-storage",
|
|
36
|
+
* region: "us-west-1",
|
|
37
|
+
* storageDestinationType: "AWS_S3",
|
|
38
|
+
* }],
|
|
39
|
+
* policyEnforcement: {
|
|
40
|
+
* enforcementMode: "ENFORCED",
|
|
41
|
+
* },
|
|
42
|
+
* },
|
|
43
|
+
* },
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
21
47
|
* ## Import
|
|
22
48
|
*
|
|
23
49
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
package/accountNetworkPolicy.js
CHANGED
|
@@ -22,6 +22,32 @@ const utilities = require("./utilities");
|
|
|
22
22
|
*
|
|
23
23
|
* ## Example Usage
|
|
24
24
|
*
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
27
|
+
* import * as databricks from "@pulumi/databricks";
|
|
28
|
+
*
|
|
29
|
+
* const exampleNetworkPolicy = new databricks.AccountNetworkPolicy("example_network_policy", {
|
|
30
|
+
* networkPolicyId: "example-network-policy",
|
|
31
|
+
* egress: {
|
|
32
|
+
* networkAccess: {
|
|
33
|
+
* restrictionMode: "RESTRICTED_ACCESS",
|
|
34
|
+
* allowedInternetDestinations: [{
|
|
35
|
+
* destination: "example.com",
|
|
36
|
+
* internetDestinationType: "DNS_NAME",
|
|
37
|
+
* }],
|
|
38
|
+
* allowedStorageDestinations: [{
|
|
39
|
+
* bucketName: "example-aws-cloud-storage",
|
|
40
|
+
* region: "us-west-1",
|
|
41
|
+
* storageDestinationType: "AWS_S3",
|
|
42
|
+
* }],
|
|
43
|
+
* policyEnforcement: {
|
|
44
|
+
* enforcementMode: "ENFORCED",
|
|
45
|
+
* },
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
25
51
|
* ## Import
|
|
26
52
|
*
|
|
27
53
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accountNetworkPolicy.js","sourceRoot":"","sources":["../accountNetworkPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"accountNetworkPolicy.js","sourceRoot":"","sources":["../accountNetworkPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAa,oBAAqB,SAAQ,MAAM,CAAC,cAAc;IAC3D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiC,EAAE,IAAmC;QAC/H,OAAO,IAAI,oBAAoB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,oBAAoB,CAAC,YAAY,CAAC;IACrE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAkE,EAAE,IAAmC;QAC7H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoD,CAAC;YACnE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,EAAE,eAAe,CAAC;SAC9D;aAAM;YACH,MAAM,IAAI,GAAG,WAAmD,CAAC;YACjE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AAjEL,oDAkEC;AApDG,gBAAgB;AACO,iCAAY,GAAG,4DAA4D,CAAC"}
|
package/alertV2.d.ts
CHANGED
|
@@ -13,6 +13,43 @@ import * as outputs from "./types/output";
|
|
|
13
13
|
* ### Basic Alert Example
|
|
14
14
|
* This example creates a basic alert that monitors a query and sends notifications to a user when the value exceeds a threshold:
|
|
15
15
|
*
|
|
16
|
+
* ```typescript
|
|
17
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
18
|
+
* import * as databricks from "@pulumi/databricks";
|
|
19
|
+
*
|
|
20
|
+
* const basicAlert = new databricks.AlertV2("basic_alert", {
|
|
21
|
+
* displayName: "High Error Rate Alert",
|
|
22
|
+
* queryText: "SELECT count(*) as error_count FROM logs WHERE level = 'ERROR' AND timestamp > now() - interval 1 hour",
|
|
23
|
+
* warehouseId: "a7066a8ef796be84",
|
|
24
|
+
* parentPath: "/Users/user@example.com",
|
|
25
|
+
* evaluation: {
|
|
26
|
+
* source: {
|
|
27
|
+
* name: "error_count",
|
|
28
|
+
* display: "Error Count",
|
|
29
|
+
* aggregation: "COUNT",
|
|
30
|
+
* },
|
|
31
|
+
* comparisonOperator: "GREATER_THAN",
|
|
32
|
+
* threshold: {
|
|
33
|
+
* value: {
|
|
34
|
+
* doubleValue: 100,
|
|
35
|
+
* },
|
|
36
|
+
* },
|
|
37
|
+
* emptyResultState: "OK",
|
|
38
|
+
* notification: {
|
|
39
|
+
* subscriptions: [{
|
|
40
|
+
* userEmail: "user@example.com",
|
|
41
|
+
* }],
|
|
42
|
+
* notifyOnOk: true,
|
|
43
|
+
* },
|
|
44
|
+
* },
|
|
45
|
+
* schedule: {
|
|
46
|
+
* quartzCronSchedule: "0 0/15 * * * ?",
|
|
47
|
+
* timezoneId: "America/Los_Angeles",
|
|
48
|
+
* pauseStatus: "UNPAUSED",
|
|
49
|
+
* },
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
16
53
|
* ## Import
|
|
17
54
|
*
|
|
18
55
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
package/alertV2.js
CHANGED
|
@@ -17,6 +17,43 @@ const utilities = require("./utilities");
|
|
|
17
17
|
* ### Basic Alert Example
|
|
18
18
|
* This example creates a basic alert that monitors a query and sends notifications to a user when the value exceeds a threshold:
|
|
19
19
|
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
22
|
+
* import * as databricks from "@pulumi/databricks";
|
|
23
|
+
*
|
|
24
|
+
* const basicAlert = new databricks.AlertV2("basic_alert", {
|
|
25
|
+
* displayName: "High Error Rate Alert",
|
|
26
|
+
* queryText: "SELECT count(*) as error_count FROM logs WHERE level = 'ERROR' AND timestamp > now() - interval 1 hour",
|
|
27
|
+
* warehouseId: "a7066a8ef796be84",
|
|
28
|
+
* parentPath: "/Users/user@example.com",
|
|
29
|
+
* evaluation: {
|
|
30
|
+
* source: {
|
|
31
|
+
* name: "error_count",
|
|
32
|
+
* display: "Error Count",
|
|
33
|
+
* aggregation: "COUNT",
|
|
34
|
+
* },
|
|
35
|
+
* comparisonOperator: "GREATER_THAN",
|
|
36
|
+
* threshold: {
|
|
37
|
+
* value: {
|
|
38
|
+
* doubleValue: 100,
|
|
39
|
+
* },
|
|
40
|
+
* },
|
|
41
|
+
* emptyResultState: "OK",
|
|
42
|
+
* notification: {
|
|
43
|
+
* subscriptions: [{
|
|
44
|
+
* userEmail: "user@example.com",
|
|
45
|
+
* }],
|
|
46
|
+
* notifyOnOk: true,
|
|
47
|
+
* },
|
|
48
|
+
* },
|
|
49
|
+
* schedule: {
|
|
50
|
+
* quartzCronSchedule: "0 0/15 * * * ?",
|
|
51
|
+
* timezoneId: "America/Los_Angeles",
|
|
52
|
+
* pauseStatus: "UNPAUSED",
|
|
53
|
+
* },
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
20
57
|
* ## Import
|
|
21
58
|
*
|
|
22
59
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
package/alertV2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alertV2.js","sourceRoot":"","sources":["../alertV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"alertV2.js","sourceRoot":"","sources":["../alertV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc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E,WAAW,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACjD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACrD,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YACpD,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;;AA1JL,0BA2JC;AA7IG,gBAAgB;AACO,oBAAY,GAAG,kCAAkC,CAAC"}
|
package/app.d.ts
CHANGED
|
@@ -8,6 +8,39 @@ import * as outputs from "./types/output";
|
|
|
8
8
|
*
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as databricks from "@pulumi/databricks";
|
|
14
|
+
*
|
|
15
|
+
* const _this = new databricks.App("this", {
|
|
16
|
+
* name: "my-custom-app",
|
|
17
|
+
* description: "My app",
|
|
18
|
+
* resources: [
|
|
19
|
+
* {
|
|
20
|
+
* name: "sql-warehouse",
|
|
21
|
+
* sqlWarehouse: {
|
|
22
|
+
* id: "e9ca293f79a74b5c",
|
|
23
|
+
* permission: "CAN_MANAGE",
|
|
24
|
+
* },
|
|
25
|
+
* },
|
|
26
|
+
* {
|
|
27
|
+
* name: "serving-endpoint",
|
|
28
|
+
* servingEndpoint: {
|
|
29
|
+
* name: "databricks-meta-llama-3-1-70b-instruct",
|
|
30
|
+
* permission: "CAN_MANAGE",
|
|
31
|
+
* },
|
|
32
|
+
* },
|
|
33
|
+
* {
|
|
34
|
+
* name: "job",
|
|
35
|
+
* job: {
|
|
36
|
+
* id: "1234",
|
|
37
|
+
* permission: "CAN_MANAGE",
|
|
38
|
+
* },
|
|
39
|
+
* },
|
|
40
|
+
* ],
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
11
44
|
* ## Related Resources
|
|
12
45
|
*
|
|
13
46
|
* The following resources are used in the same context:
|
package/app.js
CHANGED
|
@@ -12,6 +12,39 @@ const utilities = require("./utilities");
|
|
|
12
12
|
*
|
|
13
13
|
* ## Example Usage
|
|
14
14
|
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as databricks from "@pulumi/databricks";
|
|
18
|
+
*
|
|
19
|
+
* const _this = new databricks.App("this", {
|
|
20
|
+
* name: "my-custom-app",
|
|
21
|
+
* description: "My app",
|
|
22
|
+
* resources: [
|
|
23
|
+
* {
|
|
24
|
+
* name: "sql-warehouse",
|
|
25
|
+
* sqlWarehouse: {
|
|
26
|
+
* id: "e9ca293f79a74b5c",
|
|
27
|
+
* permission: "CAN_MANAGE",
|
|
28
|
+
* },
|
|
29
|
+
* },
|
|
30
|
+
* {
|
|
31
|
+
* name: "serving-endpoint",
|
|
32
|
+
* servingEndpoint: {
|
|
33
|
+
* name: "databricks-meta-llama-3-1-70b-instruct",
|
|
34
|
+
* permission: "CAN_MANAGE",
|
|
35
|
+
* },
|
|
36
|
+
* },
|
|
37
|
+
* {
|
|
38
|
+
* name: "job",
|
|
39
|
+
* job: {
|
|
40
|
+
* id: "1234",
|
|
41
|
+
* permission: "CAN_MANAGE",
|
|
42
|
+
* },
|
|
43
|
+
* },
|
|
44
|
+
* ],
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
15
48
|
* ## Related Resources
|
|
16
49
|
*
|
|
17
50
|
* The following resources are used in the same context:
|
package/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../app.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../app.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAC1C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgB,EAAE,IAAmC;QAC9G,OAAO,IAAI,GAAG,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAA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@ import * as outputs from "./types/output";
|
|
|
37
37
|
*
|
|
38
38
|
* This example defines a template that requests specific workspace resources with permissions granted.
|
|
39
39
|
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as databricks from "@pulumi/databricks";
|
|
43
|
+
*
|
|
44
|
+
* const resourcesExample = new databricks.AppsSettingsCustomTemplate("resources_example", {
|
|
45
|
+
* name: "my-resource-template",
|
|
46
|
+
* description: "Template that requires secret and SQL warehouse access",
|
|
47
|
+
* gitRepo: "https://github.com/example/resource-app.git",
|
|
48
|
+
* path: "resource-template",
|
|
49
|
+
* gitProvider: "github",
|
|
50
|
+
* manifest: {
|
|
51
|
+
* version: 1,
|
|
52
|
+
* name: "resource-consuming-app",
|
|
53
|
+
* description: "This app requires access to a secret and SQL warehouse.",
|
|
54
|
+
* resourceSpecs: [
|
|
55
|
+
* {
|
|
56
|
+
* name: "my-secret",
|
|
57
|
+
* description: "A secret needed by the app",
|
|
58
|
+
* secretSpec: {
|
|
59
|
+
* permission: "READ",
|
|
60
|
+
* },
|
|
61
|
+
* },
|
|
62
|
+
* {
|
|
63
|
+
* name: "warehouse",
|
|
64
|
+
* description: "Warehouse access",
|
|
65
|
+
* sqlWarehouseSpec: {
|
|
66
|
+
* permission: "CAN_USE",
|
|
67
|
+
* },
|
|
68
|
+
* },
|
|
69
|
+
* ],
|
|
70
|
+
* },
|
|
71
|
+
* });
|
|
72
|
+
* ```
|
|
73
|
+
*
|
|
40
74
|
* ## Import
|
|
41
75
|
*
|
|
42
76
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -41,6 +41,40 @@ const utilities = require("./utilities");
|
|
|
41
41
|
*
|
|
42
42
|
* This example defines a template that requests specific workspace resources with permissions granted.
|
|
43
43
|
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as databricks from "@pulumi/databricks";
|
|
47
|
+
*
|
|
48
|
+
* const resourcesExample = new databricks.AppsSettingsCustomTemplate("resources_example", {
|
|
49
|
+
* name: "my-resource-template",
|
|
50
|
+
* description: "Template that requires secret and SQL warehouse access",
|
|
51
|
+
* gitRepo: "https://github.com/example/resource-app.git",
|
|
52
|
+
* path: "resource-template",
|
|
53
|
+
* gitProvider: "github",
|
|
54
|
+
* manifest: {
|
|
55
|
+
* version: 1,
|
|
56
|
+
* name: "resource-consuming-app",
|
|
57
|
+
* description: "This app requires access to a secret and SQL warehouse.",
|
|
58
|
+
* resourceSpecs: [
|
|
59
|
+
* {
|
|
60
|
+
* name: "my-secret",
|
|
61
|
+
* description: "A secret needed by the app",
|
|
62
|
+
* secretSpec: {
|
|
63
|
+
* permission: "READ",
|
|
64
|
+
* },
|
|
65
|
+
* },
|
|
66
|
+
* {
|
|
67
|
+
* name: "warehouse",
|
|
68
|
+
* description: "Warehouse access",
|
|
69
|
+
* sqlWarehouseSpec: {
|
|
70
|
+
* permission: "CAN_USE",
|
|
71
|
+
* },
|
|
72
|
+
* },
|
|
73
|
+
* ],
|
|
74
|
+
* },
|
|
75
|
+
* });
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
44
78
|
* ## Import
|
|
45
79
|
*
|
|
46
80
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appsSettingsCustomTemplate.js","sourceRoot":"","sources":["../appsSettingsCustomTemplate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"appsSettingsCustomTemplate.js","sourceRoot":"","sources":["../appsSettingsCustomTemplate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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+146,7 @@ export declare class Catalog extends pulumi.CustomResource {
|
|
|
146
146
|
*/
|
|
147
147
|
readonly storageLocation: pulumi.Output<string>;
|
|
148
148
|
/**
|
|
149
|
-
* Managed location of the catalog. Location in cloud storage where data for managed tables will be stored. If not specified, the location will default to the metastore root location. Change forces creation of a new resource.
|
|
149
|
+
* Managed location of the catalog. Location in cloud storage where data for managed tables will be stored. If the URL contains special characters, such as space, `&`, etc., they should be percent-encoded (space > `%20`, etc.). If not specified, the location will default to the metastore root location. Change forces creation of a new resource.
|
|
150
150
|
*/
|
|
151
151
|
readonly storageRoot: pulumi.Output<string | undefined>;
|
|
152
152
|
/**
|
|
@@ -247,7 +247,7 @@ export interface CatalogState {
|
|
|
247
247
|
*/
|
|
248
248
|
storageLocation?: pulumi.Input<string>;
|
|
249
249
|
/**
|
|
250
|
-
* Managed location of the catalog. Location in cloud storage where data for managed tables will be stored. If not specified, the location will default to the metastore root location. Change forces creation of a new resource.
|
|
250
|
+
* Managed location of the catalog. Location in cloud storage where data for managed tables will be stored. If the URL contains special characters, such as space, `&`, etc., they should be percent-encoded (space > `%20`, etc.). If not specified, the location will default to the metastore root location. Change forces creation of a new resource.
|
|
251
251
|
*/
|
|
252
252
|
storageRoot?: pulumi.Input<string>;
|
|
253
253
|
/**
|
|
@@ -319,7 +319,7 @@ export interface CatalogArgs {
|
|
|
319
319
|
*/
|
|
320
320
|
shareName?: pulumi.Input<string>;
|
|
321
321
|
/**
|
|
322
|
-
* Managed location of the catalog. Location in cloud storage where data for managed tables will be stored. If not specified, the location will default to the metastore root location. Change forces creation of a new resource.
|
|
322
|
+
* Managed location of the catalog. Location in cloud storage where data for managed tables will be stored. If the URL contains special characters, such as space, `&`, etc., they should be percent-encoded (space > `%20`, etc.). If not specified, the location will default to the metastore root location. Change forces creation of a new resource.
|
|
323
323
|
*/
|
|
324
324
|
storageRoot?: pulumi.Input<string>;
|
|
325
325
|
}
|
package/clusterPolicy.d.ts
CHANGED
|
@@ -19,6 +19,69 @@ import * as outputs from "./types/output";
|
|
|
19
19
|
* * A user who has both cluster create permission and access to cluster policies can select the Free form policy and policies they have access to.
|
|
20
20
|
* * A user that has access to only cluster policies, can select the policies they have access to.
|
|
21
21
|
*
|
|
22
|
+
* ## Example Usage
|
|
23
|
+
*
|
|
24
|
+
* Let us take a look at an example of how you can manage two teams: Marketing and Data Engineering. In the following scenario we want the marketing team to have a really good query experience, so we enabled delta cache for them. On the other hand we want the data engineering team to be able to utilize bigger clusters so we increased the dbus per hour that they can spend. This strategy allows your marketing users and data engineering users to use Databricks in a self service manner but have a different experience in regards to security and performance. And down the line if you need to add more global settings you can propagate them through the "base cluster policy".
|
|
25
|
+
*
|
|
26
|
+
* `modules/base-cluster-policy/main.tf` could look like:
|
|
27
|
+
*
|
|
28
|
+
* ```typescript
|
|
29
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
30
|
+
* import * as databricks from "@pulumi/databricks";
|
|
31
|
+
* import * as std from "@pulumi/std";
|
|
32
|
+
*
|
|
33
|
+
* const config = new pulumi.Config();
|
|
34
|
+
* // Team that performs the work
|
|
35
|
+
* const team = config.requireObject<any>("team");
|
|
36
|
+
* // Cluster policy overrides
|
|
37
|
+
* const policyOverrides = config.requireObject<any>("policyOverrides");
|
|
38
|
+
* const defaultPolicy = {
|
|
39
|
+
* dbus_per_hour: {
|
|
40
|
+
* type: "range",
|
|
41
|
+
* maxValue: 10,
|
|
42
|
+
* },
|
|
43
|
+
* autotermination_minutes: {
|
|
44
|
+
* type: "fixed",
|
|
45
|
+
* value: 20,
|
|
46
|
+
* hidden: true,
|
|
47
|
+
* },
|
|
48
|
+
* "custom_tags.Team": {
|
|
49
|
+
* type: "fixed",
|
|
50
|
+
* value: team,
|
|
51
|
+
* },
|
|
52
|
+
* };
|
|
53
|
+
* const fairUse = new databricks.ClusterPolicy("fair_use", {
|
|
54
|
+
* name: `${team} cluster policy`,
|
|
55
|
+
* definition: JSON.stringify(std.merge({
|
|
56
|
+
* input: [
|
|
57
|
+
* defaultPolicy,
|
|
58
|
+
* policyOverrides,
|
|
59
|
+
* ],
|
|
60
|
+
* }).then(invoke => invoke.result)),
|
|
61
|
+
* libraries: [
|
|
62
|
+
* {
|
|
63
|
+
* pypi: {
|
|
64
|
+
* "package": "databricks-sdk==0.12.0",
|
|
65
|
+
* },
|
|
66
|
+
* },
|
|
67
|
+
* {
|
|
68
|
+
* maven: {
|
|
69
|
+
* coordinates: "com.oracle.database.jdbc:ojdbc8:XXXX",
|
|
70
|
+
* },
|
|
71
|
+
* },
|
|
72
|
+
* ],
|
|
73
|
+
* });
|
|
74
|
+
* const canUseClusterPolicyinstanceProfile = new databricks.Permissions("can_use_cluster_policyinstance_profile", {
|
|
75
|
+
* clusterPolicyId: fairUse.id,
|
|
76
|
+
* accessControls: [{
|
|
77
|
+
* groupName: team,
|
|
78
|
+
* permissionLevel: "CAN_USE",
|
|
79
|
+
* }],
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
82
|
+
*
|
|
83
|
+
* And custom instances of that base policy module for our marketing and data engineering teams would look like:
|
|
84
|
+
*
|
|
22
85
|
* ### Overriding the built-in cluster policies
|
|
23
86
|
*
|
|
24
87
|
* You can override built-in cluster policies by creating a `databricks.ClusterPolicy` resource with following attributes:
|
package/clusterPolicy.js
CHANGED
|
@@ -23,6 +23,69 @@ const utilities = require("./utilities");
|
|
|
23
23
|
* * A user who has both cluster create permission and access to cluster policies can select the Free form policy and policies they have access to.
|
|
24
24
|
* * A user that has access to only cluster policies, can select the policies they have access to.
|
|
25
25
|
*
|
|
26
|
+
* ## Example Usage
|
|
27
|
+
*
|
|
28
|
+
* Let us take a look at an example of how you can manage two teams: Marketing and Data Engineering. In the following scenario we want the marketing team to have a really good query experience, so we enabled delta cache for them. On the other hand we want the data engineering team to be able to utilize bigger clusters so we increased the dbus per hour that they can spend. This strategy allows your marketing users and data engineering users to use Databricks in a self service manner but have a different experience in regards to security and performance. And down the line if you need to add more global settings you can propagate them through the "base cluster policy".
|
|
29
|
+
*
|
|
30
|
+
* `modules/base-cluster-policy/main.tf` could look like:
|
|
31
|
+
*
|
|
32
|
+
* ```typescript
|
|
33
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
34
|
+
* import * as databricks from "@pulumi/databricks";
|
|
35
|
+
* import * as std from "@pulumi/std";
|
|
36
|
+
*
|
|
37
|
+
* const config = new pulumi.Config();
|
|
38
|
+
* // Team that performs the work
|
|
39
|
+
* const team = config.requireObject<any>("team");
|
|
40
|
+
* // Cluster policy overrides
|
|
41
|
+
* const policyOverrides = config.requireObject<any>("policyOverrides");
|
|
42
|
+
* const defaultPolicy = {
|
|
43
|
+
* dbus_per_hour: {
|
|
44
|
+
* type: "range",
|
|
45
|
+
* maxValue: 10,
|
|
46
|
+
* },
|
|
47
|
+
* autotermination_minutes: {
|
|
48
|
+
* type: "fixed",
|
|
49
|
+
* value: 20,
|
|
50
|
+
* hidden: true,
|
|
51
|
+
* },
|
|
52
|
+
* "custom_tags.Team": {
|
|
53
|
+
* type: "fixed",
|
|
54
|
+
* value: team,
|
|
55
|
+
* },
|
|
56
|
+
* };
|
|
57
|
+
* const fairUse = new databricks.ClusterPolicy("fair_use", {
|
|
58
|
+
* name: `${team} cluster policy`,
|
|
59
|
+
* definition: JSON.stringify(std.merge({
|
|
60
|
+
* input: [
|
|
61
|
+
* defaultPolicy,
|
|
62
|
+
* policyOverrides,
|
|
63
|
+
* ],
|
|
64
|
+
* }).then(invoke => invoke.result)),
|
|
65
|
+
* libraries: [
|
|
66
|
+
* {
|
|
67
|
+
* pypi: {
|
|
68
|
+
* "package": "databricks-sdk==0.12.0",
|
|
69
|
+
* },
|
|
70
|
+
* },
|
|
71
|
+
* {
|
|
72
|
+
* maven: {
|
|
73
|
+
* coordinates: "com.oracle.database.jdbc:ojdbc8:XXXX",
|
|
74
|
+
* },
|
|
75
|
+
* },
|
|
76
|
+
* ],
|
|
77
|
+
* });
|
|
78
|
+
* const canUseClusterPolicyinstanceProfile = new databricks.Permissions("can_use_cluster_policyinstance_profile", {
|
|
79
|
+
* clusterPolicyId: fairUse.id,
|
|
80
|
+
* accessControls: [{
|
|
81
|
+
* groupName: team,
|
|
82
|
+
* permissionLevel: "CAN_USE",
|
|
83
|
+
* }],
|
|
84
|
+
* });
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* And custom instances of that base policy module for our marketing and data engineering teams would look like:
|
|
88
|
+
*
|
|
26
89
|
* ### Overriding the built-in cluster policies
|
|
27
90
|
*
|
|
28
91
|
* You can override built-in cluster policies by creating a `databricks.ClusterPolicy` resource with following attributes:
|
package/clusterPolicy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clusterPolicy.js","sourceRoot":"","sources":["../clusterPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"clusterPolicy.js","sourceRoot":"","sources":["../clusterPolicy.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0JG;AACH,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAA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GAAG,IAAI,EAAE,+BAA+B,CAAC;YAC1F,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA5FL,sCA6FC;AA/EG,gBAAgB;AACO,0BAAY,GAAG,8CAA8C,CAAC"}
|
package/config/vars.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const databricksCliPath: string | undefined;
|
|
|
18
18
|
export declare const databricksIdTokenFilepath: string | undefined;
|
|
19
19
|
export declare const debugHeaders: boolean | undefined;
|
|
20
20
|
export declare const debugTruncateBytes: number | undefined;
|
|
21
|
+
export declare const experimentalIsUnifiedHost: boolean | undefined;
|
|
21
22
|
export declare const googleCredentials: string | undefined;
|
|
22
23
|
export declare const googleServiceAccount: string | undefined;
|
|
23
24
|
export declare const host: string | undefined;
|
|
@@ -34,3 +35,4 @@ export declare const skipVerify: boolean | undefined;
|
|
|
34
35
|
export declare const token: string | undefined;
|
|
35
36
|
export declare const username: string | undefined;
|
|
36
37
|
export declare const warehouseId: string | undefined;
|
|
38
|
+
export declare const workspaceId: string | undefined;
|
package/config/vars.js
CHANGED
|
@@ -124,6 +124,12 @@ Object.defineProperty(exports, "debugTruncateBytes", {
|
|
|
124
124
|
},
|
|
125
125
|
enumerable: true,
|
|
126
126
|
});
|
|
127
|
+
Object.defineProperty(exports, "experimentalIsUnifiedHost", {
|
|
128
|
+
get() {
|
|
129
|
+
return __config.getObject("experimentalIsUnifiedHost");
|
|
130
|
+
},
|
|
131
|
+
enumerable: true,
|
|
132
|
+
});
|
|
127
133
|
Object.defineProperty(exports, "googleCredentials", {
|
|
128
134
|
get() {
|
|
129
135
|
return __config.get("googleCredentials");
|
|
@@ -220,4 +226,10 @@ Object.defineProperty(exports, "warehouseId", {
|
|
|
220
226
|
},
|
|
221
227
|
enumerable: true,
|
|
222
228
|
});
|
|
229
|
+
Object.defineProperty(exports, "workspaceId", {
|
|
230
|
+
get() {
|
|
231
|
+
return __config.get("workspaceId");
|
|
232
|
+
},
|
|
233
|
+
enumerable: true,
|
|
234
|
+
});
|
|
223
235
|
//# sourceMappingURL=vars.js.map
|