@pulumi/snowflake 0.51.1-alpha.1713445302 → 0.52.1-alpha.1713561390

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 (180) hide show
  1. package/account.d.ts +1 -3
  2. package/account.js +1 -3
  3. package/account.js.map +1 -1
  4. package/accountGrant.d.ts +1 -1
  5. package/accountGrant.js +1 -1
  6. package/accountParameter.d.ts +1 -1
  7. package/accountParameter.js +1 -1
  8. package/accountPasswordPolicyAttachment.d.ts +1 -0
  9. package/accountPasswordPolicyAttachment.js +1 -0
  10. package/accountPasswordPolicyAttachment.js.map +1 -1
  11. package/alert.d.ts +6 -5
  12. package/alert.js +6 -5
  13. package/alert.js.map +1 -1
  14. package/apiIntegration.d.ts +9 -6
  15. package/apiIntegration.js +9 -6
  16. package/apiIntegration.js.map +1 -1
  17. package/database.d.ts +7 -3
  18. package/database.js +7 -3
  19. package/database.js.map +1 -1
  20. package/databaseRole.d.ts +3 -2
  21. package/databaseRole.js +3 -2
  22. package/databaseRole.js.map +1 -1
  23. package/dynamicTable.d.ts +3 -2
  24. package/dynamicTable.js +3 -2
  25. package/dynamicTable.js.map +1 -1
  26. package/emailNotificationIntegration.d.ts +3 -2
  27. package/emailNotificationIntegration.js +3 -2
  28. package/emailNotificationIntegration.js.map +1 -1
  29. package/externalFunction.d.ts +6 -5
  30. package/externalFunction.js +6 -5
  31. package/externalFunction.js.map +1 -1
  32. package/externalOauthIntegration.d.ts +4 -3
  33. package/externalOauthIntegration.js +4 -3
  34. package/externalOauthIntegration.js.map +1 -1
  35. package/externalTable.d.ts +6 -5
  36. package/externalTable.js +6 -5
  37. package/externalTable.js.map +1 -1
  38. package/externalTableGrant.d.ts +2 -2
  39. package/externalTableGrant.js +2 -2
  40. package/failoverGroup.d.ts +10 -9
  41. package/failoverGroup.js +10 -9
  42. package/failoverGroup.js.map +1 -1
  43. package/fileFormat.d.ts +3 -2
  44. package/fileFormat.js +3 -2
  45. package/fileFormat.js.map +1 -1
  46. package/fileFormatGrant.d.ts +2 -2
  47. package/fileFormatGrant.js +2 -2
  48. package/functionGrant.d.ts +4 -4
  49. package/functionGrant.js +4 -4
  50. package/getCurrentAccount.d.ts +8 -6
  51. package/getCurrentAccount.js +8 -6
  52. package/getCurrentAccount.js.map +1 -1
  53. package/getGrants.d.ts +42 -0
  54. package/getGrants.js +42 -0
  55. package/getGrants.js.map +1 -1
  56. package/getParameters.d.ts +12 -6
  57. package/getParameters.js +12 -6
  58. package/getParameters.js.map +1 -1
  59. package/getSystemGetPrivateLinkConfig.d.ts +110 -0
  60. package/getSystemGetPrivateLinkConfig.js +110 -0
  61. package/getSystemGetPrivateLinkConfig.js.map +1 -1
  62. package/grantAccountRole.d.ts +0 -26
  63. package/grantAccountRole.js +0 -26
  64. package/grantAccountRole.js.map +1 -1
  65. package/grantDatabaseRole.d.ts +0 -33
  66. package/grantDatabaseRole.js +0 -33
  67. package/grantDatabaseRole.js.map +1 -1
  68. package/grantPrivilegesToDatabaseRole.d.ts +0 -168
  69. package/grantPrivilegesToDatabaseRole.js +0 -168
  70. package/grantPrivilegesToDatabaseRole.js.map +1 -1
  71. package/grantPrivilegesToRole.d.ts +20 -20
  72. package/grantPrivilegesToRole.js +20 -20
  73. package/maskingPolicy.d.ts +11 -11
  74. package/maskingPolicy.js +11 -11
  75. package/maskingPolicyGrant.d.ts +3 -3
  76. package/maskingPolicyGrant.js +3 -3
  77. package/materializedView.d.ts +1 -0
  78. package/materializedView.js +1 -0
  79. package/materializedView.js.map +1 -1
  80. package/materializedViewGrant.d.ts +2 -2
  81. package/materializedViewGrant.js +2 -2
  82. package/networkPolicy.d.ts +2 -1
  83. package/networkPolicy.js +2 -1
  84. package/networkPolicy.js.map +1 -1
  85. package/notificationIntegration.d.ts +5 -4
  86. package/notificationIntegration.js +5 -4
  87. package/notificationIntegration.js.map +1 -1
  88. package/oauthIntegration.d.ts +4 -3
  89. package/oauthIntegration.js +4 -3
  90. package/oauthIntegration.js.map +1 -1
  91. package/objectParameter.d.ts +16 -12
  92. package/objectParameter.js +16 -12
  93. package/objectParameter.js.map +1 -1
  94. package/package.json +1 -1
  95. package/pipeGrant.d.ts +2 -2
  96. package/pipeGrant.js +2 -2
  97. package/procedureGrant.d.ts +4 -4
  98. package/procedureGrant.js +4 -4
  99. package/resourceMonitor.d.ts +5 -4
  100. package/resourceMonitor.js +5 -4
  101. package/resourceMonitor.js.map +1 -1
  102. package/role.d.ts +4 -1
  103. package/role.js +4 -1
  104. package/role.js.map +1 -1
  105. package/roleGrants.d.ts +13 -4
  106. package/roleGrants.js +13 -4
  107. package/roleGrants.js.map +1 -1
  108. package/roleOwnershipGrant.d.ts +5 -2
  109. package/roleOwnershipGrant.js +5 -2
  110. package/roleOwnershipGrant.js.map +1 -1
  111. package/rowAccessPolicy.d.ts +3 -2
  112. package/rowAccessPolicy.js +3 -2
  113. package/rowAccessPolicy.js.map +1 -1
  114. package/rowAccessPolicyGrant.d.ts +2 -2
  115. package/rowAccessPolicyGrant.js +2 -2
  116. package/samlIntegration.d.ts +4 -3
  117. package/samlIntegration.js +4 -3
  118. package/samlIntegration.js.map +1 -1
  119. package/schema.d.ts +4 -3
  120. package/schema.js +4 -3
  121. package/schema.js.map +1 -1
  122. package/schemaGrant.d.ts +2 -2
  123. package/schemaGrant.js +2 -2
  124. package/scimIntegration.d.ts +1 -0
  125. package/scimIntegration.js +1 -0
  126. package/scimIntegration.js.map +1 -1
  127. package/sequence.d.ts +8 -4
  128. package/sequence.js +8 -4
  129. package/sequence.js.map +1 -1
  130. package/sequenceGrant.d.ts +3 -3
  131. package/sequenceGrant.js +3 -3
  132. package/sessionParameter.d.ts +3 -3
  133. package/sessionParameter.js +3 -3
  134. package/share.d.ts +2 -1
  135. package/share.js +2 -1
  136. package/share.js.map +1 -1
  137. package/stage.d.ts +4 -3
  138. package/stage.js +4 -3
  139. package/stage.js.map +1 -1
  140. package/stageGrant.d.ts +3 -3
  141. package/stageGrant.js +3 -3
  142. package/streamGrant.d.ts +3 -3
  143. package/streamGrant.js +3 -3
  144. package/table.d.ts +65 -0
  145. package/table.js +65 -0
  146. package/table.js.map +1 -1
  147. package/tableConstraint.d.ts +21 -13
  148. package/tableConstraint.js +21 -13
  149. package/tableConstraint.js.map +1 -1
  150. package/tableGrant.d.ts +3 -3
  151. package/tableGrant.js +3 -3
  152. package/tag.d.ts +6 -2
  153. package/tag.js +6 -2
  154. package/tag.js.map +1 -1
  155. package/tagAssociation.d.ts +18 -13
  156. package/tagAssociation.js +18 -13
  157. package/tagAssociation.js.map +1 -1
  158. package/tagGrant.d.ts +2 -2
  159. package/tagGrant.js +2 -2
  160. package/task.d.ts +5 -2
  161. package/task.js +5 -2
  162. package/task.js.map +1 -1
  163. package/taskGrant.d.ts +3 -3
  164. package/taskGrant.js +3 -3
  165. package/user.d.ts +7 -6
  166. package/user.js +7 -6
  167. package/user.js.map +1 -1
  168. package/userGrant.d.ts +1 -1
  169. package/userGrant.js +1 -1
  170. package/view.d.ts +1 -0
  171. package/view.js +1 -0
  172. package/view.js.map +1 -1
  173. package/viewGrant.d.ts +8 -6
  174. package/viewGrant.js +8 -6
  175. package/viewGrant.js.map +1 -1
  176. package/warehouse.d.ts +1 -0
  177. package/warehouse.js +1 -0
  178. package/warehouse.js.map +1 -1
  179. package/warehouseGrant.d.ts +1 -1
  180. package/warehouseGrant.js +1 -1
