@pulumi/databricks 1.91.0-alpha.1776924583 → 1.91.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 (141) hide show
  1. package/accessControlRuleSet.d.ts +15 -0
  2. package/accessControlRuleSet.js +4 -0
  3. package/accessControlRuleSet.js.map +1 -1
  4. package/accountNetworkPolicy.d.ts +34 -4
  5. package/accountNetworkPolicy.js +4 -0
  6. package/accountNetworkPolicy.js.map +1 -1
  7. package/accountSettingUserPreferenceV2.d.ts +1 -1
  8. package/accountSettingUserPreferenceV2.js +1 -1
  9. package/app.d.ts +1 -1
  10. package/catalog.d.ts +3 -0
  11. package/catalog.js +2 -0
  12. package/catalog.js.map +1 -1
  13. package/credential.d.ts +12 -0
  14. package/credential.js +2 -0
  15. package/credential.js.map +1 -1
  16. package/entityTagAssignment.d.ts +4 -4
  17. package/entityTagAssignment.js +1 -1
  18. package/environmentsDefaultWorkspaceBaseEnvironment.d.ts +6 -10
  19. package/environmentsDefaultWorkspaceBaseEnvironment.js +6 -10
  20. package/environmentsDefaultWorkspaceBaseEnvironment.js.map +1 -1
  21. package/environmentsWorkspaceBaseEnvironment.d.ts +3 -3
  22. package/environmentsWorkspaceBaseEnvironment.js +3 -3
  23. package/externalLocation.d.ts +3 -0
  24. package/externalLocation.js +2 -0
  25. package/externalLocation.js.map +1 -1
  26. package/featureEngineeringMaterializedFeature.d.ts +10 -2
  27. package/featureEngineeringMaterializedFeature.js +2 -0
  28. package/featureEngineeringMaterializedFeature.js.map +1 -1
  29. package/getAccountNetworkPolicy.d.ts +10 -0
  30. package/getAccountNetworkPolicy.js.map +1 -1
  31. package/getAccountSettingUserPreferenceV2.d.ts +2 -2
  32. package/getAccountSettingUserPreferenceV2.js +2 -2
  33. package/getCurrentConfig.d.ts +14 -2
  34. package/getCurrentConfig.js +6 -2
  35. package/getCurrentConfig.js.map +1 -1
  36. package/getEntityTagAssignment.d.ts +5 -5
  37. package/getEntityTagAssignment.js +2 -2
  38. package/getEntityTagAssignments.d.ts +5 -5
  39. package/getEntityTagAssignments.js +2 -2
  40. package/getEnvironmentsDefaultWorkspaceBaseEnvironment.d.ts +24 -0
  41. package/getEnvironmentsDefaultWorkspaceBaseEnvironment.js +24 -0
  42. package/getEnvironmentsDefaultWorkspaceBaseEnvironment.js.map +1 -1
  43. package/getEnvironmentsWorkspaceBaseEnvironment.d.ts +22 -0
  44. package/getEnvironmentsWorkspaceBaseEnvironment.js +22 -0
  45. package/getEnvironmentsWorkspaceBaseEnvironment.js.map +1 -1
  46. package/getEnvironmentsWorkspaceBaseEnvironments.d.ts +20 -0
  47. package/getEnvironmentsWorkspaceBaseEnvironments.js +20 -0
  48. package/getEnvironmentsWorkspaceBaseEnvironments.js.map +1 -1
  49. package/getFeatureEngineeringMaterializedFeature.d.ts +4 -0
  50. package/getFeatureEngineeringMaterializedFeature.js.map +1 -1
  51. package/getGroup.d.ts +9 -0
  52. package/getGroup.js +2 -0
  53. package/getGroup.js.map +1 -1
  54. package/getPostgresCatalog.d.ts +75 -0
  55. package/getPostgresCatalog.js +30 -0
  56. package/getPostgresCatalog.js.map +1 -0
  57. package/getPostgresSyncedTable.d.ts +79 -0
  58. package/getPostgresSyncedTable.js +30 -0
  59. package/getPostgresSyncedTable.js.map +1 -0
  60. package/getTagPolicies.d.ts +2 -2
  61. package/getTagPolicies.js +2 -2
  62. package/getTagPolicy.d.ts +2 -2
  63. package/getTagPolicy.js +2 -2
  64. package/getUser.d.ts +3 -0
  65. package/getUser.js +2 -0
  66. package/getUser.js.map +1 -1
  67. package/getUsers.d.ts +18 -0
  68. package/getUsers.js +4 -0
  69. package/getUsers.js.map +1 -1
  70. package/group.d.ts +17 -0
  71. package/group.js +4 -0
  72. package/group.js.map +1 -1
  73. package/groupInstanceProfile.d.ts +17 -0
  74. package/groupInstanceProfile.js +4 -0
  75. package/groupInstanceProfile.js.map +1 -1
  76. package/groupMember.d.ts +17 -0
  77. package/groupMember.js +4 -0
  78. package/groupMember.js.map +1 -1
  79. package/groupRole.d.ts +17 -0
  80. package/groupRole.js +4 -0
  81. package/groupRole.js.map +1 -1
  82. package/index.d.ts +12 -0
  83. package/index.js +21 -5
  84. package/index.js.map +1 -1
  85. package/metastore.d.ts +26 -0
  86. package/metastore.js +4 -0
  87. package/metastore.js.map +1 -1
  88. package/metastoreAssignment.d.ts +26 -0
  89. package/metastoreAssignment.js +4 -0
  90. package/metastoreAssignment.js.map +1 -1
  91. package/metastoreDataAccess.d.ts +24 -0
  92. package/metastoreDataAccess.js +4 -0
  93. package/metastoreDataAccess.js.map +1 -1
  94. package/mwsNccPrivateEndpointRule.d.ts +5 -0
  95. package/mwsNccPrivateEndpointRule.js +2 -0
  96. package/mwsNccPrivateEndpointRule.js.map +1 -1
  97. package/mwsWorkspaces.d.ts +3 -3
  98. package/package.json +2 -2
  99. package/postgresCatalog.d.ts +120 -0
  100. package/postgresCatalog.js +69 -0
  101. package/postgresCatalog.js.map +1 -0
  102. package/postgresEndpoint.d.ts +58 -0
  103. package/postgresEndpoint.js +58 -0
  104. package/postgresEndpoint.js.map +1 -1
  105. package/postgresProject.d.ts +26 -0
  106. package/postgresProject.js +26 -0
  107. package/postgresProject.js.map +1 -1
  108. package/postgresSyncedTable.d.ts +141 -0
  109. package/postgresSyncedTable.js +67 -0
  110. package/postgresSyncedTable.js.map +1 -0
  111. package/servicePrincipal.d.ts +17 -0
  112. package/servicePrincipal.js +4 -0
  113. package/servicePrincipal.js.map +1 -1
  114. package/servicePrincipalRole.d.ts +17 -0
  115. package/servicePrincipalRole.js +4 -0
  116. package/servicePrincipalRole.js.map +1 -1
  117. package/servicePrincipalSecret.d.ts +12 -0
  118. package/servicePrincipalSecret.js +2 -0
  119. package/servicePrincipalSecret.js.map +1 -1
  120. package/sqlPermissions.d.ts +3 -0
  121. package/sqlPermissions.js +2 -0
  122. package/sqlPermissions.js.map +1 -1
  123. package/storageCredential.d.ts +30 -6
  124. package/storageCredential.js +4 -0
  125. package/storageCredential.js.map +1 -1
  126. package/tagPolicy.d.ts +1 -1
  127. package/tagPolicy.js +1 -1
  128. package/types/input.d.ts +1023 -20
  129. package/types/output.d.ts +2173 -54
  130. package/user.d.ts +17 -0
  131. package/user.js +4 -0
  132. package/user.js.map +1 -1
  133. package/userInstanceProfile.d.ts +17 -0
  134. package/userInstanceProfile.js +4 -0
  135. package/userInstanceProfile.js.map +1 -1
  136. package/userRole.d.ts +17 -0
  137. package/userRole.js +4 -0
  138. package/userRole.js.map +1 -1
  139. package/vectorSearchIndex.d.ts +3 -0
  140. package/vectorSearchIndex.js +2 -0
  141. package/vectorSearchIndex.js.map +1 -1
