@pulumi/snowflake 0.52.0 → 0.52.1-alpha.1713904889

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 (301) hide show
  1. package/account.d.ts +1 -5
  2. package/account.js +1 -5
  3. package/account.js.map +1 -1
  4. package/accountGrant.d.ts +1 -3
  5. package/accountGrant.js +1 -3
  6. package/accountGrant.js.map +1 -1
  7. package/accountParameter.d.ts +1 -3
  8. package/accountParameter.js +1 -3
  9. package/accountParameter.js.map +1 -1
  10. package/accountPasswordPolicyAttachment.d.ts +1 -2
  11. package/accountPasswordPolicyAttachment.js +1 -2
  12. package/accountPasswordPolicyAttachment.js.map +1 -1
  13. package/alert.d.ts +6 -7
  14. package/alert.js +6 -7
  15. package/alert.js.map +1 -1
  16. package/apiIntegration.d.ts +9 -8
  17. package/apiIntegration.js +9 -8
  18. package/apiIntegration.js.map +1 -1
  19. package/database.d.ts +7 -5
  20. package/database.js +7 -5
  21. package/database.js.map +1 -1
  22. package/databaseGrant.d.ts +0 -2
  23. package/databaseGrant.js +0 -2
  24. package/databaseGrant.js.map +1 -1
  25. package/databaseRole.d.ts +3 -4
  26. package/databaseRole.js +3 -4
  27. package/databaseRole.js.map +1 -1
  28. package/dynamicTable.d.ts +3 -4
  29. package/dynamicTable.js +3 -4
  30. package/dynamicTable.js.map +1 -1
  31. package/emailNotificationIntegration.d.ts +3 -4
  32. package/emailNotificationIntegration.js +3 -4
  33. package/emailNotificationIntegration.js.map +1 -1
  34. package/externalFunction.d.ts +9 -10
  35. package/externalFunction.js +6 -7
  36. package/externalFunction.js.map +1 -1
  37. package/externalOauthIntegration.d.ts +4 -5
  38. package/externalOauthIntegration.js +4 -5
  39. package/externalOauthIntegration.js.map +1 -1
  40. package/externalTable.d.ts +15 -16
  41. package/externalTable.js +6 -7
  42. package/externalTable.js.map +1 -1
  43. package/externalTableGrant.d.ts +2 -4
  44. package/externalTableGrant.js +2 -4
  45. package/externalTableGrant.js.map +1 -1
  46. package/failoverGroup.d.ts +13 -14
  47. package/failoverGroup.js +10 -11
  48. package/failoverGroup.js.map +1 -1
  49. package/fileFormat.d.ts +3 -4
  50. package/fileFormat.js +3 -4
  51. package/fileFormat.js.map +1 -1
  52. package/fileFormatGrant.d.ts +2 -4
  53. package/fileFormatGrant.js +2 -4
  54. package/fileFormatGrant.js.map +1 -1
  55. package/function.d.ts +3 -3
  56. package/functionGrant.d.ts +4 -6
  57. package/functionGrant.js +4 -6
  58. package/functionGrant.js.map +1 -1
  59. package/getAlerts.d.ts +0 -4
  60. package/getAlerts.js +0 -4
  61. package/getAlerts.js.map +1 -1
  62. package/getCurrentAccount.d.ts +8 -10
  63. package/getCurrentAccount.js +8 -10
  64. package/getCurrentAccount.js.map +1 -1
  65. package/getDatabase.d.ts +0 -4
  66. package/getDatabase.js +0 -4
  67. package/getDatabase.js.map +1 -1
  68. package/getDatabaseRoles.d.ts +0 -4
  69. package/getDatabaseRoles.js +0 -4
  70. package/getDatabaseRoles.js.map +1 -1
  71. package/getDatabases.d.ts +0 -4
  72. package/getDatabases.js +0 -4
  73. package/getDatabases.js.map +1 -1
  74. package/getExternalFunctions.d.ts +12 -4
  75. package/getExternalFunctions.js +0 -4
  76. package/getExternalFunctions.js.map +1 -1
  77. package/getExternalTables.d.ts +12 -4
  78. package/getExternalTables.js +0 -4
  79. package/getExternalTables.js.map +1 -1
  80. package/getFileFormats.d.ts +12 -4
  81. package/getFileFormats.js +0 -4
  82. package/getFileFormats.js.map +1 -1
  83. package/getFunctions.d.ts +12 -4
  84. package/getFunctions.js +0 -4
  85. package/getFunctions.js.map +1 -1
  86. package/getGrants.d.ts +42 -4
  87. package/getGrants.js +42 -4
  88. package/getGrants.js.map +1 -1
  89. package/getMaskingPolicies.d.ts +12 -4
  90. package/getMaskingPolicies.js +0 -4
  91. package/getMaskingPolicies.js.map +1 -1
  92. package/getMaterializedViews.d.ts +12 -4
  93. package/getMaterializedViews.js +0 -4
  94. package/getMaterializedViews.js.map +1 -1
  95. package/getParameters.d.ts +12 -10
  96. package/getParameters.js +12 -10
  97. package/getParameters.js.map +1 -1
  98. package/getPipes.d.ts +12 -4
  99. package/getPipes.js +0 -4
  100. package/getPipes.js.map +1 -1
  101. package/getProcedures.d.ts +12 -4
  102. package/getProcedures.js +0 -4
  103. package/getProcedures.js.map +1 -1
  104. package/getResourceMonitors.d.ts +0 -4
  105. package/getResourceMonitors.js +0 -4
  106. package/getResourceMonitors.js.map +1 -1
  107. package/getRole.d.ts +0 -4
  108. package/getRole.js +0 -4
  109. package/getRole.js.map +1 -1
  110. package/getRoles.d.ts +0 -4
  111. package/getRoles.js +0 -4
  112. package/getRoles.js.map +1 -1
  113. package/getRowAccessPolicies.d.ts +12 -4
  114. package/getRowAccessPolicies.js +0 -4
  115. package/getRowAccessPolicies.js.map +1 -1
  116. package/getSchemas.d.ts +6 -4
  117. package/getSchemas.js +0 -4
  118. package/getSchemas.js.map +1 -1
  119. package/getSequences.d.ts +12 -4
  120. package/getSequences.js +0 -4
  121. package/getSequences.js.map +1 -1
  122. package/getShares.d.ts +0 -4
  123. package/getShares.js +0 -4
  124. package/getShares.js.map +1 -1
  125. package/getStages.d.ts +12 -4
  126. package/getStages.js +0 -4
  127. package/getStages.js.map +1 -1
  128. package/getStorageIntegrations.d.ts +0 -4
  129. package/getStorageIntegrations.js +0 -4
  130. package/getStorageIntegrations.js.map +1 -1
  131. package/getStreams.d.ts +12 -4
  132. package/getStreams.js +0 -4
  133. package/getStreams.js.map +1 -1
  134. package/getSystemGenerateScimAccessToken.d.ts +0 -4
  135. package/getSystemGenerateScimAccessToken.js +0 -4
  136. package/getSystemGenerateScimAccessToken.js.map +1 -1
  137. package/getSystemGetPrivateLinkConfig.d.ts +106 -0
  138. package/getSystemGetPrivateLinkConfig.js +106 -0
  139. package/getSystemGetPrivateLinkConfig.js.map +1 -1
  140. package/getTables.d.ts +12 -4
  141. package/getTables.js +0 -4
  142. package/getTables.js.map +1 -1
  143. package/getTasks.d.ts +12 -4
  144. package/getTasks.js +0 -4
  145. package/getTasks.js.map +1 -1
  146. package/getUsers.d.ts +0 -4
  147. package/getUsers.js +0 -4
  148. package/getUsers.js.map +1 -1
  149. package/getViews.d.ts +12 -4
  150. package/getViews.js +0 -4
  151. package/getViews.js.map +1 -1
  152. package/getWarehouses.d.ts +0 -4
  153. package/getWarehouses.js +0 -4
  154. package/getWarehouses.js.map +1 -1
  155. package/grantAccountRole.d.ts +0 -26
  156. package/grantAccountRole.js +0 -26
  157. package/grantAccountRole.js.map +1 -1
  158. package/grantDatabaseRole.d.ts +0 -33
  159. package/grantDatabaseRole.js +0 -33
  160. package/grantDatabaseRole.js.map +1 -1
  161. package/grantPrivilegesToDatabaseRole.d.ts +0 -168
  162. package/grantPrivilegesToDatabaseRole.js +0 -168
  163. package/grantPrivilegesToDatabaseRole.js.map +1 -1
  164. package/grantPrivilegesToRole.d.ts +20 -22
  165. package/grantPrivilegesToRole.js +20 -22
  166. package/grantPrivilegesToRole.js.map +1 -1
  167. package/integrationGrant.d.ts +0 -2
  168. package/integrationGrant.js +0 -2
  169. package/integrationGrant.js.map +1 -1
  170. package/maskingPolicy.d.ts +14 -16
  171. package/maskingPolicy.js +11 -13
  172. package/maskingPolicy.js.map +1 -1
  173. package/maskingPolicyGrant.d.ts +3 -5
  174. package/maskingPolicyGrant.js +3 -5
  175. package/maskingPolicyGrant.js.map +1 -1
  176. package/materializedView.d.ts +10 -11
  177. package/materializedView.js +1 -2
  178. package/materializedView.js.map +1 -1
  179. package/materializedViewGrant.d.ts +2 -4
  180. package/materializedViewGrant.js +2 -4
  181. package/materializedViewGrant.js.map +1 -1
  182. package/networkPolicy.d.ts +2 -3
  183. package/networkPolicy.js +2 -3
  184. package/networkPolicy.js.map +1 -1
  185. package/networkPolicyAttachment.d.ts +0 -2
  186. package/networkPolicyAttachment.js +0 -2
  187. package/networkPolicyAttachment.js.map +1 -1
  188. package/notificationIntegration.d.ts +5 -6
  189. package/notificationIntegration.js +5 -6
  190. package/notificationIntegration.js.map +1 -1
  191. package/oauthIntegration.d.ts +4 -5
  192. package/oauthIntegration.js +4 -5
  193. package/oauthIntegration.js.map +1 -1
  194. package/objectParameter.d.ts +16 -14
  195. package/objectParameter.js +16 -14
  196. package/objectParameter.js.map +1 -1
  197. package/package.json +1 -1
  198. package/pipeGrant.d.ts +2 -4
  199. package/pipeGrant.js +2 -4
  200. package/pipeGrant.js.map +1 -1
  201. package/procedure.d.ts +3 -3
  202. package/procedureGrant.d.ts +4 -6
  203. package/procedureGrant.js +4 -6
  204. package/procedureGrant.js.map +1 -1
  205. package/resourceMonitor.d.ts +5 -6
  206. package/resourceMonitor.js +5 -6
  207. package/resourceMonitor.js.map +1 -1
  208. package/resourceMonitorGrant.d.ts +0 -2
  209. package/resourceMonitorGrant.js +0 -2
  210. package/resourceMonitorGrant.js.map +1 -1
  211. package/role.d.ts +4 -12
  212. package/role.js +4 -3
  213. package/role.js.map +1 -1
  214. package/roleGrants.d.ts +13 -6
  215. package/roleGrants.js +13 -6
  216. package/roleGrants.js.map +1 -1
  217. package/roleOwnershipGrant.d.ts +5 -4
  218. package/roleOwnershipGrant.js +5 -4
  219. package/roleOwnershipGrant.js.map +1 -1
  220. package/rowAccessPolicy.d.ts +3 -4
  221. package/rowAccessPolicy.js +3 -4
  222. package/rowAccessPolicy.js.map +1 -1
  223. package/rowAccessPolicyGrant.d.ts +2 -4
  224. package/rowAccessPolicyGrant.js +2 -4
  225. package/rowAccessPolicyGrant.js.map +1 -1
  226. package/samlIntegration.d.ts +4 -5
  227. package/samlIntegration.js +4 -5
  228. package/samlIntegration.js.map +1 -1
  229. package/schema.d.ts +10 -11
  230. package/schema.js +4 -5
  231. package/schema.js.map +1 -1
  232. package/schemaGrant.d.ts +2 -4
  233. package/schemaGrant.js +2 -4
  234. package/schemaGrant.js.map +1 -1
  235. package/scimIntegration.d.ts +1 -2
  236. package/scimIntegration.js +1 -2
  237. package/scimIntegration.js.map +1 -1
  238. package/sequence.d.ts +8 -6
  239. package/sequence.js +8 -6
  240. package/sequence.js.map +1 -1
  241. package/sequenceGrant.d.ts +3 -5
  242. package/sequenceGrant.js +3 -5
  243. package/sequenceGrant.js.map +1 -1
  244. package/sessionParameter.d.ts +3 -5
  245. package/sessionParameter.js +3 -5
  246. package/sessionParameter.js.map +1 -1
  247. package/share.d.ts +2 -3
  248. package/share.js +2 -3
  249. package/share.js.map +1 -1
  250. package/stage.d.ts +13 -14
  251. package/stage.js +4 -5
  252. package/stage.js.map +1 -1
  253. package/stageGrant.d.ts +3 -5
  254. package/stageGrant.js +3 -5
  255. package/stageGrant.js.map +1 -1
  256. package/streamGrant.d.ts +3 -5
  257. package/streamGrant.js +3 -5
  258. package/streamGrant.js.map +1 -1
  259. package/table.d.ts +75 -12
  260. package/table.js +63 -0
  261. package/table.js.map +1 -1
  262. package/tableConstraint.d.ts +27 -21
  263. package/tableConstraint.js +21 -15
  264. package/tableConstraint.js.map +1 -1
  265. package/tableGrant.d.ts +3 -5
  266. package/tableGrant.js +3 -5
  267. package/tableGrant.js.map +1 -1
  268. package/tag.d.ts +6 -4
  269. package/tag.js +6 -4
  270. package/tag.js.map +1 -1
  271. package/tagAssociation.d.ts +18 -15
  272. package/tagAssociation.js +18 -15
  273. package/tagAssociation.js.map +1 -1
  274. package/tagGrant.d.ts +2 -4
  275. package/tagGrant.js +2 -4
  276. package/tagGrant.js.map +1 -1
  277. package/task.d.ts +5 -4
  278. package/task.js +5 -4
  279. package/task.js.map +1 -1
  280. package/taskGrant.d.ts +3 -5
  281. package/taskGrant.js +3 -5
  282. package/taskGrant.js.map +1 -1
  283. package/types/input.d.ts +3 -3
  284. package/types/output.d.ts +3 -3
  285. package/user.d.ts +7 -8
  286. package/user.js +7 -8
  287. package/user.js.map +1 -1
  288. package/userGrant.d.ts +1 -3
  289. package/userGrant.js +1 -3
  290. package/userGrant.js.map +1 -1
  291. package/view.d.ts +10 -11
  292. package/view.js +1 -2
  293. package/view.js.map +1 -1
  294. package/viewGrant.d.ts +8 -8
  295. package/viewGrant.js +8 -8
  296. package/warehouse.d.ts +1 -2
  297. package/warehouse.js +1 -2
  298. package/warehouse.js.map +1 -1
  299. package/warehouseGrant.d.ts +1 -3
  300. package/warehouseGrant.js +1 -3
  301. package/warehouseGrant.js.map +1 -1
