@pulumi/databricks 1.79.0-alpha.1762839813 → 1.79.0-alpha.1763185405
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/appsSettingsCustomTemplate.d.ts +19 -0
- package/appsSettingsCustomTemplate.js +19 -0
- package/appsSettingsCustomTemplate.js.map +1 -1
- package/dataQualityRefresh.d.ts +43 -0
- package/dataQualityRefresh.js +43 -0
- package/dataQualityRefresh.js.map +1 -1
- package/getDashboards.d.ts +40 -0
- package/getDashboards.js +40 -0
- package/getDashboards.js.map +1 -1
- package/package.json +2 -2
- package/rfaAccessRequestDestinations.d.ts +35 -0
- package/rfaAccessRequestDestinations.js +35 -0
- package/rfaAccessRequestDestinations.js.map +1 -1
- package/types/input.d.ts +36 -0
- package/types/output.d.ts +36 -0
|
@@ -33,6 +33,25 @@ import * as outputs from "./types/output";
|
|
|
33
33
|
*
|
|
34
34
|
* This example creates a custom template that declares required user API scopes.
|
|
35
35
|
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as databricks from "@pulumi/databricks";
|
|
39
|
+
*
|
|
40
|
+
* const apiScopesExample = new databricks.AppsSettingsCustomTemplate("api_scopes_example", {
|
|
41
|
+
* name: "my-api-template",
|
|
42
|
+
* description: "A template that requests user API scopes",
|
|
43
|
+
* gitRepo: "https://github.com/example/my-app.git",
|
|
44
|
+
* path: "templates/app",
|
|
45
|
+
* gitProvider: "github",
|
|
46
|
+
* manifest: {
|
|
47
|
+
* version: 1,
|
|
48
|
+
* name: "my-databricks-app",
|
|
49
|
+
* description: "This app requires the SQL API scope.",
|
|
50
|
+
* userApiScopes: ["sql"],
|
|
51
|
+
* },
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
36
55
|
* ### Example with Resource Requirements
|
|
37
56
|
*
|
|
38
57
|
* This example defines a template that requests specific workspace resources with permissions granted.
|
|
@@ -37,6 +37,25 @@ const utilities = require("./utilities");
|
|
|
37
37
|
*
|
|
38
38
|
* This example creates a custom template that declares required user API scopes.
|
|
39
39
|
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
42
|
+
* import * as databricks from "@pulumi/databricks";
|
|
43
|
+
*
|
|
44
|
+
* const apiScopesExample = new databricks.AppsSettingsCustomTemplate("api_scopes_example", {
|
|
45
|
+
* name: "my-api-template",
|
|
46
|
+
* description: "A template that requests user API scopes",
|
|
47
|
+
* gitRepo: "https://github.com/example/my-app.git",
|
|
48
|
+
* path: "templates/app",
|
|
49
|
+
* gitProvider: "github",
|
|
50
|
+
* manifest: {
|
|
51
|
+
* version: 1,
|
|
52
|
+
* name: "my-databricks-app",
|
|
53
|
+
* description: "This app requires the SQL API scope.",
|
|
54
|
+
* userApiScopes: ["sql"],
|
|
55
|
+
* },
|
|
56
|
+
* });
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
40
59
|
* ### Example with Resource Requirements
|
|
41
60
|
*
|
|
42
61
|
* This example defines a template that requests specific workspace resources with permissions granted.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appsSettingsCustomTemplate.js","sourceRoot":"","sources":["../appsSettingsCustomTemplate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"appsSettingsCustomTemplate.js","sourceRoot":"","sources":["../appsSettingsCustomTemplate.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4GG;AACH,MAAa,0BAA2B,SAAQ,MAAM,CAAC,cAAc;IACjE;;;;;;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18
18
|
*
|
|
19
|
+
* ```typescript
|
|
20
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
21
|
+
* import * as databricks from "@pulumi/databricks";
|
|
22
|
+
*
|
|
23
|
+
* const sandbox = new databricks.Catalog("sandbox", {
|
|
24
|
+
* name: "sandbox",
|
|
25
|
+
* comment: "this catalog is managed by terraform",
|
|
26
|
+
* properties: {
|
|
27
|
+
* purpose: "testing",
|
|
28
|
+
* },
|
|
29
|
+
* });
|
|
30
|
+
* const myTestSchema = new databricks.Schema("myTestSchema", {
|
|
31
|
+
* catalogName: sandbox.id,
|
|
32
|
+
* name: "myTestSchema",
|
|
33
|
+
* comment: "this database is managed by terraform",
|
|
34
|
+
* properties: {
|
|
35
|
+
* kind: "various",
|
|
36
|
+
* },
|
|
37
|
+
* });
|
|
38
|
+
* const myTestTable = new databricks.SqlTable("myTestTable", {
|
|
39
|
+
* catalogName: "main",
|
|
40
|
+
* schemaName: myTestSchema.name,
|
|
41
|
+
* name: "bar",
|
|
42
|
+
* tableType: "MANAGED",
|
|
43
|
+
* dataSourceFormat: "DELTA",
|
|
44
|
+
* columns: [{
|
|
45
|
+
* name: "timestamp",
|
|
46
|
+
* type: "int",
|
|
47
|
+
* }],
|
|
48
|
+
* });
|
|
49
|
+
* const _this = new databricks.DataQualityMonitor("this", {
|
|
50
|
+
* objectType: "table",
|
|
51
|
+
* objectId: myTestTable.id,
|
|
52
|
+
* dataProfilingConfig: {
|
|
53
|
+
* outputSchema: myTestSchema.schemaId,
|
|
54
|
+
* },
|
|
55
|
+
* });
|
|
56
|
+
* const thisDataQualityRefresh = new databricks.DataQualityRefresh("this", {
|
|
57
|
+
* objectType: "table",
|
|
58
|
+
* objectId: myTestTable.id,
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
19
62
|
* ## Import
|
|
20
63
|
*
|
|
21
64
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
package/dataQualityRefresh.js
CHANGED
|
@@ -22,6 +22,49 @@ const utilities = require("./utilities");
|
|
|
22
22
|
*
|
|
23
23
|
* ## Example Usage
|
|
24
24
|
*
|
|
25
|
+
* ```typescript
|
|
26
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
27
|
+
* import * as databricks from "@pulumi/databricks";
|
|
28
|
+
*
|
|
29
|
+
* const sandbox = new databricks.Catalog("sandbox", {
|
|
30
|
+
* name: "sandbox",
|
|
31
|
+
* comment: "this catalog is managed by terraform",
|
|
32
|
+
* properties: {
|
|
33
|
+
* purpose: "testing",
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* const myTestSchema = new databricks.Schema("myTestSchema", {
|
|
37
|
+
* catalogName: sandbox.id,
|
|
38
|
+
* name: "myTestSchema",
|
|
39
|
+
* comment: "this database is managed by terraform",
|
|
40
|
+
* properties: {
|
|
41
|
+
* kind: "various",
|
|
42
|
+
* },
|
|
43
|
+
* });
|
|
44
|
+
* const myTestTable = new databricks.SqlTable("myTestTable", {
|
|
45
|
+
* catalogName: "main",
|
|
46
|
+
* schemaName: myTestSchema.name,
|
|
47
|
+
* name: "bar",
|
|
48
|
+
* tableType: "MANAGED",
|
|
49
|
+
* dataSourceFormat: "DELTA",
|
|
50
|
+
* columns: [{
|
|
51
|
+
* name: "timestamp",
|
|
52
|
+
* type: "int",
|
|
53
|
+
* }],
|
|
54
|
+
* });
|
|
55
|
+
* const _this = new databricks.DataQualityMonitor("this", {
|
|
56
|
+
* objectType: "table",
|
|
57
|
+
* objectId: myTestTable.id,
|
|
58
|
+
* dataProfilingConfig: {
|
|
59
|
+
* outputSchema: myTestSchema.schemaId,
|
|
60
|
+
* },
|
|
61
|
+
* });
|
|
62
|
+
* const thisDataQualityRefresh = new databricks.DataQualityRefresh("this", {
|
|
63
|
+
* objectType: "table",
|
|
64
|
+
* objectId: myTestTable.id,
|
|
65
|
+
* });
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
25
68
|
* ## Import
|
|
26
69
|
*
|
|
27
70
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataQualityRefresh.js","sourceRoot":"","sources":["../dataQualityRefresh.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"dataQualityRefresh.js","sourceRoot":"","sources":["../dataQualityRefresh.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+EG;AACH,MAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA+B,EAAE,IAAmC;QAC7H,OAAO,IAAI,kBAAkB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzE,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,kBAAkB,CAAC,YAAY,CAAC;IACnE,CAAC;IAmDD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAkD,CAAC;YACjE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,SAAS,CAAC,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AAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,kBAAkB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACvE,CAAC;;AA7GL,gDA8GC;AAhGG,gBAAgB;AACO,+BAAY,GAAG,wDAAwD,CAAC"}
|
package/getDashboards.d.ts
CHANGED
|
@@ -7,6 +7,26 @@ import * as outputs from "./types/output";
|
|
|
7
7
|
* > This data source can only be used with a workspace-level provider!
|
|
8
8
|
*
|
|
9
9
|
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as databricks from "@pulumi/databricks";
|
|
14
|
+
*
|
|
15
|
+
* export = async () => {
|
|
16
|
+
* const all = await databricks.getDashboards({});
|
|
17
|
+
* const dashboardsPermissions: databricks.Permissions[] = [];
|
|
18
|
+
* for (const range of all.dashboards.map(__item => __item.dashboardId).map((v, k) => ({key: k, value: v}))) {
|
|
19
|
+
* dashboardsPermissions.push(new databricks.Permissions(`dashboards_permissions-${range.key}`, {
|
|
20
|
+
* depends: [all],
|
|
21
|
+
* dashboardId: range.value,
|
|
22
|
+
* accessControls: [{
|
|
23
|
+
* groupName: "Example Group",
|
|
24
|
+
* permissionLevel: "CAN_MANAGE",
|
|
25
|
+
* }],
|
|
26
|
+
* }));
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
10
30
|
*/
|
|
11
31
|
export declare function getDashboards(args?: GetDashboardsArgs, opts?: pulumi.InvokeOptions): Promise<GetDashboardsResult>;
|
|
12
32
|
/**
|
|
@@ -40,6 +60,26 @@ export interface GetDashboardsResult {
|
|
|
40
60
|
* > This data source can only be used with a workspace-level provider!
|
|
41
61
|
*
|
|
42
62
|
* ## Example Usage
|
|
63
|
+
*
|
|
64
|
+
* ```typescript
|
|
65
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
66
|
+
* import * as databricks from "@pulumi/databricks";
|
|
67
|
+
*
|
|
68
|
+
* export = async () => {
|
|
69
|
+
* const all = await databricks.getDashboards({});
|
|
70
|
+
* const dashboardsPermissions: databricks.Permissions[] = [];
|
|
71
|
+
* for (const range of all.dashboards.map(__item => __item.dashboardId).map((v, k) => ({key: k, value: v}))) {
|
|
72
|
+
* dashboardsPermissions.push(new databricks.Permissions(`dashboards_permissions-${range.key}`, {
|
|
73
|
+
* depends: [all],
|
|
74
|
+
* dashboardId: range.value,
|
|
75
|
+
* accessControls: [{
|
|
76
|
+
* groupName: "Example Group",
|
|
77
|
+
* permissionLevel: "CAN_MANAGE",
|
|
78
|
+
* }],
|
|
79
|
+
* }));
|
|
80
|
+
* }
|
|
81
|
+
* }
|
|
82
|
+
* ```
|
|
43
83
|
*/
|
|
44
84
|
export declare function getDashboardsOutput(args?: GetDashboardsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDashboardsResult>;
|
|
45
85
|
/**
|
package/getDashboards.js
CHANGED
|
@@ -11,6 +11,26 @@ const utilities = require("./utilities");
|
|
|
11
11
|
* > This data source can only be used with a workspace-level provider!
|
|
12
12
|
*
|
|
13
13
|
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as databricks from "@pulumi/databricks";
|
|
18
|
+
*
|
|
19
|
+
* export = async () => {
|
|
20
|
+
* const all = await databricks.getDashboards({});
|
|
21
|
+
* const dashboardsPermissions: databricks.Permissions[] = [];
|
|
22
|
+
* for (const range of all.dashboards.map(__item => __item.dashboardId).map((v, k) => ({key: k, value: v}))) {
|
|
23
|
+
* dashboardsPermissions.push(new databricks.Permissions(`dashboards_permissions-${range.key}`, {
|
|
24
|
+
* depends: [all],
|
|
25
|
+
* dashboardId: range.value,
|
|
26
|
+
* accessControls: [{
|
|
27
|
+
* groupName: "Example Group",
|
|
28
|
+
* permissionLevel: "CAN_MANAGE",
|
|
29
|
+
* }],
|
|
30
|
+
* }));
|
|
31
|
+
* }
|
|
32
|
+
* }
|
|
33
|
+
* ```
|
|
14
34
|
*/
|
|
15
35
|
function getDashboards(args, opts) {
|
|
16
36
|
args = args || {};
|
|
@@ -27,6 +47,26 @@ exports.getDashboards = getDashboards;
|
|
|
27
47
|
* > This data source can only be used with a workspace-level provider!
|
|
28
48
|
*
|
|
29
49
|
* ## Example Usage
|
|
50
|
+
*
|
|
51
|
+
* ```typescript
|
|
52
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
53
|
+
* import * as databricks from "@pulumi/databricks";
|
|
54
|
+
*
|
|
55
|
+
* export = async () => {
|
|
56
|
+
* const all = await databricks.getDashboards({});
|
|
57
|
+
* const dashboardsPermissions: databricks.Permissions[] = [];
|
|
58
|
+
* for (const range of all.dashboards.map(__item => __item.dashboardId).map((v, k) => ({key: k, value: v}))) {
|
|
59
|
+
* dashboardsPermissions.push(new databricks.Permissions(`dashboards_permissions-${range.key}`, {
|
|
60
|
+
* depends: [all],
|
|
61
|
+
* dashboardId: range.value,
|
|
62
|
+
* accessControls: [{
|
|
63
|
+
* groupName: "Example Group",
|
|
64
|
+
* permissionLevel: "CAN_MANAGE",
|
|
65
|
+
* }],
|
|
66
|
+
* }));
|
|
67
|
+
* }
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
30
70
|
*/
|
|
31
71
|
function getDashboardsOutput(args, opts) {
|
|
32
72
|
args = args || {};
|
package/getDashboards.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDashboards.js","sourceRoot":"","sources":["../getDashboards.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"getDashboards.js","sourceRoot":"","sources":["../getDashboards.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8CAA8C,EAAE;QACzE,uBAAuB,EAAE,IAAI,CAAC,qBAAqB;QACnD,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,sCAOC;AA4BD;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,SAAgB,mBAAmB,CAAC,IAA8B,EAAE,IAAiC;IACjG,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,8CAA8C,EAAE;QAC/E,uBAAuB,EAAE,IAAI,CAAC,qBAAqB;QACnD,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,kDAOC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/databricks",
|
|
3
|
-
"version": "1.79.0-alpha.
|
|
3
|
+
"version": "1.79.0-alpha.1763185405",
|
|
4
4
|
"description": "A Pulumi package for creating and managing databricks cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -24,6 +24,6 @@
|
|
|
24
24
|
"pulumi": {
|
|
25
25
|
"resource": true,
|
|
26
26
|
"name": "databricks",
|
|
27
|
-
"version": "1.79.0-alpha.
|
|
27
|
+
"version": "1.79.0-alpha.1763185405"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -10,6 +10,41 @@ import * as outputs from "./types/output";
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as databricks from "@pulumi/databricks";
|
|
16
|
+
*
|
|
17
|
+
* const customerDataTable = new databricks.RfaAccessRequestDestinations("customer_data_table", {
|
|
18
|
+
* destinations: [
|
|
19
|
+
* {
|
|
20
|
+
* destinationId: "john.doe@databricks.com",
|
|
21
|
+
* destinationType: "EMAIL",
|
|
22
|
+
* },
|
|
23
|
+
* {
|
|
24
|
+
* destinationId: "https://www.databricks.com/",
|
|
25
|
+
* destinationType: "URL",
|
|
26
|
+
* },
|
|
27
|
+
* {
|
|
28
|
+
* destinationId: "456e7890-e89b-12d3-a456-426614174001",
|
|
29
|
+
* destinationType: "SLACK",
|
|
30
|
+
* },
|
|
31
|
+
* {
|
|
32
|
+
* destinationId: "789e0123-e89b-12d3-a456-426614174002",
|
|
33
|
+
* destinationType: "MICROSOFT_TEAMS",
|
|
34
|
+
* },
|
|
35
|
+
* {
|
|
36
|
+
* destinationId: "012e3456-e89b-12d3-a456-426614174003",
|
|
37
|
+
* destinationType: "GENERIC_WEBHOOK",
|
|
38
|
+
* },
|
|
39
|
+
* ],
|
|
40
|
+
* securable: {
|
|
41
|
+
* type: "SCHEMA",
|
|
42
|
+
* fullName: "main.customer_data",
|
|
43
|
+
* },
|
|
44
|
+
* areAnyDestinationsHidden: false,
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
13
48
|
* ## Import
|
|
14
49
|
*
|
|
15
50
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -14,6 +14,41 @@ const utilities = require("./utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* ## Example Usage
|
|
16
16
|
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as databricks from "@pulumi/databricks";
|
|
20
|
+
*
|
|
21
|
+
* const customerDataTable = new databricks.RfaAccessRequestDestinations("customer_data_table", {
|
|
22
|
+
* destinations: [
|
|
23
|
+
* {
|
|
24
|
+
* destinationId: "john.doe@databricks.com",
|
|
25
|
+
* destinationType: "EMAIL",
|
|
26
|
+
* },
|
|
27
|
+
* {
|
|
28
|
+
* destinationId: "https://www.databricks.com/",
|
|
29
|
+
* destinationType: "URL",
|
|
30
|
+
* },
|
|
31
|
+
* {
|
|
32
|
+
* destinationId: "456e7890-e89b-12d3-a456-426614174001",
|
|
33
|
+
* destinationType: "SLACK",
|
|
34
|
+
* },
|
|
35
|
+
* {
|
|
36
|
+
* destinationId: "789e0123-e89b-12d3-a456-426614174002",
|
|
37
|
+
* destinationType: "MICROSOFT_TEAMS",
|
|
38
|
+
* },
|
|
39
|
+
* {
|
|
40
|
+
* destinationId: "012e3456-e89b-12d3-a456-426614174003",
|
|
41
|
+
* destinationType: "GENERIC_WEBHOOK",
|
|
42
|
+
* },
|
|
43
|
+
* ],
|
|
44
|
+
* securable: {
|
|
45
|
+
* type: "SCHEMA",
|
|
46
|
+
* fullName: "main.customer_data",
|
|
47
|
+
* },
|
|
48
|
+
* areAnyDestinationsHidden: false,
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
17
52
|
* ## Import
|
|
18
53
|
*
|
|
19
54
|
* As of Pulumi v1.5, resources can be imported through configuration.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rfaAccessRequestDestinations.js","sourceRoot":"","sources":["../rfaAccessRequestDestinations.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"rfaAccessRequestDestinations.js","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,CAAC,0CAA0C,CAAC,CAAC;aAC/D;YACD,IAAI,IAAI,EAAE,SAAS,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC5C,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAClE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,4BAA4B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;;AAxEL,oEAyEC;AA3DG,gBAAgB;AACO,yCAAY,GAAG,4EAA4E,CAAC"}
|
package/types/input.d.ts
CHANGED
|
@@ -1003,6 +1003,24 @@ export interface ClusterDockerImage {
|
|
|
1003
1003
|
* `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. For better security, these credentials should be stored in the secret scope and referred using secret path syntax: `{{secrets/scope/key}}`, otherwise other users of the workspace may access them via UI/API.
|
|
1004
1004
|
*
|
|
1005
1005
|
* Example usage with azurermContainerRegistry and docker_registry_image, that you can adapt to your specific use-case:
|
|
1006
|
+
*
|
|
1007
|
+
* ```typescript
|
|
1008
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
1009
|
+
* import * as databricks from "@pulumi/databricks";
|
|
1010
|
+
* import * as docker from "@pulumi/docker";
|
|
1011
|
+
*
|
|
1012
|
+
* const _this = new docker.RegistryImage("this", {
|
|
1013
|
+
* build: [{}],
|
|
1014
|
+
* name: `${thisAzurermContainerRegistry.loginServer}/sample:latest`,
|
|
1015
|
+
* });
|
|
1016
|
+
* const thisCluster = new databricks.Cluster("this", {dockerImage: {
|
|
1017
|
+
* url: _this.name,
|
|
1018
|
+
* basicAuth: {
|
|
1019
|
+
* username: thisAzurermContainerRegistry.adminUsername,
|
|
1020
|
+
* password: thisAzurermContainerRegistry.adminPassword,
|
|
1021
|
+
* },
|
|
1022
|
+
* }});
|
|
1023
|
+
* ```
|
|
1006
1024
|
*/
|
|
1007
1025
|
basicAuth?: pulumi.Input<inputs.ClusterDockerImageBasicAuth>;
|
|
1008
1026
|
/**
|
|
@@ -9857,6 +9875,24 @@ export interface InstancePoolPreloadedDockerImage {
|
|
|
9857
9875
|
* `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. For better security, these credentials should be stored in the secret scope and referred using secret path syntax: `{{secrets/scope/key}}`, otherwise other users of the workspace may access them via UI/API.
|
|
9858
9876
|
*
|
|
9859
9877
|
* Example usage with azurermContainerRegistry and docker_registry_image, that you can adapt to your specific use-case:
|
|
9878
|
+
*
|
|
9879
|
+
* ```typescript
|
|
9880
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9881
|
+
* import * as databricks from "@pulumi/databricks";
|
|
9882
|
+
* import * as docker from "@pulumi/docker";
|
|
9883
|
+
*
|
|
9884
|
+
* const _this = new docker.RegistryImage("this", {
|
|
9885
|
+
* build: [{}],
|
|
9886
|
+
* name: `${thisAzurermContainerRegistry.loginServer}/sample:latest`,
|
|
9887
|
+
* });
|
|
9888
|
+
* const thisInstancePool = new databricks.InstancePool("this", {preloadedDockerImages: [{
|
|
9889
|
+
* url: _this.name,
|
|
9890
|
+
* basicAuth: {
|
|
9891
|
+
* username: thisAzurermContainerRegistry.adminUsername,
|
|
9892
|
+
* password: thisAzurermContainerRegistry.adminPassword,
|
|
9893
|
+
* },
|
|
9894
|
+
* }]});
|
|
9895
|
+
* ```
|
|
9860
9896
|
*/
|
|
9861
9897
|
basicAuth?: pulumi.Input<inputs.InstancePoolPreloadedDockerImageBasicAuth>;
|
|
9862
9898
|
/**
|
package/types/output.d.ts
CHANGED
|
@@ -1002,6 +1002,24 @@ export interface ClusterDockerImage {
|
|
|
1002
1002
|
* `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. For better security, these credentials should be stored in the secret scope and referred using secret path syntax: `{{secrets/scope/key}}`, otherwise other users of the workspace may access them via UI/API.
|
|
1003
1003
|
*
|
|
1004
1004
|
* Example usage with azurermContainerRegistry and docker_registry_image, that you can adapt to your specific use-case:
|
|
1005
|
+
*
|
|
1006
|
+
* ```typescript
|
|
1007
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
1008
|
+
* import * as databricks from "@pulumi/databricks";
|
|
1009
|
+
* import * as docker from "@pulumi/docker";
|
|
1010
|
+
*
|
|
1011
|
+
* const _this = new docker.RegistryImage("this", {
|
|
1012
|
+
* build: [{}],
|
|
1013
|
+
* name: `${thisAzurermContainerRegistry.loginServer}/sample:latest`,
|
|
1014
|
+
* });
|
|
1015
|
+
* const thisCluster = new databricks.Cluster("this", {dockerImage: {
|
|
1016
|
+
* url: _this.name,
|
|
1017
|
+
* basicAuth: {
|
|
1018
|
+
* username: thisAzurermContainerRegistry.adminUsername,
|
|
1019
|
+
* password: thisAzurermContainerRegistry.adminPassword,
|
|
1020
|
+
* },
|
|
1021
|
+
* }});
|
|
1022
|
+
* ```
|
|
1005
1023
|
*/
|
|
1006
1024
|
basicAuth?: outputs.ClusterDockerImageBasicAuth;
|
|
1007
1025
|
/**
|
|
@@ -10018,6 +10036,24 @@ export interface InstancePoolPreloadedDockerImage {
|
|
|
10018
10036
|
* `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. For better security, these credentials should be stored in the secret scope and referred using secret path syntax: `{{secrets/scope/key}}`, otherwise other users of the workspace may access them via UI/API.
|
|
10019
10037
|
*
|
|
10020
10038
|
* Example usage with azurermContainerRegistry and docker_registry_image, that you can adapt to your specific use-case:
|
|
10039
|
+
*
|
|
10040
|
+
* ```typescript
|
|
10041
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10042
|
+
* import * as databricks from "@pulumi/databricks";
|
|
10043
|
+
* import * as docker from "@pulumi/docker";
|
|
10044
|
+
*
|
|
10045
|
+
* const _this = new docker.RegistryImage("this", {
|
|
10046
|
+
* build: [{}],
|
|
10047
|
+
* name: `${thisAzurermContainerRegistry.loginServer}/sample:latest`,
|
|
10048
|
+
* });
|
|
10049
|
+
* const thisInstancePool = new databricks.InstancePool("this", {preloadedDockerImages: [{
|
|
10050
|
+
* url: _this.name,
|
|
10051
|
+
* basicAuth: {
|
|
10052
|
+
* username: thisAzurermContainerRegistry.adminUsername,
|
|
10053
|
+
* password: thisAzurermContainerRegistry.adminPassword,
|
|
10054
|
+
* },
|
|
10055
|
+
* }]});
|
|
10056
|
+
* ```
|
|
10021
10057
|
*/
|
|
10022
10058
|
basicAuth?: outputs.InstancePoolPreloadedDockerImageBasicAuth;
|
|
10023
10059
|
/**
|