@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,113 @@
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.AccountIamServicePrincipalV2 = 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/account/iamv2)
35
+ *
36
+ * Manages an account-level service principal. 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 an account-level service principal. 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.AccountIamServicePrincipalV2("this", {
51
+ * displayName: "ci-runner",
52
+ * accountSpStatus: "ACTIVE",
53
+ * });
54
+ * ```
55
+ */
56
+ class AccountIamServicePrincipalV2 extends pulumi.CustomResource {
57
+ /**
58
+ * Get an existing AccountIamServicePrincipalV2 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 AccountIamServicePrincipalV2(name, state, { ...opts, id: id });
68
+ }
69
+ /** @internal */
70
+ static __pulumiType = 'databricks:index/accountIamServicePrincipalV2:AccountIamServicePrincipalV2';
71
+ /**
72
+ * Returns true if the given object is an instance of AccountIamServicePrincipalV2. 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'] === AccountIamServicePrincipalV2.__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["servicePrincipalId"] = state?.servicePrincipalId;
92
+ }
93
+ else {
94
+ const args = argsOrState;
95
+ if (args?.accountSpStatus === undefined && !opts.urn) {
96
+ throw new Error("Missing required property 'accountSpStatus'");
97
+ }
98
+ if (args?.displayName === undefined && !opts.urn) {
99
+ throw new Error("Missing required property 'displayName'");
100
+ }
101
+ resourceInputs["accountSpStatus"] = args?.accountSpStatus;
102
+ resourceInputs["applicationId"] = args?.applicationId;
103
+ resourceInputs["displayName"] = args?.displayName;
104
+ resourceInputs["externalId"] = args?.externalId;
105
+ resourceInputs["accountId"] = undefined /*out*/;
106
+ resourceInputs["servicePrincipalId"] = undefined /*out*/;
107
+ }
108
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
109
+ super(AccountIamServicePrincipalV2.__pulumiType, name, resourceInputs, opts);
110
+ }
111
+ }
112
+ exports.AccountIamServicePrincipalV2 = AccountIamServicePrincipalV2;
113
+ //# sourceMappingURL=accountIamServicePrincipalV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountIamServicePrincipalV2.js","sourceRoot":"","sources":["../accountIamServicePrincipalV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EAAE,IAAmC;QACvI,OAAO,IAAI,4BAA4B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACnF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,4EAA4E,CAAC;IAEnH;;;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,4BAA4B,CAAC,YAAY,CAAC;IAC7E,CAAC;IAoCD,YAAY,IAAY,EAAE,WAAkF,EAAE,IAAmC;QAC7I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4D,CAAC;YAC3E,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,EAAE,eAAe,CAAC;YAC3D,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,EAAE,aAAa,CAAC;YACvD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,EAAE,kBAAkB,CAAC;SACpE;aAAM;YACH,MAAM,IAAI,GAAG,WAA2D,CAAC;YACzE,IAAI,IAAI,EAAE,eAAe,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAClD,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;aAClE;YACD,IAAI,IAAI,EAAE,WAAW,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC9C,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC5D;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;;AA1FL,oEA2FC"}
@@ -0,0 +1,123 @@
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/account/iamv2)
8
+ *
9
+ * Manages an account-level user. 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 an account-level user. 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.AccountIamUserV2("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 AccountIamUserV2 extends pulumi.CustomResource {
34
+ /**
35
+ * Get an existing AccountIamUserV2 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?: AccountIamUserV2State, opts?: pulumi.CustomResourceOptions): AccountIamUserV2;
44
+ /**
45
+ * Returns true if the given object is an instance of AccountIamUserV2. 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 AccountIamUserV2;
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.AccountIamUserV2FullName>;
62
+ /**
63
+ * (string) - Internal userId of the user in Databricks
64
+ */
65
+ readonly userId: pulumi.Output<string>;
66
+ /**
67
+ * Username/email of the user
68
+ */
69
+ readonly username: pulumi.Output<string>;
70
+ /**
71
+ * Create a AccountIamUserV2 resource with the given unique name, arguments, and options.
72
+ *
73
+ * @param name The _unique_ name of the resource.
74
+ * @param args The arguments to use to populate this resource's properties.
75
+ * @param opts A bag of options that control this resource's behavior.
76
+ */
77
+ constructor(name: string, args: AccountIamUserV2Args, opts?: pulumi.CustomResourceOptions);
78
+ }
79
+ /**
80
+ * Input properties used for looking up and filtering AccountIamUserV2 resources.
81
+ */
82
+ export interface AccountIamUserV2State {
83
+ /**
84
+ * (string) - The accountId parent of the user in Databricks
85
+ */
86
+ accountId?: pulumi.Input<string | undefined>;
87
+ /**
88
+ * The activity status of a user in a Databricks account. Possible values are: `ACTIVE`, `INACTIVE`
89
+ */
90
+ accountUserStatus?: pulumi.Input<string | undefined>;
91
+ /**
92
+ * ExternalId of the user in the customer's IdP
93
+ */
94
+ externalId?: pulumi.Input<string | undefined>;
95
+ fullName?: pulumi.Input<inputs.AccountIamUserV2FullName | undefined>;
96
+ /**
97
+ * (string) - Internal userId of the user in Databricks
98
+ */
99
+ userId?: pulumi.Input<string | undefined>;
100
+ /**
101
+ * Username/email of the user
102
+ */
103
+ username?: pulumi.Input<string | undefined>;
104
+ }
105
+ /**
106
+ * The set of arguments for constructing a AccountIamUserV2 resource.
107
+ */
108
+ export interface AccountIamUserV2Args {
109
+ /**
110
+ * The activity status of a user in a Databricks account. Possible values are: `ACTIVE`, `INACTIVE`
111
+ */
112
+ accountUserStatus: pulumi.Input<string>;
113
+ /**
114
+ * ExternalId of the user in the customer's IdP
115
+ */
116
+ externalId?: pulumi.Input<string | undefined>;
117
+ fullName: pulumi.Input<inputs.AccountIamUserV2FullName>;
118
+ /**
119
+ * Username/email of the user
120
+ */
121
+ username: pulumi.Input<string>;
122
+ }
123
+ //# sourceMappingURL=accountIamUserV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountIamUserV2.d.ts","sourceRoot":"","sources":["../accountIamUserV2.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,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,gBAAgB;IAOlJ;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,gBAAgB;IAO3D;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAwB,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;OAEG;IACH,SAAwB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACtE,SAAwB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,wBAAwB,CAAC,CAAC;IAClF;;OAEG;IACH,SAAgC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9D;;OAEG;IACH,SAAwB,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAExD;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CAiC5F;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC9C,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,wBAAwB,GAAG,SAAS,CAAC,CAAC;IACrE;;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,oBAAoB;IACjC;;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,wBAAwB,CAAC,CAAC;IACxD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CAClC"}
@@ -0,0 +1,120 @@
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.AccountIamUserV2 = 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/account/iamv2)
35
+ *
36
+ * Manages an account-level user. 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 an account-level user. 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.AccountIamUserV2("this", {
51
+ * username: "jane.doe@example.com",
52
+ * accountUserStatus: "ACTIVE",
53
+ * fullName: {
54
+ * givenName: "Jane",
55
+ * familyName: "Doe",
56
+ * },
57
+ * });
58
+ * ```
59
+ */
60
+ class AccountIamUserV2 extends pulumi.CustomResource {
61
+ /**
62
+ * Get an existing AccountIamUserV2 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 AccountIamUserV2(name, state, { ...opts, id: id });
72
+ }
73
+ /** @internal */
74
+ static __pulumiType = 'databricks:index/accountIamUserV2:AccountIamUserV2';
75
+ /**
76
+ * Returns true if the given object is an instance of AccountIamUserV2. 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'] === AccountIamUserV2.__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["userId"] = state?.userId;
95
+ resourceInputs["username"] = state?.username;
96
+ }
97
+ else {
98
+ const args = argsOrState;
99
+ if (args?.accountUserStatus === undefined && !opts.urn) {
100
+ throw new Error("Missing required property 'accountUserStatus'");
101
+ }
102
+ if (args?.fullName === undefined && !opts.urn) {
103
+ throw new Error("Missing required property 'fullName'");
104
+ }
105
+ if (args?.username === undefined && !opts.urn) {
106
+ throw new Error("Missing required property 'username'");
107
+ }
108
+ resourceInputs["accountUserStatus"] = args?.accountUserStatus;
109
+ resourceInputs["externalId"] = args?.externalId;
110
+ resourceInputs["fullName"] = args?.fullName;
111
+ resourceInputs["username"] = args?.username;
112
+ resourceInputs["accountId"] = undefined /*out*/;
113
+ resourceInputs["userId"] = undefined /*out*/;
114
+ }
115
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
116
+ super(AccountIamUserV2.__pulumiType, name, resourceInputs, opts);
117
+ }
118
+ }
119
+ exports.AccountIamUserV2 = AccountIamUserV2;
120
+ //# sourceMappingURL=accountIamUserV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountIamUserV2.js","sourceRoot":"","sources":["../accountIamUserV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,oDAAoD,CAAC;IAE3F;;;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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;IAgCD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,EAAE,iBAAiB,CAAC;YAC/D,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;SAChD;aAAM;YACH,MAAM,IAAI,GAAG,WAA+C,CAAC;YAC7D,IAAI,IAAI,EAAE,iBAAiB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;aACpE;YACD,IAAI,IAAI,EAAE,QAAQ,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,IAAI,IAAI,EAAE,QAAQ,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3C,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aAC3D;YACD,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,UAAU,CAAC,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,gBAAgB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;;AAzFL,4CA0FC"}
@@ -0,0 +1,136 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * [![Private Preview](https://img.shields.io/badge/Release_Stage-Private_Preview-blueviolet)](https://docs.databricks.com/aws/en/release-notes/release-types)
4
+ *
5
+ * [API Documentation](https://docs.databricks.com/api/account/iamv2)
6
+ *
7
+ * Manages the direct assignment of an account principal to a workspace, along with the entitlements that assignment grants. Creating the resource assigns the principal to the workspace; deleting it removes the assignment. `entitlements` is the only updatable field.
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * Example usage:
12
+ *
13
+ * Assigns a principal to a workspace with a set of entitlements. `workspaceId`
14
+ * and `principalId` identify the assignment; `entitlements` is the set granted
15
+ * directly on it (at least one is required). `entitlements` is the only updatable
16
+ * field — edit the list and re-apply to update in place. Changing `workspaceId`
17
+ * or `principalId` replaces the assignment.
18
+ *
19
+ * ```typescript
20
+ * import * as pulumi from "@pulumi/pulumi";
21
+ * import * as databricks from "@pulumi/databricks";
22
+ *
23
+ * const _this = new databricks.AccountIamWorkspaceAssignmentV2("this", {
24
+ * workspaceId: "123456789",
25
+ * principalId: "987654321",
26
+ * entitlements: ["WORKSPACE_ACCESS"],
27
+ * });
28
+ * ```
29
+ */
30
+ export declare class AccountIamWorkspaceAssignmentV2 extends pulumi.CustomResource {
31
+ /**
32
+ * Get an existing AccountIamWorkspaceAssignmentV2 resource's state with the given name, ID, and optional extra
33
+ * properties used to qualify the lookup.
34
+ *
35
+ * @param name The _unique_ name of the resulting resource.
36
+ * @param id The _unique_ provider ID of the resource to lookup.
37
+ * @param state Any extra arguments used during the lookup.
38
+ * @param opts Optional settings to control the behavior of the CustomResource.
39
+ */
40
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AccountIamWorkspaceAssignmentV2State, opts?: pulumi.CustomResourceOptions): AccountIamWorkspaceAssignmentV2;
41
+ /**
42
+ * Returns true if the given object is an instance of AccountIamWorkspaceAssignmentV2. This is designed to work even
43
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
44
+ */
45
+ static isInstance(obj: any): obj is AccountIamWorkspaceAssignmentV2;
46
+ /**
47
+ * (string) - The account ID parent of the workspace where the principal is assigned
48
+ */
49
+ readonly accountId: pulumi.Output<string>;
50
+ /**
51
+ * (list of string) - Every entitlement the principal holds in this workspace, whether granted directly or through
52
+ * group membership. Get responses populate this field. List responses leave it empty
53
+ */
54
+ readonly effectiveEntitlements: pulumi.Output<string[]>;
55
+ /**
56
+ * Entitlements granted directly to the principal on this workspace. This is the only
57
+ * client-settable field. Create and update manage exactly this set, including entitlements the
58
+ * principal also holds through a group.
59
+ * List responses leave this field empty. Get a single principal to read its entitlements
60
+ */
61
+ readonly entitlements: pulumi.Output<string[] | undefined>;
62
+ /**
63
+ * The internal ID of the principal (user/sp/group) in Databricks
64
+ */
65
+ readonly principalId: pulumi.Output<string>;
66
+ /**
67
+ * (string) - The type of the principal (user/service principal/group) that is assigned. Possible values are: `GROUP`, `SERVICE_PRINCIPAL`, `USER`
68
+ */
69
+ readonly principalType: pulumi.Output<string>;
70
+ /**
71
+ * (integer) - The workspace ID where the principal is assigned
72
+ */
73
+ readonly workspaceId: pulumi.Output<string>;
74
+ /**
75
+ * Create a AccountIamWorkspaceAssignmentV2 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: AccountIamWorkspaceAssignmentV2Args, opts?: pulumi.CustomResourceOptions);
82
+ }
83
+ /**
84
+ * Input properties used for looking up and filtering AccountIamWorkspaceAssignmentV2 resources.
85
+ */
86
+ export interface AccountIamWorkspaceAssignmentV2State {
87
+ /**
88
+ * (string) - The account ID parent of the workspace where the principal is assigned
89
+ */
90
+ accountId?: pulumi.Input<string | undefined>;
91
+ /**
92
+ * (list of string) - Every entitlement the principal holds in this workspace, whether granted directly or through
93
+ * group membership. Get responses populate this field. List responses leave it empty
94
+ */
95
+ effectiveEntitlements?: pulumi.Input<pulumi.Input<string>[] | undefined>;
96
+ /**
97
+ * Entitlements granted directly to the principal on this workspace. This is the only
98
+ * client-settable field. Create and update manage exactly this set, including entitlements the
99
+ * principal also holds through a group.
100
+ * List responses leave this field empty. Get a single principal to read its entitlements
101
+ */
102
+ entitlements?: pulumi.Input<pulumi.Input<string>[] | undefined>;
103
+ /**
104
+ * The internal ID of the principal (user/sp/group) in Databricks
105
+ */
106
+ principalId?: pulumi.Input<string | undefined>;
107
+ /**
108
+ * (string) - The type of the principal (user/service principal/group) that is assigned. Possible values are: `GROUP`, `SERVICE_PRINCIPAL`, `USER`
109
+ */
110
+ principalType?: pulumi.Input<string | undefined>;
111
+ /**
112
+ * (integer) - The workspace ID where the principal is assigned
113
+ */
114
+ workspaceId?: pulumi.Input<string | undefined>;
115
+ }
116
+ /**
117
+ * The set of arguments for constructing a AccountIamWorkspaceAssignmentV2 resource.
118
+ */
119
+ export interface AccountIamWorkspaceAssignmentV2Args {
120
+ /**
121
+ * Entitlements granted directly to the principal on this workspace. This is the only
122
+ * client-settable field. Create and update manage exactly this set, including entitlements the
123
+ * principal also holds through a group.
124
+ * List responses leave this field empty. Get a single principal to read its entitlements
125
+ */
126
+ entitlements?: pulumi.Input<pulumi.Input<string>[] | undefined>;
127
+ /**
128
+ * The internal ID of the principal (user/sp/group) in Databricks
129
+ */
130
+ principalId: pulumi.Input<string>;
131
+ /**
132
+ * (integer) - The workspace ID where the principal is assigned
133
+ */
134
+ workspaceId?: pulumi.Input<string | undefined>;
135
+ }
136
+ //# sourceMappingURL=accountIamWorkspaceAssignmentV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountIamWorkspaceAssignmentV2.d.ts","sourceRoot":"","sources":["../accountIamWorkspaceAssignmentV2.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAAa,+BAAgC,SAAQ,MAAM,CAAC,cAAc;IACtE;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,oCAAoC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,+BAA+B;IAOhL;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,+BAA+B;IAO1E;;OAEG;IACH,SAAgC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACjE;;;OAGG;IACH,SAAgC,qBAAqB,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;IAC/E;;;;;OAKG;IACH,SAAwB,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,CAAC;IAC1E;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3D;;OAEG;IACH,SAAgC,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACrE;;OAEG;IACH,SAAwB,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAE3D;;;;;;OAMG;gBACS,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,mCAAmC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB;CA2B3G;AAED;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACjD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC7C;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IACzE;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAChE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACjD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAClD;AAED;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAChD;;;;;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,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAClD"}
@@ -0,0 +1,113 @@
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.AccountIamWorkspaceAssignmentV2 = 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/account/iamv2)
35
+ *
36
+ * Manages the direct assignment of an account principal to a workspace, along with the entitlements that assignment grants. Creating the resource assigns the principal to the workspace; 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 a workspace with a set of entitlements. `workspaceId`
43
+ * and `principalId` identify the assignment; `entitlements` is the set granted
44
+ * directly on it (at least one is required). `entitlements` is the only updatable
45
+ * field — edit the list and re-apply to update in place. Changing `workspaceId`
46
+ * or `principalId` replaces the assignment.
47
+ *
48
+ * ```typescript
49
+ * import * as pulumi from "@pulumi/pulumi";
50
+ * import * as databricks from "@pulumi/databricks";
51
+ *
52
+ * const _this = new databricks.AccountIamWorkspaceAssignmentV2("this", {
53
+ * workspaceId: "123456789",
54
+ * principalId: "987654321",
55
+ * entitlements: ["WORKSPACE_ACCESS"],
56
+ * });
57
+ * ```
58
+ */
59
+ class AccountIamWorkspaceAssignmentV2 extends pulumi.CustomResource {
60
+ /**
61
+ * Get an existing AccountIamWorkspaceAssignmentV2 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 AccountIamWorkspaceAssignmentV2(name, state, { ...opts, id: id });
71
+ }
72
+ /** @internal */
73
+ static __pulumiType = 'databricks:index/accountIamWorkspaceAssignmentV2:AccountIamWorkspaceAssignmentV2';
74
+ /**
75
+ * Returns true if the given object is an instance of AccountIamWorkspaceAssignmentV2. 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'] === AccountIamWorkspaceAssignmentV2.__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["workspaceId"] = state?.workspaceId;
95
+ }
96
+ else {
97
+ const args = argsOrState;
98
+ if (args?.principalId === undefined && !opts.urn) {
99
+ throw new Error("Missing required property 'principalId'");
100
+ }
101
+ resourceInputs["entitlements"] = args?.entitlements;
102
+ resourceInputs["principalId"] = args?.principalId;
103
+ resourceInputs["workspaceId"] = args?.workspaceId;
104
+ resourceInputs["accountId"] = undefined /*out*/;
105
+ resourceInputs["effectiveEntitlements"] = undefined /*out*/;
106
+ resourceInputs["principalType"] = undefined /*out*/;
107
+ }
108
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
109
+ super(AccountIamWorkspaceAssignmentV2.__pulumiType, name, resourceInputs, opts);
110
+ }
111
+ }
112
+ exports.AccountIamWorkspaceAssignmentV2 = AccountIamWorkspaceAssignmentV2;
113
+ //# sourceMappingURL=accountIamWorkspaceAssignmentV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountIamWorkspaceAssignmentV2.js","sourceRoot":"","sources":["../accountIamWorkspaceAssignmentV2.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,+BAAgC,SAAQ,MAAM,CAAC,cAAc;IACtE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4C,EAAE,IAAmC;QAC1I,OAAO,IAAI,+BAA+B,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,kFAAkF,CAAC;IAEzH;;;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,+BAA+B,CAAC,YAAY,CAAC;IAChF,CAAC;IAuCD,YAAY,IAAY,EAAE,WAAwF,EAAE,IAAmC;QACnJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+D,CAAC;YAC9E,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,uBAAuB,CAAC,GAAG,KAAK,EAAE,qBAAqB,CAAC;YACvE,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,eAAe,CAAC,GAAG,KAAK,EAAE,aAAa,CAAC;YACvD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;SACtD;aAAM;YACH,MAAM,IAAI,GAAG,WAA8D,CAAC;YAC5E,IAAI,IAAI,EAAE,WAAW,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC9C,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAC;aAC9D;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC5D,cAAc,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACvD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,+BAA+B,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpF,CAAC;;AA1FL,0EA2FC"}