package/getGrants.d.ts CHANGED
@@ -4,54 +4,65 @@ import * as outputs from "./types/output";
4
4
  /**
5
5
  * ## Example Usage
6
6
  *
7
- * <!--Start PulumiCodeChooser -->
8
7
  * ```typescript
9
8
  * import * as pulumi from "@pulumi/pulumi";
10
9
  * import * as snowflake from "@pulumi/snowflake";
11
10
  *
11
+ * //#################################
12
+ * //## SHOW GRANTS ON ...
13
+ * //#################################
14
+ * // account
12
15
  * const exampleOnAccount = snowflake.getGrants({
13
16
  * grantsOn: {
14
17
  * account: true,
15
18
  * },
16
19
  * });
20
+ * // account object (e.g. database)
17
21
  * const exampleOnAccountObject = snowflake.getGrants({
18
22
  * grantsOn: {
19
23
  * objectName: "some_database",
20
24
  * objectType: "DATABASE",
21
25
  * },
22
26
  * });
27
+ * // database object (e.g. schema)
23
28
  * const exampleOnDatabaseObject = snowflake.getGrants({
24
29
  * grantsOn: {
25
30
  * objectName: "\"some_database\".\"some_schema\"",
26
31
  * objectType: "SCHEMA",
27
32
  * },
28
33
  * });
34
+ * // schema object (e.g. table)
29
35
  * const exampleOnSchemaObject = snowflake.getGrants({
30
36
  * grantsOn: {
31
37
  * objectName: "\"some_database\".\"some_schema\".\"some_table\"",
32
38
  * objectType: "TABLE",
33
39
  * },
34
40
  * });
41
+ * // application
35
42
  * const exampleToApplication = snowflake.getGrants({
36
43
  * grantsTo: {
37
44
  * application: "some_application",
38
45
  * },
39
46
  * });
47
+ * // application role
40
48
  * const exampleToApplicationRole = snowflake.getGrants({
41
49
  * grantsTo: {
42
50
  * applicationRole: "\"some_application\".\"some_application_role\"",
43
51
  * },
44
52
  * });
53
+ * // account role
45
54
  * const exampleToRole = snowflake.getGrants({
46
55
  * grantsTo: {
47
56
  * accountRole: "some_role",
48
57
  * },
49
58
  * });
59
+ * // database role
50
60
  * const exampleToDatabaseRole = snowflake.getGrants({
51
61
  * grantsTo: {
52
62
  * databaseRole: "\"some_database\".\"some_database_role\"",
53
63
  * },
54
64
  * });
65
+ * // share
55
66
  * const exampleToShare = snowflake.getGrants({
56
67
  * grantsTo: {
57
68
  * share: {
@@ -59,53 +70,61 @@ import * as outputs from "./types/output";
59
70
  * },
60
71
  * },
61
72
  * });
73
+ * // user
62
74
  * const exampleToUser = snowflake.getGrants({
63
75
  * grantsTo: {
64
76
  * user: "some_user",
65
77
  * },
66
78
  * });
79
+ * // application role
67
80
  * const exampleOfApplicationRole = snowflake.getGrants({
68
81
  * grantsOf: {
69
82
  * applicationRole: "\"some_application\".\"some_application_role\"",
70
83
  * },
71
84
  * });
85
+ * // database role
72
86
  * const exampleOfDatabaseRole = snowflake.getGrants({
73
87
  * grantsOf: {
74
88
  * databaseRole: "\"some_database\".\"some_database_role\"",
75
89
  * },
76
90
  * });
91
+ * // account role
77
92
  * const exampleOfRole = snowflake.getGrants({
78
93
  * grantsOf: {
79
94
  * accountRole: "some_role",
80
95
  * },
81
96
  * });
97
+ * // share
82
98
  * const exampleOfShare = snowflake.getGrants({
83
99
  * grantsOf: {
84
100
  * share: "some_share",
85
101
  * },
86
102
  * });
103
+ * // database
87
104
  * const exampleFutureInDatabase = snowflake.getGrants({
88
105
  * futureGrantsIn: {
89
106
  * database: "some_database",
90
107
  * },
91
108
  * });
109
+ * // schema
92
110
  * const exampleFutureInSchema = snowflake.getGrants({
93
111
  * futureGrantsIn: {
94
112
  * schema: "\"some_database\".\"some_schema\"",
95
113
  * },
96
114
  * });
115
+ * // account role
97
116
  * const exampleFutureToRole = snowflake.getGrants({
98
117
  * futureGrantsTo: {
99
118
  * accountRole: "some_role",
100
119
  * },
101
120
  * });
121
+ * // database role
102
122
  * const exampleFutureToDatabaseRole = snowflake.getGrants({
103
123
  * futureGrantsTo: {
104
124
  * databaseRole: "\"some_database\".\"some_database_role\"",
105
125
  * },
106
126
  * });
107
127
  * ```
108
- * <!--End PulumiCodeChooser -->
109
128
  */
