@pulumi/databricks 1.36.0 → 1.37.0-alpha.1713827487

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/groupMember.d.ts CHANGED
@@ -1,8 +1,31 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * This resource allows you to attach `users`, `service principals`, and `groups` as group members.
3
+ * This resource allows you to attach users, service_principal, and groups as group members.
4
4
  *
5
- * To attach members to groups in the Databricks account, the provider must be configured with `host = "https://accounts.cloud.databricks.com"` on AWS deployments or `host = "https://accounts.azuredatabricks.net"` and authenticate using AAD tokens on Azure deployments.
5
+ * To attach members to groups in the Databricks account, the provider must be configured with `host = "https://accounts.cloud.databricks.com"` on AWS deployments or `host = "https://accounts.azuredatabricks.net"` and authenticate using AAD tokens on Azure deployments
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * After the following example, Bradley would have direct membership in group B and transitive membership in group A.
10
+ *
11
+ * <!--Start PulumiCodeChooser -->
12
+ * ```typescript
13
+ * import * as pulumi from "@pulumi/pulumi";
14
+ * import * as databricks from "@pulumi/databricks";
15
+ *
16
+ * const a = new databricks.Group("a", {displayName: "A"});
17
+ * const b = new databricks.Group("b", {displayName: "B"});
18
+ * const ab = new databricks.GroupMember("ab", {
19
+ * groupId: a.id,
20
+ * memberId: b.id,
21
+ * });
22
+ * const bradley = new databricks.User("bradley", {userName: "bradley@example.com"});
23
+ * const bb = new databricks.GroupMember("bb", {
24
+ * groupId: b.id,
25
+ * memberId: bradley.id,
26
+ * });
27
+ * ```
28
+ * <!--End PulumiCodeChooser -->
6
29
  *
7
30
  * ## Related Resources
8
31
  *
@@ -20,7 +43,13 @@ import * as pulumi from "@pulumi/pulumi";
20
43
  *
21
44
  * ## Import
22
45
  *
23
- * -> **Note** Importing this resource is not currently supported.
46
+ * You can import a `databricks_group_member` resource with name `my_group_member` like the following:
47
+ *
48
+ * bash
49
+ *
50
+ * ```sh
51
+ * $ pulumi import databricks:index/groupMember:GroupMember my_group_member "<group_id>|<member_id>"
52
+ * ```
24
53
  */
