@pulumi/databricks 1.0.0 → 1.1.0-alpha.1658787480

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.
@@ -4,60 +4,9 @@ import { input as inputs, output as outputs } from "./types";
4
4
  * > **Public Preview** This feature is in [Public Preview](https://docs.databricks.com/release-notes/release-types.html). Contact your Databricks representative to request access.
5
5
  *
6
6
  * To work with external tables, Unity Catalog introduces two new objects to access and work with external cloud storage:
7
- * - `databricks.StorageCredential` represents authentication methods to access cloud storage (e.g. an IAM role for Amazon S3 or a service principal for Azure Storage). Storage credentials are access-controlled to determine which users can use the credential.
8
- * - databricks.ExternalLocation are objects that combine a cloud storage path with a Storage Credential that can be used to access the location.
9
- *
10
- * ## Example Usage
11
- *
12
- * For AWS
13
- *
14
- * ```typescript
15
- * import * as pulumi from "@pulumi/pulumi";
16
- * import * as databricks from "@pulumi/databricks";
17
- *
18
- * const external = new databricks.StorageCredential("external", {
19
- * awsIamRole: {
20
- * roleArn: aws_iam_role.external_data_access.arn,
21
- * },
22
- * comment: "Managed by TF",
23
- * });
24
- * const externalCreds = new databricks.Grants("externalCreds", {
25
- * storageCredential: external.id,
26
- * grants: [{
27
- * principal: "Data Engineers",
28
- * privileges: ["CREATE_TABLE"],
29
- * }],
30
- * });
31
- * ```
32
- *
33
- * For Azure
34
- *
35
- * ```typescript
36
- * import * as pulumi from "@pulumi/pulumi";
37
- * import * as databricks from "@pulumi/databricks";
38
7
  *
39
- * const externalSp = new databricks.StorageCredential("externalSp", {
40
- * azureServicePrincipal: {
41
- * directoryId: _var.tenant_id,
42
- * applicationId: azuread_application.ext_cred.application_id,
43
- * clientSecret: azuread_application_password.ext_cred.value,
44
- * },
45
- * comment: "SP credential managed by TF",
46
- * });
47
- * const externalMi = new databricks.StorageCredential("externalMi", {
48
- * azureManagedIdentity: {
49
- * accessConnectorId: _var.access_connector_id,
50
- * },
51
- * comment: "Managed identity credential managed by TF",
52
- * });
53
- * const externalCreds = new databricks.Grants("externalCreds", {
54
- * storageCredential: databricks_storage_credential.external.id,
55
- * grants: [{
56
- * principal: "Data Engineers",
57
- * privileges: ["CREATE_TABLE"],
58
- * }],
59
- * });
60
- * ```
8
+ * - `databricks.StorageCredential` represents authentication methods to access cloud storage (e.g. an IAM role for Amazon S3 or a service principal/managed identity for Azure Storage). Storage credentials are access-controlled to determine which users can use the credential.
9
+ * - databricks.ExternalLocation are objects that combine a cloud storage path with a Storage Credential that can be used to access the location.
61
10
  *
62
11
  * ## Import
63
12
  *
@@ -9,60 +9,9 @@ const utilities = require("./utilities");
9
9
  * > **Public Preview** This feature is in [Public Preview](https://docs.databricks.com/release-notes/release-types.html). Contact your Databricks representative to request access.
10
10
  *
11
11
  * To work with external tables, Unity Catalog introduces two new objects to access and work with external cloud storage:
12
- * - `databricks.StorageCredential` represents authentication methods to access cloud storage (e.g. an IAM role for Amazon S3 or a service principal for Azure Storage). Storage credentials are access-controlled to determine which users can use the credential.
13
- * - databricks.ExternalLocation are objects that combine a cloud storage path with a Storage Credential that can be used to access the location.
14
- *
15
- * ## Example Usage
16
- *
17
- * For AWS
18
- *
19
- * ```typescript
20
- * import * as pulumi from "@pulumi/pulumi";
21
- * import * as databricks from "@pulumi/databricks";
22
- *
23
- * const external = new databricks.StorageCredential("external", {
24
- * awsIamRole: {
25
- * roleArn: aws_iam_role.external_data_access.arn,
26
- * },
27
- * comment: "Managed by TF",
28
- * });
29
- * const externalCreds = new databricks.Grants("externalCreds", {
30
- * storageCredential: external.id,
31
- * grants: [{
32
- * principal: "Data Engineers",
33
- * privileges: ["CREATE_TABLE"],
34
- * }],
35
- * });
36
- * ```
37
- *
38
- * For Azure
39
- *
40
- * ```typescript
41
- * import * as pulumi from "@pulumi/pulumi";
42
- * import * as databricks from "@pulumi/databricks";
43
12
  *
44
- * const externalSp = new databricks.StorageCredential("externalSp", {
45
- * azureServicePrincipal: {
46
- * directoryId: _var.tenant_id,
47
- * applicationId: azuread_application.ext_cred.application_id,
48
- * clientSecret: azuread_application_password.ext_cred.value,
49
- * },
50
- * comment: "SP credential managed by TF",
51
- * });
52
- * const externalMi = new databricks.StorageCredential("externalMi", {
53
- * azureManagedIdentity: {
54
- * accessConnectorId: _var.access_connector_id,
55
- * },
56
- * comment: "Managed identity credential managed by TF",
57
- * });
58
- * const externalCreds = new databricks.Grants("externalCreds", {
59
- * storageCredential: databricks_storage_credential.external.id,
60
- * grants: [{
61
- * principal: "Data Engineers",
62
- * privileges: ["CREATE_TABLE"],
63
- * }],
64
- * });
65
- * ```
13
+ * - `databricks.StorageCredential` represents authentication methods to access cloud storage (e.g. an IAM role for Amazon S3 or a service principal/managed identity for Azure Storage). Storage credentials are access-controlled to determine which users can use the credential.
14
+ * - databricks.ExternalLocation are objects that combine a cloud storage path with a Storage Credential that can be used to access the location.
66
15
  *
67
16
  * ## Import
68
17
  *
@@ -1 +1 @@
1
- {"version":3,"file":"storageCredential.js","sourceRoot":"","sources":["../storageCredential.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IA+CxD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,sBAAsB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS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AAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;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;IAtED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,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,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;;AA1BL,8CAwEC;AA1DG,gBAAgB;AACO,8BAAY,GAAG,sDAAsD,CAAC"}
package/types/input.d.ts CHANGED
@@ -95,6 +95,457 @@ export interface ClusterLibraryPypi {
95
95
  package: pulumi.Input<string>;
96
96
  repo?: pulumi.Input<string>;
97
97
  }
98
+ export interface ClusterWorkloadType {
99
+ clients: pulumi.Input<inputs.ClusterWorkloadTypeClients>;
100
+ }
101
+ export interface ClusterWorkloadTypeClients {
102
+ jobs?: pulumi.Input<boolean>;
103
+ notebooks?: pulumi.Input<boolean>;
104
+ }
105
+ export interface GetClusterClusterInfo {
106
+ autoscale?: inputs.GetClusterClusterInfoAutoscale;
107
+ /**
108
+ * Automatically terminate the cluster after being inactive for this time in minutes. If specified, the threshold must be between 10 and 10000 minutes. You can also set this value to 0 to explicitly disable automatic termination.
109
+ */
110
+ autoterminationMinutes?: number;
111
+ awsAttributes?: inputs.GetClusterClusterInfoAwsAttributes;
112
+ azureAttributes?: inputs.GetClusterClusterInfoAzureAttributes;
113
+ clusterCores?: number;
114
+ /**
115
+ * The id of the cluster
116
+ */
117
+ clusterId?: string;
118
+ clusterLogConf?: inputs.GetClusterClusterInfoClusterLogConf;
119
+ clusterLogStatus?: inputs.GetClusterClusterInfoClusterLogStatus;
120
+ clusterMemoryMb?: number;
121
+ /**
122
+ * Cluster name, which doesn’t have to be unique.
123
+ */
124
+ clusterName?: string;
125
+ clusterSource?: string;
126
+ creatorUserName?: string;
127
+ /**
128
+ * Additional tags for cluster resources.
129
+ */
130
+ customTags?: {
131
+ [key: string]: any;
132
+ };
133
+ /**
134
+ * Security features of the cluster. Unity Catalog requires `SINGLE_USER` or `USER_ISOLATION` mode. `LEGACY_PASSTHROUGH` for passthrough cluster and `LEGACY_TABLE_ACL` for Table ACL cluster. Default to `NONE`, i.e. no security feature enabled.
135
+ */
136
+ dataSecurityMode?: string;
137
+ defaultTags: {
138
+ [key: string]: any;
139
+ };
140
+ dockerImage?: inputs.GetClusterClusterInfoDockerImage;
141
+ driver?: inputs.GetClusterClusterInfoDriver;
142
+ /**
143
+ * similar to `instancePoolId`, but for driver node.
144
+ */
145
+ driverInstancePoolId?: string;
146
+ /**
147
+ * The node type of the Spark driver.
148
+ */
149
+ driverNodeTypeId?: string;
150
+ /**
151
+ * Use autoscaling local storage.
152
+ */
153
+ enableElasticDisk?: boolean;
154
+ /**
155
+ * Enable local disk encryption.
156
+ */
157
+ enableLocalDiskEncryption?: boolean;
158
+ executors?: inputs.GetClusterClusterInfoExecutor[];
159
+ gcpAttributes?: inputs.GetClusterClusterInfoGcpAttributes;
160
+ initScripts?: inputs.GetClusterClusterInfoInitScript[];
161
+ instancePoolId?: string;
162
+ jdbcPort?: number;
163
+ lastActivityTime?: number;
164
+ lastStateLossTime?: number;
165
+ /**
166
+ * Any supported databricks.getNodeType id.
167
+ * * `instancePoolId` The pool of idle instances the cluster is attached to.
168
+ */
169
+ nodeTypeId?: string;
170
+ numWorkers?: number;
171
+ /**
172
+ * Identifier of Cluster Policy to validate cluster and preset certain defaults.
173
+ */
174
+ policyId?: string;
175
+ /**
176
+ * The optional user name of the user to assign to an interactive cluster. This field is required when using standard AAD Passthrough for Azure Data Lake Storage (ADLS) with a single-user cluster (i.e., not high-concurrency clusters).
177
+ */
178
+ singleUserName?: string;
179
+ /**
180
+ * Map with key-value pairs to fine-tune Spark clusters.
181
+ */
182
+ sparkConf?: {
183
+ [key: string]: any;
184
+ };
185
+ sparkContextId?: number;
186
+ /**
187
+ * Map with environment variable key-value pairs to fine-tune Spark clusters. Key-value pairs of the form (X,Y) are exported (i.e., X='Y') while launching the driver and workers.
188
+ */
189
+ sparkEnvVars?: {
190
+ [key: string]: any;
191
+ };
192
+ /**
193
+ * [Runtime version](https://docs.databricks.com/runtime/index.html) of the cluster.
194
+ */
195
+ sparkVersion: string;
196
+ /**
197
+ * SSH public key contents that will be added to each Spark node in this cluster.
198
+ */
199
+ sshPublicKeys?: string[];
200
+ startTime?: number;
201
+ state: string;
202
+ stateMessage?: string;
203
+ terminateTime?: number;
204
+ terminationReason?: inputs.GetClusterClusterInfoTerminationReason;
205
+ }
206
+ export interface GetClusterClusterInfoArgs {
207
+ autoscale?: pulumi.Input<inputs.GetClusterClusterInfoAutoscaleArgs>;
208
+ /**
209
+ * Automatically terminate the cluster after being inactive for this time in minutes. If specified, the threshold must be between 10 and 10000 minutes. You can also set this value to 0 to explicitly disable automatic termination.
210
+ */
211
+ autoterminationMinutes?: pulumi.Input<number>;
212
+ awsAttributes?: pulumi.Input<inputs.GetClusterClusterInfoAwsAttributesArgs>;
213
+ azureAttributes?: pulumi.Input<inputs.GetClusterClusterInfoAzureAttributesArgs>;
214
+ clusterCores?: pulumi.Input<number>;
215
+ /**
216
+ * The id of the cluster
217
+ */
218
+ clusterId?: pulumi.Input<string>;
219
+ clusterLogConf?: pulumi.Input<inputs.GetClusterClusterInfoClusterLogConfArgs>;
220
+ clusterLogStatus?: pulumi.Input<inputs.GetClusterClusterInfoClusterLogStatusArgs>;
221
+ clusterMemoryMb?: pulumi.Input<number>;
222
+ /**
223
+ * Cluster name, which doesn’t have to be unique.
224
+ */
225
+ clusterName?: pulumi.Input<string>;
226
+ clusterSource?: pulumi.Input<string>;
227
+ creatorUserName?: pulumi.Input<string>;
228
+ /**
229
+ * Additional tags for cluster resources.
230
+ */
231
+ customTags?: pulumi.Input<{
232
+ [key: string]: any;
233
+ }>;
234
+ /**
235
+ * Security features of the cluster. Unity Catalog requires `SINGLE_USER` or `USER_ISOLATION` mode. `LEGACY_PASSTHROUGH` for passthrough cluster and `LEGACY_TABLE_ACL` for Table ACL cluster. Default to `NONE`, i.e. no security feature enabled.
236
+ */
237
+ dataSecurityMode?: pulumi.Input<string>;
238
+ defaultTags: pulumi.Input<{
239
+ [key: string]: any;
240
+ }>;
241
+ dockerImage?: pulumi.Input<inputs.GetClusterClusterInfoDockerImageArgs>;
242
+ driver?: pulumi.Input<inputs.GetClusterClusterInfoDriverArgs>;
243
+ /**
244
+ * similar to `instancePoolId`, but for driver node.
245
+ */
246
+ driverInstancePoolId?: pulumi.Input<string>;
247
+ /**
248
+ * The node type of the Spark driver.
249
+ */
250
+ driverNodeTypeId?: pulumi.Input<string>;
251
+ /**
252
+ * Use autoscaling local storage.
253
+ */
254
+ enableElasticDisk?: pulumi.Input<boolean>;
255
+ /**
256
+ * Enable local disk encryption.
257
+ */
258
+ enableLocalDiskEncryption?: pulumi.Input<boolean>;
259
+ executors?: pulumi.Input<pulumi.Input<inputs.GetClusterClusterInfoExecutorArgs>[]>;
260
+ gcpAttributes?: pulumi.Input<inputs.GetClusterClusterInfoGcpAttributesArgs>;
261
+ initScripts?: pulumi.Input<pulumi.Input<inputs.GetClusterClusterInfoInitScriptArgs>[]>;
262
+ instancePoolId?: pulumi.Input<string>;
263
+ jdbcPort?: pulumi.Input<number>;
264
+ lastActivityTime?: pulumi.Input<number>;
265
+ lastStateLossTime?: pulumi.Input<number>;
266
+ /**
267
+ * Any supported databricks.getNodeType id.
268
+ * * `instancePoolId` The pool of idle instances the cluster is attached to.
269
+ */
270
+ nodeTypeId?: pulumi.Input<string>;
271
+ numWorkers?: pulumi.Input<number>;
272
+ /**
273
+ * Identifier of Cluster Policy to validate cluster and preset certain defaults.
274
+ */
275
+ policyId?: pulumi.Input<string>;
276
+ /**
277
+ * The optional user name of the user to assign to an interactive cluster. This field is required when using standard AAD Passthrough for Azure Data Lake Storage (ADLS) with a single-user cluster (i.e., not high-concurrency clusters).
278
+ */
279
+ singleUserName?: pulumi.Input<string>;
280
+ /**
281
+ * Map with key-value pairs to fine-tune Spark clusters.
282
+ */
283
+ sparkConf?: pulumi.Input<{
284
+ [key: string]: any;
285
+ }>;
286
+ sparkContextId?: pulumi.Input<number>;
287
+ /**
288
+ * Map with environment variable key-value pairs to fine-tune Spark clusters. Key-value pairs of the form (X,Y) are exported (i.e., X='Y') while launching the driver and workers.
289
+ */
290
+ sparkEnvVars?: pulumi.Input<{
291
+ [key: string]: any;
292
+ }>;
293
+ /**
294
+ * [Runtime version](https://docs.databricks.com/runtime/index.html) of the cluster.
295
+ */
296
+ sparkVersion: pulumi.Input<string>;
297
+ /**
298
+ * SSH public key contents that will be added to each Spark node in this cluster.
299
+ */
300
+ sshPublicKeys?: pulumi.Input<pulumi.Input<string>[]>;
301
+ startTime?: pulumi.Input<number>;
302
+ state: pulumi.Input<string>;
303
+ stateMessage?: pulumi.Input<string>;
304
+ terminateTime?: pulumi.Input<number>;
305
+ terminationReason?: pulumi.Input<inputs.GetClusterClusterInfoTerminationReasonArgs>;
306
+ }
307
+ export interface GetClusterClusterInfoAutoscale {
308
+ maxWorkers?: number;
309
+ minWorkers?: number;
310
+ }
311
+ export interface GetClusterClusterInfoAutoscaleArgs {
312
+ maxWorkers?: pulumi.Input<number>;
313
+ minWorkers?: pulumi.Input<number>;
314
+ }
315
+ export interface GetClusterClusterInfoAwsAttributes {
316
+ availability?: string;
317
+ ebsVolumeCount?: number;
318
+ ebsVolumeSize?: number;
319
+ ebsVolumeType?: string;
320
+ firstOnDemand?: number;
321
+ instanceProfileArn?: string;
322
+ spotBidPricePercent?: number;
323
+ zoneId?: string;
324
+ }
325
+ export interface GetClusterClusterInfoAwsAttributesArgs {
326
+ availability?: pulumi.Input<string>;
327
+ ebsVolumeCount?: pulumi.Input<number>;
328
+ ebsVolumeSize?: pulumi.Input<number>;
329
+ ebsVolumeType?: pulumi.Input<string>;
330
+ firstOnDemand?: pulumi.Input<number>;
331
+ instanceProfileArn?: pulumi.Input<string>;
332
+ spotBidPricePercent?: pulumi.Input<number>;
333
+ zoneId?: pulumi.Input<string>;
334
+ }
335
+ export interface GetClusterClusterInfoAzureAttributes {
336
+ availability?: string;
337
+ firstOnDemand?: number;
338
+ spotBidMaxPrice?: number;
339
+ }
340
+ export interface GetClusterClusterInfoAzureAttributesArgs {
341
+ availability?: pulumi.Input<string>;
342
+ firstOnDemand?: pulumi.Input<number>;
343
+ spotBidMaxPrice?: pulumi.Input<number>;
344
+ }
345
+ export interface GetClusterClusterInfoClusterLogConf {
346
+ dbfs?: inputs.GetClusterClusterInfoClusterLogConfDbfs;
347
+ s3?: inputs.GetClusterClusterInfoClusterLogConfS3;
348
+ }
349
+ export interface GetClusterClusterInfoClusterLogConfArgs {
350
+ dbfs?: pulumi.Input<inputs.GetClusterClusterInfoClusterLogConfDbfsArgs>;
351
+ s3?: pulumi.Input<inputs.GetClusterClusterInfoClusterLogConfS3Args>;
352
+ }
353
+ export interface GetClusterClusterInfoClusterLogConfDbfs {
354
+ destination: string;
355
+ }
356
+ export interface GetClusterClusterInfoClusterLogConfDbfsArgs {
357
+ destination: pulumi.Input<string>;
358
+ }
359
+ export interface GetClusterClusterInfoClusterLogConfS3Args {
360
+ cannedAcl?: pulumi.Input<string>;
361
+ destination: pulumi.Input<string>;
362
+ enableEncryption?: pulumi.Input<boolean>;
363
+ encryptionType?: pulumi.Input<string>;
364
+ endpoint?: pulumi.Input<string>;
365
+ kmsKey?: pulumi.Input<string>;
366
+ region?: pulumi.Input<string>;
367
+ }
368
+ export interface GetClusterClusterInfoClusterLogConfS3 {
369
+ cannedAcl?: string;
370
+ destination: string;
371
+ enableEncryption?: boolean;
372
+ encryptionType?: string;
373
+ endpoint?: string;
374
+ kmsKey?: string;
375
+ region?: string;
376
+ }
377
+ export interface GetClusterClusterInfoClusterLogStatus {
378
+ lastAttempted?: number;
379
+ lastException?: string;
380
+ }
381
+ export interface GetClusterClusterInfoClusterLogStatusArgs {
382
+ lastAttempted?: pulumi.Input<number>;
383
+ lastException?: pulumi.Input<string>;
384
+ }
385
+ export interface GetClusterClusterInfoDockerImageArgs {
386
+ basicAuth?: pulumi.Input<inputs.GetClusterClusterInfoDockerImageBasicAuthArgs>;
387
+ url: pulumi.Input<string>;
388
+ }
389
+ export interface GetClusterClusterInfoDockerImage {
390
+ basicAuth?: inputs.GetClusterClusterInfoDockerImageBasicAuth;
391
+ url: string;
392
+ }
393
+ export interface GetClusterClusterInfoDockerImageBasicAuth {
394
+ password: string;
395
+ username: string;
396
+ }
397
+ export interface GetClusterClusterInfoDockerImageBasicAuthArgs {
398
+ password: pulumi.Input<string>;
399
+ username: pulumi.Input<string>;
400
+ }
401
+ export interface GetClusterClusterInfoDriver {
402
+ hostPrivateIp?: string;
403
+ instanceId?: string;
404
+ nodeAwsAttributes?: inputs.GetClusterClusterInfoDriverNodeAwsAttributes;
405
+ nodeId?: string;
406
+ privateIp?: string;
407
+ publicDns?: string;
408
+ startTimestamp?: number;
409
+ }
410
+ export interface GetClusterClusterInfoDriverArgs {
411
+ hostPrivateIp?: pulumi.Input<string>;
412
+ instanceId?: pulumi.Input<string>;
413
+ nodeAwsAttributes?: pulumi.Input<inputs.GetClusterClusterInfoDriverNodeAwsAttributesArgs>;
414
+ nodeId?: pulumi.Input<string>;
415
+ privateIp?: pulumi.Input<string>;
416
+ publicDns?: pulumi.Input<string>;
417
+ startTimestamp?: pulumi.Input<number>;
418
+ }
419
+ export interface GetClusterClusterInfoDriverNodeAwsAttributes {
420
+ isSpot?: boolean;
421
+ }
422
+ export interface GetClusterClusterInfoDriverNodeAwsAttributesArgs {
423
+ isSpot?: pulumi.Input<boolean>;
424
+ }
425
+ export interface GetClusterClusterInfoExecutor {
426
+ hostPrivateIp?: string;
427
+ instanceId?: string;
428
+ nodeAwsAttributes?: inputs.GetClusterClusterInfoExecutorNodeAwsAttributes;
429
+ nodeId?: string;
430
+ privateIp?: string;
431
+ publicDns?: string;
432
+ startTimestamp?: number;
433
+ }
434
+ export interface GetClusterClusterInfoExecutorArgs {
435
+ hostPrivateIp?: pulumi.Input<string>;
436
+ instanceId?: pulumi.Input<string>;
437
+ nodeAwsAttributes?: pulumi.Input<inputs.GetClusterClusterInfoExecutorNodeAwsAttributesArgs>;
438
+ nodeId?: pulumi.Input<string>;
439
+ privateIp?: pulumi.Input<string>;
440
+ publicDns?: pulumi.Input<string>;
441
+ startTimestamp?: pulumi.Input<number>;
442
+ }
443
+ export interface GetClusterClusterInfoExecutorNodeAwsAttributes {
444
+ isSpot?: boolean;
445
+ }
446
+ export interface GetClusterClusterInfoExecutorNodeAwsAttributesArgs {
447
+ isSpot?: pulumi.Input<boolean>;
448
+ }
449
+ export interface GetClusterClusterInfoGcpAttributesArgs {
450
+ availability?: pulumi.Input<string>;
451
+ bootDiskSize?: pulumi.Input<number>;
452
+ googleServiceAccount?: pulumi.Input<string>;
453
+ usePreemptibleExecutors?: pulumi.Input<boolean>;
454
+ zoneId?: pulumi.Input<string>;
455
+ }
456
+ export interface GetClusterClusterInfoGcpAttributes {
457
+ availability?: string;
458
+ bootDiskSize?: number;
459
+ googleServiceAccount?: string;
460
+ usePreemptibleExecutors?: boolean;
461
+ zoneId?: string;
462
+ }
463
+ export interface GetClusterClusterInfoInitScript {
464
+ dbfs?: inputs.GetClusterClusterInfoInitScriptDbfs;
465
+ s3?: inputs.GetClusterClusterInfoInitScriptS3;
466
+ }
467
+ export interface GetClusterClusterInfoInitScriptArgs {
468
+ dbfs?: pulumi.Input<inputs.GetClusterClusterInfoInitScriptDbfsArgs>;
469
+ s3?: pulumi.Input<inputs.GetClusterClusterInfoInitScriptS3Args>;
470
+ }
471
+ export interface GetClusterClusterInfoInitScriptDbfsArgs {
472
+ destination: pulumi.Input<string>;
473
+ }
474
+ export interface GetClusterClusterInfoInitScriptDbfs {
475
+ destination: string;
476
+ }
477
+ export interface GetClusterClusterInfoInitScriptS3 {
478
+ cannedAcl?: string;
479
+ destination: string;
480
+ enableEncryption?: boolean;
481
+ encryptionType?: string;
482
+ endpoint?: string;
483
+ kmsKey?: string;
484
+ region?: string;
485
+ }
486
+ export interface GetClusterClusterInfoInitScriptS3Args {
487
+ cannedAcl?: pulumi.Input<string>;
488
+ destination: pulumi.Input<string>;
489
+ enableEncryption?: pulumi.Input<boolean>;
490
+ encryptionType?: pulumi.Input<string>;
491
+ endpoint?: pulumi.Input<string>;
492
+ kmsKey?: pulumi.Input<string>;
493
+ region?: pulumi.Input<string>;
494
+ }
495
+ export interface GetClusterClusterInfoTerminationReason {
496
+ code?: string;
497
+ parameters?: {
498
+ [key: string]: any;
499
+ };
500
+ type?: string;
501
+ }
502
+ export interface GetClusterClusterInfoTerminationReasonArgs {
503
+ code?: pulumi.Input<string>;
504
+ parameters?: pulumi.Input<{
505
+ [key: string]: any;
506
+ }>;
507
+ type?: pulumi.Input<string>;
508
+ }
509
+ export interface GetSqlWarehouseChannel {
510
+ /**
511
+ * Name of the Databricks SQL release channel. Possible values are: `CHANNEL_NAME_PREVIEW` and `CHANNEL_NAME_CURRENT`. Default is `CHANNEL_NAME_CURRENT`.
512
+ */
513
+ name?: string;
514
+ }
515
+ export interface GetSqlWarehouseChannelArgs {
516
+ /**
517
+ * Name of the Databricks SQL release channel. Possible values are: `CHANNEL_NAME_PREVIEW` and `CHANNEL_NAME_CURRENT`. Default is `CHANNEL_NAME_CURRENT`.
518
+ */
519
+ name?: pulumi.Input<string>;
520
+ }
521
+ export interface GetSqlWarehouseOdbcParams {
522
+ host?: string;
523
+ hostname?: string;
524
+ path: string;
525
+ port: number;
526
+ protocol: string;
527
+ }
528
+ export interface GetSqlWarehouseOdbcParamsArgs {
529
+ host?: pulumi.Input<string>;
530
+ hostname?: pulumi.Input<string>;
531
+ path: pulumi.Input<string>;
532
+ port: pulumi.Input<number>;
533
+ protocol: pulumi.Input<string>;
534
+ }
535
+ export interface GetSqlWarehouseTags {
536
+ customTags: inputs.GetSqlWarehouseTagsCustomTag[];
537
+ }
538
+ export interface GetSqlWarehouseTagsArgs {
539
+ customTags: pulumi.Input<pulumi.Input<inputs.GetSqlWarehouseTagsCustomTagArgs>[]>;
540
+ }
541
+ export interface GetSqlWarehouseTagsCustomTag {
542
+ key: string;
543
+ value: string;
544
+ }
545
+ export interface GetSqlWarehouseTagsCustomTagArgs {
546
+ key: pulumi.Input<string>;
547
+ value: pulumi.Input<string>;
548
+ }
98
549
  export interface GrantsGrant {
99
550
  principal: pulumi.Input<string>;
100
551
  privileges: pulumi.Input<pulumi.Input<string>[]>;
@@ -144,6 +595,23 @@ export interface InstancePoolGcpAttributes {
144
595
  */
145
596
  availability?: pulumi.Input<string>;
146
597
  }
598
+ export interface InstancePoolInstancePoolFleetAttributes {
599
+ fleetOnDemandOption?: pulumi.Input<inputs.InstancePoolInstancePoolFleetAttributesFleetOnDemandOption>;
600
+ fleetSpotOption?: pulumi.Input<inputs.InstancePoolInstancePoolFleetAttributesFleetSpotOption>;
601
+ launchTemplateOverrides: pulumi.Input<pulumi.Input<inputs.InstancePoolInstancePoolFleetAttributesLaunchTemplateOverride>[]>;
602
+ }
603
+ export interface InstancePoolInstancePoolFleetAttributesFleetOnDemandOption {
604
+ allocationStrategy: pulumi.Input<string>;
605
+ instancePoolsToUseCount?: pulumi.Input<number>;
606
+ }
607
+ export interface InstancePoolInstancePoolFleetAttributesFleetSpotOption {
608
+ allocationStrategy: pulumi.Input<string>;
609
+ instancePoolsToUseCount?: pulumi.Input<number>;
610
+ }
611
+ export interface InstancePoolInstancePoolFleetAttributesLaunchTemplateOverride {
612
+ availabilityZone: pulumi.Input<string>;
613
+ instanceType: pulumi.Input<string>;
614
+ }
147
615
  export interface InstancePoolPreloadedDockerImage {
148
616
  basicAuth?: pulumi.Input<inputs.InstancePoolPreloadedDockerImageBasicAuth>;
149
617
  url: pulumi.Input<string>;
@@ -236,6 +704,7 @@ export interface JobJobClusterNewCluster {
236
704
  }>;
237
705
  sparkVersion: pulumi.Input<string>;
238
706
  sshPublicKeys?: pulumi.Input<pulumi.Input<string>[]>;
707
+ workloadType?: pulumi.Input<inputs.JobJobClusterNewClusterWorkloadType>;
239
708
  }
240
709
  export interface JobJobClusterNewClusterAutoscale {
241
710
  maxWorkers?: pulumi.Input<number>;
@@ -314,6 +783,13 @@ export interface JobJobClusterNewClusterInitScriptS3 {
314
783
  kmsKey?: pulumi.Input<string>;
315
784
  region?: pulumi.Input<string>;
316
785
  }
786
+ export interface JobJobClusterNewClusterWorkloadType {
787
+ clients: pulumi.Input<inputs.JobJobClusterNewClusterWorkloadTypeClients>;
788
+ }
789
+ export interface JobJobClusterNewClusterWorkloadTypeClients {
790
+ jobs?: pulumi.Input<boolean>;
791
+ notebooks?: pulumi.Input<boolean>;
792
+ }
317
793
  export interface JobLibrary {
318
794
  cran?: pulumi.Input<inputs.JobLibraryCran>;
319
795
  egg?: pulumi.Input<string>;
@@ -368,6 +844,7 @@ export interface JobNewCluster {
368
844
  }>;
369
845
  sparkVersion: pulumi.Input<string>;
370
846
  sshPublicKeys?: pulumi.Input<pulumi.Input<string>[]>;
847
+ workloadType?: pulumi.Input<inputs.JobNewClusterWorkloadType>;
371
848
  }
372
849
  export interface JobNewClusterAutoscale {
373
850
  maxWorkers?: pulumi.Input<number>;
@@ -446,6 +923,13 @@ export interface JobNewClusterInitScriptS3 {
446
923
  kmsKey?: pulumi.Input<string>;
447
924
  region?: pulumi.Input<string>;
448
925
  }
926
+ export interface JobNewClusterWorkloadType {
927
+ clients: pulumi.Input<inputs.JobNewClusterWorkloadTypeClients>;
928
+ }
929
+ export interface JobNewClusterWorkloadTypeClients {
930
+ jobs?: pulumi.Input<boolean>;
931
+ notebooks?: pulumi.Input<boolean>;
932
+ }
449
933
  export interface JobNotebookTask {
450
934
  /**
451
935
  * (Map) Base parameters to be used for each run of this job. If the run is initiated by a call to run-now with parameters specified, the two parameters maps will be merged. If the same key is specified in baseParameters and in run-now, the value from run-now will be used. If the notebook takes a parameter that is not specified in the job’s baseParameters or the run-now override parameters, the default value from the notebook will be used. Retrieve these parameters in a notebook using `dbutils.widgets.get`.
@@ -655,6 +1139,7 @@ export interface JobTaskNewCluster {
655
1139
  }>;
656
1140
  sparkVersion: pulumi.Input<string>;
657
1141
  sshPublicKeys?: pulumi.Input<pulumi.Input<string>[]>;
1142
+ workloadType?: pulumi.Input<inputs.JobTaskNewClusterWorkloadType>;
658
1143
  }
659
1144
  export interface JobTaskNewClusterAutoscale {
660
1145
  maxWorkers?: pulumi.Input<number>;
@@ -733,6 +1218,13 @@ export interface JobTaskNewClusterInitScriptS3 {
733
1218
  kmsKey?: pulumi.Input<string>;
734
1219
  region?: pulumi.Input<string>;
735
1220
  }
1221
+ export interface JobTaskNewClusterWorkloadType {
1222
+ clients: pulumi.Input<inputs.JobTaskNewClusterWorkloadTypeClients>;
1223
+ }
1224
+ export interface JobTaskNewClusterWorkloadTypeClients {
1225
+ jobs?: pulumi.Input<boolean>;
1226
+ notebooks?: pulumi.Input<boolean>;
1227
+ }
736
1228
  export interface JobTaskNotebookTask {
737
1229
  /**
738
1230
  * (Map) Base parameters to be used for each run of this job. If the run is initiated by a call to run-now with parameters specified, the two parameters maps will be merged. If the same key is specified in baseParameters and in run-now, the value from run-now will be used. If the notebook takes a parameter that is not specified in the job’s baseParameters or the run-now override parameters, the default value from the notebook will be used. Retrieve these parameters in a notebook using `dbutils.widgets.get`.