110
129
  export declare function getGrants(args?: GetGrantsArgs, opts?: pulumi.InvokeOptions): Promise<GetGrantsResult>;
111
130
  /**
@@ -169,54 +188,65 @@ export interface GetGrantsResult {
169
188
  /**
170
189
  * ## Example Usage
171
190
  *
172
- * <!--Start PulumiCodeChooser -->
173
191
  * ```typescript
174
192
  * import * as pulumi from "@pulumi/pulumi";
175
193
  * import * as snowflake from "@pulumi/snowflake";
176
194
  *
195
+ * //#################################
196
+ * //## SHOW GRANTS ON ...
197
+ * //#################################
198
+ * // account
177
199
  * const exampleOnAccount = snowflake.getGrants({
178
200
  * grantsOn: {
179
201
  * account: true,
180
202
  * },
181
203
  * });
204
+ * // account object (e.g. database)
182
205
  * const exampleOnAccountObject = snowflake.getGrants({
183
206
  * grantsOn: {
184
207
  * objectName: "some_database",
185
208
  * objectType: "DATABASE",
186
209
  * },
187
210
  * });
211
+ * // database object (e.g. schema)
188
212
  * const exampleOnDatabaseObject = snowflake.getGrants({
189
213
  * grantsOn: {
190
214
  * objectName: "\"some_database\".\"some_schema\"",
191
215
  * objectType: "SCHEMA",
192
216
  * },
193
217
  * });
218
+ * // schema object (e.g. table)
194
219
  * const exampleOnSchemaObject = snowflake.getGrants({
195
220
  * grantsOn: {
196
221
  * objectName: "\"some_database\".\"some_schema\".\"some_table\"",
197
222
  * objectType: "TABLE",
198
223
  * },
199
224
  * });
225
+ * // application
200
226
  * const exampleToApplication = snowflake.getGrants({
201
227
  * grantsTo: {
202
228
  * application: "some_application",
203
229
  * },
204
230
  * });
231
+ * // application role
205
232
  * const exampleToApplicationRole = snowflake.getGrants({
206
233
  * grantsTo: {
207
234
  * applicationRole: "\"some_application\".\"some_application_role\"",
208
235
  * },
209
236
  * });
237
+ * // account role
210
238
  * const exampleToRole = snowflake.getGrants({
211
239
  * grantsTo: {
212
240
  * accountRole: "some_role",
213
241
  * },
214
242
  * });
243
+ * // database role
215
244
  * const exampleToDatabaseRole = snowflake.getGrants({
216
245
  * grantsTo: {
217
246
  * databaseRole: "\"some_database\".\"some_database_role\"",
218
247
  * },
219
248
  * });
249
+ * // share
220
250
  * const exampleToShare = snowflake.getGrants({
221
251
  * grantsTo: {
222
252
  * share: {
@@ -224,53 +254,61 @@ export interface GetGrantsResult {
224
254
  * },
225
255
  * },
226
256
  * });
257
+ * // user
227
258
  * const exampleToUser = snowflake.getGrants({
228
259
  * grantsTo: {
229
260
  * user: "some_user",
230
261
  * },
231
262
  * });
263
+ * // application role
232
264
  * const exampleOfApplicationRole = snowflake.getGrants({
233
265
  * grantsOf: {
234
266
  * applicationRole: "\"some_application\".\"some_application_role\"",
235
267
  * },
236
268
  * });
269
+ * // database role
237
270
  * const exampleOfDatabaseRole = snowflake.getGrants({
238
271
  * grantsOf: {
239
272
  * databaseRole: "\"some_database\".\"some_database_role\"",
240
273
  * },
241
274
  * });
275
+ * // account role
242
276
  * const exampleOfRole = snowflake.getGrants({
243
277
  * grantsOf: {
244
278
  * accountRole: "some_role",
245
279
  * },
246
280
  * });
281
+ * // share
247
282
  * const exampleOfShare = snowflake.getGrants({
248
283
  * grantsOf: {
249
284
  * share: "some_share",
250
285
  * },
251
286
  * });
287
+ * // database
252
288
  * const exampleFutureInDatabase = snowflake.getGrants({
253
289
  * futureGrantsIn: {
254
290
  * database: "some_database",
255
291
  * },
256
292
  * });
293
+ * // schema
257
294
  * const exampleFutureInSchema = snowflake.getGrants({
258
295
  * futureGrantsIn: {
259
296
  * schema: "\"some_database\".\"some_schema\"",
260
297
  * },
261
298
  * });
299
+ * // account role
262
300
  * const exampleFutureToRole = snowflake.getGrants({
263
301
  * futureGrantsTo: {
264
302
  * accountRole: "some_role",
265
303
  * },
266
304
  * });
305
+ * // database role
267
306
  * const exampleFutureToDatabaseRole = snowflake.getGrants({
268
307
  * futureGrantsTo: {
269
308
  * databaseRole: "\"some_database\".\"some_database_role\"",
270
309
  * },
271
310
  * });
272
311
  * ```
273
- * <!--End PulumiCodeChooser -->
274
312
  */