package/getGrants.d.ts CHANGED
@@ -9,49 +9,61 @@ import * as outputs from "./types/output";
9
9
  * import * as pulumi from "@pulumi/pulumi";
10
10
  * import * as snowflake from "@pulumi/snowflake";
11
11
  *
12
+ * //#################################
13
+ * //## SHOW GRANTS ON ...
14
+ * //#################################
15
+ * // account
12
16
  * const exampleOnAccount = snowflake.getGrants({
13
17
  * grantsOn: {
14
18
  * account: true,
15
19
  * },
16
20
  * });
21
+ * // account object (e.g. database)
17
22
  * const exampleOnAccountObject = snowflake.getGrants({
18
23
  * grantsOn: {
19
24
  * objectName: "some_database",
20
25
  * objectType: "DATABASE",
21
26
  * },
22
27
  * });
28
+ * // database object (e.g. schema)
23
29
  * const exampleOnDatabaseObject = snowflake.getGrants({
24
30
  * grantsOn: {
25
31
  * objectName: "\"some_database\".\"some_schema\"",
26
32
  * objectType: "SCHEMA",
27
33
  * },
28
34
  * });
35
+ * // schema object (e.g. table)
29
36
  * const exampleOnSchemaObject = snowflake.getGrants({
30
37
  * grantsOn: {
31
38
  * objectName: "\"some_database\".\"some_schema\".\"some_table\"",
32
39
  * objectType: "TABLE",
33
40
  * },
34
41
  * });