25
54
  export declare class GroupMember extends pulumi.CustomResource {
26
55
  /**
@@ -39,11 +68,11 @@ export declare class GroupMember extends pulumi.CustomResource {
39
68
  */
40
69
  static isInstance(obj: any): obj is GroupMember;
41
70
  /**
42
- * This is the id of the `group` resource.
71
+ * This is the id of the group resource.
43
72
  */
44
73
  readonly groupId: pulumi.Output<string>;
45
74
  /**
46
- * This is the id of the `group`, `service principal`, or `user`.
75
+ * This is the id of the group, service principal, or user.
47
76
  */
48
77
  readonly memberId: pulumi.Output<string>;
49
78
  /**
@@ -60,11 +89,11 @@ export declare class GroupMember extends pulumi.CustomResource {
60
89
  */
61
90
  export interface GroupMemberState {
62
91
  /**
63
- * This is the id of the `group` resource.
92
+ * This is the id of the group resource.
64
93
  */
65
94
  groupId?: pulumi.Input<string>;
66
95
  /**
67
- * This is the id of the `group`, `service principal`, or `user`.
96
+ * This is the id of the group, service principal, or user.
68
97
  */
69
98
  memberId?: pulumi.Input<string>;
70
99
  }
@@ -73,11 +102,11 @@ export interface GroupMemberState {
73
102
  */
74
103
  export interface GroupMemberArgs {
75
104
  /**
76
- * This is the id of the `group` resource.
105
+ * This is the id of the group resource.
77
106
  */
78
107
  groupId: pulumi.Input<string>;
79
108
  /**
80
- * This is the id of the `group`, `service principal`, or `user`.
109
+ * This is the id of the group, service principal, or user.
81
110
  */
82
111
  memberId: pulumi.Input<string>;
83
112
  }
package/groupMember.js CHANGED
@@ -6,9 +6,32 @@ exports.GroupMember = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * This resource allows you to attach `users`, `service principals`, and `groups` as group members.
9
+ * This resource allows you to attach users, service_principal, and groups as group members.
10
10
  *
11
- * To attach members to groups in the Databricks account, the provider must be configured with `host = "https://accounts.cloud.databricks.com"` on AWS deployments or `host = "https://accounts.azuredatabricks.net"` and authenticate using AAD tokens on Azure deployments.
11
+ * To attach members to groups in the Databricks account, the provider must be configured with `host = "https://accounts.cloud.databricks.com"` on AWS deployments or `host = "https://accounts.azuredatabricks.net"` and authenticate using AAD tokens on Azure deployments
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * After the following example, Bradley would have direct membership in group B and transitive membership in group A.
16
+ *
17
+ * <!--Start PulumiCodeChooser -->
18
+ * ```typescript
19
+ * import * as pulumi from "@pulumi/pulumi";
20
+ * import * as databricks from "@pulumi/databricks";
21
+ *
22
+ * const a = new databricks.Group("a", {displayName: "A"});
23
+ * const b = new databricks.Group("b", {displayName: "B"});
24
+ * const ab = new databricks.GroupMember("ab", {
25
+ * groupId: a.id,
26
+ * memberId: b.id,
27
+ * });
28
+ * const bradley = new databricks.User("bradley", {userName: "bradley@example.com"});
29
+ * const bb = new databricks.GroupMember("bb", {
30
+ * groupId: b.id,
31
+ * memberId: bradley.id,
32
+ * });
33
+ * ```
34
+ * <!--End PulumiCodeChooser -->
12
35
  *
13
36
  * ## Related Resources
14
37
  *
@@ -26,7 +49,13 @@ const utilities = require("./utilities");
26
49
  *
27
50
  * ## Import
28
51
  *
29
- * -> **Note** Importing this resource is not currently supported.
52
+ * You can import a `databricks_group_member` resource with name `my_group_member` like the following:
53
+ *
54
+ * bash
55
+ *
56
+ * ```sh
57
+ * $ pulumi import databricks:index/groupMember:GroupMember my_group_member "<group_id>|<member_id>"
58
+ * ```
30
59
  */
31
60
  class GroupMember extends pulumi.CustomResource {
32
61
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"groupMember.js","sourceRoot":"","sources":["../groupMember.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAClD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;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for creating and managing databricks cloud resources.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -1,4 +1,87 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * These resources are invoked in the workspace context.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * In workspace context, adding account-level user to a workspace:
8
+ *
9
+ * <!--Start PulumiCodeChooser -->
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as databricks from "@pulumi/databricks";
13
+ *
14
+ * // Use the account provider
15
+ * const me = databricks.getUser({
16
+ * userName: "me@example.com",
17
+ * });
18
+ * const addUser = new databricks.PermissionAssignment("add_user", {
19
+ * principalId: me.then(me => me.id),
20
+ * permissions: ["USER"],
21
+ * });
22
+ * ```
23
+ * <!--End PulumiCodeChooser -->
24
+ *
25
+ * In workspace context, adding account-level service principal to a workspace:
26
+ *
27
+ * <!--Start PulumiCodeChooser -->
28
+ * ```typescript
29
+ * import * as pulumi from "@pulumi/pulumi";
30
+ * import * as databricks from "@pulumi/databricks";
31
+ *
32
+ * // Use the account provider
33
+ * const sp = databricks.getServicePrincipal({
34
+ * displayName: "Automation-only SP",
35
+ * });
36
+ * const addAdminSpn = new databricks.PermissionAssignment("add_admin_spn", {
37
+ * principalId: sp.then(sp => sp.id),
38
+ * permissions: ["ADMIN"],
39
+ * });
40
+ * ```
41
+ * <!--End PulumiCodeChooser -->
42
+ *
43
+ * In workspace context, adding account-level group to a workspace:
44
+ *
45
+ * <!--Start PulumiCodeChooser -->
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as databricks from "@pulumi/databricks";
49
+ *
50
+ * // Use the account provider
51
+ * const accountLevel = databricks.getGroup({
52
+ * displayName: "example-group",
53
+ * });
54
+ * // Use the workspace provider
55
+ * const _this = new databricks.PermissionAssignment("this", {
56
+ * principalId: accountLevel.then(accountLevel => accountLevel.id),
57
+ * permissions: ["USER"],
58
+ * });
59
+ * const workspaceLevel = databricks.getGroup({
60
+ * displayName: "example-group",
61
+ * });
62
+ * export const databricksGroupId = workspaceLevel.then(workspaceLevel => workspaceLevel.id);
63
+ * ```
64
+ * <!--End PulumiCodeChooser -->
65
+ *
66
+ * ## Related Resources
67
+ *
68
+ * The following resources are used in the same context:
69
+ *
70
+ * * databricks.Group to manage [groups in Databricks Workspace](https://docs.databricks.com/administration-guide/users-groups/groups.html) or [Account Console](https://accounts.cloud.databricks.com/) (for AWS deployments).
71
+ * * databricks.Group data to retrieve information about databricks.Group members, entitlements and instance profiles.
72
+ * * databricks.GroupMember to attach users and groups as group members.
73
+ * * databricks.MwsPermissionAssignment to manage permission assignment from an account context
74
+ *
75
+ * ## Import
76
+ *
77
+ * The resource `databricks_permission_assignment` can be imported using the principal id
78
+ *
79
+ * bash
80
+ *
81
+ * ```sh
82
+ * $ pulumi import databricks:index/permissionAssignment:PermissionAssignment this principal_id
83
+ * ```
84
+ */
2
85
  export declare class PermissionAssignment extends pulumi.CustomResource {
3
86
  /**
4
87
  * Get an existing PermissionAssignment resource's state with the given name, ID, and optional extra
@@ -15,6 +98,11 @@ export declare class PermissionAssignment extends pulumi.CustomResource {
15
98
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
99
  */
17
100
  static isInstance(obj: any): obj is PermissionAssignment;
101
+ /**
102
+ * The list of workspace permissions to assign to the principal:
103
+ * * `"USER"` - Can access the workspace with basic privileges.
104
+ * * `"ADMIN"` - Can access the workspace and has workspace admin privileges to manage users and groups, workspace configurations, and more.
105
+ */
18
106
  readonly permissions: pulumi.Output<string[]>;
19
107
  readonly principalId: pulumi.Output<number>;
20
108
  /**
@@ -30,6 +118,11 @@ export declare class PermissionAssignment extends pulumi.CustomResource {
30
118
  * Input properties used for looking up and filtering PermissionAssignment resources.
31
119
  */
32
120
  export interface PermissionAssignmentState {
121
+ /**
122
+ * The list of workspace permissions to assign to the principal:
123
+ * * `"USER"` - Can access the workspace with basic privileges.
124
+ * * `"ADMIN"` - Can access the workspace and has workspace admin privileges to manage users and groups, workspace configurations, and more.
125
+ */
33
126
  permissions?: pulumi.Input<pulumi.Input<string>[]>;
34
127
  principalId?: pulumi.Input<number>;
35
128
  }
@@ -37,6 +130,11 @@ export interface PermissionAssignmentState {
37
130
  * The set of arguments for constructing a PermissionAssignment resource.
38
131
  */
39
132
  export interface PermissionAssignmentArgs {
133
+ /**
134
+ * The list of workspace permissions to assign to the principal:
135
+ * * `"USER"` - Can access the workspace with basic privileges.
136
+ * * `"ADMIN"` - Can access the workspace and has workspace admin privileges to manage users and groups, workspace configurations, and more.
137
+ */
40
138
  permissions: pulumi.Input<pulumi.Input<string>[]>;
41
139
  principalId: pulumi.Input<number>;
42
140
  }
@@ -5,6 +5,89 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.PermissionAssignment = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * These resources are invoked in the workspace context.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * In workspace context, adding account-level user to a workspace:
14
+ *
15
+ * <!--Start PulumiCodeChooser -->
16
+ * ```typescript
17
+ * import * as pulumi from "@pulumi/pulumi";
18
+ * import * as databricks from "@pulumi/databricks";
19
+ *
20
+ * // Use the account provider
21
+ * const me = databricks.getUser({
22
+ * userName: "me@example.com",
23
+ * });
24
+ * const addUser = new databricks.PermissionAssignment("add_user", {
25
+ * principalId: me.then(me => me.id),
26
+ * permissions: ["USER"],
27
+ * });
28
+ * ```
29
+ * <!--End PulumiCodeChooser -->
30
+ *
31
+ * In workspace context, adding account-level service principal to a workspace:
32
+ *
33
+ * <!--Start PulumiCodeChooser -->
34
+ * ```typescript
35
+ * import * as pulumi from "@pulumi/pulumi";
36
+ * import * as databricks from "@pulumi/databricks";
37
+ *
38
+ * // Use the account provider
39
+ * const sp = databricks.getServicePrincipal({
40
+ * displayName: "Automation-only SP",
41
+ * });
42
+ * const addAdminSpn = new databricks.PermissionAssignment("add_admin_spn", {
43
+ * principalId: sp.then(sp => sp.id),
44
+ * permissions: ["ADMIN"],
45
+ * });
46
+ * ```
47
+ * <!--End PulumiCodeChooser -->
48
+ *
49
+ * In workspace context, adding account-level group to a workspace:
50
+ *
51
+ * <!--Start PulumiCodeChooser -->
52
+ * ```typescript
53
+ * import * as pulumi from "@pulumi/pulumi";
54
+ * import * as databricks from "@pulumi/databricks";
55
+ *
56
+ * // Use the account provider
57
+ * const accountLevel = databricks.getGroup({
58
+ * displayName: "example-group",
59
+ * });
60
+ * // Use the workspace provider
61
+ * const _this = new databricks.PermissionAssignment("this", {
62
+ * principalId: accountLevel.then(accountLevel => accountLevel.id),
63
+ * permissions: ["USER"],
64
+ * });
65
+ * const workspaceLevel = databricks.getGroup({
66
+ * displayName: "example-group",
67
+ * });
68
+ * export const databricksGroupId = workspaceLevel.then(workspaceLevel => workspaceLevel.id);
69
+ * ```
70
+ * <!--End PulumiCodeChooser -->
71
+ *
72
+ * ## Related Resources
73
+ *
74
+ * The following resources are used in the same context:
75
+ *
76
+ * * databricks.Group to manage [groups in Databricks Workspace](https://docs.databricks.com/administration-guide/users-groups/groups.html) or [Account Console](https://accounts.cloud.databricks.com/) (for AWS deployments).
77
+ * * databricks.Group data to retrieve information about databricks.Group members, entitlements and instance profiles.
78
+ * * databricks.GroupMember to attach users and groups as group members.
79
+ * * databricks.MwsPermissionAssignment to manage permission assignment from an account context
80
+ *
81
+ * ## Import
82
+ *
83
+ * The resource `databricks_permission_assignment` can be imported using the principal id
84
+ *
85
+ * bash
86
+ *
87
+ * ```sh
88
+ * $ pulumi import databricks:index/permissionAssignment:PermissionAssignment this principal_id
89
+ * ```
90
+ */
8
91
  class PermissionAssignment extends pulumi.CustomResource {
9
92
  /**
10
93
  * Get an existing PermissionAssignment resource's state with the given name, ID, and optional extra
@@ -1 +1 @@
1
- {"version":3,"file":"permissionAssignment.js","sourceRoot":"","sources":["../permissionAssignment.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAC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;AAhEL,oDAiEC;AAnDG,gBAAgB;AACO,iCAAY,GAAG,4DAA4D,CAAC"}
@@ -1,4 +1,24 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * Create service principal secret
6
+ *
7
+ * <!--Start PulumiCodeChooser -->
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as databricks from "@pulumi/databricks";
11
+ *
12
+ * const terraformSp = new databricks.ServicePrincipalSecret("terraform_sp", {servicePrincipalId: _this.id});
13
+ * ```
14
+ * <!--End PulumiCodeChooser -->
15
+ *
16
+ * ## Related Resources
17
+ *
18
+ * The following resources are often used in the same context:
19
+ *
20
+ * * databricks.ServicePrincipal to manage [Service Principals](https://docs.databricks.com/administration-guide/users-groups/service-principals.html) in Databricks
21
+ */
2
22
  export declare class ServicePrincipalSecret extends pulumi.CustomResource {
3
23
  /**
4
24
  * Get an existing ServicePrincipalSecret resource's state with the given name, ID, and optional extra
@@ -15,7 +35,13 @@ export declare class ServicePrincipalSecret extends pulumi.CustomResource {
15
35
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
16
36
  */
17
37
  static isInstance(obj: any): obj is ServicePrincipalSecret;
38
+ /**
39
+ * Generated secret for the service principal
40
+ */
18
41
  readonly secret: pulumi.Output<string>;
42
+ /**
43
+ * ID of the databricks.ServicePrincipal (not application ID).
44
+ */
19
45
  readonly servicePrincipalId: pulumi.Output<string>;
20
46
  readonly status: pulumi.Output<string>;
21
47
  /**
@@ -31,7 +57,13 @@ export declare class ServicePrincipalSecret extends pulumi.CustomResource {
31
57
  * Input properties used for looking up and filtering ServicePrincipalSecret resources.
32
58
  */
33
59
  export interface ServicePrincipalSecretState {
60
+ /**
61
+ * Generated secret for the service principal
62
+ */
34
63
  secret?: pulumi.Input<string>;
64
+ /**
65
+ * ID of the databricks.ServicePrincipal (not application ID).
66
+ */
35
67
  servicePrincipalId?: pulumi.Input<string>;
36
68
  status?: pulumi.Input<string>;
37
69
  }
@@ -39,7 +71,13 @@ export interface ServicePrincipalSecretState {
39
71
  * The set of arguments for constructing a ServicePrincipalSecret resource.
40
72
  */
41
73
  export interface ServicePrincipalSecretArgs {
74
+ /**
75
+ * Generated secret for the service principal
76
+ */
42
77
  secret?: pulumi.Input<string>;
78
+ /**
79
+ * ID of the databricks.ServicePrincipal (not application ID).
80
+ */
43
81
  servicePrincipalId: pulumi.Input<string>;
44
82
  status?: pulumi.Input<string>;
45
83
  }
@@ -5,6 +5,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.ServicePrincipalSecret = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * Create service principal secret
12
+ *
13
+ * <!--Start PulumiCodeChooser -->
14
+ * ```typescript
15
+ * import * as pulumi from "@pulumi/pulumi";
16
+ * import * as databricks from "@pulumi/databricks";
17
+ *
18
+ * const terraformSp = new databricks.ServicePrincipalSecret("terraform_sp", {servicePrincipalId: _this.id});
19
+ * ```
20
+ * <!--End PulumiCodeChooser -->
21
+ *
22
+ * ## Related Resources
23
+ *
24
+ * The following resources are often used in the same context:
25
+ *
26
+ * * databricks.ServicePrincipal to manage [Service Principals](https://docs.databricks.com/administration-guide/users-groups/service-principals.html) in Databricks
27
+ */
8
28
  class ServicePrincipalSecret extends pulumi.CustomResource {
9
29
  /**
10
30
  * Get an existing ServicePrincipalSecret resource's state with the given name, ID, and optional extra
@@ -1 +1 @@
1
- {"version":3,"file":"servicePrincipalSecret.js","sourceRoot":"","sources":["../servicePrincipalSecret.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC,MAAa,sBAAuB,SAAQ,MAAM,CAAC,cAAc;IAC7D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmC,EAAE,IAAmC;Q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