@pulumi/databricks 1.27.0-alpha.1701790318 → 1.27.0
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/catalog.d.ts +12 -3
- package/catalog.js +3 -3
- package/catalog.js.map +1 -1
- package/catalogWorkspaceBinding.d.ts +46 -10
- package/catalogWorkspaceBinding.js +7 -7
- package/catalogWorkspaceBinding.js.map +1 -1
- package/cluster.d.ts +3 -3
- package/clusterPolicy.d.ts +46 -1
- package/clusterPolicy.js +33 -0
- package/clusterPolicy.js.map +1 -1
- package/connection.d.ts +3 -3
- package/defaultNamespaceSetting.d.ts +74 -0
- package/defaultNamespaceSetting.js +74 -0
- package/defaultNamespaceSetting.js.map +1 -0
- package/getAwsCrossAccountPolicy.d.ts +0 -4
- package/getAwsCrossAccountPolicy.js +0 -4
- package/getAwsCrossAccountPolicy.js.map +1 -1
- package/getCurrentConfig.d.ts +81 -0
- package/getCurrentConfig.js +68 -0
- package/getCurrentConfig.js.map +1 -0
- package/getInstanceProfiles.d.ts +66 -0
- package/getInstanceProfiles.js +50 -0
- package/getInstanceProfiles.js.map +1 -0
- package/getMetastore.d.ts +2 -0
- package/getMetastore.js +2 -0
- package/getMetastore.js.map +1 -1
- package/getMlflowModel.d.ts +106 -0
- package/getMlflowModel.js +34 -0
- package/getMlflowModel.js.map +1 -0
- package/group.d.ts +2 -0
- package/group.js +2 -0
- package/group.js.map +1 -1
- package/index.d.ts +12 -0
- package/index.js +18 -3
- package/index.js.map +1 -1
- package/job.d.ts +28 -10
- package/job.js +4 -0
- package/job.js.map +1 -1
- package/metastore.d.ts +8 -6
- package/metastore.js +2 -3
- package/metastore.js.map +1 -1
- package/metastoreDataAccess.d.ts +9 -42
- package/metastoreDataAccess.js +1 -4
- package/metastoreDataAccess.js.map +1 -1
- package/metastoreProvider.d.ts +3 -3
- package/metastoreProvider.js +3 -3
- package/mlflowModel.d.ts +0 -9
- package/mlflowModel.js +0 -6
- package/mlflowModel.js.map +1 -1
- package/mwsLogDelivery.d.ts +2 -4
- package/mwsLogDelivery.js +2 -4
- package/mwsLogDelivery.js.map +1 -1
- package/mwsPrivateAccessSettings.d.ts +9 -6
- package/mwsPrivateAccessSettings.js +9 -6
- package/mwsPrivateAccessSettings.js.map +1 -1
- package/package.json +1 -1
- package/recipient.d.ts +18 -6
- package/recipient.js +2 -0
- package/recipient.js.map +1 -1
- package/schema.d.ts +3 -3
- package/schema.js +3 -3
- package/servicePrincipal.d.ts +2 -0
- package/servicePrincipal.js +2 -0
- package/servicePrincipal.js.map +1 -1
- package/sqlDashboard.d.ts +3 -0
- package/sqlDashboard.js +2 -0
- package/sqlDashboard.js.map +1 -1
- package/sqlPermissions.d.ts +3 -3
- package/storageCredential.d.ts +0 -6
- package/storageCredential.js.map +1 -1
- package/types/input.d.ts +311 -73
- package/types/output.d.ts +222 -67
- package/user.d.ts +2 -0
- package/user.js +2 -0
- package/user.js.map +1 -1
package/catalog.d.ts
CHANGED
|
@@ -18,9 +18,9 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
18
18
|
*
|
|
19
19
|
* The following resources are used in the same context:
|
|
20
20
|
*
|
|
21
|
-
* * databricks.
|
|
22
|
-
* * databricks.
|
|
23
|
-
* * databricks.
|
|
21
|
+
* * databricks.getTables data to list tables within Unity Catalog.
|
|
22
|
+
* * databricks.getSchemas data to list schemas within Unity Catalog.
|
|
23
|
+
* * databricks.getCatalogs data to list catalogs within Unity Catalog.
|
|
24
24
|
*
|
|
25
25
|
* ## Import
|
|
26
26
|
*
|
|
@@ -62,6 +62,9 @@ export declare class Catalog extends pulumi.CustomResource {
|
|
|
62
62
|
* Whether the catalog is accessible from all workspaces or a specific set of workspaces. Can be `ISOLATED` or `OPEN`. Setting the catalog to `ISOLATED` will automatically allow access from the current workspace.
|
|
63
63
|
*/
|
|
64
64
|
readonly isolationMode: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* ID of the metastore.
|
|
67
|
+
*/
|
|
65
68
|
readonly metastoreId: pulumi.Output<string>;
|
|
66
69
|
/**
|
|
67
70
|
* Name of Catalog relative to parent metastore.
|
|
@@ -124,6 +127,9 @@ export interface CatalogState {
|
|
|
124
127
|
* Whether the catalog is accessible from all workspaces or a specific set of workspaces. Can be `ISOLATED` or `OPEN`. Setting the catalog to `ISOLATED` will automatically allow access from the current workspace.
|
|
125
128
|
*/
|
|
126
129
|
isolationMode?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* ID of the metastore.
|
|
132
|
+
*/
|
|
127
133
|
metastoreId?: pulumi.Input<string>;
|
|
128
134
|
/**
|
|
129
135
|
* Name of Catalog relative to parent metastore.
|
|
@@ -178,6 +184,9 @@ export interface CatalogArgs {
|
|
|
178
184
|
* Whether the catalog is accessible from all workspaces or a specific set of workspaces. Can be `ISOLATED` or `OPEN`. Setting the catalog to `ISOLATED` will automatically allow access from the current workspace.
|
|
179
185
|
*/
|
|
180
186
|
isolationMode?: pulumi.Input<string>;
|
|
187
|
+
/**
|
|
188
|
+
* ID of the metastore.
|
|
189
|
+
*/
|
|
181
190
|
metastoreId?: pulumi.Input<string>;
|
|
182
191
|
/**
|
|
183
192
|
* Name of Catalog relative to parent metastore.
|
package/catalog.js
CHANGED
|
@@ -24,9 +24,9 @@ const utilities = require("./utilities");
|
|
|
24
24
|
*
|
|
25
25
|
* The following resources are used in the same context:
|
|
26
26
|
*
|
|
27
|
-
* * databricks.
|
|
28
|
-
* * databricks.
|
|
29
|
-
* * databricks.
|
|
27
|
+
* * databricks.getTables data to list tables within Unity Catalog.
|
|
28
|
+
* * databricks.getSchemas data to list schemas within Unity Catalog.
|
|
29
|
+
* * databricks.getCatalogs data to list catalogs within Unity Catalog.
|
|
30
30
|
*
|
|
31
31
|
* ## Import
|
|
32
32
|
*
|
package/catalog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../catalog.ts"],"names":[],"mappings":";AAAA,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AC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;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;;AAvHL,0BAwHC;AA1GG,gBAAgB;AACO,oBAAY,GAAG,kCAAkC,CAAC"}
|
|
@@ -8,7 +8,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
*
|
|
9
9
|
* const sandboxCatalog = new databricks.Catalog("sandboxCatalog", {isolationMode: "ISOLATED"});
|
|
10
10
|
* const sandboxCatalogWorkspaceBinding = new databricks.CatalogWorkspaceBinding("sandboxCatalogWorkspaceBinding", {
|
|
11
|
-
*
|
|
11
|
+
* securableName: sandboxCatalog.name,
|
|
12
12
|
* workspaceId: databricks_mws_workspaces.other.workspace_id,
|
|
13
13
|
* });
|
|
14
14
|
* ```
|
|
@@ -34,13 +34,25 @@ export declare class CatalogWorkspaceBinding extends pulumi.CustomResource {
|
|
|
34
34
|
*/
|
|
35
35
|
static isInstance(obj: any): obj is CatalogWorkspaceBinding;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Binding mode. Default to `BINDING_TYPE_READ_WRITE`. Possible values are `BINDING_TYPE_READ_ONLY`, `BINDING_TYPE_READ_WRITE`
|
|
38
38
|
*/
|
|
39
|
-
readonly
|
|
39
|
+
readonly bindingType: pulumi.Output<string | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Please use 'securable_name' and 'securable_type instead.
|
|
42
|
+
*/
|
|
43
|
+
readonly catalogName: pulumi.Output<string | undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* Name of securable. Change forces creation of a new resource.
|
|
46
|
+
*/
|
|
47
|
+
readonly securableName: pulumi.Output<string | undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* Type of securable. Default to `catalog`. Change forces creation of a new resource.
|
|
50
|
+
*/
|
|
51
|
+
readonly securableType: pulumi.Output<string | undefined>;
|
|
40
52
|
/**
|
|
41
53
|
* ID of the workspace. Change forces creation of a new resource.
|
|
42
54
|
*/
|
|
43
|
-
readonly workspaceId: pulumi.Output<
|
|
55
|
+
readonly workspaceId: pulumi.Output<number | undefined>;
|
|
44
56
|
/**
|
|
45
57
|
* Create a CatalogWorkspaceBinding resource with the given unique name, arguments, and options.
|
|
46
58
|
*
|
|
@@ -48,31 +60,55 @@ export declare class CatalogWorkspaceBinding extends pulumi.CustomResource {
|
|
|
48
60
|
* @param args The arguments to use to populate this resource's properties.
|
|
49
61
|
* @param opts A bag of options that control this resource's behavior.
|
|
50
62
|
*/
|
|
51
|
-
constructor(name: string, args
|
|
63
|
+
constructor(name: string, args?: CatalogWorkspaceBindingArgs, opts?: pulumi.CustomResourceOptions);
|
|
52
64
|
}
|
|
53
65
|
/**
|
|
54
66
|
* Input properties used for looking up and filtering CatalogWorkspaceBinding resources.
|
|
55
67
|
*/
|
|
56
68
|
export interface CatalogWorkspaceBindingState {
|
|
57
69
|
/**
|
|
58
|
-
*
|
|
70
|
+
* Binding mode. Default to `BINDING_TYPE_READ_WRITE`. Possible values are `BINDING_TYPE_READ_ONLY`, `BINDING_TYPE_READ_WRITE`
|
|
71
|
+
*/
|
|
72
|
+
bindingType?: pulumi.Input<string>;
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated Please use 'securable_name' and 'securable_type instead.
|
|
59
75
|
*/
|
|
60
76
|
catalogName?: pulumi.Input<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Name of securable. Change forces creation of a new resource.
|
|
79
|
+
*/
|
|
80
|
+
securableName?: pulumi.Input<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Type of securable. Default to `catalog`. Change forces creation of a new resource.
|
|
83
|
+
*/
|
|
84
|
+
securableType?: pulumi.Input<string>;
|
|
61
85
|
/**
|
|
62
86
|
* ID of the workspace. Change forces creation of a new resource.
|
|
63
87
|
*/
|
|
64
|
-
workspaceId?: pulumi.Input<
|
|
88
|
+
workspaceId?: pulumi.Input<number>;
|
|
65
89
|
}
|
|
66
90
|
/**
|
|
67
91
|
* The set of arguments for constructing a CatalogWorkspaceBinding resource.
|
|
68
92
|
*/
|
|
69
93
|
export interface CatalogWorkspaceBindingArgs {
|
|
70
94
|
/**
|
|
71
|
-
*
|
|
95
|
+
* Binding mode. Default to `BINDING_TYPE_READ_WRITE`. Possible values are `BINDING_TYPE_READ_ONLY`, `BINDING_TYPE_READ_WRITE`
|
|
96
|
+
*/
|
|
97
|
+
bindingType?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated Please use 'securable_name' and 'securable_type instead.
|
|
100
|
+
*/
|
|
101
|
+
catalogName?: pulumi.Input<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Name of securable. Change forces creation of a new resource.
|
|
104
|
+
*/
|
|
105
|
+
securableName?: pulumi.Input<string>;
|
|
106
|
+
/**
|
|
107
|
+
* Type of securable. Default to `catalog`. Change forces creation of a new resource.
|
|
72
108
|
*/
|
|
73
|
-
|
|
109
|
+
securableType?: pulumi.Input<string>;
|
|
74
110
|
/**
|
|
75
111
|
* ID of the workspace. Change forces creation of a new resource.
|
|
76
112
|
*/
|
|
77
|
-
workspaceId
|
|
113
|
+
workspaceId?: pulumi.Input<number>;
|
|
78
114
|
}
|
|
@@ -14,7 +14,7 @@ const utilities = require("./utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* const sandboxCatalog = new databricks.Catalog("sandboxCatalog", {isolationMode: "ISOLATED"});
|
|
16
16
|
* const sandboxCatalogWorkspaceBinding = new databricks.CatalogWorkspaceBinding("sandboxCatalogWorkspaceBinding", {
|
|
17
|
-
*
|
|
17
|
+
* securableName: sandboxCatalog.name,
|
|
18
18
|
* workspaceId: databricks_mws_workspaces.other.workspace_id,
|
|
19
19
|
* });
|
|
20
20
|
* ```
|
|
@@ -51,18 +51,18 @@ class CatalogWorkspaceBinding extends pulumi.CustomResource {
|
|
|
51
51
|
opts = opts || {};
|
|
52
52
|
if (opts.id) {
|
|
53
53
|
const state = argsOrState;
|
|
54
|
+
resourceInputs["bindingType"] = state ? state.bindingType : undefined;
|
|
54
55
|
resourceInputs["catalogName"] = state ? state.catalogName : undefined;
|
|
56
|
+
resourceInputs["securableName"] = state ? state.securableName : undefined;
|
|
57
|
+
resourceInputs["securableType"] = state ? state.securableType : undefined;
|
|
55
58
|
resourceInputs["workspaceId"] = state ? state.workspaceId : undefined;
|
|
56
59
|
}
|
|
57
60
|
else {
|
|
58
61
|
const args = argsOrState;
|
|
59
|
-
|
|
60
|
-
throw new Error("Missing required property 'catalogName'");
|
|
61
|
-
}
|
|
62
|
-
if ((!args || args.workspaceId === undefined) && !opts.urn) {
|
|
63
|
-
throw new Error("Missing required property 'workspaceId'");
|
|
64
|
-
}
|
|
62
|
+
resourceInputs["bindingType"] = args ? args.bindingType : undefined;
|
|
65
63
|
resourceInputs["catalogName"] = args ? args.catalogName : undefined;
|
|
64
|
+
resourceInputs["securableName"] = args ? args.securableName : undefined;
|
|
65
|
+
resourceInputs["securableType"] = args ? args.securableType : undefined;
|
|
66
66
|
resourceInputs["workspaceId"] = args ? args.workspaceId : undefined;
|
|
67
67
|
}
|
|
68
68
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogWorkspaceBinding.js","sourceRoot":"","sources":["../catalogWorkspaceBinding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,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,uBAAuB,CAAC,YAAY,CAAC;IACxE,CAAC;
|
|
1
|
+
{"version":3,"file":"catalogWorkspaceBinding.js","sourceRoot":"","sources":["../catalogWorkspaceBinding.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoC,EAAE,IAAmC;QAClI,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK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AAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;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;;AA7EL,0DA8EC;AAhEG,gBAAgB;AACO,oCAAY,GAAG,kEAAkE,CAAC"}
|
package/cluster.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare class Cluster extends pulumi.CustomResource {
|
|
|
51
51
|
[key: string]: any;
|
|
52
52
|
} | undefined>;
|
|
53
53
|
/**
|
|
54
|
-
* Select the security features of the cluster. [Unity Catalog requires](https://docs.databricks.com/data-governance/unity-catalog/compute.html#create-clusters--sql-warehouses-with-unity-catalog-access) `SINGLE_USER` or `USER_ISOLATION` mode. `LEGACY_PASSTHROUGH` for passthrough cluster and `LEGACY_TABLE_ACL` for Table ACL cluster.
|
|
54
|
+
* Select the security features of the cluster. [Unity Catalog requires](https://docs.databricks.com/data-governance/unity-catalog/compute.html#create-clusters--sql-warehouses-with-unity-catalog-access) `SINGLE_USER` or `USER_ISOLATION` mode. `LEGACY_PASSTHROUGH` for passthrough cluster and `LEGACY_TABLE_ACL` for Table ACL cluster. If omitted, no security features are enabled. In the Databricks UI, this has been recently been renamed *Access Mode* and `USER_ISOLATION` has been renamed *Shared*, but use these terms here.
|
|
55
55
|
*/
|
|
56
56
|
readonly dataSecurityMode: pulumi.Output<string | undefined>;
|
|
57
57
|
/**
|
|
@@ -202,7 +202,7 @@ export interface ClusterState {
|
|
|
202
202
|
[key: string]: any;
|
|
203
203
|
}>;
|
|
204
204
|
/**
|
|
205
|
-
* Select the security features of the cluster. [Unity Catalog requires](https://docs.databricks.com/data-governance/unity-catalog/compute.html#create-clusters--sql-warehouses-with-unity-catalog-access) `SINGLE_USER` or `USER_ISOLATION` mode. `LEGACY_PASSTHROUGH` for passthrough cluster and `LEGACY_TABLE_ACL` for Table ACL cluster.
|
|
205
|
+
* Select the security features of the cluster. [Unity Catalog requires](https://docs.databricks.com/data-governance/unity-catalog/compute.html#create-clusters--sql-warehouses-with-unity-catalog-access) `SINGLE_USER` or `USER_ISOLATION` mode. `LEGACY_PASSTHROUGH` for passthrough cluster and `LEGACY_TABLE_ACL` for Table ACL cluster. If omitted, no security features are enabled. In the Databricks UI, this has been recently been renamed *Access Mode* and `USER_ISOLATION` has been renamed *Shared*, but use these terms here.
|
|
206
206
|
*/
|
|
207
207
|
dataSecurityMode?: pulumi.Input<string>;
|
|
208
208
|
/**
|
|
@@ -345,7 +345,7 @@ export interface ClusterArgs {
|
|
|
345
345
|
[key: string]: any;
|
|
346
346
|
}>;
|
|
347
347
|
/**
|
|
348
|
-
* Select the security features of the cluster. [Unity Catalog requires](https://docs.databricks.com/data-governance/unity-catalog/compute.html#create-clusters--sql-warehouses-with-unity-catalog-access) `SINGLE_USER` or `USER_ISOLATION` mode. `LEGACY_PASSTHROUGH` for passthrough cluster and `LEGACY_TABLE_ACL` for Table ACL cluster.
|
|
348
|
+
* Select the security features of the cluster. [Unity Catalog requires](https://docs.databricks.com/data-governance/unity-catalog/compute.html#create-clusters--sql-warehouses-with-unity-catalog-access) `SINGLE_USER` or `USER_ISOLATION` mode. `LEGACY_PASSTHROUGH` for passthrough cluster and `LEGACY_TABLE_ACL` for Table ACL cluster. If omitted, no security features are enabled. In the Databricks UI, this has been recently been renamed *Access Mode* and `USER_ISOLATION` has been renamed *Shared*, but use these terms here.
|
|
349
349
|
*/
|
|
350
350
|
dataSecurityMode?: pulumi.Input<string>;
|
|
351
351
|
dockerImage?: pulumi.Input<inputs.ClusterDockerImage>;
|
package/clusterPolicy.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
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
5
|
* This resource creates a cluster policy, which limits the ability to create clusters based on a set of rules. The policy rules limit the attributes or attribute values available for cluster creation. cluster policies have ACLs that limit their use to specific users and groups. Only admin users can create, edit, and delete policies. Admin users also have access to all policies.
|
|
4
6
|
*
|
|
@@ -15,6 +17,37 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
15
17
|
* * 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.
|
|
16
18
|
* * A user that has access to only cluster policies, can select the policies they have access to.
|
|
17
19
|
*
|
|
20
|
+
* ## Example Usage
|
|
21
|
+
* ### Overriding the built-in cluster policies
|
|
22
|
+
*
|
|
23
|
+
* You can override built-in cluster policies by creating a `databricks.ClusterPolicy` resource with following attributes:
|
|
24
|
+
*
|
|
25
|
+
* * `name` - the name of the built-in cluster policy.
|
|
26
|
+
* * `policyFamilyId` - the ID of the cluster policy family used for built-in cluster policy.
|
|
27
|
+
* * `policyFamilyDefinitionOverrides` - settings to override in the built-in cluster policy.
|
|
28
|
+
*
|
|
29
|
+
* You can obtain the list of defined cluster policies families using the `databricks policy-families list` command of the new [Databricks CLI](https://docs.databricks.com/en/dev-tools/cli/index.html), or via [list policy families](https://docs.databricks.com/api/workspace/policyfamilies/list) REST API.
|
|
30
|
+
*
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
33
|
+
* import * as databricks from "@pulumi/databricks";
|
|
34
|
+
*
|
|
35
|
+
* const personalVmOverride = {
|
|
36
|
+
* autotermination_minutes: {
|
|
37
|
+
* type: "fixed",
|
|
38
|
+
* value: 220,
|
|
39
|
+
* hidden: true,
|
|
40
|
+
* },
|
|
41
|
+
* "custom_tags.Team": {
|
|
42
|
+
* type: "fixed",
|
|
43
|
+
* value: _var.team,
|
|
44
|
+
* },
|
|
45
|
+
* };
|
|
46
|
+
* const personalVm = new databricks.ClusterPolicy("personalVm", {
|
|
47
|
+
* policyFamilyId: "personal-vm",
|
|
48
|
+
* policyFamilyDefinitionOverrides: JSON.stringify(personal_vm_override),
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
18
51
|
* ## Related Resources
|
|
19
52
|
*
|
|
20
53
|
* The following resources are often used in the same context:
|
|
@@ -62,11 +95,15 @@ export declare class ClusterPolicy extends pulumi.CustomResource {
|
|
|
62
95
|
/**
|
|
63
96
|
* Policy definition: JSON document expressed in [Databricks Policy Definition Language](https://docs.databricks.com/administration-guide/clusters/policies.html#cluster-policy-definition). Cannot be used with `policyFamilyId`
|
|
64
97
|
*/
|
|
65
|
-
readonly definition: pulumi.Output<string
|
|
98
|
+
readonly definition: pulumi.Output<string>;
|
|
66
99
|
/**
|
|
67
100
|
* Additional human-readable description of the cluster policy.
|
|
68
101
|
*/
|
|
69
102
|
readonly description: pulumi.Output<string | undefined>;
|
|
103
|
+
/**
|
|
104
|
+
* blocks defining individual libraries that will be installed on the cluster that uses a given cluster policy. See databricks.Cluster for more details about supported library types.
|
|
105
|
+
*/
|
|
106
|
+
readonly libraries: pulumi.Output<outputs.ClusterPolicyLibrary[] | undefined>;
|
|
70
107
|
/**
|
|
71
108
|
* Maximum number of clusters allowed per user. When omitted, there is no limit. If specified, value must be greater than zero.
|
|
72
109
|
*/
|
|
@@ -108,6 +145,10 @@ export interface ClusterPolicyState {
|
|
|
108
145
|
* Additional human-readable description of the cluster policy.
|
|
109
146
|
*/
|
|
110
147
|
description?: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* blocks defining individual libraries that will be installed on the cluster that uses a given cluster policy. See databricks.Cluster for more details about supported library types.
|
|
150
|
+
*/
|
|
151
|
+
libraries?: pulumi.Input<pulumi.Input<inputs.ClusterPolicyLibrary>[]>;
|
|
111
152
|
/**
|
|
112
153
|
* Maximum number of clusters allowed per user. When omitted, there is no limit. If specified, value must be greater than zero.
|
|
113
154
|
*/
|
|
@@ -141,6 +182,10 @@ export interface ClusterPolicyArgs {
|
|
|
141
182
|
* Additional human-readable description of the cluster policy.
|
|
142
183
|
*/
|
|
143
184
|
description?: pulumi.Input<string>;
|
|
185
|
+
/**
|
|
186
|
+
* blocks defining individual libraries that will be installed on the cluster that uses a given cluster policy. See databricks.Cluster for more details about supported library types.
|
|
187
|
+
*/
|
|
188
|
+
libraries?: pulumi.Input<pulumi.Input<inputs.ClusterPolicyLibrary>[]>;
|
|
144
189
|
/**
|
|
145
190
|
* Maximum number of clusters allowed per user. When omitted, there is no limit. If specified, value must be greater than zero.
|
|
146
191
|
*/
|
package/clusterPolicy.js
CHANGED
|
@@ -21,6 +21,37 @@ const utilities = require("./utilities");
|
|
|
21
21
|
* * 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.
|
|
22
22
|
* * A user that has access to only cluster policies, can select the policies they have access to.
|
|
23
23
|
*
|
|
24
|
+
* ## Example Usage
|
|
25
|
+
* ### Overriding the built-in cluster policies
|
|
26
|
+
*
|
|
27
|
+
* You can override built-in cluster policies by creating a `databricks.ClusterPolicy` resource with following attributes:
|
|
28
|
+
*
|
|
29
|
+
* * `name` - the name of the built-in cluster policy.
|
|
30
|
+
* * `policyFamilyId` - the ID of the cluster policy family used for built-in cluster policy.
|
|
31
|
+
* * `policyFamilyDefinitionOverrides` - settings to override in the built-in cluster policy.
|
|
32
|
+
*
|
|
33
|
+
* You can obtain the list of defined cluster policies families using the `databricks policy-families list` command of the new [Databricks CLI](https://docs.databricks.com/en/dev-tools/cli/index.html), or via [list policy families](https://docs.databricks.com/api/workspace/policyfamilies/list) REST API.
|
|
34
|
+
*
|
|
35
|
+
* ```typescript
|
|
36
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
37
|
+
* import * as databricks from "@pulumi/databricks";
|
|
38
|
+
*
|
|
39
|
+
* const personalVmOverride = {
|
|
40
|
+
* autotermination_minutes: {
|
|
41
|
+
* type: "fixed",
|
|
42
|
+
* value: 220,
|
|
43
|
+
* hidden: true,
|
|
44
|
+
* },
|
|
45
|
+
* "custom_tags.Team": {
|
|
46
|
+
* type: "fixed",
|
|
47
|
+
* value: _var.team,
|
|
48
|
+
* },
|
|
49
|
+
* };
|
|
50
|
+
* const personalVm = new databricks.ClusterPolicy("personalVm", {
|
|
51
|
+
* policyFamilyId: "personal-vm",
|
|
52
|
+
* policyFamilyDefinitionOverrides: JSON.stringify(personal_vm_override),
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
24
55
|
* ## Related Resources
|
|
25
56
|
*
|
|
26
57
|
* The following resources are often used in the same context:
|
|
@@ -79,6 +110,7 @@ class ClusterPolicy extends pulumi.CustomResource {
|
|
|
79
110
|
const state = argsOrState;
|
|
80
111
|
resourceInputs["definition"] = state ? state.definition : undefined;
|
|
81
112
|
resourceInputs["description"] = state ? state.description : undefined;
|
|
113
|
+
resourceInputs["libraries"] = state ? state.libraries : undefined;
|
|
82
114
|
resourceInputs["maxClustersPerUser"] = state ? state.maxClustersPerUser : undefined;
|
|
83
115
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
84
116
|
resourceInputs["policyFamilyDefinitionOverrides"] = state ? state.policyFamilyDefinitionOverrides : undefined;
|
|
@@ -89,6 +121,7 @@ class ClusterPolicy extends pulumi.CustomResource {
|
|
|
89
121
|
const args = argsOrState;
|
|
90
122
|
resourceInputs["definition"] = args ? args.definition : undefined;
|
|
91
123
|
resourceInputs["description"] = args ? args.description : undefined;
|
|
124
|
+
resourceInputs["libraries"] = args ? args.libraries : undefined;
|
|
92
125
|
resourceInputs["maxClustersPerUser"] = args ? args.maxClustersPerUser : undefined;
|
|
93
126
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
94
127
|
resourceInputs["policyFamilyDefinitionOverrides"] = args ? args.policyFamilyDefinitionOverrides : undefined;
|
package/clusterPolicy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clusterPolicy.js","sourceRoot":"","sources":["../clusterPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"clusterPolicy.js","sourceRoot":"","sources":["../clusterPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,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,aAAa,CAAC,YAAY,CAAC;IAC9D,CAAC;IA2CD,YAAY,IAAY,EAAE,WAAoD,EAAE,IAAmC;QAC/G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,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AAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,iCAAiC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5G,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1E,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;;AA/FL,sCAgGC;AAlFG,gBAAgB;AACO,0BAAY,GAAG,8CAA8C,CAAC"}
|
package/connection.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export declare class Connection extends pulumi.CustomResource {
|
|
|
57
57
|
*/
|
|
58
58
|
readonly comment: pulumi.Output<string | undefined>;
|
|
59
59
|
/**
|
|
60
|
-
* Connection type. `MYSQL` `POSTGRESQL` `SNOWFLAKE` `REDSHIFT` `SQLDW` `SQLSERVER` or `DATABRICKS` are supported. [Up-to-date list of connection type supported](https://docs.databricks.com/query-federation/index.html#supported-data-sources)
|
|
60
|
+
* Connection type. `BIGQUERY` `MYSQL` `POSTGRESQL` `SNOWFLAKE` `REDSHIFT` `SQLDW` `SQLSERVER` or `DATABRICKS` are supported. [Up-to-date list of connection type supported](https://docs.databricks.com/query-federation/index.html#supported-data-sources)
|
|
61
61
|
*/
|
|
62
62
|
readonly connectionType: pulumi.Output<string>;
|
|
63
63
|
readonly metastoreId: pulumi.Output<string>;
|
|
@@ -100,7 +100,7 @@ export interface ConnectionState {
|
|
|
100
100
|
*/
|
|
101
101
|
comment?: pulumi.Input<string>;
|
|
102
102
|
/**
|
|
103
|
-
* Connection type. `MYSQL` `POSTGRESQL` `SNOWFLAKE` `REDSHIFT` `SQLDW` `SQLSERVER` or `DATABRICKS` are supported. [Up-to-date list of connection type supported](https://docs.databricks.com/query-federation/index.html#supported-data-sources)
|
|
103
|
+
* Connection type. `BIGQUERY` `MYSQL` `POSTGRESQL` `SNOWFLAKE` `REDSHIFT` `SQLDW` `SQLSERVER` or `DATABRICKS` are supported. [Up-to-date list of connection type supported](https://docs.databricks.com/query-federation/index.html#supported-data-sources)
|
|
104
104
|
*/
|
|
105
105
|
connectionType?: pulumi.Input<string>;
|
|
106
106
|
metastoreId?: pulumi.Input<string>;
|
|
@@ -135,7 +135,7 @@ export interface ConnectionArgs {
|
|
|
135
135
|
*/
|
|
136
136
|
comment?: pulumi.Input<string>;
|
|
137
137
|
/**
|
|
138
|
-
* Connection type. `MYSQL` `POSTGRESQL` `SNOWFLAKE` `REDSHIFT` `SQLDW` `SQLSERVER` or `DATABRICKS` are supported. [Up-to-date list of connection type supported](https://docs.databricks.com/query-federation/index.html#supported-data-sources)
|
|
138
|
+
* Connection type. `BIGQUERY` `MYSQL` `POSTGRESQL` `SNOWFLAKE` `REDSHIFT` `SQLDW` `SQLSERVER` or `DATABRICKS` are supported. [Up-to-date list of connection type supported](https://docs.databricks.com/query-federation/index.html#supported-data-sources)
|
|
139
139
|
*/
|
|
140
140
|
connectionType: pulumi.Input<string>;
|
|
141
141
|
metastoreId?: pulumi.Input<string>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* The `databricks.DefaultNamespaceSetting` resource allows you to operate the setting configuration for the default namespace in the Databricks workspace.
|
|
6
|
+
* Setting the default catalog for the workspace determines the catalog that is used when queries do not reference
|
|
7
|
+
* a fully qualified 3 level name. For example, if the default catalog is set to 'retail_prod' then a query
|
|
8
|
+
* 'SELECT * FROM myTable' would reference the object 'retail_prod.default.myTable'
|
|
9
|
+
* (the schema 'default' is always assumed).
|
|
10
|
+
* This setting requires a restart of clusters and SQL warehouses to take effect. Additionally, the default namespace only applies when using Unity Catalog-enabled compute.
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as databricks from "@pulumi/databricks";
|
|
16
|
+
*
|
|
17
|
+
* const _this = new databricks.DefaultNamespaceSetting("this", {namespace: {
|
|
18
|
+
* value: "namespace_value",
|
|
19
|
+
* }});
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare class DefaultNamespaceSetting extends pulumi.CustomResource {
|
|
23
|
+
/**
|
|
24
|
+
* Get an existing DefaultNamespaceSetting resource's state with the given name, ID, and optional extra
|
|
25
|
+
* properties used to qualify the lookup.
|
|
26
|
+
*
|
|
27
|
+
* @param name The _unique_ name of the resulting resource.
|
|
28
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
29
|
+
* @param state Any extra arguments used during the lookup.
|
|
30
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
31
|
+
*/
|
|
32
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: DefaultNamespaceSettingState, opts?: pulumi.CustomResourceOptions): DefaultNamespaceSetting;
|
|
33
|
+
/**
|
|
34
|
+
* Returns true if the given object is an instance of DefaultNamespaceSetting. This is designed to work even
|
|
35
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
36
|
+
*/
|
|
37
|
+
static isInstance(obj: any): obj is DefaultNamespaceSetting;
|
|
38
|
+
readonly etag: pulumi.Output<string>;
|
|
39
|
+
/**
|
|
40
|
+
* The configuration details.
|
|
41
|
+
*/
|
|
42
|
+
readonly namespace: pulumi.Output<outputs.DefaultNamespaceSettingNamespace>;
|
|
43
|
+
readonly settingName: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a DefaultNamespaceSetting resource with the given unique name, arguments, and options.
|
|
46
|
+
*
|
|
47
|
+
* @param name The _unique_ name of the resource.
|
|
48
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
49
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
50
|
+
*/
|
|
51
|
+
constructor(name: string, args: DefaultNamespaceSettingArgs, opts?: pulumi.CustomResourceOptions);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Input properties used for looking up and filtering DefaultNamespaceSetting resources.
|
|
55
|
+
*/
|
|
56
|
+
export interface DefaultNamespaceSettingState {
|
|
57
|
+
etag?: pulumi.Input<string>;
|
|
58
|
+
/**
|
|
59
|
+
* The configuration details.
|
|
60
|
+
*/
|
|
61
|
+
namespace?: pulumi.Input<inputs.DefaultNamespaceSettingNamespace>;
|
|
62
|
+
settingName?: pulumi.Input<string>;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* The set of arguments for constructing a DefaultNamespaceSetting resource.
|
|
66
|
+
*/
|
|
67
|
+
export interface DefaultNamespaceSettingArgs {
|
|
68
|
+
etag?: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* The configuration details.
|
|
71
|
+
*/
|
|
72
|
+
namespace: pulumi.Input<inputs.DefaultNamespaceSettingNamespace>;
|
|
73
|
+
settingName?: pulumi.Input<string>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
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.DefaultNamespaceSetting = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* The `databricks.DefaultNamespaceSetting` resource allows you to operate the setting configuration for the default namespace in the Databricks workspace.
|
|
10
|
+
* Setting the default catalog for the workspace determines the catalog that is used when queries do not reference
|
|
11
|
+
* a fully qualified 3 level name. For example, if the default catalog is set to 'retail_prod' then a query
|
|
12
|
+
* 'SELECT * FROM myTable' would reference the object 'retail_prod.default.myTable'
|
|
13
|
+
* (the schema 'default' is always assumed).
|
|
14
|
+
* This setting requires a restart of clusters and SQL warehouses to take effect. Additionally, the default namespace only applies when using Unity Catalog-enabled compute.
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as databricks from "@pulumi/databricks";
|
|
20
|
+
*
|
|
21
|
+
* const _this = new databricks.DefaultNamespaceSetting("this", {namespace: {
|
|
22
|
+
* value: "namespace_value",
|
|
23
|
+
* }});
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
class DefaultNamespaceSetting extends pulumi.CustomResource {
|
|
27
|
+
/**
|
|
28
|
+
* Get an existing DefaultNamespaceSetting resource's state with the given name, ID, and optional extra
|
|
29
|
+
* properties used to qualify the lookup.
|
|
30
|
+
*
|
|
31
|
+
* @param name The _unique_ name of the resulting resource.
|
|
32
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
33
|
+
* @param state Any extra arguments used during the lookup.
|
|
34
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
35
|
+
*/
|
|
36
|
+
static get(name, id, state, opts) {
|
|
37
|
+
return new DefaultNamespaceSetting(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Returns true if the given object is an instance of DefaultNamespaceSetting. This is designed to work even
|
|
41
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
42
|
+
*/
|
|
43
|
+
static isInstance(obj) {
|
|
44
|
+
if (obj === undefined || obj === null) {
|
|
45
|
+
return false;
|
|
46
|
+
}
|
|
47
|
+
return obj['__pulumiType'] === DefaultNamespaceSetting.__pulumiType;
|
|
48
|
+
}
|
|
49
|
+
constructor(name, argsOrState, opts) {
|
|
50
|
+
let resourceInputs = {};
|
|
51
|
+
opts = opts || {};
|
|
52
|
+
if (opts.id) {
|
|
53
|
+
const state = argsOrState;
|
|
54
|
+
resourceInputs["etag"] = state ? state.etag : undefined;
|
|
55
|
+
resourceInputs["namespace"] = state ? state.namespace : undefined;
|
|
56
|
+
resourceInputs["settingName"] = state ? state.settingName : undefined;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
const args = argsOrState;
|
|
60
|
+
if ((!args || args.namespace === undefined) && !opts.urn) {
|
|
61
|
+
throw new Error("Missing required property 'namespace'");
|
|
62
|
+
}
|
|
63
|
+
resourceInputs["etag"] = args ? args.etag : undefined;
|
|
64
|
+
resourceInputs["namespace"] = args ? args.namespace : undefined;
|
|
65
|
+
resourceInputs["settingName"] = args ? args.settingName : undefined;
|
|
66
|
+
}
|
|
67
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
68
|
+
super(DefaultNamespaceSetting.__pulumiType, name, resourceInputs, opts);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.DefaultNamespaceSetting = DefaultNamespaceSetting;
|
|
72
|
+
/** @internal */
|
|
73
|
+
DefaultNamespaceSetting.__pulumiType = 'databricks:index/defaultNamespaceSetting:DefaultNamespaceSetting';
|
|
74
|
+
//# sourceMappingURL=defaultNamespaceSetting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaultNamespaceSetting.js","sourceRoot":"","sources":["../defaultNamespaceSetting.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,uBAAwB,SAAQ,MAAM,CAAC,cAAc;IAC9D;;;;;;;;OAQG;IACI,M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AC,SAAS,CAAC;YACtD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACvE;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;;AA9DL,0DA+DC;AAjDG,gBAAgB;AACO,oCAAY,GAAG,kEAAkE,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* > **Note** This resource has an evolving API, which may change in future versions of the provider. Please always consult [latest documentation](https://docs.databricks.com/administration-guide/account-api/iam-role.html#language-Your%C2%A0VPC,%C2%A0default) in case of any questions.
|
|
4
|
-
*
|
|
5
3
|
* This data source constructs necessary AWS cross-account policy for you, which is based on [official documentation](https://docs.databricks.com/administration-guide/account-api/iam-role.html#language-Your%C2%A0VPC,%C2%A0default).
|
|
6
4
|
*
|
|
7
5
|
* ## Example Usage
|
|
@@ -48,8 +46,6 @@ export interface GetAwsCrossAccountPolicyResult {
|
|
|
48
46
|
readonly passRoles?: string[];
|
|
49
47
|
}
|
|
50
48
|
/**
|
|
51
|
-
* > **Note** This resource has an evolving API, which may change in future versions of the provider. Please always consult [latest documentation](https://docs.databricks.com/administration-guide/account-api/iam-role.html#language-Your%C2%A0VPC,%C2%A0default) in case of any questions.
|
|
52
|
-
*
|
|
53
49
|
* This data source constructs necessary AWS cross-account policy for you, which is based on [official documentation](https://docs.databricks.com/administration-guide/account-api/iam-role.html#language-Your%C2%A0VPC,%C2%A0default).
|
|
54
50
|
*
|
|
55
51
|
* ## Example Usage
|
|
@@ -6,8 +6,6 @@ exports.getAwsCrossAccountPolicyOutput = exports.getAwsCrossAccountPolicy = void
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* > **Note** This resource has an evolving API, which may change in future versions of the provider. Please always consult [latest documentation](https://docs.databricks.com/administration-guide/account-api/iam-role.html#language-Your%C2%A0VPC,%C2%A0default) in case of any questions.
|
|
10
|
-
*
|
|
11
9
|
* This data source constructs necessary AWS cross-account policy for you, which is based on [official documentation](https://docs.databricks.com/administration-guide/account-api/iam-role.html#language-Your%C2%A0VPC,%C2%A0default).
|
|
12
10
|
*
|
|
13
11
|
* ## Example Usage
|
|
@@ -38,8 +36,6 @@ function getAwsCrossAccountPolicy(args, opts) {
|
|
|
38
36
|
}
|
|
39
37
|
exports.getAwsCrossAccountPolicy = getAwsCrossAccountPolicy;
|
|
40
38
|
/**
|
|
41
|
-
* > **Note** This resource has an evolving API, which may change in future versions of the provider. Please always consult [latest documentation](https://docs.databricks.com/administration-guide/account-api/iam-role.html#language-Your%C2%A0VPC,%C2%A0default) in case of any questions.
|
|
42
|
-
*
|
|
43
39
|
* This data source constructs necessary AWS cross-account policy for you, which is based on [official documentation](https://docs.databricks.com/administration-guide/account-api/iam-role.html#language-Your%C2%A0VPC,%C2%A0default).
|
|
44
40
|
*
|
|
45
41
|
* ## Example Usage
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAwsCrossAccountPolicy.js","sourceRoot":"","sources":["../getAwsCrossAccountPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getAwsCrossAccountPolicy.js","sourceRoot":"","sources":["../getAwsCrossAccountPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,wBAAwB,CAAC,IAAmC,EAAE,IAA2B;IACrG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,oEAAoE,EAAE;QAC/F,WAAW,EAAE,IAAI,CAAC,SAAS;KAC9B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,4DAOC;AA0BD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,8BAA8B,CAAC,IAAyC,EAAE,IAA2B;IACjH,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,wBAAwB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACnF,CAAC;AAFD,wEAEC"}
|