42
+ * // application
35
43
  * const exampleToApplication = snowflake.getGrants({
36
44
  * grantsTo: {
37
45
  * application: "some_application",
38
46
  * },
39
47
  * });
48
+ * // application role
40
49
  * const exampleToApplicationRole = snowflake.getGrants({
41
50
  * grantsTo: {
42
51
  * applicationRole: "\"some_application\".\"some_application_role\"",
43
52
  * },
44
53
  * });
54
+ * // account role
45
55
  * const exampleToRole = snowflake.getGrants({
46
56
  * grantsTo: {
47
57
  * accountRole: "some_role",
48
58
  * },
49
59
  * });
60
+ * // database role
50
61
  * const exampleToDatabaseRole = snowflake.getGrants({
51
62
  * grantsTo: {
52
63
  * databaseRole: "\"some_database\".\"some_database_role\"",
53
64
  * },
54
65
  * });
66
+ * // share
55
67
  * const exampleToShare = snowflake.getGrants({
56
68
  * grantsTo: {
57
69
  * share: {
@@ -59,46 +71,55 @@ import * as outputs from "./types/output";
59
71
  * },
60
72
  * },
61
73
  * });
74
+ * // user
62
75
  * const exampleToUser = snowflake.getGrants({
63
76
  * grantsTo: {
64
77
  * user: "some_user",
65
78
  * },
66
79
  * });
80
+ * // application role
67
81
  * const exampleOfApplicationRole = snowflake.getGrants({
68
82
  * grantsOf: {
69
83
  * applicationRole: "\"some_application\".\"some_application_role\"",
70
84
  * },
71
85
  * });