@@ -0,0 +1,141 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
6
+ */
7
+ export declare class PostgresSyncedTable extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing PostgresSyncedTable resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: PostgresSyncedTableState, opts?: pulumi.CustomResourceOptions): PostgresSyncedTable;
18
+ /**
19
+ * Returns true if the given object is an instance of PostgresSyncedTable. This is designed to work even
20
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
21
+ */
22
+ static isInstance(obj: any): obj is PostgresSyncedTable;
23
+ /**
24
+ * (string)
25
+ */
26
+ readonly createTime: pulumi.Output<string>;
27
+ /**
28
+ * (string) - Output only. The Full resource name of the synced table in Postgres
29
+ * where (catalog, schema, table) are the UC entity names.
30
+ */
31
+ readonly name: pulumi.Output<string>;
32
+ /**
33
+ * Configure the provider for management through account provider.
34
+ */
35
+ readonly providerConfig: pulumi.Output<outputs.PostgresSyncedTableProviderConfig | undefined>;
36
+ /**
37
+ * Configuration details of the synced table, such as the source table, scheduling policy, etc.
38
+ * This attribute is specified at creation time and most fields are returned as is on subsequent queries
39
+ */
40
+ readonly spec: pulumi.Output<outputs.PostgresSyncedTableSpec>;
41
+ /**
42
+ * (SyncedTableSyncedTableStatus) - Synced Table data synchronization status
43
+ */
44
+ readonly status: pulumi.Output<outputs.PostgresSyncedTableStatus>;
45
+ /**
46
+ * The ID to use for the Synced Table. This becomes the final component of the SyncedTable's resource name.
47
+ * ID is required and is the synced table name, containing (catalog, schema, table) tuple.
48
+ * Elements of the tuple are the UC entity names.
49
+ *
50
+ * Example: "{catalog}.{schema}.{table}"
51
+ *
52
+ * syncedTableId represents both of the following:
53
+ *
54
+ * 1. An online VIEW virtual table in the Unity Catalog accessible via the Lakehouse Federation.
55
+ * 2. Postgres table named "{table}" in schema "{schema}" in the connected Postgres database
56
+ */
57
+ readonly syncedTableId: pulumi.Output<string>;
58
+ /**
59
+ * (string) - The Unity Catalog table ID for this synced table
60
+ */
61
+ readonly uid: pulumi.Output<string>;
62
+ /**
63
+ * Create a PostgresSyncedTable resource with the given unique name, arguments, and options.
64
+ *
65
+ * @param name The _unique_ name of the resource.
66
+ * @param args The arguments to use to populate this resource's properties.
67
+ * @param opts A bag of options that control this resource's behavior.
68
+ */
69
+ constructor(name: string, args: PostgresSyncedTableArgs, opts?: pulumi.CustomResourceOptions);
70
+ }
71
+ /**
72
+ * Input properties used for looking up and filtering PostgresSyncedTable resources.
73
+ */
74
+ export interface PostgresSyncedTableState {
75
+ /**
76
+ * (string)
77
+ */
78
+ createTime?: pulumi.Input<string>;
79
+ /**
80
+ * (string) - Output only. The Full resource name of the synced table in Postgres
81
+ * where (catalog, schema, table) are the UC entity names.
82
+ */
83
+ name?: pulumi.Input<string>;
84
+ /**
85
+ * Configure the provider for management through account provider.
86
+ */
87
+ providerConfig?: pulumi.Input<inputs.PostgresSyncedTableProviderConfig>;
88
+ /**
89
+ * Configuration details of the synced table, such as the source table, scheduling policy, etc.
90
+ * This attribute is specified at creation time and most fields are returned as is on subsequent queries
91
+ */
92
+ spec?: pulumi.Input<inputs.PostgresSyncedTableSpec>;
93
+ /**
94
+ * (SyncedTableSyncedTableStatus) - Synced Table data synchronization status
95
+ */
96
+ status?: pulumi.Input<inputs.PostgresSyncedTableStatus>;
97
+ /**
98
+ * The ID to use for the Synced Table. This becomes the final component of the SyncedTable's resource name.
99
+ * ID is required and is the synced table name, containing (catalog, schema, table) tuple.
100
+ * Elements of the tuple are the UC entity names.
101
+ *
102
+ * Example: "{catalog}.{schema}.{table}"
103
+ *
104
+ * syncedTableId represents both of the following:
105
+ *
106
+ * 1. An online VIEW virtual table in the Unity Catalog accessible via the Lakehouse Federation.
107
+ * 2. Postgres table named "{table}" in schema "{schema}" in the connected Postgres database
108
+ */
109
+ syncedTableId?: pulumi.Input<string>;
110
+ /**
111
+ * (string) - The Unity Catalog table ID for this synced table
112
+ */
113
+ uid?: pulumi.Input<string>;
114
+ }
115
+ /**
116
+ * The set of arguments for constructing a PostgresSyncedTable resource.
117
+ */
118
+ export interface PostgresSyncedTableArgs {
119
+ /**
120
+ * Configure the provider for management through account provider.
121
+ */
122
+ providerConfig?: pulumi.Input<inputs.PostgresSyncedTableProviderConfig>;
123
+ /**
124
+ * Configuration details of the synced table, such as the source table, scheduling policy, etc.
125
+ * This attribute is specified at creation time and most fields are returned as is on subsequent queries
126
+ */
127
+ spec?: pulumi.Input<inputs.PostgresSyncedTableSpec>;
128
+ /**
129
+ * The ID to use for the Synced Table. This becomes the final component of the SyncedTable's resource name.
130
+ * ID is required and is the synced table name, containing (catalog, schema, table) tuple.
131
+ * Elements of the tuple are the UC entity names.
132
+ *
133
+ * Example: "{catalog}.{schema}.{table}"
134
+ *
135
+ * syncedTableId represents both of the following:
136
+ *
137
+ * 1. An online VIEW virtual table in the Unity Catalog accessible via the Lakehouse Federation.
138
+ * 2. Postgres table named "{table}" in schema "{schema}" in the connected Postgres database
139
+ */
140
+ syncedTableId: pulumi.Input<string>;
141
+ }
@@ -0,0 +1,67 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.PostgresSyncedTable = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * [![Public Beta](https://img.shields.io/badge/Release_Stage-Public_Beta-orange)](https://docs.databricks.com/aws/en/release-notes/release-types)
10
+ */
11
+ class PostgresSyncedTable extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing PostgresSyncedTable resource's state with the given name, ID, and optional extra
14
+ * properties used to qualify the lookup.
15
+ *
16
+ * @param name The _unique_ name of the resulting resource.
17
+ * @param id The _unique_ provider ID of the resource to lookup.
18
+ * @param state Any extra arguments used during the lookup.
19
+ * @param opts Optional settings to control the behavior of the CustomResource.
20
+ */
21
+ static get(name, id, state, opts) {
22
+ return new PostgresSyncedTable(name, state, { ...opts, id: id });
23
+ }
24
+ /**
25
+ * Returns true if the given object is an instance of PostgresSyncedTable. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ static isInstance(obj) {
29
+ if (obj === undefined || obj === null) {
30
+ return false;
31
+ }
32
+ return obj['__pulumiType'] === PostgresSyncedTable.__pulumiType;
33
+ }
34
+ constructor(name, argsOrState, opts) {
35
+ let resourceInputs = {};
36
+ opts = opts || {};
37
+ if (opts.id) {
38
+ const state = argsOrState;
39
+ resourceInputs["createTime"] = state?.createTime;
40
+ resourceInputs["name"] = state?.name;
41
+ resourceInputs["providerConfig"] = state?.providerConfig;
42
+ resourceInputs["spec"] = state?.spec;
43
+ resourceInputs["status"] = state?.status;
44
+ resourceInputs["syncedTableId"] = state?.syncedTableId;
45
+ resourceInputs["uid"] = state?.uid;
46
+ }
47
+ else {
48
+ const args = argsOrState;
49
+ if (args?.syncedTableId === undefined && !opts.urn) {
50
+ throw new Error("Missing required property 'syncedTableId'");
51
+ }
52
+ resourceInputs["providerConfig"] = args?.providerConfig;
53
+ resourceInputs["spec"] = args?.spec;
54
+ resourceInputs["syncedTableId"] = args?.syncedTableId;
55
+ resourceInputs["createTime"] = undefined /*out*/;
56
+ resourceInputs["name"] = undefined /*out*/;
57
+ resourceInputs["status"] = undefined /*out*/;
58
+ resourceInputs["uid"] = undefined /*out*/;
59
+ }
60
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
61
+ super(PostgresSyncedTable.__pulumiType, name, resourceInputs, opts);
62
+ }
63
+ }
64
+ exports.PostgresSyncedTable = PostgresSyncedTable;
65
+ /** @internal */
66
+ PostgresSyncedTable.__pulumiType = 'databricks:index/postgresSyncedTable:PostgresSyncedTable';
67
+ //# sourceMappingURL=postgresSyncedTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postgresSyncedTable.js","sourceRoot":"","sources":["../postgresSyncedTable.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,C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c,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAvGL,kDAwGC;AA1FG,gBAAgB;AACO,gCAAY,GAAG,0DAA0D,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
2
4
  /**
3
5
  * Directly manage [Service Principals](https://docs.databricks.com/administration-guide/users-groups/service-principals.html) that could be added to databricks.Group in Databricks account or workspace.
4
6
  *
@@ -117,6 +119,10 @@ export declare class ServicePrincipal extends pulumi.CustomResource {
117
119
  * Allow the service principal to have instance pool create privileges. Defaults to false. More fine grained permissions could be assigned with databricks.Permissions and instancePoolId argument.
118
120
  */