275
313
  export declare function getGrantsOutput(args?: GetGrantsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetGrantsResult>;
276
314
  /**
package/getGrants.js CHANGED
@@ -8,54 +8,65 @@ const utilities = require("./utilities");
8
8
  /**
9
9
  * ## Example Usage
10
10
  *
11
- * <!--Start PulumiCodeChooser -->
12
11
  * ```typescript
13
12
  * import * as pulumi from "@pulumi/pulumi";
14
13
  * import * as snowflake from "@pulumi/snowflake";
15
14
  *
15
+ * //#################################
16
+ * //## SHOW GRANTS ON ...
17
+ * //#################################
18
+ * // account
16
19
  * const exampleOnAccount = snowflake.getGrants({
17
20
  * grantsOn: {
18
21
  * account: true,
19
22
  * },
20
23
  * });
24
+ * // account object (e.g. database)
21
25
  * const exampleOnAccountObject = snowflake.getGrants({
22
26
  * grantsOn: {
23
27
  * objectName: "some_database",
24
28
  * objectType: "DATABASE",
25
29
  * },
26
30
  * });
31
+ * // database object (e.g. schema)
27
32
  * const exampleOnDatabaseObject = snowflake.getGrants({
28
33
  * grantsOn: {
29
34
  * objectName: "\"some_database\".\"some_schema\"",
30
35
  * objectType: "SCHEMA",
31
36
  * },
32
37
  * });
38
+ * // schema object (e.g. table)
33
39
  * const exampleOnSchemaObject = snowflake.getGrants({
34
40
  * grantsOn: {
35
41
  * objectName: "\"some_database\".\"some_schema\".\"some_table\"",
36
42
  * objectType: "TABLE",
37
43
  * },
38
44
  * });
45
+ * // application
39
46
  * const exampleToApplication = snowflake.getGrants({
40
47
  * grantsTo: {
41
48
  * application: "some_application",
42
49
  * },
43
50
  * });
51
+ * // application role
44
52
  * const exampleToApplicationRole = snowflake.getGrants({
45
53
  * grantsTo: {
46
54
  * applicationRole: "\"some_application\".\"some_application_role\"",
47
55
  * },
48
56
  * });
57
+ * // account role
49
58
  * const exampleToRole = snowflake.getGrants({
50
59
  * grantsTo: {
51
60
  * accountRole: "some_role",
52
61
  * },
53
62
  * });
63
+ * // database role
54
64
  * const exampleToDatabaseRole = snowflake.getGrants({
55
65
  * grantsTo: {
56
66
  * databaseRole: "\"some_database\".\"some_database_role\"",
57
67
  * },
58
68
  * });
69
+ * // share
59
70
  * const exampleToShare = snowflake.getGrants({
60
71
  * grantsTo: {
61
72
  * share: {
@@ -63,53 +74,61 @@ const utilities = require("./utilities");
63
74
  * },
64
75
  * },
65
76
  * });
77
+ * // user
66
78
  * const exampleToUser = snowflake.getGrants({
67
79
  * grantsTo: {
68
80
  * user: "some_user",
69
81
  * },
70
82
  * });
83
+ * // application role
71
84
  * const exampleOfApplicationRole = snowflake.getGrants({
72
85
  * grantsOf: {
73
86
  * applicationRole: "\"some_application\".\"some_application_role\"",
74
87
  * },
75
88
  * });
89
+ * // database role
76
90
  * const exampleOfDatabaseRole = snowflake.getGrants({
77
91
  * grantsOf: {
78
92
  * databaseRole: "\"some_database\".\"some_database_role\"",
79
93
  * },
80
94
  * });
95
+ * // account role
81
96
  * const exampleOfRole = snowflake.getGrants({
82
97
  * grantsOf: {
83
98
  * accountRole: "some_role",
84
99
  * },
85
100
  * });
101
+ * // share
86
102
  * const exampleOfShare = snowflake.getGrants({
87
103
  * grantsOf: {
88
104
  * share: "some_share",
89
105
  * },
90
106
  * });
107
+ * // database
91
108
  * const exampleFutureInDatabase = snowflake.getGrants({
92
109
  * futureGrantsIn: {
93
110
  * database: "some_database",
94
111
  * },
95
112
  * });
113
+ * // schema
96
114
  * const exampleFutureInSchema = snowflake.getGrants({
97
115
  * futureGrantsIn: {
98
116
  * schema: "\"some_database\".\"some_schema\"",
99
117
  * },
100
118
  * });
119
+ * // account role
101
120
  * const exampleFutureToRole = snowflake.getGrants({
102
121
  * futureGrantsTo: {
103
122
  * accountRole: "some_role",
104
123
  * },
105
124
  * });
125
+ * // database role
106
126
  * const exampleFutureToDatabaseRole = snowflake.getGrants({
107
127
  * futureGrantsTo: {
108
128
  * databaseRole: "\"some_database\".\"some_database_role\"",
109
129
  * },
110
130
  * });
111
131
  * ```
112
- * <!--End PulumiCodeChooser -->
113
132
  */
114
133
  function getGrants(args, opts) {
115
134
  args = args || {};
@@ -126,54 +145,65 @@ exports.getGrants = getGrants;
126
145
  /**
127
146
  * ## Example Usage
128
147
  *
129
- * <!--Start PulumiCodeChooser -->
130
148
  * ```typescript
131
149
  * import * as pulumi from "@pulumi/pulumi";
132
150
  * import * as snowflake from "@pulumi/snowflake";
133
151
  *
152
+ * //#################################
153
+ * //## SHOW GRANTS ON ...
154
+ * //#################################
155
+ * // account
134
156
  * const exampleOnAccount = snowflake.getGrants({
135
157
  * grantsOn: {
136
158
  * account: true,
137
159
  * },
138
160
  * });
161
+ * // account object (e.g. database)
139
162
  * const exampleOnAccountObject = snowflake.getGrants({
140
163
  * grantsOn: {
141
164
  * objectName: "some_database",
142
165
  * objectType: "DATABASE",
143
166
  * },
144
167
  * });
168
+ * // database object (e.g. schema)
145
169
  * const exampleOnDatabaseObject = snowflake.getGrants({
146
170
  * grantsOn: {
147
171
  * objectName: "\"some_database\".\"some_schema\"",
148
172
  * objectType: "SCHEMA",
149
173
  * },
150
174
  * });
175
+ * // schema object (e.g. table)
151
176
  * const exampleOnSchemaObject = snowflake.getGrants({
152
177
  * grantsOn: {
153
178
  * objectName: "\"some_database\".\"some_schema\".\"some_table\"",
154
179
  * objectType: "TABLE",
155
180
  * },
156
181
  * });
182
+ * // application
157
183
  * const exampleToApplication = snowflake.getGrants({
158
184
  * grantsTo: {
159
185
  * application: "some_application",
160
186
  * },
161
187
  * });
188
+ * // application role
162
189
  * const exampleToApplicationRole = snowflake.getGrants({
163
190
  * grantsTo: {
164
191
  * applicationRole: "\"some_application\".\"some_application_role\"",
165
192
  * },
166
193
  * });
194
+ * // account role
167
195
  * const exampleToRole = snowflake.getGrants({
168
196
  * grantsTo: {
169
197
  * accountRole: "some_role",
170
198
  * },
171
199
  * });
200
+ * // database role
172
201
  * const exampleToDatabaseRole = snowflake.getGrants({
173
202
  * grantsTo: {
174
203
  * databaseRole: "\"some_database\".\"some_database_role\"",
175
204
  * },
176
205
  * });
206
+ * // share
177
207
  * const exampleToShare = snowflake.getGrants({
178
208
  * grantsTo: {
179
209
  * share: {
@@ -181,53 +211,61 @@ exports.getGrants = getGrants;
181
211
  * },
182
212
  * },
183
213
  * });
214
+ * // user
184
215
  * const exampleToUser = snowflake.getGrants({
185
216
  * grantsTo: {
186
217
  * user: "some_user",
187
218
  * },
188
219
  * });
220
+ * // application role
189
221
  * const exampleOfApplicationRole = snowflake.getGrants({
190
222
  * grantsOf: {
191
223
  * applicationRole: "\"some_application\".\"some_application_role\"",
192
224
  * },
193
225
  * });
226
+ * // database role
194
227
  * const exampleOfDatabaseRole = snowflake.getGrants({
195
228
  * grantsOf: {
196
229
  * databaseRole: "\"some_database\".\"some_database_role\"",
197
230
  * },
198
231
  * });
232
+ * // account role
199
233
  * const exampleOfRole = snowflake.getGrants({
200
234
  * grantsOf: {
201
235
  * accountRole: "some_role",
202
236
  * },
203
237
  * });
238
+ * // share
204
239
  * const exampleOfShare = snowflake.getGrants({
205
240
  * grantsOf: {
206
241
  * share: "some_share",
207
242
  * },
208
243
  * });
244
+ * // database
209
245
  * const exampleFutureInDatabase = snowflake.getGrants({
210
246
  * futureGrantsIn: {
211
247
  * database: "some_database",
212
248
  * },
213
249
  * });
250
+ * // schema
214
251
  * const exampleFutureInSchema = snowflake.getGrants({
215
252
  * futureGrantsIn: {
216
253
  * schema: "\"some_database\".\"some_schema\"",
217
254
  * },
218
255
  * });
256
+ * // account role
219
257
  * const exampleFutureToRole = snowflake.getGrants({
220
258
  * futureGrantsTo: {
221
259
  * accountRole: "some_role",
222
260
  * },
223
261
  * });
262
+ * // database role
224
263
  * const exampleFutureToDatabaseRole = snowflake.getGrants({
225
264
  * futureGrantsTo: {
226
265
  * databaseRole: "\"some_database\".\"some_database_role\"",
227
266
  * },
228
267
  * });
229
268
  * ```
230
- * <!--End PulumiCodeChooser -->
231
269
  */
232
270
  function getGrantsOutput(args, opts) {
233
271
  return pulumi.output(args).apply((a) => getGrants(a, opts));
package/getGrants.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getGrants.js","sourceRoot":"","sources":["../getGrants.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,8BAWC;AA6DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyGG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
1
+ {"version":3,"file":"getGrants.js","sourceRoot":"","sources":["../getGrants.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4HG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,gBAAgB,EAAE,IAAI,CAAC,cAAc;QACrC,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,UAAU,EAAE,IAAI,CAAC,QAAQ;KAC5B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,8BAWC;AA6DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4HG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,0CAEC"}
@@ -3,7 +3,6 @@ import * as outputs from "./types/output";
3
3
  /**
4
4
  * ## Example Usage
5
5
  *
6
- * <!--Start PulumiCodeChooser -->
7
6
  * ```typescript
8
7
  * import * as pulumi from "@pulumi/pulumi";
9
8
  * import * as snowflake from "@pulumi/snowflake";
@@ -13,14 +12,19 @@ import * as outputs from "./types/output";
13
12
  * schema: "MYSCHEMA",
14
13
  * });
15
14
  * ```
16
- * <!--End PulumiCodeChooser -->
17
15
  */
18
16
  export declare function getMaskingPolicies(args: GetMaskingPoliciesArgs, opts?: pulumi.InvokeOptions): Promise<GetMaskingPoliciesResult>;
19
17
  /**
20
18
  * A collection of arguments for invoking getMaskingPolicies.
21
19
  */
22
20
  export interface GetMaskingPoliciesArgs {
21
+ /**
22
+ * The database from which to return the schemas from.
23
+ */
23
24
  database: string;
25
+ /**
26
+ * The schema from which to return the maskingPolicies from.
27
+ */
24
28
  schema: string;
25
29
  }
26
30
  /**
@@ -47,7 +51,6 @@ export interface GetMaskingPoliciesResult {
47
51
  /**
48
52
  * ## Example Usage
49
53
  *
50
- * <!--Start PulumiCodeChooser -->
51
54
  * ```typescript
52
55
  * import * as pulumi from "@pulumi/pulumi";
53
56
  * import * as snowflake from "@pulumi/snowflake";
@@ -57,13 +60,18 @@ export interface GetMaskingPoliciesResult {
57
60
  * schema: "MYSCHEMA",
58
61
  * });
59
62
  * ```
60
- * <!--End PulumiCodeChooser -->
61
63
  */
62
64
  export declare function getMaskingPoliciesOutput(args: GetMaskingPoliciesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMaskingPoliciesResult>;
63
65
  /**
64
66
  * A collection of arguments for invoking getMaskingPolicies.
65
67
  */
66
68
  export interface GetMaskingPoliciesOutputArgs {
69
+ /**
70
+ * The database from which to return the schemas from.
71
+ */
67
72
  database: pulumi.Input<string>;
73
+ /**
74
+ * The schema from which to return the maskingPolicies from.
75
+ */
68
76
  schema: pulumi.Input<string>;
69
77
  }
@@ -8,7 +8,6 @@ const utilities = require("./utilities");
8
8
  /**
9
9
  * ## Example Usage
10
10
  *
11
- * <!--Start PulumiCodeChooser -->
12
11
  * ```typescript
13
12
  * import * as pulumi from "@pulumi/pulumi";
14
13
  * import * as snowflake from "@pulumi/snowflake";
@@ -18,7 +17,6 @@ const utilities = require("./utilities");
18
17
  * schema: "MYSCHEMA",
19
18
  * });
20
19
  * ```
21
- * <!--End PulumiCodeChooser -->
22
20
  */
23
21
  function getMaskingPolicies(args, opts) {
24
22
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
@@ -31,7 +29,6 @@ exports.getMaskingPolicies = getMaskingPolicies;
31
29
  /**
32
30
  * ## Example Usage
33
31
  *
34
- * <!--Start PulumiCodeChooser -->
35
32
  * ```typescript
36
33
  * import * as pulumi from "@pulumi/pulumi";
37
34
  * import * as snowflake from "@pulumi/snowflake";
@@ -41,7 +38,6 @@ exports.getMaskingPolicies = getMaskingPolicies;
41
38
  * schema: "MYSCHEMA",
42
39
  * });
43
40
  * ```
44
- * <!--End PulumiCodeChooser -->
45
41
  */
46
42
  function getMaskingPoliciesOutput(args, opts) {
47
43
  return pulumi.output(args).apply((a) => getMaskingPolicies(a, opts));
@@ -1 +1 @@
1
- {"version":3,"file":"getMaskingPolicies.js","sourceRoot":"","sources":["../getMaskingPolicies.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IAExF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uDAAuD,EAAE;QAClF,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gDAOC;AA+BD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IACpG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,4DAEC"}
1
+ {"version":3,"file":"getMaskingPolicies.js","sourceRoot":"","sources":["../getMaskingPolicies.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;GAYG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IAExF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,uDAAuD,EAAE;QAClF,UAAU,EAAE,IAAI,CAAC,QAAQ;QACzB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,gDAOC;AAqCD;;;;;;;;;;;;GAYG;AACH,SAAgB,wBAAwB,CAAC,IAAkC,EAAE,IAA2B;IACpG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7E,CAAC;AAFD,4DAEC"}
@@ -3,7 +3,6 @@ import * as outputs from "./types/output";
3
3
  /**
4
4
  * ## Example Usage
5
5
  *
6
- * <!--Start PulumiCodeChooser -->
7
6
  * ```typescript
8
7
  * import * as pulumi from "@pulumi/pulumi";
9
8
  * import * as snowflake from "@pulumi/snowflake";
@@ -13,14 +12,19 @@ import * as outputs from "./types/output";
13
12
  * schema: "MYSCHEMA",
14
13
  * });
15
14
  * ```
16
- * <!--End PulumiCodeChooser -->
17
15
  */
18
16
  export declare function getMaterializedViews(args: GetMaterializedViewsArgs, opts?: pulumi.InvokeOptions): Promise<GetMaterializedViewsResult>;
19
17
  /**
20
18
  * A collection of arguments for invoking getMaterializedViews.
21
19
  */
22
20
  export interface GetMaterializedViewsArgs {
21
+ /**
22
+ * The database from which to return the schemas from.
23
+ */
23
24
  database: string;
25
+ /**
26
+ * The schema from which to return the views from.
27
+ */
24
28
  schema: string;
25
29
  }
26
30
  /**
@@ -47,7 +51,6 @@ export interface GetMaterializedViewsResult {
47
51
  /**
48
52
  * ## Example Usage
49
53
  *
50
- * <!--Start PulumiCodeChooser -->
51
54
  * ```typescript
52
55
  * import * as pulumi from "@pulumi/pulumi";
53
56
  * import * as snowflake from "@pulumi/snowflake";
@@ -57,13 +60,18 @@ export interface GetMaterializedViewsResult {
57
60
  * schema: "MYSCHEMA",
58
61
  * });
59
62
  * ```
60
- * <!--End PulumiCodeChooser -->
61
63
  */
62
64
  export declare function getMaterializedViewsOutput(args: GetMaterializedViewsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMaterializedViewsResult>;
63
65
  /**
64
66
  * A collection of arguments for invoking getMaterializedViews.
65
67
  */
66
68
  export interface GetMaterializedViewsOutputArgs {
69
+ /**
70
+ * The database from which to return the schemas from.
71
+ */
67
72
  database: pulumi.Input<string>;
73
+ /**
74
+ * The schema from which to return the views from.
75
+ */
68
76
  schema: pulumi.Input<string>;
69
77
  }