86
+ * // database role
72
87
  * const exampleOfDatabaseRole = snowflake.getGrants({
73
88
  * grantsOf: {
74
89
  * databaseRole: "\"some_database\".\"some_database_role\"",
75
90
  * },
76
91
  * });
92
+ * // account role
77
93
  * const exampleOfRole = snowflake.getGrants({
78
94
  * grantsOf: {
79
95
  * accountRole: "some_role",
80
96
  * },
81
97
  * });
98
+ * // share
82
99
  * const exampleOfShare = snowflake.getGrants({
83
100
  * grantsOf: {
84
101
  * share: "some_share",
85
102
  * },
86
103
  * });
104
+ * // database
87
105
  * const exampleFutureInDatabase = snowflake.getGrants({
88
106
  * futureGrantsIn: {
89
107
  * database: "some_database",
90
108
  * },
91
109
  * });
110
+ * // schema
92
111
  * const exampleFutureInSchema = snowflake.getGrants({
93
112
  * futureGrantsIn: {
94
113
  * schema: "\"some_database\".\"some_schema\"",
95
114
  * },
96
115
  * });
116
+ * // account role
97
117
  * const exampleFutureToRole = snowflake.getGrants({
98
118
  * futureGrantsTo: {
99
119
  * accountRole: "some_role",
100
120
  * },
101
121
  * });
