@pulumi/databricks 1.17.0-alpha.1686634068 → 1.17.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 +15 -3
- package/catalog.js +2 -0
- package/catalog.js.map +1 -1
- package/externalLocation.d.ts +24 -0
- package/externalLocation.js +4 -0
- package/externalLocation.js.map +1 -1
- package/getClusterPolicy.d.ts +51 -3
- package/getClusterPolicy.js +4 -0
- package/getClusterPolicy.js.map +1 -1
- package/instancePool.d.ts +29 -0
- package/instancePool.js +29 -0
- package/instancePool.js.map +1 -1
- package/job.d.ts +3 -0
- package/job.js +2 -0
- package/job.js.map +1 -1
- package/mwsNetworks.d.ts +82 -0
- package/mwsNetworks.js +82 -0
- package/mwsNetworks.js.map +1 -1
- package/package.json +2 -2
- package/storageCredential.d.ts +12 -0
- package/storageCredential.js +2 -0
- package/storageCredential.js.map +1 -1
- package/token.d.ts +32 -0
- package/token.js +32 -0
- package/token.js.map +1 -1
- package/types/input.d.ts +33 -0
- package/types/output.d.ts +27 -0
package/catalog.d.ts
CHANGED
|
@@ -54,9 +54,13 @@ export declare class Catalog extends pulumi.CustomResource {
|
|
|
54
54
|
* Delete catalog regardless of its contents.
|
|
55
55
|
*/
|
|
56
56
|
readonly forceDestroy: pulumi.Output<boolean | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the catalog is accessible from all workspaces or a specific set of workspaces. Can be `ISOLATED` or `OPEN`.
|
|
59
|
+
*/
|
|
60
|
+
readonly isolationMode: pulumi.Output<string>;
|
|
57
61
|
readonly metastoreId: pulumi.Output<string>;
|
|
58
62
|
/**
|
|
59
|
-
* Name of Catalog relative to parent metastore.
|
|
63
|
+
* Name of Catalog relative to parent metastore.
|
|
60
64
|
*/
|
|
61
65
|
readonly name: pulumi.Output<string>;
|
|
62
66
|
/**
|
|
@@ -102,9 +106,13 @@ export interface CatalogState {
|
|
|
102
106
|
* Delete catalog regardless of its contents.
|
|
103
107
|
*/
|
|
104
108
|
forceDestroy?: pulumi.Input<boolean>;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the catalog is accessible from all workspaces or a specific set of workspaces. Can be `ISOLATED` or `OPEN`.
|
|
111
|
+
*/
|
|
112
|
+
isolationMode?: pulumi.Input<string>;
|
|
105
113
|
metastoreId?: pulumi.Input<string>;
|
|
106
114
|
/**
|
|
107
|
-
* Name of Catalog relative to parent metastore.
|
|
115
|
+
* Name of Catalog relative to parent metastore.
|
|
108
116
|
*/
|
|
109
117
|
name?: pulumi.Input<string>;
|
|
110
118
|
/**
|
|
@@ -142,9 +150,13 @@ export interface CatalogArgs {
|
|
|
142
150
|
* Delete catalog regardless of its contents.
|
|
143
151
|
*/
|
|
144
152
|
forceDestroy?: pulumi.Input<boolean>;
|
|
153
|
+
/**
|
|
154
|
+
* Whether the catalog is accessible from all workspaces or a specific set of workspaces. Can be `ISOLATED` or `OPEN`.
|
|
155
|
+
*/
|
|
156
|
+
isolationMode?: pulumi.Input<string>;
|
|
145
157
|
metastoreId?: pulumi.Input<string>;
|
|
146
158
|
/**
|
|
147
|
-
* Name of Catalog relative to parent metastore.
|
|
159
|
+
* Name of Catalog relative to parent metastore.
|
|
148
160
|
*/
|
|
149
161
|
name?: pulumi.Input<string>;
|
|
150
162
|
/**
|
package/catalog.js
CHANGED
|
@@ -66,6 +66,7 @@ class Catalog extends pulumi.CustomResource {
|
|
|
66
66
|
const state = argsOrState;
|
|
67
67
|
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
68
68
|
resourceInputs["forceDestroy"] = state ? state.forceDestroy : undefined;
|
|
69
|
+
resourceInputs["isolationMode"] = state ? state.isolationMode : undefined;
|
|
69
70
|
resourceInputs["metastoreId"] = state ? state.metastoreId : undefined;
|
|
70
71
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
71
72
|
resourceInputs["owner"] = state ? state.owner : undefined;
|
|
@@ -78,6 +79,7 @@ class Catalog extends pulumi.CustomResource {
|
|
|
78
79
|
const args = argsOrState;
|
|
79
80
|
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
80
81
|
resourceInputs["forceDestroy"] = args ? args.forceDestroy : undefined;
|
|
82
|
+
resourceInputs["isolationMode"] = args ? args.isolationMode : undefined;
|
|
81
83
|
resourceInputs["metastoreId"] = args ? args.metastoreId : undefined;
|
|
82
84
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
83
85
|
resourceInputs["owner"] = args ? args.owner : undefined;
|
package/catalog.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../catalog.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,OAAO,IAAI,OAAO,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC9D,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,OAAO,CAAC,YAAY,CAAC;IACxD,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../catalog.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MA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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;;AAxGL,0BAyGC;AA3FG,gBAAgB;AACO,oBAAY,GAAG,kCAAkC,CAAC"}
|
package/externalLocation.d.ts
CHANGED
|
@@ -37,6 +37,10 @@ export declare class ExternalLocation extends pulumi.CustomResource {
|
|
|
37
37
|
* Name of the databricks.StorageCredential to use with this External Location.
|
|
38
38
|
*/
|
|
39
39
|
readonly credentialName: pulumi.Output<string>;
|
|
40
|
+
/**
|
|
41
|
+
* Destroy external location regardless of its dependents.
|
|
42
|
+
*/
|
|
43
|
+
readonly forceDestroy: pulumi.Output<boolean | undefined>;
|
|
40
44
|
readonly metastoreId: pulumi.Output<string>;
|
|
41
45
|
/**
|
|
42
46
|
* Name of External Location, which must be unique within the databricks_metastore. Change forces creation of a new resource.
|
|
@@ -46,6 +50,10 @@ export declare class ExternalLocation extends pulumi.CustomResource {
|
|
|
46
50
|
* Username/groupname/sp applicationId of the external Location owner.
|
|
47
51
|
*/
|
|
48
52
|
readonly owner: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Indicates whether the external location is read-only.
|
|
55
|
+
*/
|
|
56
|
+
readonly readOnly: pulumi.Output<boolean | undefined>;
|
|
49
57
|
/**
|
|
50
58
|
* Suppress validation errors if any & force save the external location
|
|
51
59
|
*/
|
|
@@ -75,6 +83,10 @@ export interface ExternalLocationState {
|
|
|
75
83
|
* Name of the databricks.StorageCredential to use with this External Location.
|
|
76
84
|
*/
|
|
77
85
|
credentialName?: pulumi.Input<string>;
|
|
86
|
+
/**
|
|
87
|
+
* Destroy external location regardless of its dependents.
|
|
88
|
+
*/
|
|
89
|
+
forceDestroy?: pulumi.Input<boolean>;
|
|
78
90
|
metastoreId?: pulumi.Input<string>;
|
|
79
91
|
/**
|
|
80
92
|
* Name of External Location, which must be unique within the databricks_metastore. Change forces creation of a new resource.
|
|
@@ -84,6 +96,10 @@ export interface ExternalLocationState {
|
|
|
84
96
|
* Username/groupname/sp applicationId of the external Location owner.
|
|
85
97
|
*/
|
|
86
98
|
owner?: pulumi.Input<string>;
|
|
99
|
+
/**
|
|
100
|
+
* Indicates whether the external location is read-only.
|
|
101
|
+
*/
|
|
102
|
+
readOnly?: pulumi.Input<boolean>;
|
|
87
103
|
/**
|
|
88
104
|
* Suppress validation errors if any & force save the external location
|
|
89
105
|
*/
|
|
@@ -105,6 +121,10 @@ export interface ExternalLocationArgs {
|
|
|
105
121
|
* Name of the databricks.StorageCredential to use with this External Location.
|
|
106
122
|
*/
|
|
107
123
|
credentialName: pulumi.Input<string>;
|
|
124
|
+
/**
|
|
125
|
+
* Destroy external location regardless of its dependents.
|
|
126
|
+
*/
|
|
127
|
+
forceDestroy?: pulumi.Input<boolean>;
|
|
108
128
|
metastoreId?: pulumi.Input<string>;
|
|
109
129
|
/**
|
|
110
130
|
* Name of External Location, which must be unique within the databricks_metastore. Change forces creation of a new resource.
|
|
@@ -114,6 +134,10 @@ export interface ExternalLocationArgs {
|
|
|
114
134
|
* Username/groupname/sp applicationId of the external Location owner.
|
|
115
135
|
*/
|
|
116
136
|
owner?: pulumi.Input<string>;
|
|
137
|
+
/**
|
|
138
|
+
* Indicates whether the external location is read-only.
|
|
139
|
+
*/
|
|
140
|
+
readOnly?: pulumi.Input<boolean>;
|
|
117
141
|
/**
|
|
118
142
|
* Suppress validation errors if any & force save the external location
|
|
119
143
|
*/
|
package/externalLocation.js
CHANGED
|
@@ -49,9 +49,11 @@ class ExternalLocation extends pulumi.CustomResource {
|
|
|
49
49
|
const state = argsOrState;
|
|
50
50
|
resourceInputs["comment"] = state ? state.comment : undefined;
|
|
51
51
|
resourceInputs["credentialName"] = state ? state.credentialName : undefined;
|
|
52
|
+
resourceInputs["forceDestroy"] = state ? state.forceDestroy : undefined;
|
|
52
53
|
resourceInputs["metastoreId"] = state ? state.metastoreId : undefined;
|
|
53
54
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
54
55
|
resourceInputs["owner"] = state ? state.owner : undefined;
|
|
56
|
+
resourceInputs["readOnly"] = state ? state.readOnly : undefined;
|
|
55
57
|
resourceInputs["skipValidation"] = state ? state.skipValidation : undefined;
|
|
56
58
|
resourceInputs["url"] = state ? state.url : undefined;
|
|
57
59
|
}
|
|
@@ -65,9 +67,11 @@ class ExternalLocation extends pulumi.CustomResource {
|
|
|
65
67
|
}
|
|
66
68
|
resourceInputs["comment"] = args ? args.comment : undefined;
|
|
67
69
|
resourceInputs["credentialName"] = args ? args.credentialName : undefined;
|
|
70
|
+
resourceInputs["forceDestroy"] = args ? args.forceDestroy : undefined;
|
|
68
71
|
resourceInputs["metastoreId"] = args ? args.metastoreId : undefined;
|
|
69
72
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
70
73
|
resourceInputs["owner"] = args ? args.owner : undefined;
|
|
74
|
+
resourceInputs["readOnly"] = args ? args.readOnly : undefined;
|
|
71
75
|
resourceInputs["skipValidation"] = args ? args.skipValidation : undefined;
|
|
72
76
|
resourceInputs["url"] = args ? args.url : undefined;
|
|
73
77
|
}
|
package/externalLocation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"externalLocation.js","sourceRoot":"","sources":["../externalLocation.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G,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAxGL,4CAyGC;AA3FG,gBAAgB;AACO,6BAAY,GAAG,oDAAoD,CAAC"}
|
package/getClusterPolicy.d.ts
CHANGED
|
@@ -28,18 +28,34 @@ export interface GetClusterPolicyArgs {
|
|
|
28
28
|
* Policy definition: JSON document expressed in [Databricks Policy Definition Language](https://docs.databricks.com/administration-guide/clusters/policies.html#cluster-policy-definition).
|
|
29
29
|
*/
|
|
30
30
|
definition?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Additional human-readable description of the cluster policy.
|
|
33
|
+
*/
|
|
34
|
+
description?: string;
|
|
31
35
|
/**
|
|
32
36
|
* The id of the cluster policy.
|
|
33
37
|
*/
|
|
34
38
|
id?: string;
|
|
35
39
|
/**
|
|
36
|
-
*
|
|
40
|
+
* If true, policy is a default policy created and managed by Databricks.
|
|
41
|
+
*/
|
|
42
|
+
isDefault?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Max number of clusters per user that can be active using this policy.
|
|
37
45
|
*/
|
|
38
46
|
maxClustersPerUser?: number;
|
|
39
47
|
/**
|
|
40
48
|
* Name of the cluster policy. The cluster policy must exist before this resource can be planned.
|
|
41
49
|
*/
|
|
42
50
|
name?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Policy definition JSON document expressed in Databricks [Policy Definition Language](https://docs.databricks.com/administration-guide/clusters/policies.html#cluster-policy-definitions).
|
|
53
|
+
*/
|
|
54
|
+
policyFamilyDefinitionOverrides?: string;
|
|
55
|
+
/**
|
|
56
|
+
* ID of the policy family.
|
|
57
|
+
*/
|
|
58
|
+
policyFamilyId?: string;
|
|
43
59
|
}
|
|
44
60
|
/**
|
|
45
61
|
* A collection of values returned by getClusterPolicy.
|
|
@@ -49,15 +65,31 @@ export interface GetClusterPolicyResult {
|
|
|
49
65
|
* Policy definition: JSON document expressed in [Databricks Policy Definition Language](https://docs.databricks.com/administration-guide/clusters/policies.html#cluster-policy-definition).
|
|
50
66
|
*/
|
|
51
67
|
readonly definition: string;
|
|
68
|
+
/**
|
|
69
|
+
* Additional human-readable description of the cluster policy.
|
|
70
|
+
*/
|
|
71
|
+
readonly description: string;
|
|
52
72
|
/**
|
|
53
73
|
* The id of the cluster policy.
|
|
54
74
|
*/
|
|
55
75
|
readonly id: string;
|
|
56
76
|
/**
|
|
57
|
-
*
|
|
77
|
+
* If true, policy is a default policy created and managed by Databricks.
|
|
78
|
+
*/
|
|
79
|
+
readonly isDefault: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Max number of clusters per user that can be active using this policy.
|
|
58
82
|
*/
|
|
59
83
|
readonly maxClustersPerUser: number;
|
|
60
84
|
readonly name: string;
|
|
85
|
+
/**
|
|
86
|
+
* Policy definition JSON document expressed in Databricks [Policy Definition Language](https://docs.databricks.com/administration-guide/clusters/policies.html#cluster-policy-definitions).
|
|
87
|
+
*/
|
|
88
|
+
readonly policyFamilyDefinitionOverrides: string;
|
|
89
|
+
/**
|
|
90
|
+
* ID of the policy family.
|
|
91
|
+
*/
|
|
92
|
+
readonly policyFamilyId: string;
|
|
61
93
|
}
|
|
62
94
|
/**
|
|
63
95
|
* > **Note** If you have a fully automated setup with workspaces created by databricks_mws_workspaces, please make sure to add dependsOn attribute in order to prevent _default auth: cannot configure default credentials_ errors.
|
|
@@ -88,16 +120,32 @@ export interface GetClusterPolicyOutputArgs {
|
|
|
88
120
|
* Policy definition: JSON document expressed in [Databricks Policy Definition Language](https://docs.databricks.com/administration-guide/clusters/policies.html#cluster-policy-definition).
|
|
89
121
|
*/
|
|
90
122
|
definition?: pulumi.Input<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Additional human-readable description of the cluster policy.
|
|
125
|
+
*/
|
|
126
|
+
description?: pulumi.Input<string>;
|
|
91
127
|
/**
|
|
92
128
|
* The id of the cluster policy.
|
|
93
129
|
*/
|
|
94
130
|
id?: pulumi.Input<string>;
|
|
95
131
|
/**
|
|
96
|
-
*
|
|
132
|
+
* If true, policy is a default policy created and managed by Databricks.
|
|
133
|
+
*/
|
|
134
|
+
isDefault?: pulumi.Input<boolean>;
|
|
135
|
+
/**
|
|
136
|
+
* Max number of clusters per user that can be active using this policy.
|
|
97
137
|
*/
|
|
98
138
|
maxClustersPerUser?: pulumi.Input<number>;
|
|
99
139
|
/**
|
|
100
140
|
* Name of the cluster policy. The cluster policy must exist before this resource can be planned.
|
|
101
141
|
*/
|
|
102
142
|
name?: pulumi.Input<string>;
|
|
143
|
+
/**
|
|
144
|
+
* Policy definition JSON document expressed in Databricks [Policy Definition Language](https://docs.databricks.com/administration-guide/clusters/policies.html#cluster-policy-definitions).
|
|
145
|
+
*/
|
|
146
|
+
policyFamilyDefinitionOverrides?: pulumi.Input<string>;
|
|
147
|
+
/**
|
|
148
|
+
* ID of the policy family.
|
|
149
|
+
*/
|
|
150
|
+
policyFamilyId?: pulumi.Input<string>;
|
|
103
151
|
}
|
package/getClusterPolicy.js
CHANGED
|
@@ -30,9 +30,13 @@ function getClusterPolicy(args, opts) {
|
|
|
30
30
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
31
31
|
return pulumi.runtime.invoke("databricks:index/getClusterPolicy:getClusterPolicy", {
|
|
32
32
|
"definition": args.definition,
|
|
33
|
+
"description": args.description,
|
|
33
34
|
"id": args.id,
|
|
35
|
+
"isDefault": args.isDefault,
|
|
34
36
|
"maxClustersPerUser": args.maxClustersPerUser,
|
|
35
37
|
"name": args.name,
|
|
38
|
+
"policyFamilyDefinitionOverrides": args.policyFamilyDefinitionOverrides,
|
|
39
|
+
"policyFamilyId": args.policyFamilyId,
|
|
36
40
|
}, opts);
|
|
37
41
|
}
|
|
38
42
|
exports.getClusterPolicy = getClusterPolicy;
|
package/getClusterPolicy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getClusterPolicy.js","sourceRoot":"","sources":["../getClusterPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,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,oDAAoD,EAAE;QAC/E,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,MAAM,EAAE,IAAI,CAAC,IAAI;
|
|
1
|
+
{"version":3,"file":"getClusterPolicy.js","sourceRoot":"","sources":["../getClusterPolicy.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,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,oDAAoD,EAAE;QAC/E,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,aAAa,EAAE,IAAI,CAAC,WAAW;QAC/B,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,WAAW,EAAE,IAAI,CAAC,SAAS;QAC3B,oBAAoB,EAAE,IAAI,CAAC,kBAAkB;QAC7C,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,iCAAiC,EAAE,IAAI,CAAC,+BAA+B;QACvE,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAdD,4CAcC;AA0ED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,sBAAsB,CAAC,IAAiC,EAAE,IAA2B;IACjG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC3E,CAAC;AAFD,wDAEC"}
|
package/instancePool.d.ts
CHANGED
|
@@ -33,6 +33,35 @@ import * as outputs from "./types/output";
|
|
|
33
33
|
* },
|
|
34
34
|
* });
|
|
35
35
|
* ```
|
|
36
|
+
* ## preloadedDockerImage sub_block
|
|
37
|
+
*
|
|
38
|
+
* [Databricks Container Services](https://docs.databricks.com/clusters/custom-containers.html) lets you specify a Docker image when you create a cluster. You need to enable Container Services in *Admin Console / Advanced* page in the user interface. By enabling this feature, you acknowledge and agree that your usage of this feature is subject to the [applicable additional terms](http://www.databricks.com/product-specific-terms). You can instruct the instance pool to pre-download the Docker image onto the instances so when node is acquired for a cluster that requires a custom Docker image the setup process will be faster.
|
|
39
|
+
*
|
|
40
|
+
* `preloadedDockerImage` configuration block has the following attributes:
|
|
41
|
+
*
|
|
42
|
+
* * `url` - URL for the Docker image
|
|
43
|
+
* * `basicAuth` - (Optional) `basic_auth.username` and `basic_auth.password` for Docker repository. Docker registry credentials are encrypted when they are stored in Databricks internal storage and when they are passed to a registry upon fetching Docker images at cluster launch. However, other authenticated and authorized API users of this workspace can access the username and password.
|
|
44
|
+
*
|
|
45
|
+
* Example usage with azurerm_container_registry, that you can adapt to your specific use-case:
|
|
46
|
+
*
|
|
47
|
+
* ```typescript
|
|
48
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
49
|
+
* import * as databricks from "@pulumi/databricks";
|
|
50
|
+
* import * as docker from "@pulumi/docker";
|
|
51
|
+
*
|
|
52
|
+
* const thisdocker_registry_image = new docker.index.Docker_registry_image("thisdocker_registry_image", {
|
|
53
|
+
* name: `${azurerm_container_registry["this"].login_server}/sample:latest`,
|
|
54
|
+
* build: [{}],
|
|
55
|
+
* });
|
|
56
|
+
* const thisInstancePool = new databricks.InstancePool("thisInstancePool", {preloadedDockerImages: [{
|
|
57
|
+
* url: thisdocker_registry_image.name,
|
|
58
|
+
* basicAuth: {
|
|
59
|
+
* username: azurerm_container_registry["this"].admin_username,
|
|
60
|
+
* password: azurerm_container_registry["this"].admin_password,
|
|
61
|
+
* },
|
|
62
|
+
* }]});
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
36
65
|
* ## Access Control
|
|
37
66
|
*
|
|
38
67
|
* * databricks.Group and databricks.User can control which groups or individual users can create instance pools.
|
package/instancePool.js
CHANGED
|
@@ -37,6 +37,35 @@ const utilities = require("./utilities");
|
|
|
37
37
|
* },
|
|
38
38
|
* });
|
|
39
39
|
* ```
|
|
40
|
+
* ## preloadedDockerImage sub_block
|
|
41
|
+
*
|
|
42
|
+
* [Databricks Container Services](https://docs.databricks.com/clusters/custom-containers.html) lets you specify a Docker image when you create a cluster. You need to enable Container Services in *Admin Console / Advanced* page in the user interface. By enabling this feature, you acknowledge and agree that your usage of this feature is subject to the [applicable additional terms](http://www.databricks.com/product-specific-terms). You can instruct the instance pool to pre-download the Docker image onto the instances so when node is acquired for a cluster that requires a custom Docker image the setup process will be faster.
|
|
43
|
+
*
|
|
44
|
+
* `preloadedDockerImage` configuration block has the following attributes:
|
|
45
|
+
*
|
|
46
|
+
* * `url` - URL for the Docker image
|
|
47
|
+
* * `basicAuth` - (Optional) `basic_auth.username` and `basic_auth.password` for Docker repository. Docker registry credentials are encrypted when they are stored in Databricks internal storage and when they are passed to a registry upon fetching Docker images at cluster launch. However, other authenticated and authorized API users of this workspace can access the username and password.
|
|
48
|
+
*
|
|
49
|
+
* Example usage with azurerm_container_registry, that you can adapt to your specific use-case:
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as databricks from "@pulumi/databricks";
|
|
54
|
+
* import * as docker from "@pulumi/docker";
|
|
55
|
+
*
|
|
56
|
+
* const thisdocker_registry_image = new docker.index.Docker_registry_image("thisdocker_registry_image", {
|
|
57
|
+
* name: `${azurerm_container_registry["this"].login_server}/sample:latest`,
|
|
58
|
+
* build: [{}],
|
|
59
|
+
* });
|
|
60
|
+
* const thisInstancePool = new databricks.InstancePool("thisInstancePool", {preloadedDockerImages: [{
|
|
61
|
+
* url: thisdocker_registry_image.name,
|
|
62
|
+
* basicAuth: {
|
|
63
|
+
* username: azurerm_container_registry["this"].admin_username,
|
|
64
|
+
* password: azurerm_container_registry["this"].admin_password,
|
|
65
|
+
* },
|
|
66
|
+
* }]});
|
|
67
|
+
* ```
|
|
68
|
+
*
|
|
40
69
|
* ## Access Control
|
|
41
70
|
*
|
|
42
71
|
* * databricks.Group and databricks.User can control which groups or individual users can create instance pools.
|
package/instancePool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instancePool.js","sourceRoot":"","sources":["../instancePool.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"instancePool.js","sourceRoot":"","sources":["../instancePool.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyEG;A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AAC,CAAC,SAAS,CAAC;YAC1E,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,uBAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxF,cAAc,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7F;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AA1HL,oCA2HC;AA7GG,gBAAgB;AACO,yBAAY,GAAG,4CAA4C,CAAC"}
|
package/job.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export declare class Job extends pulumi.CustomResource {
|
|
|
76
76
|
* (Bool) An optional policy to specify whether to retry a job when it times out. The default behavior is to not retry on timeout.
|
|
77
77
|
*/
|
|
78
78
|
readonly retryOnTimeout: pulumi.Output<boolean | undefined>;
|
|
79
|
+
readonly runAs: pulumi.Output<outputs.JobRunAs | undefined>;
|
|
79
80
|
/**
|
|
80
81
|
* (List) An optional periodic schedule for this job. The default behavior is that the job runs when triggered by clicking Run Now in the Jobs UI or sending an API request to runNow. This field is a block and is documented below.
|
|
81
82
|
*/
|
|
@@ -163,6 +164,7 @@ export interface JobState {
|
|
|
163
164
|
* (Bool) An optional policy to specify whether to retry a job when it times out. The default behavior is to not retry on timeout.
|
|
164
165
|
*/
|
|
165
166
|
retryOnTimeout?: pulumi.Input<boolean>;
|
|
167
|
+
runAs?: pulumi.Input<inputs.JobRunAs>;
|
|
166
168
|
/**
|
|
167
169
|
* (List) An optional periodic schedule for this job. The default behavior is that the job runs when triggered by clicking Run Now in the Jobs UI or sending an API request to runNow. This field is a block and is documented below.
|
|
168
170
|
*/
|
|
@@ -242,6 +244,7 @@ export interface JobArgs {
|
|
|
242
244
|
* (Bool) An optional policy to specify whether to retry a job when it times out. The default behavior is to not retry on timeout.
|
|
243
245
|
*/
|
|
244
246
|
retryOnTimeout?: pulumi.Input<boolean>;
|
|
247
|
+
runAs?: pulumi.Input<inputs.JobRunAs>;
|
|
245
248
|
/**
|
|
246
249
|
* (List) An optional periodic schedule for this job. The default behavior is that the job runs when triggered by clicking Run Now in the Jobs UI or sending an API request to runNow. This field is a block and is documented below.
|
|
247
250
|
*/
|
package/job.js
CHANGED
|
@@ -62,6 +62,7 @@ class Job extends pulumi.CustomResource {
|
|
|
62
62
|
resourceInputs["pythonWheelTask"] = state ? state.pythonWheelTask : undefined;
|
|
63
63
|
resourceInputs["queue"] = state ? state.queue : undefined;
|
|
64
64
|
resourceInputs["retryOnTimeout"] = state ? state.retryOnTimeout : undefined;
|
|
65
|
+
resourceInputs["runAs"] = state ? state.runAs : undefined;
|
|
65
66
|
resourceInputs["schedule"] = state ? state.schedule : undefined;
|
|
66
67
|
resourceInputs["sparkJarTask"] = state ? state.sparkJarTask : undefined;
|
|
67
68
|
resourceInputs["sparkPythonTask"] = state ? state.sparkPythonTask : undefined;
|
|
@@ -95,6 +96,7 @@ class Job extends pulumi.CustomResource {
|
|
|
95
96
|
resourceInputs["pythonWheelTask"] = args ? args.pythonWheelTask : undefined;
|
|
96
97
|
resourceInputs["queue"] = args ? args.queue : undefined;
|
|
97
98
|
resourceInputs["retryOnTimeout"] = args ? args.retryOnTimeout : undefined;
|
|
99
|
+
resourceInputs["runAs"] = args ? args.runAs : undefined;
|
|
98
100
|
resourceInputs["schedule"] = args ? args.schedule : undefined;
|
|
99
101
|
resourceInputs["sparkJarTask"] = args ? args.sparkJarTask : undefined;
|
|
100
102
|
resourceInputs["sparkPythonTask"] = args ? args.sparkPythonTask : undefined;
|
package/job.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.js","sourceRoot":"","sources":["../job.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;GAQG;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,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,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,cAAc,CAAC,KAAK,GAAG,CAAC,YAAY,CAAC;IACpD,CAAC;
|
|
1
|
+
{"version":3,"file":"job.js","sourceRoot":"","sources":["../job.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;GAQG;AACH,MAAa,GAAI,SAAQ,MAAM,CAAC,cAAc;IAC1C;;;;;;;;OAQG;IACI,MAAM,CAAC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,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;;AAtLL,kBAuLC;AAzKG,gBAAgB;AACO,gBAAY,GAAG,0BAA0B,CAAC"}
|
package/mwsNetworks.d.ts
CHANGED
|
@@ -48,6 +48,88 @@ import * as outputs from "./types/output";
|
|
|
48
48
|
* ],
|
|
49
49
|
* });
|
|
50
50
|
* ```
|
|
51
|
+
* ### Creating a Databricks on GCP workspace
|
|
52
|
+
*
|
|
53
|
+
* > **Public Preview** This feature is in [Public Preview](https://docs.databricks.com/release-notes/release-types.html) on GCP.
|
|
54
|
+
*
|
|
55
|
+
* ```typescript
|
|
56
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
57
|
+
* import * as databricks from "@pulumi/databricks";
|
|
58
|
+
* import * as google from "@pulumi/google";
|
|
59
|
+
*
|
|
60
|
+
* const config = new pulumi.Config();
|
|
61
|
+
* const databricksAccountId = config.requireObject("databricksAccountId");
|
|
62
|
+
* const dbxPrivateVpc = new google.index.Google_compute_network("dbxPrivateVpc", {
|
|
63
|
+
* project: _var.google_project,
|
|
64
|
+
* name: `tf-network-${random_string.suffix.result}`,
|
|
65
|
+
* autoCreateSubnetworks: false,
|
|
66
|
+
* });
|
|
67
|
+
* const network_with_private_secondary_ip_ranges = new google.index.Google_compute_subnetwork("network-with-private-secondary-ip-ranges", {
|
|
68
|
+
* name: `test-dbx-${random_string.suffix.result}`,
|
|
69
|
+
* ipCidrRange: "10.0.0.0/16",
|
|
70
|
+
* region: "us-central1",
|
|
71
|
+
* network: dbxPrivateVpc.id,
|
|
72
|
+
* secondaryIpRange: [
|
|
73
|
+
* {
|
|
74
|
+
* rangeName: "pods",
|
|
75
|
+
* ipCidrRange: "10.1.0.0/16",
|
|
76
|
+
* },
|
|
77
|
+
* {
|
|
78
|
+
* rangeName: "svc",
|
|
79
|
+
* ipCidrRange: "10.2.0.0/20",
|
|
80
|
+
* },
|
|
81
|
+
* ],
|
|
82
|
+
* privateIpGoogleAccess: true,
|
|
83
|
+
* });
|
|
84
|
+
* const router = new google.index.Google_compute_router("router", {
|
|
85
|
+
* name: `my-router-${random_string.suffix.result}`,
|
|
86
|
+
* region: network_with_private_secondary_ip_ranges.region,
|
|
87
|
+
* network: dbxPrivateVpc.id,
|
|
88
|
+
* });
|
|
89
|
+
* const nat = new google.index.Google_compute_router_nat("nat", {
|
|
90
|
+
* name: `my-router-nat-${random_string.suffix.result}`,
|
|
91
|
+
* router: router.name,
|
|
92
|
+
* region: router.region,
|
|
93
|
+
* natIpAllocateOption: "AUTO_ONLY",
|
|
94
|
+
* sourceSubnetworkIpRangesToNat: "ALL_SUBNETWORKS_ALL_IP_RANGES",
|
|
95
|
+
* });
|
|
96
|
+
* const _this = new databricks.MwsNetworks("this", {
|
|
97
|
+
* accountId: databricksAccountId,
|
|
98
|
+
* networkName: `test-demo-${random_string.suffix.result}`,
|
|
99
|
+
* gcpNetworkInfo: {
|
|
100
|
+
* networkProjectId: _var.google_project,
|
|
101
|
+
* vpcId: dbxPrivateVpc.name,
|
|
102
|
+
* subnetId: google_compute_subnetwork.network_with_private_secondary_ip_ranges.name,
|
|
103
|
+
* subnetRegion: google_compute_subnetwork.network_with_private_secondary_ip_ranges.region,
|
|
104
|
+
* podIpRangeName: "pods",
|
|
105
|
+
* serviceIpRangeName: "svc",
|
|
106
|
+
* },
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* In order to create a VPC [that leverages GCP Private Service Connect](https://docs.gcp.databricks.com/administration-guide/cloud-configurations/gcp/private-service-connect.html) you would need to add the `vpcEndpointId` Attributes from mwsVpcEndpoint resources into the databricks.MwsNetworks resource. For example:
|
|
111
|
+
*
|
|
112
|
+
* ```typescript
|
|
113
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
114
|
+
* import * as databricks from "@pulumi/databricks";
|
|
115
|
+
*
|
|
116
|
+
* const _this = new databricks.MwsNetworks("this", {
|
|
117
|
+
* accountId: _var.databricks_account_id,
|
|
118
|
+
* networkName: `test-demo-${random_string.suffix.result}`,
|
|
119
|
+
* gcpNetworkInfo: {
|
|
120
|
+
* networkProjectId: _var.google_project,
|
|
121
|
+
* vpcId: google_compute_network.dbx_private_vpc.name,
|
|
122
|
+
* subnetId: google_compute_subnetwork.network_with_private_secondary_ip_ranges.name,
|
|
123
|
+
* subnetRegion: google_compute_subnetwork.network_with_private_secondary_ip_ranges.region,
|
|
124
|
+
* podIpRangeName: "pods",
|
|
125
|
+
* serviceIpRangeName: "svc",
|
|
126
|
+
* },
|
|
127
|
+
* vpcEndpoints: {
|
|
128
|
+
* dataplaneRelays: [databricks_mws_vpc_endpoint.relay.vpc_endpoint_id],
|
|
129
|
+
* restApis: [databricks_mws_vpc_endpoint.workspace.vpc_endpoint_id],
|
|
130
|
+
* },
|
|
131
|
+
* });
|
|
132
|
+
* ```
|
|
51
133
|
* ## Modifying networks on running workspaces (AWS only)
|
|
52
134
|
*
|
|
53
135
|
* Due to specifics of platform APIs, changing any attribute of network configuration would cause `databricks.MwsNetworks` to be re-created - deleted & added again with special case for running workspaces. Once network configuration is attached to a running databricks_mws_workspaces, you cannot delete it and `pulumi up` would result in `INVALID_STATE: Unable to delete, Network is being used by active workspace X` error. In order to modify any attributes of a network, you have to perform three different `pulumi up` steps:
|
package/mwsNetworks.js
CHANGED
|
@@ -52,6 +52,88 @@ const utilities = require("./utilities");
|
|
|
52
52
|
* ],
|
|
53
53
|
* });
|
|
54
54
|
* ```
|
|
55
|
+
* ### Creating a Databricks on GCP workspace
|
|
56
|
+
*
|
|
57
|
+
* > **Public Preview** This feature is in [Public Preview](https://docs.databricks.com/release-notes/release-types.html) on GCP.
|
|
58
|
+
*
|
|
59
|
+
* ```typescript
|
|
60
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
61
|
+
* import * as databricks from "@pulumi/databricks";
|
|
62
|
+
* import * as google from "@pulumi/google";
|
|
63
|
+
*
|
|
64
|
+
* const config = new pulumi.Config();
|
|
65
|
+
* const databricksAccountId = config.requireObject("databricksAccountId");
|
|
66
|
+
* const dbxPrivateVpc = new google.index.Google_compute_network("dbxPrivateVpc", {
|
|
67
|
+
* project: _var.google_project,
|
|
68
|
+
* name: `tf-network-${random_string.suffix.result}`,
|
|
69
|
+
* autoCreateSubnetworks: false,
|
|
70
|
+
* });
|
|
71
|
+
* const network_with_private_secondary_ip_ranges = new google.index.Google_compute_subnetwork("network-with-private-secondary-ip-ranges", {
|
|
72
|
+
* name: `test-dbx-${random_string.suffix.result}`,
|
|
73
|
+
* ipCidrRange: "10.0.0.0/16",
|
|
74
|
+
* region: "us-central1",
|
|
75
|
+
* network: dbxPrivateVpc.id,
|
|
76
|
+
* secondaryIpRange: [
|
|
77
|
+
* {
|
|
78
|
+
* rangeName: "pods",
|
|
79
|
+
* ipCidrRange: "10.1.0.0/16",
|
|
80
|
+
* },
|
|
81
|
+
* {
|
|
82
|
+
* rangeName: "svc",
|
|
83
|
+
* ipCidrRange: "10.2.0.0/20",
|
|
84
|
+
* },
|
|
85
|
+
* ],
|
|
86
|
+
* privateIpGoogleAccess: true,
|
|
87
|
+
* });
|
|
88
|
+
* const router = new google.index.Google_compute_router("router", {
|
|
89
|
+
* name: `my-router-${random_string.suffix.result}`,
|
|
90
|
+
* region: network_with_private_secondary_ip_ranges.region,
|
|
91
|
+
* network: dbxPrivateVpc.id,
|
|
92
|
+
* });
|
|
93
|
+
* const nat = new google.index.Google_compute_router_nat("nat", {
|
|
94
|
+
* name: `my-router-nat-${random_string.suffix.result}`,
|
|
95
|
+
* router: router.name,
|
|
96
|
+
* region: router.region,
|
|
97
|
+
* natIpAllocateOption: "AUTO_ONLY",
|
|
98
|
+
* sourceSubnetworkIpRangesToNat: "ALL_SUBNETWORKS_ALL_IP_RANGES",
|
|
99
|
+
* });
|
|
100
|
+
* const _this = new databricks.MwsNetworks("this", {
|
|
101
|
+
* accountId: databricksAccountId,
|
|
102
|
+
* networkName: `test-demo-${random_string.suffix.result}`,
|
|
103
|
+
* gcpNetworkInfo: {
|
|
104
|
+
* networkProjectId: _var.google_project,
|
|
105
|
+
* vpcId: dbxPrivateVpc.name,
|
|
106
|
+
* subnetId: google_compute_subnetwork.network_with_private_secondary_ip_ranges.name,
|
|
107
|
+
* subnetRegion: google_compute_subnetwork.network_with_private_secondary_ip_ranges.region,
|
|
108
|
+
* podIpRangeName: "pods",
|
|
109
|
+
* serviceIpRangeName: "svc",
|
|
110
|
+
* },
|
|
111
|
+
* });
|
|
112
|
+
* ```
|
|
113
|
+
*
|
|
114
|
+
* In order to create a VPC [that leverages GCP Private Service Connect](https://docs.gcp.databricks.com/administration-guide/cloud-configurations/gcp/private-service-connect.html) you would need to add the `vpcEndpointId` Attributes from mwsVpcEndpoint resources into the databricks.MwsNetworks resource. For example:
|
|
115
|
+
*
|
|
116
|
+
* ```typescript
|
|
117
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
118
|
+
* import * as databricks from "@pulumi/databricks";
|
|
119
|
+
*
|
|
120
|
+
* const _this = new databricks.MwsNetworks("this", {
|
|
121
|
+
* accountId: _var.databricks_account_id,
|
|
122
|
+
* networkName: `test-demo-${random_string.suffix.result}`,
|
|
123
|
+
* gcpNetworkInfo: {
|
|
124
|
+
* networkProjectId: _var.google_project,
|
|
125
|
+
* vpcId: google_compute_network.dbx_private_vpc.name,
|
|
126
|
+
* subnetId: google_compute_subnetwork.network_with_private_secondary_ip_ranges.name,
|
|
127
|
+
* subnetRegion: google_compute_subnetwork.network_with_private_secondary_ip_ranges.region,
|
|
128
|
+
* podIpRangeName: "pods",
|
|
129
|
+
* serviceIpRangeName: "svc",
|
|
130
|
+
* },
|
|
131
|
+
* vpcEndpoints: {
|
|
132
|
+
* dataplaneRelays: [databricks_mws_vpc_endpoint.relay.vpc_endpoint_id],
|
|
133
|
+
* restApis: [databricks_mws_vpc_endpoint.workspace.vpc_endpoint_id],
|
|
134
|
+
* },
|
|
135
|
+
* });
|
|
136
|
+
* ```
|
|
55
137
|
* ## Modifying networks on running workspaces (AWS only)
|
|
56
138
|
*
|
|
57
139
|
* Due to specifics of platform APIs, changing any attribute of network configuration would cause `databricks.MwsNetworks` to be re-created - deleted & added again with special case for running workspaces. Once network configuration is attached to a running databricks_mws_workspaces, you cannot delete it and `pulumi up` would result in `INVALID_STATE: Unable to delete, Network is being used by active workspace X` error. In order to modify any attributes of a network, you have to perform three different `pulumi up` steps:
|
package/mwsNetworks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mwsNetworks.js","sourceRoot":"","sources":["../mwsNetworks.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"mwsNetworks.js","sourceRoot":"","sources":["../mwsNetworks.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyJG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;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C,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAzHL,kCA0HC;AA5GG,gBAAgB;AACO,wBAAY,GAAG,0CAA0C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/databricks",
|
|
3
|
-
"version": "v1.17.0
|
|
3
|
+
"version": "v1.17.0",
|
|
4
4
|
"description": "A Pulumi package for creating and managing databricks cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc",
|
|
15
|
-
"install": "node scripts/install-pulumi-plugin.js resource databricks v1.17.0
|
|
15
|
+
"install": "node scripts/install-pulumi-plugin.js resource databricks v1.17.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@pulumi/pulumi": "^3.0.0"
|
package/storageCredential.d.ts
CHANGED
|
@@ -108,6 +108,10 @@ export declare class StorageCredential extends pulumi.CustomResource {
|
|
|
108
108
|
* `awsIamRole` optional configuration block for credential details for AWS:
|
|
109
109
|
*/
|
|
110
110
|
readonly owner: pulumi.Output<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Indicates whether the storage credential is only usable for read operations.
|
|
113
|
+
*/
|
|
114
|
+
readonly readOnly: pulumi.Output<boolean | undefined>;
|
|
111
115
|
/**
|
|
112
116
|
* Create a StorageCredential resource with the given unique name, arguments, and options.
|
|
113
117
|
*
|
|
@@ -138,6 +142,10 @@ export interface StorageCredentialState {
|
|
|
138
142
|
* `awsIamRole` optional configuration block for credential details for AWS:
|
|
139
143
|
*/
|
|
140
144
|
owner?: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* Indicates whether the storage credential is only usable for read operations.
|
|
147
|
+
*/
|
|
148
|
+
readOnly?: pulumi.Input<boolean>;
|
|
141
149
|
}
|
|
142
150
|
/**
|
|
143
151
|
* The set of arguments for constructing a StorageCredential resource.
|
|
@@ -160,4 +168,8 @@ export interface StorageCredentialArgs {
|
|
|
160
168
|
* `awsIamRole` optional configuration block for credential details for AWS:
|
|
161
169
|
*/
|
|
162
170
|
owner?: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* Indicates whether the storage credential is only usable for read operations.
|
|
173
|
+
*/
|
|
174
|
+
readOnly?: pulumi.Input<boolean>;
|
|
163
175
|
}
|
package/storageCredential.js
CHANGED
|
@@ -116,6 +116,7 @@ class StorageCredential extends pulumi.CustomResource {
|
|
|
116
116
|
resourceInputs["metastoreId"] = state ? state.metastoreId : undefined;
|
|
117
117
|
resourceInputs["name"] = state ? state.name : undefined;
|
|
118
118
|
resourceInputs["owner"] = state ? state.owner : undefined;
|
|
119
|
+
resourceInputs["readOnly"] = state ? state.readOnly : undefined;
|
|
119
120
|
}
|
|
120
121
|
else {
|
|
121
122
|
const args = argsOrState;
|
|
@@ -128,6 +129,7 @@ class StorageCredential extends pulumi.CustomResource {
|
|
|
128
129
|
resourceInputs["metastoreId"] = args ? args.metastoreId : undefined;
|
|
129
130
|
resourceInputs["name"] = args ? args.name : undefined;
|
|
130
131
|
resourceInputs["owner"] = args ? args.owner : undefined;
|
|
132
|
+
resourceInputs["readOnly"] = args ? args.readOnly : undefined;
|
|
131
133
|
}
|
|
132
134
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
133
135
|
super(StorageCredential.__pulumiType, name, resourceInputs, opts);
|
package/storageCredential.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageCredential.js","sourceRoot":"","sources":["../storageCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,iBAAiB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACtE,CAAC;;AAxFL,8CAyFC;AA3EG,gBAAgB;AACO,8BAAY,GAAG,sDAAsD,CAAC"}
|
package/token.d.ts
CHANGED
|
@@ -2,6 +2,38 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* This resource creates [Personal Access Tokens](https://docs.databricks.com/sql/user/security/personal-access-tokens.html) for the same user that is authenticated with the provider. Most likely you should use databricks.OboToken to create [On-Behalf-Of tokens](https://docs.databricks.com/administration-guide/users-groups/service-principals.html#manage-personal-access-tokens-for-a-service-principal) for a databricks.ServicePrincipal in Databricks workspaces on AWS. Databricks workspaces on other clouds use their own native OAuth token flows.
|
|
4
4
|
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as databricks from "@pulumi/databricks";
|
|
10
|
+
*
|
|
11
|
+
* // initialize provider in normal mode
|
|
12
|
+
* const createdWorkspace = new databricks.Provider("createdWorkspace", {host: databricks_mws_workspaces["this"].workspace_url});
|
|
13
|
+
* // create PAT token to provision entities within workspace
|
|
14
|
+
* const pat = new databricks.Token("pat", {
|
|
15
|
+
* comment: "Terraform Provisioning",
|
|
16
|
+
* lifetimeSeconds: 8640000,
|
|
17
|
+
* }, {
|
|
18
|
+
* provider: databricks.created_workspace,
|
|
19
|
+
* });
|
|
20
|
+
* export const databricksToken = pat.tokenValue;
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* A token can be automatically rotated by taking a dependency on the `timeRotating` resource:
|
|
24
|
+
*
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
27
|
+
* import * as databricks from "@pulumi/databricks";
|
|
28
|
+
* import * as time from "@pulumiverse/time";
|
|
29
|
+
*
|
|
30
|
+
* const _this = new time.Rotating("this", {rotationDays: 30});
|
|
31
|
+
* const pat = new databricks.Token("pat", {
|
|
32
|
+
* comment: pulumi.interpolate`Terraform (created: ${_this.rfc3339})`,
|
|
33
|
+
* lifetimeSeconds: 60 * 24 * 60 * 60,
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
5
37
|
* ## Import
|
|
6
38
|
*
|
|
7
39
|
* -> **Note** Importing this resource is not currently supported.
|
package/token.js
CHANGED
|
@@ -8,6 +8,38 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* This resource creates [Personal Access Tokens](https://docs.databricks.com/sql/user/security/personal-access-tokens.html) for the same user that is authenticated with the provider. Most likely you should use databricks.OboToken to create [On-Behalf-Of tokens](https://docs.databricks.com/administration-guide/users-groups/service-principals.html#manage-personal-access-tokens-for-a-service-principal) for a databricks.ServicePrincipal in Databricks workspaces on AWS. Databricks workspaces on other clouds use their own native OAuth token flows.
|
|
10
10
|
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as databricks from "@pulumi/databricks";
|
|
16
|
+
*
|
|
17
|
+
* // initialize provider in normal mode
|
|
18
|
+
* const createdWorkspace = new databricks.Provider("createdWorkspace", {host: databricks_mws_workspaces["this"].workspace_url});
|
|
19
|
+
* // create PAT token to provision entities within workspace
|
|
20
|
+
* const pat = new databricks.Token("pat", {
|
|
21
|
+
* comment: "Terraform Provisioning",
|
|
22
|
+
* lifetimeSeconds: 8640000,
|
|
23
|
+
* }, {
|
|
24
|
+
* provider: databricks.created_workspace,
|
|
25
|
+
* });
|
|
26
|
+
* export const databricksToken = pat.tokenValue;
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* A token can be automatically rotated by taking a dependency on the `timeRotating` resource:
|
|
30
|
+
*
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
33
|
+
* import * as databricks from "@pulumi/databricks";
|
|
34
|
+
* import * as time from "@pulumiverse/time";
|
|
35
|
+
*
|
|
36
|
+
* const _this = new time.Rotating("this", {rotationDays: 30});
|
|
37
|
+
* const pat = new databricks.Token("pat", {
|
|
38
|
+
* comment: pulumi.interpolate`Terraform (created: ${_this.rfc3339})`,
|
|
39
|
+
* lifetimeSeconds: 60 * 24 * 60 * 60,
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
11
43
|
* ## Import
|
|
12
44
|
*
|
|
13
45
|
* -> **Note** Importing this resource is not currently supported.
|
package/token.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.js","sourceRoot":"","sources":["../token.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"","sources":["../token.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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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Y,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,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,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;QAC/D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AA5EL,sBA6EC;AA/DG,gBAAgB;AACO,kBAAY,GAAG,8BAA8B,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -723,12 +723,14 @@ export interface GetJobJobSettings {
|
|
|
723
723
|
createdTime?: number;
|
|
724
724
|
creatorUserName?: string;
|
|
725
725
|
jobId?: number;
|
|
726
|
+
runAsUserName?: string;
|
|
726
727
|
settings?: inputs.GetJobJobSettingsSettings;
|
|
727
728
|
}
|
|
728
729
|
export interface GetJobJobSettingsArgs {
|
|
729
730
|
createdTime?: pulumi.Input<number>;
|
|
730
731
|
creatorUserName?: pulumi.Input<string>;
|
|
731
732
|
jobId?: pulumi.Input<number>;
|
|
733
|
+
runAsUserName?: pulumi.Input<string>;
|
|
732
734
|
settings?: pulumi.Input<inputs.GetJobJobSettingsSettingsArgs>;
|
|
733
735
|
}
|
|
734
736
|
export interface GetJobJobSettingsSettings {
|
|
@@ -754,6 +756,7 @@ export interface GetJobJobSettingsSettings {
|
|
|
754
756
|
pythonWheelTask?: inputs.GetJobJobSettingsSettingsPythonWheelTask;
|
|
755
757
|
queue?: inputs.GetJobJobSettingsSettingsQueue;
|
|
756
758
|
retryOnTimeout?: boolean;
|
|
759
|
+
runAs?: inputs.GetJobJobSettingsSettingsRunAs;
|
|
757
760
|
schedule?: inputs.GetJobJobSettingsSettingsSchedule;
|
|
758
761
|
sparkJarTask?: inputs.GetJobJobSettingsSettingsSparkJarTask;
|
|
759
762
|
sparkPythonTask?: inputs.GetJobJobSettingsSettingsSparkPythonTask;
|
|
@@ -789,6 +792,7 @@ export interface GetJobJobSettingsSettingsArgs {
|
|
|
789
792
|
pythonWheelTask?: pulumi.Input<inputs.GetJobJobSettingsSettingsPythonWheelTaskArgs>;
|
|
790
793
|
queue?: pulumi.Input<inputs.GetJobJobSettingsSettingsQueueArgs>;
|
|
791
794
|
retryOnTimeout?: pulumi.Input<boolean>;
|
|
795
|
+
runAs?: pulumi.Input<inputs.GetJobJobSettingsSettingsRunAsArgs>;
|
|
792
796
|
schedule?: pulumi.Input<inputs.GetJobJobSettingsSettingsScheduleArgs>;
|
|
793
797
|
sparkJarTask?: pulumi.Input<inputs.GetJobJobSettingsSettingsSparkJarTaskArgs>;
|
|
794
798
|
sparkPythonTask?: pulumi.Input<inputs.GetJobJobSettingsSettingsSparkPythonTaskArgs>;
|
|
@@ -1493,6 +1497,14 @@ export interface GetJobJobSettingsSettingsQueue {
|
|
|
1493
1497
|
}
|
|
1494
1498
|
export interface GetJobJobSettingsSettingsQueueArgs {
|
|
1495
1499
|
}
|
|
1500
|
+
export interface GetJobJobSettingsSettingsRunAs {
|
|
1501
|
+
servicePrincipalName?: string;
|
|
1502
|
+
userName?: string;
|
|
1503
|
+
}
|
|
1504
|
+
export interface GetJobJobSettingsSettingsRunAsArgs {
|
|
1505
|
+
servicePrincipalName?: pulumi.Input<string>;
|
|
1506
|
+
userName?: pulumi.Input<string>;
|
|
1507
|
+
}
|
|
1496
1508
|
export interface GetJobJobSettingsSettingsSchedule {
|
|
1497
1509
|
pauseStatus?: string;
|
|
1498
1510
|
quartzCronExpression: string;
|
|
@@ -2754,6 +2766,27 @@ export interface JobPythonWheelTask {
|
|
|
2754
2766
|
}
|
|
2755
2767
|
export interface JobQueue {
|
|
2756
2768
|
}
|
|
2769
|
+
export interface JobRunAs {
|
|
2770
|
+
/**
|
|
2771
|
+
* The application ID of an active service principal. Setting this field requires the `servicePrincipal/user` role.
|
|
2772
|
+
*
|
|
2773
|
+
* Example
|
|
2774
|
+
*
|
|
2775
|
+
* ```typescript
|
|
2776
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
2777
|
+
* import * as databricks from "@pulumi/databricks";
|
|
2778
|
+
*
|
|
2779
|
+
* const _this = new databricks.Job("this", {runAs: {
|
|
2780
|
+
* servicePrincipalName: "8d23ae77-912e-4a19-81e4-b9c3f5cc9349",
|
|
2781
|
+
* }});
|
|
2782
|
+
* ```
|
|
2783
|
+
*/
|
|
2784
|
+
servicePrincipalName?: pulumi.Input<string>;
|
|
2785
|
+
/**
|
|
2786
|
+
* The email of an active workspace user. Non-admin users can only set this field to their own email.
|
|
2787
|
+
*/
|
|
2788
|
+
userName?: pulumi.Input<string>;
|
|
2789
|
+
}
|
|
2757
2790
|
export interface JobSchedule {
|
|
2758
2791
|
/**
|
|
2759
2792
|
* Indicate whether this schedule is paused or not. Either `PAUSED` or `UNPAUSED`. When the `pauseStatus` field is omitted and a schedule is provided, the server will default to using `UNPAUSED` as a value for `pauseStatus`.
|
package/types/output.d.ts
CHANGED
|
@@ -429,6 +429,7 @@ export interface GetJobJobSettings {
|
|
|
429
429
|
createdTime?: number;
|
|
430
430
|
creatorUserName?: string;
|
|
431
431
|
jobId?: number;
|
|
432
|
+
runAsUserName: string;
|
|
432
433
|
settings?: outputs.GetJobJobSettingsSettings;
|
|
433
434
|
}
|
|
434
435
|
export interface GetJobJobSettingsSettings {
|
|
@@ -454,6 +455,7 @@ export interface GetJobJobSettingsSettings {
|
|
|
454
455
|
pythonWheelTask?: outputs.GetJobJobSettingsSettingsPythonWheelTask;
|
|
455
456
|
queue?: outputs.GetJobJobSettingsSettingsQueue;
|
|
456
457
|
retryOnTimeout?: boolean;
|
|
458
|
+
runAs?: outputs.GetJobJobSettingsSettingsRunAs;
|
|
457
459
|
schedule?: outputs.GetJobJobSettingsSettingsSchedule;
|
|
458
460
|
sparkJarTask?: outputs.GetJobJobSettingsSettingsSparkJarTask;
|
|
459
461
|
sparkPythonTask?: outputs.GetJobJobSettingsSettingsSparkPythonTask;
|
|
@@ -812,6 +814,10 @@ export interface GetJobJobSettingsSettingsPythonWheelTask {
|
|
|
812
814
|
}
|
|
813
815
|
export interface GetJobJobSettingsSettingsQueue {
|
|
814
816
|
}
|
|
817
|
+
export interface GetJobJobSettingsSettingsRunAs {
|
|
818
|
+
servicePrincipalName?: string;
|
|
819
|
+
userName?: string;
|
|
820
|
+
}
|
|
815
821
|
export interface GetJobJobSettingsSettingsSchedule {
|
|
816
822
|
pauseStatus: string;
|
|
817
823
|
quartzCronExpression: string;
|
|
@@ -1725,6 +1731,27 @@ export interface JobPythonWheelTask {
|
|
|
1725
1731
|
}
|
|
1726
1732
|
export interface JobQueue {
|
|
1727
1733
|
}
|
|
1734
|
+
export interface JobRunAs {
|
|
1735
|
+
/**
|
|
1736
|
+
* The application ID of an active service principal. Setting this field requires the `servicePrincipal/user` role.
|
|
1737
|
+
*
|
|
1738
|
+
* Example
|
|
1739
|
+
*
|
|
1740
|
+
* ```typescript
|
|
1741
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
1742
|
+
* import * as databricks from "@pulumi/databricks";
|
|
1743
|
+
*
|
|
1744
|
+
* const _this = new databricks.Job("this", {runAs: {
|
|
1745
|
+
* servicePrincipalName: "8d23ae77-912e-4a19-81e4-b9c3f5cc9349",
|
|
1746
|
+
* }});
|
|
1747
|
+
* ```
|
|
1748
|
+
*/
|
|
1749
|
+
servicePrincipalName?: string;
|
|
1750
|
+
/**
|
|
1751
|
+
* The email of an active workspace user. Non-admin users can only set this field to their own email.
|
|
1752
|
+
*/
|
|
1753
|
+
userName?: string;
|
|
1754
|
+
}
|
|
1728
1755
|
export interface JobSchedule {
|
|
1729
1756
|
/**
|
|
1730
1757
|
* Indicate whether this schedule is paused or not. Either `PAUSED` or `UNPAUSED`. When the `pauseStatus` field is omitted and a schedule is provided, the server will default to using `UNPAUSED` as a value for `pauseStatus`.
|