119
121
  readonly allowInstancePoolCreate: pulumi.Output<boolean | undefined>;
122
+ /**
123
+ * Specifies whether to use account-level or workspace-level API. Valid values are `account` and `workspace`. When not set, the API level is inferred from the provider host.
124
+ */
125
+ readonly api: pulumi.Output<string | undefined>;
120
126
  /**
121
127
  * This is the Azure Application ID of the given Azure service principal and will be their form of access and identity. For Databricks-managed service principals this value is auto-generated.
122
128
  */
@@ -153,6 +159,7 @@ export declare class ServicePrincipal extends pulumi.CustomResource {
153
159
  * Home folder of the service principal, e.g. `/Users/00000000-0000-0000-0000-000000000000`.
154
160
  */
155
161
  readonly home: pulumi.Output<string>;
162
+ readonly providerConfig: pulumi.Output<outputs.ServicePrincipalProviderConfig | undefined>;
156
163
  /**
157
164
  * Personal Repos location of the service principal, e.g. `/Repos/00000000-0000-0000-0000-000000000000`.
158
165
  */
@@ -194,6 +201,10 @@ export interface ServicePrincipalState {
194
201
  * Allow the service principal to have instance pool create privileges. Defaults to false. More fine grained permissions could be assigned with databricks.Permissions and instancePoolId argument.
195
202
  */
196
203
  allowInstancePoolCreate?: pulumi.Input<boolean>;
204
+ /**
205
+ * Specifies whether to use account-level or workspace-level API. Valid values are `account` and `workspace`. When not set, the API level is inferred from the provider host.
206
+ */
207
+ api?: pulumi.Input<string>;
197
208
  /**
198
209
  * This is the Azure Application ID of the given Azure service principal and will be their form of access and identity. For Databricks-managed service principals this value is auto-generated.
199
210
  */
@@ -230,6 +241,7 @@ export interface ServicePrincipalState {
230
241
  * Home folder of the service principal, e.g. `/Users/00000000-0000-0000-0000-000000000000`.
231
242
  */
232
243
  home?: pulumi.Input<string>;
244
+ providerConfig?: pulumi.Input<inputs.ServicePrincipalProviderConfig>;
233
245
  /**
234
246
  * Personal Repos location of the service principal, e.g. `/Repos/00000000-0000-0000-0000-000000000000`.
235
247
  */
@@ -263,6 +275,10 @@ export interface ServicePrincipalArgs {
263
275
  * Allow the service principal to have instance pool create privileges. Defaults to false. More fine grained permissions could be assigned with databricks.Permissions and instancePoolId argument.
264
276
  */
265
277
  allowInstancePoolCreate?: pulumi.Input<boolean>;
278
+ /**
279
+ * Specifies whether to use account-level or workspace-level API. Valid values are `account` and `workspace`. When not set, the API level is inferred from the provider host.
280
+ */
281
+ api?: pulumi.Input<string>;
266
282
  /**
267
283
  * This is the Azure Application ID of the given Azure service principal and will be their form of access and identity. For Databricks-managed service principals this value is auto-generated.
268
284
  */
@@ -299,6 +315,7 @@ export interface ServicePrincipalArgs {
299
315
  * Home folder of the service principal, e.g. `/Users/00000000-0000-0000-0000-000000000000`.
300
316
  */
301
317
  home?: pulumi.Input<string>;
318
+ providerConfig?: pulumi.Input<inputs.ServicePrincipalProviderConfig>;
302
319
  /**
303
320
  * Personal Repos location of the service principal, e.g. `/Repos/00000000-0000-0000-0000-000000000000`.
304
321
  */
@@ -123,6 +123,7 @@ class ServicePrincipal extends pulumi.CustomResource {
123
123
  resourceInputs["active"] = state?.active;
124
124
  resourceInputs["allowClusterCreate"] = state?.allowClusterCreate;
125
125
  resourceInputs["allowInstancePoolCreate"] = state?.allowInstancePoolCreate;
126
+ resourceInputs["api"] = state?.api;
126
127
  resourceInputs["applicationId"] = state?.applicationId;
127
128
  resourceInputs["databricksSqlAccess"] = state?.databricksSqlAccess;
128
129
  resourceInputs["disableAsUserDeletion"] = state?.disableAsUserDeletion;
@@ -132,6 +133,7 @@ class ServicePrincipal extends pulumi.CustomResource {
132
133
  resourceInputs["forceDeleteHomeDir"] = state?.forceDeleteHomeDir;
133
134
  resourceInputs["forceDeleteRepos"] = state?.forceDeleteRepos;
134
135
  resourceInputs["home"] = state?.home;
136
+ resourceInputs["providerConfig"] = state?.providerConfig;
135
137
  resourceInputs["repos"] = state?.repos;
136
138
  resourceInputs["workspaceAccess"] = state?.workspaceAccess;
137
139
  resourceInputs["workspaceConsume"] = state?.workspaceConsume;
@@ -142,6 +144,7 @@ class ServicePrincipal extends pulumi.CustomResource {
142
144
  resourceInputs["active"] = args?.active;
143
145
  resourceInputs["allowClusterCreate"] = args?.allowClusterCreate;
144
146
  resourceInputs["allowInstancePoolCreate"] = args?.allowInstancePoolCreate;
147
+ resourceInputs["api"] = args?.api;
145
148
  resourceInputs["applicationId"] = args?.applicationId;
146
149
  resourceInputs["databricksSqlAccess"] = args?.databricksSqlAccess;
147
150
  resourceInputs["disableAsUserDeletion"] = args?.disableAsUserDeletion;
@@ -151,6 +154,7 @@ class ServicePrincipal extends pulumi.CustomResource {
151
154
  resourceInputs["forceDeleteHomeDir"] = args?.forceDeleteHomeDir;
152
155
  resourceInputs["forceDeleteRepos"] = args?.forceDeleteRepos;
153
156
  resourceInputs["home"] = args?.home;
157
+ resourceInputs["providerConfig"] = args?.providerConfig;
154
158
  resourceInputs["repos"] = args?.repos;
155
159
  resourceInputs["workspaceAccess"] = args?.workspaceAccess;
156
160
  resourceInputs["workspaceConsume"] = args?.workspaceConsume;
@@ -1 +1 @@
1
- {"version":3,"file":"servicePrincipal.js","sourceRoot":"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;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,kBAAkB,CAAC,GAAG,IAAI,EAAE,gBAAgB,CAAC;SAC/D;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;;AAxJL,4CAyJC;AA3IG,gBAAgB;AACO,6BAAY,GAAG,oDAAoD,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
2
4
  /**
3
5
  * This resource allows you to attach a role or databricks.InstanceProfile (AWS) to a databricks_service_principal.
4
6
  *
@@ -66,6 +68,11 @@ export declare class ServicePrincipalRole extends pulumi.CustomResource {
66
68
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
67
69
  */
68
70
  static isInstance(obj: any): obj is ServicePrincipalRole;
71
+ /**
72
+ * Specifies whether to use account-level or workspace-level API. Valid values are `account` and `workspace`. When not set, the API level is inferred from the provider host.
73
+ */
74
+ readonly api: pulumi.Output<string | undefined>;
75
+ readonly providerConfig: pulumi.Output<outputs.ServicePrincipalRoleProviderConfig | undefined>;
69
76
  /**
70
77
  * This is the role name, role id, or instance profile resource.
71
78
  */
@@ -87,6 +94,11 @@ export declare class ServicePrincipalRole extends pulumi.CustomResource {
87
94
  * Input properties used for looking up and filtering ServicePrincipalRole resources.
88
95
  */
89
96
  export interface ServicePrincipalRoleState {
97
+ /**
98
+ * Specifies whether to use account-level or workspace-level API. Valid values are `account` and `workspace`. When not set, the API level is inferred from the provider host.
99
+ */
100
+ api?: pulumi.Input<string>;
101
+ providerConfig?: pulumi.Input<inputs.ServicePrincipalRoleProviderConfig>;
90
102
  /**
91
103
  * This is the role name, role id, or instance profile resource.
92
104
  */
@@ -100,6 +112,11 @@ export interface ServicePrincipalRoleState {
100
112
  * The set of arguments for constructing a ServicePrincipalRole resource.
101
113
  */
102
114
  export interface ServicePrincipalRoleArgs {
115
+ /**
116
+ * Specifies whether to use account-level or workspace-level API. Valid values are `account` and `workspace`. When not set, the API level is inferred from the provider host.
117
+ */
118
+ api?: pulumi.Input<string>;
119
+ providerConfig?: pulumi.Input<inputs.ServicePrincipalRoleProviderConfig>;
103
120
  /**
104
121
  * This is the role name, role id, or instance profile resource.
105
122
  */
@@ -84,6 +84,8 @@ class ServicePrincipalRole extends pulumi.CustomResource {
84
84
  opts = opts || {};
85
85
  if (opts.id) {
86
86
  const state = argsOrState;
87
+ resourceInputs["api"] = state?.api;
88
+ resourceInputs["providerConfig"] = state?.providerConfig;
87
89
  resourceInputs["role"] = state?.role;
88
90
  resourceInputs["servicePrincipalId"] = state?.servicePrincipalId;
89
91
  }
@@ -95,6 +97,8 @@ class ServicePrincipalRole extends pulumi.CustomResource {
95
97
  if (args?.servicePrincipalId === undefined && !opts.urn) {
96
98
  throw new Error("Missing required property 'servicePrincipalId'");
97
99
  }
100
+ resourceInputs["api"] = args?.api;
101
+ resourceInputs["providerConfig"] = args?.providerConfig;
98
102
  resourceInputs["role"] = args?.role;
99
103
  resourceInputs["servicePrincipalId"] = args?.servicePrincipalId;
100
104
  }
@@ -1 +1 @@
1
- {"version":3,"file":"servicePrincipalRole.js","sourceRoot":"","sources":["../servicePrincipalRole.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,cAAc,CAAC,KAAK,CAAC,GAAG,KAAK,EAAE,GAAG,CAAC;YACnC,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,EAAE,cAAc,CAAC;YACzD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,EAAE,kBAAkB,CAAC;SACpE;aAAM;YACH,MAAM,IAAI,GAAG,WAAmD,CAAC;YACjE,IAAI,IAAI,EAAE,IAAI,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,IAAI,IAAI,EAAE,kBAAkB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;aACrE;YACD,cAAc,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC;YAClC,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;SACnE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,oBAAoB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;;AA1EL,oDA2EC;AA7DG,gBAAgB;AACO,iCAAY,GAAG,4DAA4D,CAAC"}
@@ -57,6 +57,10 @@ export declare class ServicePrincipalSecret extends pulumi.CustomResource {
57
57
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
58
58
  */
59
59
  static isInstance(obj: any): obj is ServicePrincipalSecret;
60
+ /**
61
+ * Specifies whether to use account-level or workspace-level API. Valid values are `account` and `workspace`. When not set, the API level is inferred from the provider host.
62
+ */
63
+ readonly api: pulumi.Output<string | undefined>;
60
64
  /**
61
65
  * UTC time when the secret was created.
62
66
  */
@@ -114,6 +118,10 @@ export declare class ServicePrincipalSecret extends pulumi.CustomResource {
114
118
  * Input properties used for looking up and filtering ServicePrincipalSecret resources.
115
119
  */
116
120
  export interface ServicePrincipalSecretState {
121
+ /**
122
+ * Specifies whether to use account-level or workspace-level API. Valid values are `account` and `workspace`. When not set, the API level is inferred from the provider host.
123
+ */
124
+ api?: pulumi.Input<string>;
117
125
  /**
118
126
  * UTC time when the secret was created.
119
127
  */
@@ -163,6 +171,10 @@ export interface ServicePrincipalSecretState {
163
171
  * The set of arguments for constructing a ServicePrincipalSecret resource.
164
172
  */
165
173
  export interface ServicePrincipalSecretArgs {
174
+ /**
175
+ * Specifies whether to use account-level or workspace-level API. Valid values are `account` and `workspace`. When not set, the API level is inferred from the provider host.
176
+ */
177
+ api?: pulumi.Input<string>;
166
178
  /**
167
179
  * UTC time when the secret was created.
168
180
  */
@@ -73,6 +73,7 @@ class ServicePrincipalSecret extends pulumi.CustomResource {
73
73
  opts = opts || {};
74
74
  if (opts.id) {
75
75
  const state = argsOrState;
76
+ resourceInputs["api"] = state?.api;
76
77
  resourceInputs["createTime"] = state?.createTime;
77
78
  resourceInputs["expireTime"] = state?.expireTime;
78
79
  resourceInputs["lifetime"] = state?.lifetime;
@@ -90,6 +91,7 @@ class ServicePrincipalSecret extends pulumi.CustomResource {
90
91
  if (args?.servicePrincipalId === undefined && !opts.urn) {
91
92
  throw new Error("Missing required property 'servicePrincipalId'");
92
93
  }
94
+ resourceInputs["api"] = args?.api;
93
95
  resourceInputs["createTime"] = args?.createTime;
94
96
  resourceInputs["expireTime"] = args?.expireTime;
95
97
  resourceInputs["lifetime"] = args?.lifetime;
@@ -1 +1 @@
1
- {"version":3,"file":"servicePrincipalSecret.js","sourceRoot":"","sources":["../servicePrincipalSec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,QAAQ,CAAC;YAC5C,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACjF,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,oBAAoB,CAAC,GAAG,IAAI,EAAE,kBAAkB,CAAC;YAChE,cAAc,CAAC,0BAA0B,CAAC,GAAG,IAAI,EAAE,wBAAwB,CAAC;YAC5E,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,sBAAsB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;;AA5HL,wDA6HC;AA/GG,gBAAgB;AACO,mCAAY,GAAG,gEAAgE,CAAC"}
@@ -107,6 +107,7 @@ export declare class SqlPermissions extends pulumi.CustomResource {
107
107
  */
108
108
  readonly database: pulumi.Output<string | undefined>;
109
109
  readonly privilegeAssignments: pulumi.Output<outputs.SqlPermissionsPrivilegeAssignment[] | undefined>;
110
+ readonly providerConfig: pulumi.Output<outputs.SqlPermissionsProviderConfig | undefined>;
110
111
  /**
111
112
  * Name of the table. Can be combined with the `database`.
112
113
  */
@@ -158,6 +159,7 @@ export interface SqlPermissionsState {
158
159
  */
159
160
  database?: pulumi.Input<string>;
160
161
  privilegeAssignments?: pulumi.Input<pulumi.Input<inputs.SqlPermissionsPrivilegeAssignment>[]>;
162
+ providerConfig?: pulumi.Input<inputs.SqlPermissionsProviderConfig>;
161
163
  /**
162
164
  * Name of the table. Can be combined with the `database`.
163
165
  */
@@ -201,6 +203,7 @@ export interface SqlPermissionsArgs {
201
203
  */
202
204
  database?: pulumi.Input<string>;
203
205
  privilegeAssignments?: pulumi.Input<pulumi.Input<inputs.SqlPermissionsPrivilegeAssignment>[]>;
206
+ providerConfig?: pulumi.Input<inputs.SqlPermissionsProviderConfig>;
204
207
  /**
205
208
  * Name of the table. Can be combined with the `database`.
206
209
  */
package/sqlPermissions.js CHANGED
@@ -99,6 +99,7 @@ class SqlPermissions extends pulumi.CustomResource {
99
99
  resourceInputs["clusterId"] = state?.clusterId;
100
100
  resourceInputs["database"] = state?.database;
101
101
  resourceInputs["privilegeAssignments"] = state?.privilegeAssignments;
102
+ resourceInputs["providerConfig"] = state?.providerConfig;
102
103
  resourceInputs["table"] = state?.table;
103
104
  resourceInputs["view"] = state?.view;
104
105
  }
@@ -110,6 +111,7 @@ class SqlPermissions extends pulumi.CustomResource {
110
111
  resourceInputs["clusterId"] = args?.clusterId;
111
112
  resourceInputs["database"] = args?.database;
112
113
  resourceInputs["privilegeAssignments"] = args?.privilegeAssignments;
114
+ resourceInputs["providerConfig"] = args?.providerConfig;
113
115
  resourceInputs["table"] = args?.table;
114
116
  resourceInputs["view"] = args?.view;
115
117
  }
@@ -1 +1 @@
1
- {"version":3,"file":"sqlPermissions.js","sourceRoot":"","sources":["../sqlPermissions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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I,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,EAAE,oBAAoB,CAAC;YACpE,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAxGL,wCAyGC;AA3FG,gBAAgB;AACO,2BAAY,GAAG,gDAAgD,CAAC"}
@@ -92,6 +92,12 @@ export declare class StorageCredential extends pulumi.CustomResource {
92
92
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
93
93
  */
94
94
  static isInstance(obj: any): obj is StorageCredential;
95
+ /**
96
+ * Specifies whether to use account-level or workspace-level API. Valid values are `account` and `workspace`. When not set, the API level is inferred from the provider host.
97
+ *
98
+ * `awsIamRole` optional configuration block for credential details for AWS:
99
+ */
100
+ readonly api: pulumi.Output<string | undefined>;
95
101
  /**
96
102
  * exposes two additional attributes:
97
103
  */
@@ -112,8 +118,6 @@ export declare class StorageCredential extends pulumi.CustomResource {
112
118
  readonly gcpServiceAccountKey: pulumi.Output<outputs.StorageCredentialGcpServiceAccountKey | undefined>;
113
119
  /**
114
120
  * Whether the storage credential is accessible from all workspaces or a specific set of workspaces. Can be `ISOLATION_MODE_ISOLATED` or `ISOLATION_MODE_OPEN`. Setting the credential to `ISOLATION_MODE_ISOLATED` will automatically allow access from the current workspace.
115
- *
116
- * `awsIamRole` optional configuration block for credential details for AWS:
117
121
  */
118
122
  readonly isolationMode: pulumi.Output<string>;
119
123
  /**
@@ -128,6 +132,10 @@ export declare class StorageCredential extends pulumi.CustomResource {
128
132
  * Username/groupname/sp applicationId of the storage credential owner.
129
133
  */
130
134
  readonly owner: pulumi.Output<string>;
135
+ /**
136
+ * Configure the provider for management through account provider. This block consists of the following fields:
137
+ */
138
+ readonly providerConfig: pulumi.Output<outputs.StorageCredentialProviderConfig | undefined>;
131
139
  /**
132
140
  * Indicates whether the storage credential is only usable for read operations.
133
141
  */
@@ -153,6 +161,12 @@ export declare class StorageCredential extends pulumi.CustomResource {
153
161
  * Input properties used for looking up and filtering StorageCredential resources.
154
162
  */
155
163
  export interface StorageCredentialState {
164
+ /**
165
+ * Specifies whether to use account-level or workspace-level API. Valid values are `account` and `workspace`. When not set, the API level is inferred from the provider host.
166
+ *
167
+ * `awsIamRole` optional configuration block for credential details for AWS:
168
+ */
169
+ api?: pulumi.Input<string>;
156
170
  /**
157
171
  * exposes two additional attributes:
158
172
  */
@@ -173,8 +187,6 @@ export interface StorageCredentialState {
173
187
  gcpServiceAccountKey?: pulumi.Input<inputs.StorageCredentialGcpServiceAccountKey>;
174
188
  /**
175
189
  * Whether the storage credential is accessible from all workspaces or a specific set of workspaces. Can be `ISOLATION_MODE_ISOLATED` or `ISOLATION_MODE_OPEN`. Setting the credential to `ISOLATION_MODE_ISOLATED` will automatically allow access from the current workspace.
176
- *
177
- * `awsIamRole` optional configuration block for credential details for AWS:
178
190
  */
179
191
  isolationMode?: pulumi.Input<string>;
180
192
  /**
@@ -189,6 +201,10 @@ export interface StorageCredentialState {
189
201
  * Username/groupname/sp applicationId of the storage credential owner.
190
202
  */
191
203
  owner?: pulumi.Input<string>;
204
+ /**
205
+ * Configure the provider for management through account provider. This block consists of the following fields:
206
+ */
207
+ providerConfig?: pulumi.Input<inputs.StorageCredentialProviderConfig>;
192
208
  /**
193
209
  * Indicates whether the storage credential is only usable for read operations.
194
210
  */
@@ -206,6 +222,12 @@ export interface StorageCredentialState {
206
222
  * The set of arguments for constructing a StorageCredential resource.
207
223
  */
208
224
  export interface StorageCredentialArgs {
225
+ /**
226
+ * Specifies whether to use account-level or workspace-level API. Valid values are `account` and `workspace`. When not set, the API level is inferred from the provider host.
227
+ *
228
+ * `awsIamRole` optional configuration block for credential details for AWS:
229
+ */
230
+ api?: pulumi.Input<string>;
209
231
  /**
210
232
  * exposes two additional attributes:
211
233
  */
@@ -226,8 +248,6 @@ export interface StorageCredentialArgs {
226
248
  gcpServiceAccountKey?: pulumi.Input<inputs.StorageCredentialGcpServiceAccountKey>;
227
249
  /**
228
250
  * Whether the storage credential is accessible from all workspaces or a specific set of workspaces. Can be `ISOLATION_MODE_ISOLATED` or `ISOLATION_MODE_OPEN`. Setting the credential to `ISOLATION_MODE_ISOLATED` will automatically allow access from the current workspace.
229
- *
230
- * `awsIamRole` optional configuration block for credential details for AWS:
231
251
  */
232
252
  isolationMode?: pulumi.Input<string>;
233
253
  /**
@@ -242,6 +262,10 @@ export interface StorageCredentialArgs {
242
262
  * Username/groupname/sp applicationId of the storage credential owner.
243
263
  */
244
264
  owner?: pulumi.Input<string>;
265
+ /**
266
+ * Configure the provider for management through account provider. This block consists of the following fields:
267
+ */
268
+ providerConfig?: pulumi.Input<inputs.StorageCredentialProviderConfig>;
245
269
  /**
246
270
  * Indicates whether the storage credential is only usable for read operations.
247
271
  */
@@ -108,6 +108,7 @@ class StorageCredential extends pulumi.CustomResource {
108
108
  opts = opts || {};
109
109
  if (opts.id) {
110
110
  const state = argsOrState;
111
+ resourceInputs["api"] = state?.api;
111
112
  resourceInputs["awsIamRole"] = state?.awsIamRole;
112
113
  resourceInputs["azureManagedIdentity"] = state?.azureManagedIdentity;
113
114
  resourceInputs["azureServicePrincipal"] = state?.azureServicePrincipal;
@@ -121,12 +122,14 @@ class StorageCredential extends pulumi.CustomResource {
121
122
  resourceInputs["metastoreId"] = state?.metastoreId;
122
123
  resourceInputs["name"] = state?.name;
123
124
  resourceInputs["owner"] = state?.owner;
125
+ resourceInputs["providerConfig"] = state?.providerConfig;
124
126
  resourceInputs["readOnly"] = state?.readOnly;
125
127
  resourceInputs["skipValidation"] = state?.skipValidation;
126
128
  resourceInputs["storageCredentialId"] = state?.storageCredentialId;
127
129
  }
128
130
  else {
129
131
  const args = argsOrState;
132
+ resourceInputs["api"] = args?.api;
130
133
  resourceInputs["awsIamRole"] = args?.awsIamRole;
131
134
  resourceInputs["azureManagedIdentity"] = args?.azureManagedIdentity;
132
135
  resourceInputs["azureServicePrincipal"] = args?.azureServicePrincipal;
@@ -140,6 +143,7 @@ class StorageCredential extends pulumi.CustomResource {
140
143
  resourceInputs["metastoreId"] = args?.metastoreId;
141
144
  resourceInputs["name"] = args?.name;
142
145
  resourceInputs["owner"] = args?.owner;
146
+ resourceInputs["providerConfig"] = args?.providerConfig;
143
147
  resourceInputs["readOnly"] = args?.readOnly;
144
148
  resourceInputs["skipValidation"] = args?.skipValidation;
145
149
  resourceInputs["storageCredentialId"] = undefined /*out*/;