122
+ * // database role
102
123
  * const exampleFutureToDatabaseRole = snowflake.getGrants({
103
124
  * futureGrantsTo: {
104
125
  * databaseRole: "\"some_database\".\"some_database_role\"",
@@ -174,49 +195,61 @@ export interface GetGrantsResult {
174
195
  * import * as pulumi from "@pulumi/pulumi";
175
196
  * import * as snowflake from "@pulumi/snowflake";
176
197
  *
198
+ * //#################################
199
+ * //## SHOW GRANTS ON ...
200
+ * //#################################
201
+ * // account
177
202
  * const exampleOnAccount = snowflake.getGrants({
178
203
  * grantsOn: {
179
204
  * account: true,
180
205
  * },
181
206
  * });
207
+ * // account object (e.g. database)
182
208
  * const exampleOnAccountObject = snowflake.getGrants({
183
209
  * grantsOn: {
184
210
  * objectName: "some_database",
185
211
  * objectType: "DATABASE",
186
212
  * },
187
213
  * });
214
+ * // database object (e.g. schema)
188
215
  * const exampleOnDatabaseObject = snowflake.getGrants({
189
216
  * grantsOn: {
190
217
  * objectName: "\"some_database\".\"some_schema\"",
191
218
  * objectType: "SCHEMA",
192
219
  * },
193
220
  * });
221
+ * // schema object (e.g. table)
194
222
  * const exampleOnSchemaObject = snowflake.getGrants({
195
223
  * grantsOn: {
196
224
  * objectName: "\"some_database\".\"some_schema\".\"some_table\"",
197
225
  * objectType: "TABLE",
198
226
  * },
199
227
  * });
228
+ * // application
200
229
  * const exampleToApplication = snowflake.getGrants({
201
230
  * grantsTo: {
202
231
  * application: "some_application",
203
232
  * },
204
233
  * });
234
+ * // application role
205
235
  * const exampleToApplicationRole = snowflake.getGrants({
206
236
  * grantsTo: {
207
237
  * applicationRole: "\"some_application\".\"some_application_role\"",
208
238
  * },
209
239
  * });
240
+ * // account role
210
241
  * const exampleToRole = snowflake.getGrants({
211
242
  * grantsTo: {
212
243
  * accountRole: "some_role",
213
244
  * },
214
245
  * });
246
+ * // database role
215
247
  * const exampleToDatabaseRole = snowflake.getGrants({
216
248
  * grantsTo: {
217
249
  * databaseRole: "\"some_database\".\"some_database_role\"",
218
250
  * },
219
251
  * });
252
+ * // share
220
253
  * const exampleToShare = snowflake.getGrants({
221
254
  * grantsTo: {
222
255
  * share: {
@@ -224,46 +257,55 @@ export interface GetGrantsResult {
224
257
  * },
225
258
  * },
226
259
  * });
260
+ * // user
227
261
  * const exampleToUser = snowflake.getGrants({
228
262
  * grantsTo: {
229
263
  * user: "some_user",
230
264
  * },
231
265
  * });
266
+ * // application role
232
267
  * const exampleOfApplicationRole = snowflake.getGrants({
233
268
  * grantsOf: {
234
269
  * applicationRole: "\"some_application\".\"some_application_role\"",
235
270
  * },
236
271
  * });
272
+ * // database role
237
273
  * const exampleOfDatabaseRole = snowflake.getGrants({
238
274
  * grantsOf: {
239
275
  * databaseRole: "\"some_database\".\"some_database_role\"",
240
276
  * },
241
277
  * });
278
+ * // account role
242
279
  * const exampleOfRole = snowflake.getGrants({
243
280
  * grantsOf: {
244
281
  * accountRole: "some_role",
245
282
  * },
246
283
  * });
284
+ * // share
247
285
  * const exampleOfShare = snowflake.getGrants({
248
286
  * grantsOf: {
249
287
  * share: "some_share",
250
288
  * },
251
289
  * });
290
+ * // database
252
291
  * const exampleFutureInDatabase = snowflake.getGrants({
253
292
  * futureGrantsIn: {
254
293
  * database: "some_database",
255
294
  * },
256
295
  * });
296
+ * // schema
257
297
  * const exampleFutureInSchema = snowflake.getGrants({
258
298
  * futureGrantsIn: {
259
299
  * schema: "\"some_database\".\"some_schema\"",
260
300
  * },
261
301
  * });
302
+ * // account role
262
303
  * const exampleFutureToRole = snowflake.getGrants({
263
304
  * futureGrantsTo: {
264
305
  * accountRole: "some_role",
265
306
  * },
266
307
  * });
308
+ * // database role
267
309
  * const exampleFutureToDatabaseRole = snowflake.getGrants({
268
310
  * futureGrantsTo: {
269
311
  * databaseRole: "\"some_database\".\"some_database_role\"",
package/getGrants.js CHANGED
@@ -13,49 +13,61 @@ const utilities = require("./utilities");
13
13
  * import * as pulumi from "@pulumi/pulumi";
14
14
  * import * as snowflake from "@pulumi/snowflake";
15
15
  *
16
+ * //#################################
17
+ * //## SHOW GRANTS ON ...
18
+ * //#################################
19
+ * // account
16
20
  * const exampleOnAccount = snowflake.getGrants({
17
21
  * grantsOn: {
18
22
  * account: true,
19
23
  * },
20
24
  * });
25
+ * // account object (e.g. database)
21
26
  * const exampleOnAccountObject = snowflake.getGrants({
22
27
  * grantsOn: {
23
28
  * objectName: "some_database",
24
29
  * objectType: "DATABASE",
25
30
  * },
26
31
  * });
32
+ * // database object (e.g. schema)
27
33
  * const exampleOnDatabaseObject = snowflake.getGrants({
28
34
  * grantsOn: {
29
35
  * objectName: "\"some_database\".\"some_schema\"",
30
36
  * objectType: "SCHEMA",
31
37
  * },
32
38
  * });
39
+ * // schema object (e.g. table)
33
40
  * const exampleOnSchemaObject = snowflake.getGrants({
34
41
  * grantsOn: {
35
42
  * objectName: "\"some_database\".\"some_schema\".\"some_table\"",
36
43
  * objectType: "TABLE",
37
44
  * },
38
45
  * });
46
+ * // application
39
47
  * const exampleToApplication = snowflake.getGrants({
40
48
  * grantsTo: {
41
49
  * application: "some_application",
42
50
  * },
43
51
  * });
52
+ * // application role
44
53
  * const exampleToApplicationRole = snowflake.getGrants({
45
54
  * grantsTo: {
46
55
  * applicationRole: "\"some_application\".\"some_application_role\"",
47
56
  * },
48
57
  * });
58
+ * // account role
49
59
  * const exampleToRole = snowflake.getGrants({
50
60
  * grantsTo: {
51
61
  * accountRole: "some_role",
52
62
  * },
53
63
  * });
64
+ * // database role
54
65
  * const exampleToDatabaseRole = snowflake.getGrants({
55
66
  * grantsTo: {
56
67
  * databaseRole: "\"some_database\".\"some_database_role\"",
57
68
  * },
58
69
  * });
70
+ * // share
59
71
  * const exampleToShare = snowflake.getGrants({
60
72
  * grantsTo: {
61
73
  * share: {
@@ -63,46 +75,55 @@ const utilities = require("./utilities");
63
75
  * },
64
76
  * },
65
77
  * });
78
+ * // user
66
79
  * const exampleToUser = snowflake.getGrants({
67
80
  * grantsTo: {
68
81
  * user: "some_user",
69
82
  * },
70
83
  * });
84
+ * // application role
71
85
  * const exampleOfApplicationRole = snowflake.getGrants({
72
86
  * grantsOf: {
73
87
  * applicationRole: "\"some_application\".\"some_application_role\"",
74
88
  * },
75
89
  * });
90
+ * // database role
76
91
  * const exampleOfDatabaseRole = snowflake.getGrants({
77
92
  * grantsOf: {
78
93
  * databaseRole: "\"some_database\".\"some_database_role\"",
79
94
  * },
80
95
  * });
96
+ * // account role
81
97
  * const exampleOfRole = snowflake.getGrants({
82
98
  * grantsOf: {
83
99
  * accountRole: "some_role",
84
100
  * },
85
101
  * });
102
+ * // share
86
103
  * const exampleOfShare = snowflake.getGrants({
87
104
  * grantsOf: {
88
105
  * share: "some_share",
89
106
  * },
90
107
  * });
108
+ * // database
91
109
  * const exampleFutureInDatabase = snowflake.getGrants({
92
110
  * futureGrantsIn: {
93
111
  * database: "some_database",
94
112
  * },
95
113
  * });
114
+ * // schema
96
115
  * const exampleFutureInSchema = snowflake.getGrants({
97
116
  * futureGrantsIn: {
98
117
  * schema: "\"some_database\".\"some_schema\"",
99
118
  * },
100
119
  * });
120
+ * // account role
101
121
  * const exampleFutureToRole = snowflake.getGrants({
102
122
  * futureGrantsTo: {
103
123
  * accountRole: "some_role",
104
124
  * },
105
125
  * });
126
+ * // database role
106
127
  * const exampleFutureToDatabaseRole = snowflake.getGrants({
107
128
  * futureGrantsTo: {
108
129
  * databaseRole: "\"some_database\".\"some_database_role\"",
@@ -131,49 +152,61 @@ exports.getGrants = getGrants;
131
152
  * import * as pulumi from "@pulumi/pulumi";
132
153
  * import * as snowflake from "@pulumi/snowflake";
133
154
  *
155
+ * //#################################
156
+ * //## SHOW GRANTS ON ...
157
+ * //#################################
158
+ * // account
134
159
  * const exampleOnAccount = snowflake.getGrants({
135
160
  * grantsOn: {
136
161
  * account: true,
137
162
  * },
138
163
  * });
164
+ * // account object (e.g. database)
139
165
  * const exampleOnAccountObject = snowflake.getGrants({
140
166
  * grantsOn: {
141
167
  * objectName: "some_database",
142
168
  * objectType: "DATABASE",
143
169
  * },
144
170
  * });
171
+ * // database object (e.g. schema)
145
172
  * const exampleOnDatabaseObject = snowflake.getGrants({
146
173
  * grantsOn: {
147
174
  * objectName: "\"some_database\".\"some_schema\"",
148
175
  * objectType: "SCHEMA",
149
176
  * },
150
177
  * });
178
+ * // schema object (e.g. table)
151
179
  * const exampleOnSchemaObject = snowflake.getGrants({
152
180
  * grantsOn: {
153
181
  * objectName: "\"some_database\".\"some_schema\".\"some_table\"",
154
182
  * objectType: "TABLE",
155
183
  * },
156
184
  * });
185
+ * // application
157
186
  * const exampleToApplication = snowflake.getGrants({
158
187
  * grantsTo: {
159
188
  * application: "some_application",
160
189
  * },
161
190
  * });
191
+ * // application role
162
192
  * const exampleToApplicationRole = snowflake.getGrants({
163
193
  * grantsTo: {
164
194
  * applicationRole: "\"some_application\".\"some_application_role\"",
165
195
  * },
166
196
  * });
197
+ * // account role
167
198
  * const exampleToRole = snowflake.getGrants({
168
199
  * grantsTo: {
169
200
  * accountRole: "some_role",
170
201
  * },
171
202
  * });
203
+ * // database role
172
204
  * const exampleToDatabaseRole = snowflake.getGrants({
173
205
  * grantsTo: {
174
206
  * databaseRole: "\"some_database\".\"some_database_role\"",
175
207
  * },
176
208
  * });
209
+ * // share
177
210
  * const exampleToShare = snowflake.getGrants({
178
211
  * grantsTo: {
179
212
  * share: {
@@ -181,46 +214,55 @@ exports.getGrants = getGrants;
181
214
  * },
182
215
  * },
183
216
  * });
217
+ * // user
184
218
  * const exampleToUser = snowflake.getGrants({
185
219
  * grantsTo: {
186
220
  * user: "some_user",
187
221
  * },
188
222
  * });
223
+ * // application role
189
224
  * const exampleOfApplicationRole = snowflake.getGrants({
190
225
  * grantsOf: {
191
226
  * applicationRole: "\"some_application\".\"some_application_role\"",
192
227
  * },
193
228
  * });
229
+ * // database role
194
230
  * const exampleOfDatabaseRole = snowflake.getGrants({
195
231
  * grantsOf: {
196
232
  * databaseRole: "\"some_database\".\"some_database_role\"",
197
233
  * },
198
234
  * });
235
+ * // account role
199
236
  * const exampleOfRole = snowflake.getGrants({
200
237
  * grantsOf: {
201
238
  * accountRole: "some_role",
202
239
  * },
203
240
  * });
241
+ * // share
204
242
  * const exampleOfShare = snowflake.getGrants({
205
243
  * grantsOf: {
206
244
  * share: "some_share",
207
245
  * },
208
246
  * });
247
+ * // database
209
248
  * const exampleFutureInDatabase = snowflake.getGrants({
210
249
  * futureGrantsIn: {
211
250
  * database: "some_database",
212
251
  * },
213
252
  * });
253
+ * // schema
214
254
  * const exampleFutureInSchema = snowflake.getGrants({
215
255
  * futureGrantsIn: {
216
256
  * schema: "\"some_database\".\"some_schema\"",
217
257
  * },
218
258
  * });
259
+ * // account role
219
260
  * const exampleFutureToRole = snowflake.getGrants({
220
261
  * futureGrantsTo: {
221
262
  * accountRole: "some_role",
222
263
  * },
223
264
  * });
265
+ * // database role
224
266
  * const exampleFutureToDatabaseRole = snowflake.getGrants({
225
267
  * futureGrantsTo: {
226
268
  * databaseRole: "\"some_database\".\"some_database_role\"",
package/getGrants.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"getGrants.js","sourceRoot":"","sources":["../getGrants.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8HG;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8HG;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"}
@@ -8,16 +8,19 @@ import * as outputs from "./types/output";
8
8
  * import * as pulumi from "@pulumi/pulumi";
9
9
  * import * as snowflake from "@pulumi/snowflake";
10
10
  *
11
- * const database = new snowflake.Database("database", {});
12
- * const parameters = snowflake.getParametersOutput({
11
+ * const d = new snowflake.Database("d", {name: "TEST_DB"});
12
+ * // read all object parameters in database TEST_DB
13
+ * const p = snowflake.getParametersOutput({
13
14
  * parameterType: "OBJECT",
14
15
  * objectType: "DATABASE",
15
- * objectName: database.name,
16
+ * objectName: d.name,
16
17
  * });
18
+ * // read all account parameters with the pattern '%TIMESTAMP%'
17
19
  * const p2 = snowflake.getParameters({
18
20
  * parameterType: "ACCOUNT",
19
21
  * pattern: "%TIMESTAMP%",
20
22
  * });
23
+ * // read the exact session parameter ROWS_PER_RESULTSET
21
24
  * const p3 = snowflake.getParameters({
22
25
  * parameterType: "SESSION",
23
26
  * pattern: "ROWS_PER_RESULTSET",
@@ -93,16 +96,19 @@ export interface GetParametersResult {
93
96
  * import * as pulumi from "@pulumi/pulumi";
94
97
  * import * as snowflake from "@pulumi/snowflake";
95
98
  *
96
- * const database = new snowflake.Database("database", {});
97
- * const parameters = snowflake.getParametersOutput({
99
+ * const d = new snowflake.Database("d", {name: "TEST_DB"});
100
+ * // read all object parameters in database TEST_DB
101
+ * const p = snowflake.getParametersOutput({
98
102
  * parameterType: "OBJECT",
99
103
  * objectType: "DATABASE",
100
- * objectName: database.name,
104
+ * objectName: d.name,
101
105
  * });
106
+ * // read all account parameters with the pattern '%TIMESTAMP%'
102
107
  * const p2 = snowflake.getParameters({
103
108
  * parameterType: "ACCOUNT",
104
109
  * pattern: "%TIMESTAMP%",
105
110
  * });
111
+ * // read the exact session parameter ROWS_PER_RESULTSET
106
112
  * const p3 = snowflake.getParameters({
107
113
  * parameterType: "SESSION",
108
114
  * pattern: "ROWS_PER_RESULTSET",
package/getParameters.js CHANGED
@@ -13,16 +13,19 @@ const utilities = require("./utilities");
13
13
  * import * as pulumi from "@pulumi/pulumi";
14
14
  * import * as snowflake from "@pulumi/snowflake";
15
15
  *
16
- * const database = new snowflake.Database("database", {});
17
- * const parameters = snowflake.getParametersOutput({
16
+ * const d = new snowflake.Database("d", {name: "TEST_DB"});
17
+ * // read all object parameters in database TEST_DB
18
+ * const p = snowflake.getParametersOutput({
18
19
  * parameterType: "OBJECT",
19
20
  * objectType: "DATABASE",
20
- * objectName: database.name,
21
+ * objectName: d.name,
21
22
  * });
23
+ * // read all account parameters with the pattern '%TIMESTAMP%'
22
24
  * const p2 = snowflake.getParameters({
23
25
  * parameterType: "ACCOUNT",
24
26
  * pattern: "%TIMESTAMP%",
25
27
  * });
28
+ * // read the exact session parameter ROWS_PER_RESULTSET
26
29
  * const p3 = snowflake.getParameters({
27
30
  * parameterType: "SESSION",
28
31
  * pattern: "ROWS_PER_RESULTSET",
@@ -51,16 +54,19 @@ exports.getParameters = getParameters;
51
54
  * import * as pulumi from "@pulumi/pulumi";
52
55
  * import * as snowflake from "@pulumi/snowflake";
53
56
  *
54
- * const database = new snowflake.Database("database", {});
55
- * const parameters = snowflake.getParametersOutput({
57
+ * const d = new snowflake.Database("d", {name: "TEST_DB"});
58
+ * // read all object parameters in database TEST_DB
59
+ * const p = snowflake.getParametersOutput({
56
60
  * parameterType: "OBJECT",
57
61
  * objectType: "DATABASE",
58
- * objectName: database.name,
62
+ * objectName: d.name,
59
63
  * });
64
+ * // read all account parameters with the pattern '%TIMESTAMP%'
60
65
  * const p2 = snowflake.getParameters({
61
66
  * parameterType: "ACCOUNT",
62
67
  * pattern: "%TIMESTAMP%",
63
68
  * });
69
+ * // read the exact session parameter ROWS_PER_RESULTSET
64
70
  * const p3 = snowflake.getParameters({
65
71
  * parameterType: "SESSION",
66
72
  * pattern: "ROWS_PER_RESULTSET",
@@ -1 +1 @@
1
- {"version":3,"file":"getParameters.js","sourceRoot":"","sources":["../getParameters.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,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,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