@pulumi/databricks 1.105.0 → 1.106.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.
Files changed (196) hide show
  1. package/accountIamDirectGroupMemberV2.d.ts +118 -0
  2. package/accountIamDirectGroupMemberV2.d.ts.map +1 -0
  3. package/accountIamDirectGroupMemberV2.js +110 -0
  4. package/accountIamDirectGroupMemberV2.js.map +1 -0
  5. package/accountIamGroupV2.d.ts +99 -0
  6. package/accountIamGroupV2.d.ts.map +1 -0
  7. package/accountIamGroupV2.js +100 -0
  8. package/accountIamGroupV2.js.map +1 -0
  9. package/accountIamServicePrincipalV2.d.ts +129 -0
  10. package/accountIamServicePrincipalV2.d.ts.map +1 -0
  11. package/accountIamServicePrincipalV2.js +113 -0
  12. package/accountIamServicePrincipalV2.js.map +1 -0
  13. package/accountIamUserV2.d.ts +123 -0
  14. package/accountIamUserV2.d.ts.map +1 -0
  15. package/accountIamUserV2.js +120 -0
  16. package/accountIamUserV2.js.map +1 -0
  17. package/accountIamWorkspaceAssignmentV2.d.ts +136 -0
  18. package/accountIamWorkspaceAssignmentV2.d.ts.map +1 -0
  19. package/accountIamWorkspaceAssignmentV2.js +113 -0
  20. package/accountIamWorkspaceAssignmentV2.js.map +1 -0
  21. package/aiGatewayMcpService.d.ts +6 -19
  22. package/aiGatewayMcpService.d.ts.map +1 -1
  23. package/aiGatewayMcpService.js +0 -2
  24. package/aiGatewayMcpService.js.map +1 -1
  25. package/aiGatewayModelProviderService.d.ts +6 -19
  26. package/aiGatewayModelProviderService.d.ts.map +1 -1
  27. package/aiGatewayModelProviderService.js +0 -2
  28. package/aiGatewayModelProviderService.js.map +1 -1
  29. package/aiGatewayModelService.d.ts +6 -19
  30. package/aiGatewayModelService.d.ts.map +1 -1
  31. package/aiGatewayModelService.js +0 -2
  32. package/aiGatewayModelService.js.map +1 -1
  33. package/app.d.ts +20 -0
  34. package/app.d.ts.map +1 -1
  35. package/app.js +8 -0
  36. package/app.js.map +1 -1
  37. package/budget.d.ts +89 -5
  38. package/budget.d.ts.map +1 -1
  39. package/budget.js +80 -5
  40. package/budget.js.map +1 -1
  41. package/dataClassificationCatalogConfig.d.ts +1 -1
  42. package/dataClassificationCatalogConfig.js +1 -1
  43. package/getAccountIamDirectGroupMemberV2.d.ts +105 -0
  44. package/getAccountIamDirectGroupMemberV2.d.ts.map +1 -0
  45. package/getAccountIamDirectGroupMemberV2.js +93 -0
  46. package/getAccountIamDirectGroupMemberV2.js.map +1 -0
  47. package/getAccountIamDirectGroupMembersV2.d.ts +88 -0
  48. package/getAccountIamDirectGroupMembersV2.d.ts.map +1 -0
  49. package/getAccountIamDirectGroupMembersV2.js +91 -0
  50. package/getAccountIamDirectGroupMembersV2.js.map +1 -0
  51. package/getAccountIamGroupV2.d.ts +87 -0
  52. package/getAccountIamGroupV2.d.ts.map +1 -0
  53. package/getAccountIamGroupV2.js +89 -0
  54. package/getAccountIamGroupV2.js.map +1 -0
  55. package/getAccountIamGroupsV2.d.ts +79 -0
  56. package/getAccountIamGroupsV2.d.ts.map +1 -0
  57. package/getAccountIamGroupsV2.js +89 -0
  58. package/getAccountIamGroupsV2.js.map +1 -0
  59. package/getAccountIamServicePrincipalV2.d.ts +96 -0
  60. package/getAccountIamServicePrincipalV2.d.ts.map +1 -0
  61. package/getAccountIamServicePrincipalV2.js +89 -0
  62. package/getAccountIamServicePrincipalV2.js.map +1 -0
  63. package/getAccountIamServicePrincipalsV2.d.ts +79 -0
  64. package/getAccountIamServicePrincipalsV2.d.ts.map +1 -0
  65. package/getAccountIamServicePrincipalsV2.js +89 -0
  66. package/getAccountIamServicePrincipalsV2.js.map +1 -0
  67. package/getAccountIamUserV2.d.ts +96 -0
  68. package/getAccountIamUserV2.d.ts.map +1 -0
  69. package/getAccountIamUserV2.js +89 -0
  70. package/getAccountIamUserV2.js.map +1 -0
  71. package/getAccountIamUsersV2.d.ts +79 -0
  72. package/getAccountIamUsersV2.d.ts.map +1 -0
  73. package/getAccountIamUsersV2.js +89 -0
  74. package/getAccountIamUsersV2.js.map +1 -0
  75. package/getAccountIamWorkspaceAssignmentV2.d.ts +109 -0
  76. package/getAccountIamWorkspaceAssignmentV2.d.ts.map +1 -0
  77. package/getAccountIamWorkspaceAssignmentV2.js +93 -0
  78. package/getAccountIamWorkspaceAssignmentV2.js.map +1 -0
  79. package/getAccountIamWorkspaceAssignmentsV2.d.ts +56 -0
  80. package/getAccountIamWorkspaceAssignmentsV2.d.ts.map +1 -0
  81. package/getAccountIamWorkspaceAssignmentsV2.js +61 -0
  82. package/getAccountIamWorkspaceAssignmentsV2.js.map +1 -0
  83. package/getAiGatewayMcpService.d.ts +2 -6
  84. package/getAiGatewayMcpService.d.ts.map +1 -1
  85. package/getAiGatewayMcpService.js.map +1 -1
  86. package/getAiGatewayMcpServices.d.ts +10 -17
  87. package/getAiGatewayMcpServices.d.ts.map +1 -1
  88. package/getAiGatewayMcpServices.js +0 -2
  89. package/getAiGatewayMcpServices.js.map +1 -1
  90. package/getAiGatewayModelProviderService.d.ts +0 -5
  91. package/getAiGatewayModelProviderService.d.ts.map +1 -1
  92. package/getAiGatewayModelProviderService.js.map +1 -1
  93. package/getAiGatewayModelProviderServices.d.ts +10 -17
  94. package/getAiGatewayModelProviderServices.d.ts.map +1 -1
  95. package/getAiGatewayModelProviderServices.js +0 -2
  96. package/getAiGatewayModelProviderServices.js.map +1 -1
  97. package/getAiGatewayModelService.d.ts +0 -5
  98. package/getAiGatewayModelService.d.ts.map +1 -1
  99. package/getAiGatewayModelService.js.map +1 -1
  100. package/getAiGatewayModelServices.d.ts +10 -17
  101. package/getAiGatewayModelServices.d.ts.map +1 -1
  102. package/getAiGatewayModelServices.js +0 -2
  103. package/getAiGatewayModelServices.js.map +1 -1
  104. package/getDataClassificationCatalogConfig.d.ts +2 -2
  105. package/getDataClassificationCatalogConfig.js +2 -2
  106. package/getPolicyInfo.d.ts +0 -1
  107. package/getPolicyInfo.d.ts.map +1 -1
  108. package/getPolicyInfo.js.map +1 -1
  109. package/getWorkspaceIamDirectGroupMemberV2.d.ts +118 -0
  110. package/getWorkspaceIamDirectGroupMemberV2.d.ts.map +1 -0
  111. package/getWorkspaceIamDirectGroupMemberV2.js +97 -0
  112. package/getWorkspaceIamDirectGroupMemberV2.js.map +1 -0
  113. package/getWorkspaceIamDirectGroupMembersV2.d.ts +98 -0
  114. package/getWorkspaceIamDirectGroupMembersV2.d.ts.map +1 -0
  115. package/getWorkspaceIamDirectGroupMembersV2.js +93 -0
  116. package/getWorkspaceIamDirectGroupMembersV2.js.map +1 -0
  117. package/getWorkspaceIamGroupV2.d.ts +98 -0
  118. package/getWorkspaceIamGroupV2.d.ts.map +1 -0
  119. package/getWorkspaceIamGroupV2.js +91 -0
  120. package/getWorkspaceIamGroupV2.js.map +1 -0
  121. package/getWorkspaceIamGroupsV2.d.ts +89 -0
  122. package/getWorkspaceIamGroupsV2.d.ts.map +1 -0
  123. package/getWorkspaceIamGroupsV2.js +91 -0
  124. package/getWorkspaceIamGroupsV2.js.map +1 -0
  125. package/getWorkspaceIamServicePrincipalV2.d.ts +107 -0
  126. package/getWorkspaceIamServicePrincipalV2.d.ts.map +1 -0
  127. package/getWorkspaceIamServicePrincipalV2.js +91 -0
  128. package/getWorkspaceIamServicePrincipalV2.js.map +1 -0
  129. package/getWorkspaceIamServicePrincipalsV2.d.ts +89 -0
  130. package/getWorkspaceIamServicePrincipalsV2.d.ts.map +1 -0
  131. package/getWorkspaceIamServicePrincipalsV2.js +91 -0
  132. package/getWorkspaceIamServicePrincipalsV2.js.map +1 -0
  133. package/getWorkspaceIamUserV2.d.ts +106 -0
  134. package/getWorkspaceIamUserV2.d.ts.map +1 -0
  135. package/getWorkspaceIamUserV2.js +91 -0
  136. package/getWorkspaceIamUserV2.js.map +1 -0
  137. package/getWorkspaceIamUsersV2.d.ts +89 -0
  138. package/getWorkspaceIamUsersV2.d.ts.map +1 -0
  139. package/getWorkspaceIamUsersV2.js +91 -0
  140. package/getWorkspaceIamUsersV2.js.map +1 -0
  141. package/getWorkspaceIamWorkspaceAssignmentV2.d.ts +112 -0
  142. package/getWorkspaceIamWorkspaceAssignmentV2.d.ts.map +1 -0
  143. package/getWorkspaceIamWorkspaceAssignmentV2.js +93 -0
  144. package/getWorkspaceIamWorkspaceAssignmentV2.js.map +1 -0
  145. package/getWorkspaceIamWorkspaceAssignmentsV2.d.ts +54 -0
  146. package/getWorkspaceIamWorkspaceAssignmentsV2.d.ts.map +1 -0
  147. package/getWorkspaceIamWorkspaceAssignmentsV2.js +63 -0
  148. package/getWorkspaceIamWorkspaceAssignmentsV2.js.map +1 -0
  149. package/getWorkspaceIamWorkspaceIdentityDetailV2.d.ts +68 -0
  150. package/getWorkspaceIamWorkspaceIdentityDetailV2.d.ts.map +1 -0
  151. package/getWorkspaceIamWorkspaceIdentityDetailV2.js +61 -0
  152. package/getWorkspaceIamWorkspaceIdentityDetailV2.js.map +1 -0
  153. package/index.d.ts +96 -0
  154. package/index.d.ts.map +1 -1
  155. package/index.js +129 -10
  156. package/index.js.map +1 -1
  157. package/job.d.ts +3 -0
  158. package/job.d.ts.map +1 -1
  159. package/job.js +2 -0
  160. package/job.js.map +1 -1
  161. package/mwsWorkspaces.d.ts +3 -3
  162. package/package.json +2 -2
  163. package/policyInfo.d.ts +0 -3
  164. package/policyInfo.d.ts.map +1 -1
  165. package/policyInfo.js.map +1 -1
  166. package/secretUc.d.ts.map +1 -1
  167. package/secretUc.js +3 -1
  168. package/secretUc.js.map +1 -1
  169. package/types/input.d.ts +388 -29
  170. package/types/input.d.ts.map +1 -1
  171. package/types/output.d.ts +888 -82
  172. package/types/output.d.ts.map +1 -1
  173. package/workspaceIamDirectGroupMemberV2.d.ts +133 -0
  174. package/workspaceIamDirectGroupMemberV2.d.ts.map +1 -0
  175. package/workspaceIamDirectGroupMemberV2.js +113 -0
  176. package/workspaceIamDirectGroupMemberV2.js.map +1 -0
  177. package/workspaceIamGroupV2.d.ts +113 -0
  178. package/workspaceIamGroupV2.d.ts.map +1 -0
  179. package/workspaceIamGroupV2.js +102 -0
  180. package/workspaceIamGroupV2.js.map +1 -0
  181. package/workspaceIamServicePrincipalV2.d.ts +143 -0
  182. package/workspaceIamServicePrincipalV2.d.ts.map +1 -0
  183. package/workspaceIamServicePrincipalV2.js +115 -0
  184. package/workspaceIamServicePrincipalV2.js.map +1 -0
  185. package/workspaceIamUserV2.d.ts +135 -0
  186. package/workspaceIamUserV2.d.ts.map +1 -0
  187. package/workspaceIamUserV2.js +122 -0
  188. package/workspaceIamUserV2.js.map +1 -0
  189. package/workspaceIamWorkspaceAssignmentV2.d.ts +150 -0
  190. package/workspaceIamWorkspaceAssignmentV2.d.ts.map +1 -0
  191. package/workspaceIamWorkspaceAssignmentV2.js +115 -0
  192. package/workspaceIamWorkspaceAssignmentV2.js.map +1 -0
  193. package/workspaceIamWorkspaceIdentityDetailV2.d.ts +117 -0
  194. package/workspaceIamWorkspaceIdentityDetailV2.d.ts.map +1 -0
  195. package/workspaceIamWorkspaceIdentityDetailV2.js +110 -0
  196. package/workspaceIamWorkspaceIdentityDetailV2.js.map +1 -0
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.WorkspaceIamServicePrincipalV2 = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
33
+ *
34
+ * [API Documentation](https://docs.databricks.com/api/workspace/iamv2)
35
+ *
36
+ * Manages a service principal using a workspace-scoped provider. Creating the resource provisions the service principal; deleting it removes the service principal. `applicationId` is immutable — changing it replaces the resource.
37
+ *
38
+ * When Automatic Identity Management (AIM) is enabled for the account, this resource manages local service principals only: a service principal cannot be created with `externalId` set. Service principals that already have an `externalId` can still be read through this resource, but only their `externalId` may be updated — their other fields are sourced from the identity provider.
39
+ *
40
+ * ## Example Usage
41
+ *
42
+ * Example usage:
43
+ *
44
+ * Creates a service principal using a workspace-scoped provider. When AIM is enabled, the service principal cannot be created with `externalId` set.
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as databricks from "@pulumi/databricks";
49
+ *
50
+ * const _this = new databricks.WorkspaceIamServicePrincipalV2("this", {
51
+ * displayName: "ci-runner",
52
+ * accountSpStatus: "ACTIVE",
53
+ * });
54
+ * ```
55
+ */
56
+ class WorkspaceIamServicePrincipalV2 extends pulumi.CustomResource {
57
+ /**
58
+ * Get an existing WorkspaceIamServicePrincipalV2 resource's state with the given name, ID, and optional extra
59
+ * properties used to qualify the lookup.
60
+ *
61
+ * @param name The _unique_ name of the resulting resource.
62
+ * @param id The _unique_ provider ID of the resource to lookup.
63
+ * @param state Any extra arguments used during the lookup.
64
+ * @param opts Optional settings to control the behavior of the CustomResource.
65
+ */
66
+ static get(name, id, state, opts) {
67
+ return new WorkspaceIamServicePrincipalV2(name, state, { ...opts, id: id });
68
+ }
69
+ /** @internal */
70
+ static __pulumiType = 'databricks:index/workspaceIamServicePrincipalV2:WorkspaceIamServicePrincipalV2';
71
+ /**
72
+ * Returns true if the given object is an instance of WorkspaceIamServicePrincipalV2. This is designed to work even
73
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
74
+ */
75
+ static isInstance(obj) {
76
+ if (obj === undefined || obj === null) {
77
+ return false;
78
+ }
79
+ return obj['__pulumiType'] === WorkspaceIamServicePrincipalV2.__pulumiType;
80
+ }
81
+ constructor(name, argsOrState, opts) {
82
+ let resourceInputs = {};
83
+ opts = opts || {};
84
+ if (opts.id) {
85
+ const state = argsOrState;
86
+ resourceInputs["accountId"] = state?.accountId;
87
+ resourceInputs["accountSpStatus"] = state?.accountSpStatus;
88
+ resourceInputs["applicationId"] = state?.applicationId;
89
+ resourceInputs["displayName"] = state?.displayName;
90
+ resourceInputs["externalId"] = state?.externalId;
91
+ resourceInputs["providerConfig"] = state?.providerConfig;
92
+ resourceInputs["servicePrincipalId"] = state?.servicePrincipalId;
93
+ }
94
+ else {
95
+ const args = argsOrState;
96
+ if (args?.accountSpStatus === undefined && !opts.urn) {
97
+ throw new Error("Missing required property 'accountSpStatus'");
98
+ }
99
+ if (args?.displayName === undefined && !opts.urn) {
100
+ throw new Error("Missing required property 'displayName'");
101
+ }
102
+ resourceInputs["accountSpStatus"] = args?.accountSpStatus;
103
+ resourceInputs["applicationId"] = args?.applicationId;
104
+ resourceInputs["displayName"] = args?.displayName;
105
+ resourceInputs["externalId"] = args?.externalId;
106
+ resourceInputs["providerConfig"] = args?.providerConfig;
107
+ resourceInputs["accountId"] = undefined /*out*/;
108
+ resourceInputs["servicePrincipalId"] = undefined /*out*/;
109
+ }
110
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
111
+ super(WorkspaceIamServicePrincipalV2.__pulumiType, name, resourceInputs, opts);
112
+ }
113
+ }
114
+ exports.WorkspaceIamServicePrincipalV2 = WorkspaceIamServicePrincipalV2;
115
+ //# sourceMappingURL=workspaceIamServicePrincipalV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceIamServicePrincipalV2.js","sourceRoot":"","sources":["../workspaceIamServicePrincipalV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,8BAA+B,SAAQ,MAAM,CAAC,cAAc;IACrE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2C,EAAE,IAAmC;QACzI,OAAO,IAAI,8BAA8B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,gFAAgF,CAAC;IAEvH;;;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,8BAA8B,CAAC,YAAY,CAAC;IAC/E,CAAC;IAwCD,YAAY,IAAY,EAAE,WAAsF,EAAE,IAAmC;QACjJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8D,CAAC;YAC7E,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,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,8BAA8B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnF,CAAC;;AAhGL,wEAiGC"}
@@ -0,0 +1,135 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
6
+ *
7
+ * [API Documentation](https://docs.databricks.com/api/workspace/iamv2)
8
+ *
9
+ * Manages a user using a workspace-scoped provider. Creating the resource provisions the user; deleting it removes the user. `username` is immutable — changing it replaces the resource.
10
+ *
11
+ * When Automatic Identity Management (AIM) is enabled for the account, this resource manages local users only: a user cannot be created with `externalId` set. Users that already have an `externalId` can still be read through this resource, but only their `externalId` may be updated — their other fields are sourced from the identity provider.
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * Example usage:
16
+ *
17
+ * Creates a user using a workspace-scoped provider. When AIM is enabled, the user cannot be created with `externalId` set.
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as databricks from "@pulumi/databricks";
22
+ *
23
+ * const _this = new databricks.WorkspaceIamUserV2("this", {
24
+ * username: "jane.doe@example.com",
25
+ * accountUserStatus: "ACTIVE",
26
+ * fullName: {
27
+ * givenName: "Jane",
28
+ * familyName: "Doe",
29
+ * },
30
+ * });
31
+ * ```
32
+ */
33
+ export declare class WorkspaceIamUserV2 extends pulumi.CustomResource {
34
+ /**
35
+ * Get an existing WorkspaceIamUserV2 resource's state with the given name, ID, and optional extra
36
+ * properties used to qualify the lookup.
37
+ *
38
+ * @param name The _unique_ name of the resulting resource.
39
+ * @param id The _unique_ provider ID of the resource to lookup.
40
+ * @param state Any extra arguments used during the lookup.
41
+ * @param opts Optional settings to control the behavior of the CustomResource.
42
+ */
43
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkspaceIamUserV2State, opts?: pulumi.CustomResourceOptions): WorkspaceIamUserV2;
44
+ /**
45
+ * Returns true if the given object is an instance of WorkspaceIamUserV2. This is designed to work even
46
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
47
+ */
48
+ static isInstance(obj: any): obj is WorkspaceIamUserV2;
49
+ /**
50
+ * (string) - The accountId parent of the user in Databricks
51
+ */
52
+ readonly accountId: pulumi.Output<string>;
53
+ /**
54
+ * The activity status of a user in a Databricks account. Possible values are: `ACTIVE`, `INACTIVE`
55
+ */
56
+ readonly accountUserStatus: pulumi.Output<string>;
57
+ /**
58
+ * ExternalId of the user in the customer's IdP
59
+ */
60
+ readonly externalId: pulumi.Output<string | undefined>;
61
+ readonly fullName: pulumi.Output<outputs.WorkspaceIamUserV2FullName>;
62
+ /**
63
+ * Configure the provider for management through account provider.
64
+ */
65
+ readonly providerConfig: pulumi.Output<outputs.WorkspaceIamUserV2ProviderConfig>;
66
+ /**
67
+ * (string) - Internal userId of the user in Databricks
68
+ */
69
+ readonly userId: pulumi.Output<string>;
70
+ /**
71
+ * Username/email of the user
72
+ */
73
+ readonly username: pulumi.Output<string>;
74
+ /**
75
+ * Create a WorkspaceIamUserV2 resource with the given unique name, arguments, and options.
76
+ *
77
+ * @param name The _unique_ name of the resource.
78
+ * @param args The arguments to use to populate this resource's properties.
79
+ * @param opts A bag of options that control this resource's behavior.
80
+ */
81
+ constructor(name: string, args: WorkspaceIamUserV2Args, opts?: pulumi.CustomResourceOptions);
82
+ }
83
+ /**
84
+ * Input properties used for looking up and filtering WorkspaceIamUserV2 resources.
85
+ */
86
+ export interface WorkspaceIamUserV2State {
87
+ /**
88
+ * (string) - The accountId parent of the user in Databricks
89
+ */
90
+ accountId?: pulumi.Input<string | undefined>;
91
+ /**
92
+ * The activity status of a user in a Databricks account. Possible values are: `ACTIVE`, `INACTIVE`
93
+ */
94
+ accountUserStatus?: pulumi.Input<string | undefined>;
95
+ /**
96
+ * ExternalId of the user in the customer's IdP
97
+ */
98
+ externalId?: pulumi.Input<string | undefined>;
99
+ fullName?: pulumi.Input<inputs.WorkspaceIamUserV2FullName | undefined>;
100
+ /**
101
+ * Configure the provider for management through account provider.
102
+ */
103
+ providerConfig?: pulumi.Input<inputs.WorkspaceIamUserV2ProviderConfig | undefined>;
104
+ /**
105
+ * (string) - Internal userId of the user in Databricks
106
+ */
107
+ userId?: pulumi.Input<string | undefined>;
108
+ /**
109
+ * Username/email of the user
110
+ */
111
+ username?: pulumi.Input<string | undefined>;
112
+ }
113
+ /**
114
+ * The set of arguments for constructing a WorkspaceIamUserV2 resource.
115
+ */
116
+ export interface WorkspaceIamUserV2Args {
117
+ /**
118
+ * The activity status of a user in a Databricks account. Possible values are: `ACTIVE`, `INACTIVE`
119
+ */
120
+ accountUserStatus: pulumi.Input<string>;
121
+ /**
122
+ * ExternalId of the user in the customer's IdP
123
+ */
124
+ externalId?: pulumi.Input<string | undefined>;
125
+ fullName: pulumi.Input<inputs.WorkspaceIamUserV2FullName>;
126
+ /**
127
+ * Configure the provider for management through account provider.
128
+ */
129
+ providerConfig?: pulumi.Input<inputs.WorkspaceIamUserV2ProviderConfig | undefined>;
130
+ /**
131
+ * Username/email of the user
132
+ */
133
+ username: pulumi.Input<string>;
134
+ }
135
+ //# sourceMappingURL=workspaceIamUserV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceIamUserV2.d.ts","sourceRoot":"","sources":["../workspaceIamUserV2.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,kBAAmB,SAAQ,MAAM,CAAC,cAAc;IACzD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,C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EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,0BAA0B,GAAG,SAAS,CAAC,CAAC;IACvE;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,gCAAgC,GAAG,SAAS,CAAC,CAAC;IACnF;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACxC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;IAC1D;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,gCAAgC,GAAG,SAAS,CAAC,CAAC;IACnF;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.WorkspaceIamUserV2 = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
33
+ *
34
+ * [API Documentation](https://docs.databricks.com/api/workspace/iamv2)
35
+ *
36
+ * Manages a user using a workspace-scoped provider. Creating the resource provisions the user; deleting it removes the user. `username` is immutable — changing it replaces the resource.
37
+ *
38
+ * When Automatic Identity Management (AIM) is enabled for the account, this resource manages local users only: a user cannot be created with `externalId` set. Users that already have an `externalId` can still be read through this resource, but only their `externalId` may be updated — their other fields are sourced from the identity provider.
39
+ *
40
+ * ## Example Usage
41
+ *
42
+ * Example usage:
43
+ *
44
+ * Creates a user using a workspace-scoped provider. When AIM is enabled, the user cannot be created with `externalId` set.
45
+ *
46
+ * ```typescript
47
+ * import * as pulumi from "@pulumi/pulumi";
48
+ * import * as databricks from "@pulumi/databricks";
49
+ *
50
+ * const _this = new databricks.WorkspaceIamUserV2("this", {
51
+ * username: "jane.doe@example.com",
52
+ * accountUserStatus: "ACTIVE",
53
+ * fullName: {
54
+ * givenName: "Jane",
55
+ * familyName: "Doe",
56
+ * },
57
+ * });
58
+ * ```
59
+ */
60
+ class WorkspaceIamUserV2 extends pulumi.CustomResource {
61
+ /**
62
+ * Get an existing WorkspaceIamUserV2 resource's state with the given name, ID, and optional extra
63
+ * properties used to qualify the lookup.
64
+ *
65
+ * @param name The _unique_ name of the resulting resource.
66
+ * @param id The _unique_ provider ID of the resource to lookup.
67
+ * @param state Any extra arguments used during the lookup.
68
+ * @param opts Optional settings to control the behavior of the CustomResource.
69
+ */
70
+ static get(name, id, state, opts) {
71
+ return new WorkspaceIamUserV2(name, state, { ...opts, id: id });
72
+ }
73
+ /** @internal */
74
+ static __pulumiType = 'databricks:index/workspaceIamUserV2:WorkspaceIamUserV2';
75
+ /**
76
+ * Returns true if the given object is an instance of WorkspaceIamUserV2. This is designed to work even
77
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
78
+ */
79
+ static isInstance(obj) {
80
+ if (obj === undefined || obj === null) {
81
+ return false;
82
+ }
83
+ return obj['__pulumiType'] === WorkspaceIamUserV2.__pulumiType;
84
+ }
85
+ constructor(name, argsOrState, opts) {
86
+ let resourceInputs = {};
87
+ opts = opts || {};
88
+ if (opts.id) {
89
+ const state = argsOrState;
90
+ resourceInputs["accountId"] = state?.accountId;
91
+ resourceInputs["accountUserStatus"] = state?.accountUserStatus;
92
+ resourceInputs["externalId"] = state?.externalId;
93
+ resourceInputs["fullName"] = state?.fullName;
94
+ resourceInputs["providerConfig"] = state?.providerConfig;
95
+ resourceInputs["userId"] = state?.userId;
96
+ resourceInputs["username"] = state?.username;
97
+ }
98
+ else {
99
+ const args = argsOrState;
100
+ if (args?.accountUserStatus === undefined && !opts.urn) {
101
+ throw new Error("Missing required property 'accountUserStatus'");
102
+ }
103
+ if (args?.fullName === undefined && !opts.urn) {
104
+ throw new Error("Missing required property 'fullName'");
105
+ }
106
+ if (args?.username === undefined && !opts.urn) {
107
+ throw new Error("Missing required property 'username'");
108
+ }
109
+ resourceInputs["accountUserStatus"] = args?.accountUserStatus;
110
+ resourceInputs["externalId"] = args?.externalId;
111
+ resourceInputs["fullName"] = args?.fullName;
112
+ resourceInputs["providerConfig"] = args?.providerConfig;
113
+ resourceInputs["username"] = args?.username;
114
+ resourceInputs["accountId"] = undefined /*out*/;
115
+ resourceInputs["userId"] = undefined /*out*/;
116
+ }
117
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
118
+ super(WorkspaceIamUserV2.__pulumiType, name, resourceInputs, opts);
119
+ }
120
+ }
121
+ exports.WorkspaceIamUserV2 = WorkspaceIamUserV2;
122
+ //# sourceMappingURL=workspaceIamUserV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceIamUserV2.js","sourceRoot":"","sources":["../workspaceIamUserV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;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;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,wDAAwD,CAAC;IAE/F;;;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;IAoCD,YAAY,IAAY,EAAE,WAA8D,EAAE,IAAmC;QACzH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CA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GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,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;;AA/FL,gDAgGC"}
@@ -0,0 +1,150 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
6
+ *
7
+ * [API Documentation](https://docs.databricks.com/api/workspace/iamv2)
8
+ *
9
+ * Manages the direct assignment of a principal to the workspace, along with the entitlements that assignment grants, using a workspace-scoped provider. Creating the resource assigns the principal; deleting it removes the assignment. `entitlements` is the only updatable field.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * Example usage:
14
+ *
15
+ * Assigns a principal to the workspace with a set of entitlements, using a
16
+ * workspace-scoped provider (the workspace is taken from the provider context, so
17
+ * only `principalId` identifies the assignment). `entitlements` is the set
18
+ * granted directly on it (at least one is required). `entitlements` is the only
19
+ * updatable field — edit the list and re-apply to update in place. Changing
20
+ * `principalId` replaces the assignment.
21
+ *
22
+ * ```typescript
23
+ * import * as pulumi from "@pulumi/pulumi";
24
+ * import * as databricks from "@pulumi/databricks";
25
+ *
26
+ * const _this = new databricks.WorkspaceIamWorkspaceAssignmentV2("this", {
27
+ * principalId: "987654321",
28
+ * entitlements: ["WORKSPACE_ACCESS"],
29
+ * });
30
+ * ```
31
+ */
32
+ export declare class WorkspaceIamWorkspaceAssignmentV2 extends pulumi.CustomResource {
33
+ /**
34
+ * Get an existing WorkspaceIamWorkspaceAssignmentV2 resource's state with the given name, ID, and optional extra
35
+ * properties used to qualify the lookup.
36
+ *
37
+ * @param name The _unique_ name of the resulting resource.
38
+ * @param id The _unique_ provider ID of the resource to lookup.
39
+ * @param state Any extra arguments used during the lookup.
40
+ * @param opts Optional settings to control the behavior of the CustomResource.
41
+ */
42
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: WorkspaceIamWorkspaceAssignmentV2State, opts?: pulumi.CustomResourceOptions): WorkspaceIamWorkspaceAssignmentV2;
43
+ /**
44
+ * Returns true if the given object is an instance of WorkspaceIamWorkspaceAssignmentV2. This is designed to work even
45
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
46
+ */
47
+ static isInstance(obj: any): obj is WorkspaceIamWorkspaceAssignmentV2;
48
+ /**
49
+ * (string) - The account ID parent of the workspace where the principal is assigned
50
+ */
51
+ readonly accountId: pulumi.Output<string>;
52
+ /**
53
+ * (list of string) - Every entitlement the principal holds in this workspace, whether granted directly or through
54
+ * group membership. Get responses populate this field. List responses leave it empty
55
+ */
56
+ readonly effectiveEntitlements: pulumi.Output<string[]>;
57
+ /**
58
+ * Entitlements granted directly to the principal on this workspace. This is the only
59
+ * client-settable field. Create and update manage exactly this set, including entitlements the
60
+ * principal also holds through a group.
61
+ * List responses leave this field empty. Get a single principal to read its entitlements
62
+ */
63
+ readonly entitlements: pulumi.Output<string[] | undefined>;
64
+ /**
65
+ * The internal ID of the principal (user/sp/group) in Databricks
66
+ */
67
+ readonly principalId: pulumi.Output<string>;
68
+ /**
69
+ * (string) - The type of the principal (user/service principal/group) that is assigned. Possible values are: `GROUP`, `SERVICE_PRINCIPAL`, `USER`
70
+ */
71
+ readonly principalType: pulumi.Output<string>;
72
+ /**
73
+ * Configure the provider for management through account provider.
74
+ */
75
+ readonly providerConfig: pulumi.Output<outputs.WorkspaceIamWorkspaceAssignmentV2ProviderConfig>;
76
+ /**
77
+ * (integer) - The workspace ID where the principal is assigned
78
+ */
79
+ readonly workspaceId: pulumi.Output<string>;
80
+ /**
81
+ * Create a WorkspaceIamWorkspaceAssignmentV2 resource with the given unique name, arguments, and options.
82
+ *
83
+ * @param name The _unique_ name of the resource.
84
+ * @param args The arguments to use to populate this resource's properties.
85
+ * @param opts A bag of options that control this resource's behavior.
86
+ */
87
+ constructor(name: string, args: WorkspaceIamWorkspaceAssignmentV2Args, opts?: pulumi.CustomResourceOptions);
88
+ }
89
+ /**
90
+ * Input properties used for looking up and filtering WorkspaceIamWorkspaceAssignmentV2 resources.
91
+ */
92
+ export interface WorkspaceIamWorkspaceAssignmentV2State {
93
+ /**
94
+ * (string) - The account ID parent of the workspace where the principal is assigned
95
+ */
96
+ accountId?: pulumi.Input<string | undefined>;
97
+ /**
98
+ * (list of string) - Every entitlement the principal holds in this workspace, whether granted directly or through
99
+ * group membership. Get responses populate this field. List responses leave it empty
100
+ */
101
+ effectiveEntitlements?: pulumi.Input<pulumi.Input<string>[] | undefined>;
102
+ /**
103
+ * Entitlements granted directly to the principal on this workspace. This is the only
104
+ * client-settable field. Create and update manage exactly this set, including entitlements the
105
+ * principal also holds through a group.
106
+ * List responses leave this field empty. Get a single principal to read its entitlements
107
+ */
108
+ entitlements?: pulumi.Input<pulumi.Input<string>[] | undefined>;
109
+ /**
110
+ * The internal ID of the principal (user/sp/group) in Databricks
111
+ */
112
+ principalId?: pulumi.Input<string | undefined>;
113
+ /**
114
+ * (string) - The type of the principal (user/service principal/group) that is assigned. Possible values are: `GROUP`, `SERVICE_PRINCIPAL`, `USER`
115
+ */
116
+ principalType?: pulumi.Input<string | undefined>;
117
+ /**
118
+ * Configure the provider for management through account provider.
119
+ */
120
+ providerConfig?: pulumi.Input<inputs.WorkspaceIamWorkspaceAssignmentV2ProviderConfig | undefined>;
121
+ /**
122
+ * (integer) - The workspace ID where the principal is assigned
123
+ */
124
+ workspaceId?: pulumi.Input<string | undefined>;
125
+ }
126
+ /**
127
+ * The set of arguments for constructing a WorkspaceIamWorkspaceAssignmentV2 resource.
128
+ */
129
+ export interface WorkspaceIamWorkspaceAssignmentV2Args {
130
+ /**
131
+ * Entitlements granted directly to the principal on this workspace. This is the only
132
+ * client-settable field. Create and update manage exactly this set, including entitlements the
133
+ * principal also holds through a group.
134
+ * List responses leave this field empty. Get a single principal to read its entitlements
135
+ */
136
+ entitlements?: pulumi.Input<pulumi.Input<string>[] | undefined>;
137
+ /**
138
+ * The internal ID of the principal (user/sp/group) in Databricks
139
+ */
140
+ principalId: pulumi.Input<string>;
141
+ /**
142
+ * Configure the provider for management through account provider.
143
+ */
144
+ providerConfig?: pulumi.Input<inputs.WorkspaceIamWorkspaceAssignmentV2ProviderConfig | undefined>;
145
+ /**
146
+ * (integer) - The workspace ID where the principal is assigned
147
+ */
148
+ workspaceId?: pulumi.Input<string | undefined>;
149
+ }
150
+ //# sourceMappingURL=workspaceIamWorkspaceAssignmentV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaceIamWorkspaceAssignmentV2.d.ts","sourceRoot":"","sources":["../workspaceIamWorkspaceAssignmentV2.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAAa,iCAAkC,SAAQ,MAAM,CAAC,cAAc;IACxE;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,sCAAsC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,iCAAiC;IAOpL;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,iCAAiC;IAO5E;;OAEG;IACH,SAAgC,S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AAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,+CAA+C,GAAG,SAAS,CAAC,CAAC;IAClG;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAClD;AAED;;GAEG;AACH,MAAM,WAAW,qCAAqC;IAClD;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAChE;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,+CAA+C,GAAG,SAAS,CAAC,CAAC;IAClG;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAClD"}
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.WorkspaceIamWorkspaceAssignmentV2 = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ /**
32
+ * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
33
+ *
34
+ * [API Documentation](https://docs.databricks.com/api/workspace/iamv2)
35
+ *
36
+ * Manages the direct assignment of a principal to the workspace, along with the entitlements that assignment grants, using a workspace-scoped provider. Creating the resource assigns the principal; deleting it removes the assignment. `entitlements` is the only updatable field.
37
+ *
38
+ * ## Example Usage
39
+ *
40
+ * Example usage:
41
+ *
42
+ * Assigns a principal to the workspace with a set of entitlements, using a
43
+ * workspace-scoped provider (the workspace is taken from the provider context, so
44
+ * only `principalId` identifies the assignment). `entitlements` is the set
45
+ * granted directly on it (at least one is required). `entitlements` is the only
46
+ * updatable field — edit the list and re-apply to update in place. Changing
47
+ * `principalId` replaces the assignment.
48
+ *
49
+ * ```typescript
50
+ * import * as pulumi from "@pulumi/pulumi";
51
+ * import * as databricks from "@pulumi/databricks";
52
+ *
53
+ * const _this = new databricks.WorkspaceIamWorkspaceAssignmentV2("this", {
54
+ * principalId: "987654321",
55
+ * entitlements: ["WORKSPACE_ACCESS"],
56
+ * });
57
+ * ```
58
+ */
59
+ class WorkspaceIamWorkspaceAssignmentV2 extends pulumi.CustomResource {
60
+ /**
61
+ * Get an existing WorkspaceIamWorkspaceAssignmentV2 resource's state with the given name, ID, and optional extra
62
+ * properties used to qualify the lookup.
63
+ *
64
+ * @param name The _unique_ name of the resulting resource.
65
+ * @param id The _unique_ provider ID of the resource to lookup.
66
+ * @param state Any extra arguments used during the lookup.
67
+ * @param opts Optional settings to control the behavior of the CustomResource.
68
+ */
69
+ static get(name, id, state, opts) {
70
+ return new WorkspaceIamWorkspaceAssignmentV2(name, state, { ...opts, id: id });
71
+ }
72
+ /** @internal */
73
+ static __pulumiType = 'databricks:index/workspaceIamWorkspaceAssignmentV2:WorkspaceIamWorkspaceAssignmentV2';
74
+ /**
75
+ * Returns true if the given object is an instance of WorkspaceIamWorkspaceAssignmentV2. This is designed to work even
76
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
77
+ */
78
+ static isInstance(obj) {
79
+ if (obj === undefined || obj === null) {
80
+ return false;
81
+ }
82
+ return obj['__pulumiType'] === WorkspaceIamWorkspaceAssignmentV2.__pulumiType;
83
+ }
84
+ constructor(name, argsOrState, opts) {
85
+ let resourceInputs = {};
86
+ opts = opts || {};
87
+ if (opts.id) {
88
+ const state = argsOrState;
89
+ resourceInputs["accountId"] = state?.accountId;
90
+ resourceInputs["effectiveEntitlements"] = state?.effectiveEntitlements;
91
+ resourceInputs["entitlements"] = state?.entitlements;
92
+ resourceInputs["principalId"] = state?.principalId;
93
+ resourceInputs["principalType"] = state?.principalType;
94
+ resourceInputs["providerConfig"] = state?.providerConfig;
95
+ resourceInputs["workspaceId"] = state?.workspaceId;
96
+ }
97
+ else {
98
+ const args = argsOrState;
99
+ if (args?.principalId === undefined && !opts.urn) {
100
+ throw new Error("Missing required property 'principalId'");
101
+ }
102
+ resourceInputs["entitlements"] = args?.entitlements;
103
+ resourceInputs["principalId"] = args?.principalId;
104
+ resourceInputs["providerConfig"] = args?.providerConfig;
105
+ resourceInputs["workspaceId"] = args?.workspaceId;
106
+ resourceInputs["accountId"] = undefined /*out*/;
107
+ resourceInputs["effectiveEntitlements"] = undefined /*out*/;
108
+ resourceInputs["principalType"] = undefined /*out*/;
109
+ }
110
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
111
+ super(WorkspaceIamWorkspaceAssignmentV2.__pulumiType, name, resourceInputs, opts);
112
+ }
113
+ }
114
+ exports.WorkspaceIamWorkspaceAssignmentV2 = WorkspaceIamWorkspaceAssignmentV2;
115
+ //# sourceMappingURL=workspaceIamWorkspaceAssignmentV2.js.map