@pulumi/snowflake 0.2.1-alpha.1632763694

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 (255) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +83 -0
  3. package/accountGrant.d.ts +97 -0
  4. package/accountGrant.js +80 -0
  5. package/accountGrant.js.map +1 -0
  6. package/apiIntegration.d.ts +181 -0
  7. package/apiIntegration.js +102 -0
  8. package/apiIntegration.js.map +1 -0
  9. package/config/index.d.ts +1 -0
  10. package/config/index.js +17 -0
  11. package/config/index.js.map +1 -0
  12. package/config/vars.d.ts +19 -0
  13. package/config/vars.js +97 -0
  14. package/config/vars.js.map +1 -0
  15. package/database.d.ts +97 -0
  16. package/database.js +81 -0
  17. package/database.js.map +1 -0
  18. package/databaseGrant.d.ts +126 -0
  19. package/databaseGrant.js +92 -0
  20. package/databaseGrant.js.map +1 -0
  21. package/externalFunction.d.ts +260 -0
  22. package/externalFunction.js +134 -0
  23. package/externalFunction.js.map +1 -0
  24. package/externalTable.d.ts +233 -0
  25. package/externalTable.js +124 -0
  26. package/externalTable.js.map +1 -0
  27. package/externalTableGrant.d.ts +165 -0
  28. package/externalTableGrant.js +104 -0
  29. package/externalTableGrant.js.map +1 -0
  30. package/fileFormat.d.ts +490 -0
  31. package/fileFormat.js +152 -0
  32. package/fileFormat.js.map +1 -0
  33. package/fileFormatGrant.d.ts +149 -0
  34. package/fileFormatGrant.js +98 -0
  35. package/fileFormatGrant.js.map +1 -0
  36. package/function.d.ts +157 -0
  37. package/function.js +81 -0
  38. package/function.js.map +1 -0
  39. package/functionGrant.d.ts +201 -0
  40. package/functionGrant.js +119 -0
  41. package/functionGrant.js.map +1 -0
  42. package/getCurrentAccount.d.ts +38 -0
  43. package/getCurrentAccount.js +33 -0
  44. package/getCurrentAccount.js.map +1 -0
  45. package/getExternalFunctions.d.ts +50 -0
  46. package/getExternalFunctions.js +34 -0
  47. package/getExternalFunctions.js.map +1 -0
  48. package/getExternalTables.d.ts +50 -0
  49. package/getExternalTables.js +34 -0
  50. package/getExternalTables.js.map +1 -0
  51. package/getFileFormats.d.ts +50 -0
  52. package/getFileFormats.js +34 -0
  53. package/getFileFormats.js.map +1 -0
  54. package/getFunctions.d.ts +50 -0
  55. package/getFunctions.js +34 -0
  56. package/getFunctions.js.map +1 -0
  57. package/getMaskingPolicies.d.ts +50 -0
  58. package/getMaskingPolicies.js +34 -0
  59. package/getMaskingPolicies.js.map +1 -0
  60. package/getMaterializedViews.d.ts +50 -0
  61. package/getMaterializedViews.js +34 -0
  62. package/getMaterializedViews.js.map +1 -0
  63. package/getPipes.d.ts +50 -0
  64. package/getPipes.js +34 -0
  65. package/getPipes.js.map +1 -0
  66. package/getProcedures.d.ts +50 -0
  67. package/getProcedures.js +34 -0
  68. package/getProcedures.js.map +1 -0
  69. package/getResourceMonitors.d.ts +26 -0
  70. package/getResourceMonitors.js +28 -0
  71. package/getResourceMonitors.js.map +1 -0
  72. package/getRowAccessPolicies.d.ts +50 -0
  73. package/getRowAccessPolicies.js +34 -0
  74. package/getRowAccessPolicies.js.map +1 -0
  75. package/getSchemas.d.ts +41 -0
  76. package/getSchemas.js +32 -0
  77. package/getSchemas.js.map +1 -0
  78. package/getSequences.d.ts +50 -0
  79. package/getSequences.js +34 -0
  80. package/getSequences.js.map +1 -0
  81. package/getStages.d.ts +50 -0
  82. package/getStages.js +34 -0
  83. package/getStages.js.map +1 -0
  84. package/getStorageIntegrations.d.ts +26 -0
  85. package/getStorageIntegrations.js +28 -0
  86. package/getStorageIntegrations.js.map +1 -0
  87. package/getStreams.d.ts +50 -0
  88. package/getStreams.js +34 -0
  89. package/getStreams.js.map +1 -0
  90. package/getSystemGenerateScimAccessToken.d.ts +40 -0
  91. package/getSystemGenerateScimAccessToken.js +32 -0
  92. package/getSystemGenerateScimAccessToken.js.map +1 -0
  93. package/getSystemGetAwsSnsIamPolicy.d.ts +28 -0
  94. package/getSystemGetAwsSnsIamPolicy.js +20 -0
  95. package/getSystemGetAwsSnsIamPolicy.js.map +1 -0
  96. package/getSystemGetPrivateLinkConfig.d.ts +31 -0
  97. package/getSystemGetPrivateLinkConfig.js +18 -0
  98. package/getSystemGetPrivateLinkConfig.js.map +1 -0
  99. package/getSystemGetSnowflakePlatformInfo.d.ts +19 -0
  100. package/getSystemGetSnowflakePlatformInfo.js +18 -0
  101. package/getSystemGetSnowflakePlatformInfo.js.map +1 -0
  102. package/getTables.d.ts +50 -0
  103. package/getTables.js +34 -0
  104. package/getTables.js.map +1 -0
  105. package/getTasks.d.ts +50 -0
  106. package/getTasks.js +34 -0
  107. package/getTasks.js.map +1 -0
  108. package/getViews.d.ts +50 -0
  109. package/getViews.js +34 -0
  110. package/getViews.js.map +1 -0
  111. package/getWarehouses.d.ts +26 -0
  112. package/getWarehouses.js +28 -0
  113. package/getWarehouses.js.map +1 -0
  114. package/index.d.ts +79 -0
  115. package/index.js +324 -0
  116. package/index.js.map +1 -0
  117. package/integrationGrant.d.ts +110 -0
  118. package/integrationGrant.js +86 -0
  119. package/integrationGrant.js.map +1 -0
  120. package/managedAccount.d.ts +160 -0
  121. package/managedAccount.js +99 -0
  122. package/managedAccount.js.map +1 -0
  123. package/maskingPolicy.d.ts +144 -0
  124. package/maskingPolicy.js +102 -0
  125. package/maskingPolicy.js.map +1 -0
  126. package/maskingPolicyGrant.d.ts +108 -0
  127. package/maskingPolicyGrant.js +70 -0
  128. package/maskingPolicyGrant.js.map +1 -0
  129. package/materializedView.d.ts +158 -0
  130. package/materializedView.js +103 -0
  131. package/materializedView.js.map +1 -0
  132. package/materializedViewGrant.d.ts +165 -0
  133. package/materializedViewGrant.js +101 -0
  134. package/materializedViewGrant.js.map +1 -0
  135. package/networkPolicy.d.ts +104 -0
  136. package/networkPolicy.js +80 -0
  137. package/networkPolicy.js.map +1 -0
  138. package/networkPolicyAttachment.d.ts +110 -0
  139. package/networkPolicyAttachment.js +81 -0
  140. package/networkPolicyAttachment.js.map +1 -0
  141. package/notificationIntegration.d.ts +191 -0
  142. package/notificationIntegration.js +103 -0
  143. package/notificationIntegration.js.map +1 -0
  144. package/package.json +27 -0
  145. package/package.json.bak +26 -0
  146. package/package.json.dev +26 -0
  147. package/pipe.d.ts +187 -0
  148. package/pipe.js +107 -0
  149. package/pipe.js.map +1 -0
  150. package/pipeGrant.d.ts +149 -0
  151. package/pipeGrant.js +98 -0
  152. package/pipeGrant.js.map +1 -0
  153. package/procedure.d.ts +201 -0
  154. package/procedure.js +125 -0
  155. package/procedure.js.map +1 -0
  156. package/procedureGrant.d.ts +201 -0
  157. package/procedureGrant.js +119 -0
  158. package/procedureGrant.js.map +1 -0
  159. package/provider.d.ts +64 -0
  160. package/provider.js +70 -0
  161. package/provider.js.map +1 -0
  162. package/resourceMonitor.d.ts +156 -0
  163. package/resourceMonitor.js +89 -0
  164. package/resourceMonitor.js.map +1 -0
  165. package/resourceMonitorGrant.d.ts +105 -0
  166. package/resourceMonitorGrant.js +81 -0
  167. package/resourceMonitorGrant.js.map +1 -0
  168. package/role.d.ts +60 -0
  169. package/role.js +71 -0
  170. package/role.js.map +1 -0
  171. package/roleGrants.d.ts +105 -0
  172. package/roleGrants.js +91 -0
  173. package/roleGrants.js.map +1 -0
  174. package/rowAccessPolicy.d.ts +140 -0
  175. package/rowAccessPolicy.js +99 -0
  176. package/rowAccessPolicy.js.map +1 -0
  177. package/rowAccessPolicyGrant.d.ts +136 -0
  178. package/rowAccessPolicyGrant.js +98 -0
  179. package/rowAccessPolicyGrant.js.map +1 -0
  180. package/schema.d.ts +132 -0
  181. package/schema.js +88 -0
  182. package/schema.js.map +1 -0
  183. package/schemaGrant.d.ts +155 -0
  184. package/schemaGrant.js +98 -0
  185. package/schemaGrant.js.map +1 -0
  186. package/scimIntegration.d.ts +112 -0
  187. package/scimIntegration.js +85 -0
  188. package/scimIntegration.js.map +1 -0
  189. package/scripts/install-pulumi-plugin.js +21 -0
  190. package/sequence.d.ts +127 -0
  191. package/sequence.js +84 -0
  192. package/sequence.js.map +1 -0
  193. package/sequenceGrant.d.ts +149 -0
  194. package/sequenceGrant.js +98 -0
  195. package/sequenceGrant.js.map +1 -0
  196. package/share.d.ts +90 -0
  197. package/share.js +73 -0
  198. package/share.js.map +1 -0
  199. package/stage.d.ts +192 -0
  200. package/stage.js +109 -0
  201. package/stage.js.map +1 -0
  202. package/stageGrant.d.ts +165 -0
  203. package/stageGrant.js +104 -0
  204. package/stageGrant.js.map +1 -0
  205. package/storageIntegration.d.ts +153 -0
  206. package/storageIntegration.js +109 -0
  207. package/storageIntegration.js.map +1 -0
  208. package/stream.d.ts +166 -0
  209. package/stream.js +99 -0
  210. package/stream.js.map +1 -0
  211. package/streamGrant.d.ts +149 -0
  212. package/streamGrant.js +98 -0
  213. package/streamGrant.js.map +1 -0
  214. package/table.d.ts +214 -0
  215. package/table.js +139 -0
  216. package/table.js.map +1 -0
  217. package/tableGrant.d.ts +159 -0
  218. package/tableGrant.js +95 -0
  219. package/tableGrant.js.map +1 -0
  220. package/task.d.ts +218 -0
  221. package/task.js +117 -0
  222. package/task.js.map +1 -0
  223. package/taskGrant.d.ts +149 -0
  224. package/taskGrant.js +98 -0
  225. package/taskGrant.js.map +1 -0
  226. package/types/index.d.ts +3 -0
  227. package/types/index.js +11 -0
  228. package/types/index.js.map +1 -0
  229. package/types/input.d.ts +113 -0
  230. package/types/input.js +5 -0
  231. package/types/input.js.map +1 -0
  232. package/types/output.d.ts +331 -0
  233. package/types/output.js +5 -0
  234. package/types/output.js.map +1 -0
  235. package/user.d.ts +236 -0
  236. package/user.js +111 -0
  237. package/user.js.map +1 -0
  238. package/userPublicKeys.d.ts +72 -0
  239. package/userPublicKeys.js +55 -0
  240. package/userPublicKeys.js.map +1 -0
  241. package/utilities.d.ts +4 -0
  242. package/utilities.js +52 -0
  243. package/utilities.js.map +1 -0
  244. package/view.d.ts +145 -0
  245. package/view.js +97 -0
  246. package/view.js.map +1 -0
  247. package/viewGrant.d.ts +165 -0
  248. package/viewGrant.js +101 -0
  249. package/viewGrant.js.map +1 -0
  250. package/warehouse.d.ts +214 -0
  251. package/warehouse.js +96 -0
  252. package/warehouse.js.map +1 -0
  253. package/warehouseGrant.d.ts +107 -0
  254. package/warehouseGrant.js +83 -0
  255. package/warehouseGrant.js.map +1 -0
@@ -0,0 +1,331 @@
1
+ import { output as outputs } from "../types";
2
+ export interface ExternalFunctionArg {
3
+ /**
4
+ * Argument name
5
+ */
6
+ name: string;
7
+ /**
8
+ * Argument type, e.g. VARCHAR
9
+ */
10
+ type: string;
11
+ }
12
+ export interface ExternalFunctionHeader {
13
+ /**
14
+ * Header name
15
+ */
16
+ name: string;
17
+ /**
18
+ * Header value
19
+ */
20
+ value: string;
21
+ }
22
+ export interface ExternalTableColumn {
23
+ /**
24
+ * String that specifies the expression for the column. When queried, the column returns results derived from this expression.
25
+ */
26
+ as: string;
27
+ /**
28
+ * Column name
29
+ */
30
+ name: string;
31
+ /**
32
+ * Column type, e.g. VARIANT
33
+ */
34
+ type: string;
35
+ }
36
+ export interface FunctionArgument {
37
+ /**
38
+ * The argument name
39
+ */
40
+ name: string;
41
+ /**
42
+ * The argument type
43
+ */
44
+ type: string;
45
+ }
46
+ export interface FunctionGrantArgument {
47
+ /**
48
+ * The argument name
49
+ */
50
+ name: string;
51
+ /**
52
+ * The argument type
53
+ */
54
+ type: string;
55
+ }
56
+ export interface GetExternalFunctionsExternalFunction {
57
+ comment: string;
58
+ /**
59
+ * The database from which to return the schemas from.
60
+ */
61
+ database: string;
62
+ language: string;
63
+ name: string;
64
+ /**
65
+ * The schema from which to return the external functions from.
66
+ */
67
+ schema: string;
68
+ }
69
+ export interface GetExternalTablesExternalTable {
70
+ comment: string;
71
+ /**
72
+ * The database from which to return the schemas from.
73
+ */
74
+ database: string;
75
+ name: string;
76
+ /**
77
+ * The schema from which to return the external tables from.
78
+ */
79
+ schema: string;
80
+ }
81
+ export interface GetFileFormatsFileFormat {
82
+ comment: string;
83
+ /**
84
+ * The database from which to return the schemas from.
85
+ */
86
+ database: string;
87
+ formatType: string;
88
+ name: string;
89
+ /**
90
+ * The schema from which to return the file formats from.
91
+ */
92
+ schema: string;
93
+ }
94
+ export interface GetFunctionsFunction {
95
+ argumentTypes: string[];
96
+ comment: string;
97
+ /**
98
+ * The database from which to return the schemas from.
99
+ */
100
+ database: string;
101
+ name: string;
102
+ returnType: string;
103
+ /**
104
+ * The schema from which to return the functions from.
105
+ */
106
+ schema: string;
107
+ }
108
+ export interface GetMaskingPoliciesMaskingPolicy {
109
+ comment: string;
110
+ /**
111
+ * The database from which to return the schemas from.
112
+ */
113
+ database: string;
114
+ kind: string;
115
+ name: string;
116
+ /**
117
+ * The schema from which to return the maskingPolicies from.
118
+ */
119
+ schema: string;
120
+ }
121
+ export interface GetMaterializedViewsMaterializedView {
122
+ comment: string;
123
+ /**
124
+ * The database from which to return the schemas from.
125
+ */
126
+ database: string;
127
+ name: string;
128
+ /**
129
+ * The schema from which to return the views from.
130
+ */
131
+ schema: string;
132
+ }
133
+ export interface GetPipesPipe {
134
+ comment: string;
135
+ /**
136
+ * The database from which to return the schemas from.
137
+ */
138
+ database: string;
139
+ integration: string;
140
+ name: string;
141
+ /**
142
+ * The schema from which to return the pipes from.
143
+ */
144
+ schema: string;
145
+ }
146
+ export interface GetProceduresProcedure {
147
+ argumentTypes: string[];
148
+ comment: string;
149
+ /**
150
+ * The database from which to return the schemas from.
151
+ */
152
+ database: string;
153
+ name: string;
154
+ returnType: string;
155
+ /**
156
+ * The schema from which to return the procedures from.
157
+ */
158
+ schema: string;
159
+ }
160
+ export interface GetResourceMonitorsResourceMonitor {
161
+ comment: string;
162
+ creditQuota: string;
163
+ frequency: string;
164
+ name: string;
165
+ }
166
+ export interface GetRowAccessPoliciesRowAccessPolicy {
167
+ comment: string;
168
+ /**
169
+ * The database from which to return the schemas from.
170
+ */
171
+ database: string;
172
+ name: string;
173
+ /**
174
+ * The schema from which to return the row access policyfrom.
175
+ */
176
+ schema: string;
177
+ }
178
+ export interface GetSchemasSchema {
179
+ comment: string;
180
+ /**
181
+ * The database from which to return the schemas from.
182
+ */
183
+ database: string;
184
+ name: string;
185
+ }
186
+ export interface GetSequencesSequence {
187
+ comment: string;
188
+ /**
189
+ * The database from which to return the schemas from.
190
+ */
191
+ database: string;
192
+ name: string;
193
+ /**
194
+ * The schema from which to return the sequences from.
195
+ */
196
+ schema: string;
197
+ }
198
+ export interface GetStagesStage {
199
+ comment: string;
200
+ /**
201
+ * The database from which to return the schemas from.
202
+ */
203
+ database: string;
204
+ name: string;
205
+ /**
206
+ * The schema from which to return the stages from.
207
+ */
208
+ schema: string;
209
+ storageIntegration: string;
210
+ }
211
+ export interface GetStorageIntegrationsStorageIntegration {
212
+ comment: string;
213
+ enabled: boolean;
214
+ name: string;
215
+ type: string;
216
+ }
217
+ export interface GetStreamsStream {
218
+ comment: string;
219
+ /**
220
+ * The database from which to return the streams from.
221
+ */
222
+ database: string;
223
+ name: string;
224
+ /**
225
+ * The schema from which to return the streams from.
226
+ */
227
+ schema: string;
228
+ table: string;
229
+ }
230
+ export interface GetTablesTable {
231
+ comment: string;
232
+ /**
233
+ * The database from which to return the schemas from.
234
+ */
235
+ database: string;
236
+ name: string;
237
+ /**
238
+ * The schema from which to return the tables from.
239
+ */
240
+ schema: string;
241
+ }
242
+ export interface GetTasksTask {
243
+ comment: string;
244
+ /**
245
+ * The database from which to return the schemas from.
246
+ */
247
+ database: string;
248
+ name: string;
249
+ /**
250
+ * The schema from which to return the tasks from.
251
+ */
252
+ schema: string;
253
+ warehouse: string;
254
+ }
255
+ export interface GetViewsView {
256
+ comment: string;
257
+ /**
258
+ * The database from which to return the schemas from.
259
+ */
260
+ database: string;
261
+ name: string;
262
+ /**
263
+ * The schema from which to return the views from.
264
+ */
265
+ schema: string;
266
+ }
267
+ export interface GetWarehousesWarehouse {
268
+ comment: string;
269
+ name: string;
270
+ scalingPolicy: string;
271
+ size: string;
272
+ state: string;
273
+ type: string;
274
+ }
275
+ export interface ProcedureArgument {
276
+ /**
277
+ * The argument name
278
+ */
279
+ name: string;
280
+ /**
281
+ * The argument type
282
+ */
283
+ type: string;
284
+ }
285
+ export interface ProcedureGrantArgument {
286
+ /**
287
+ * The argument name
288
+ */
289
+ name: string;
290
+ /**
291
+ * The argument type
292
+ */
293
+ type: string;
294
+ }
295
+ export interface TableColumn {
296
+ /**
297
+ * Column comment
298
+ */
299
+ comment?: string;
300
+ /**
301
+ * Defines the column default value; note due to limitations of Snowflake's ALTER TABLE ADD/MODIFY COLUMN updates to default will not be applied
302
+ */
303
+ default?: outputs.TableColumnDefault;
304
+ /**
305
+ * Column name
306
+ */
307
+ name: string;
308
+ /**
309
+ * Whether this column can contain null values. **Note**: Depending on your Snowflake version, the default value will not suffice if this column is used in a primary key constraint.
310
+ */
311
+ nullable?: boolean;
312
+ /**
313
+ * Column type, e.g. VARIANT
314
+ */
315
+ type: string;
316
+ }
317
+ export interface TableColumnDefault {
318
+ constant?: string;
319
+ expression?: string;
320
+ sequence?: string;
321
+ }
322
+ export interface TablePrimaryKey {
323
+ /**
324
+ * Columns to use in primary key
325
+ */
326
+ keys: string[];
327
+ /**
328
+ * Name of constraint
329
+ */
330
+ name?: string;
331
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../types/output.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF"}
package/user.d.ts ADDED
@@ -0,0 +1,236 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * ## Example Usage
4
+ *
5
+ * ```typescript
6
+ * import * as pulumi from "@pulumi/pulumi";
7
+ * import * as snowflake from "@pulumi/snowflake";
8
+ *
9
+ * const user = new snowflake.User("user", {
10
+ * comment: "A user of snowflake.",
11
+ * defaultRole: "role1",
12
+ * defaultWarehouse: "warehouse",
13
+ * disabled: false,
14
+ * displayName: "Snowflake User",
15
+ * email: "user@snowflake.example",
16
+ * firstName: "Snowflake",
17
+ * lastName: "User",
18
+ * loginName: "snowflake_user",
19
+ * mustChangePassword: false,
20
+ * password: "secret",
21
+ * rsaPublicKey: "...",
22
+ * rsaPublicKey2: "...",
23
+ * });
24
+ * ```
25
+ *
26
+ * ## Import
27
+ *
28
+ * ```sh
29
+ * $ pulumi import snowflake:index/user:User example userName
30
+ * ```
31
+ */
32
+ export declare class User extends pulumi.CustomResource {
33
+ /**
34
+ * Get an existing User resource's state with the given name, ID, and optional extra
35
+ * properties used to qualify the lookup.
36
+ *
37
+ * @param name The _unique_ name of the resulting resource.
38
+ * @param id The _unique_ provider ID of the resource to lookup.
39
+ * @param state Any extra arguments used during the lookup.
40
+ * @param opts Optional settings to control the behavior of the CustomResource.
41
+ */
42
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: UserState, opts?: pulumi.CustomResourceOptions): User;
43
+ /**
44
+ * Returns true if the given object is an instance of User. This is designed to work even
45
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
46
+ */
47
+ static isInstance(obj: any): obj is User;
48
+ readonly comment: pulumi.Output<string | undefined>;
49
+ /**
50
+ * Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
51
+ */
52
+ readonly defaultNamespace: pulumi.Output<string | undefined>;
53
+ /**
54
+ * Specifies the role that is active by default for the user’s session upon login.
55
+ */
56
+ readonly defaultRole: pulumi.Output<string>;
57
+ /**
58
+ * Specifies the virtual warehouse that is active by default for the user’s session upon login.
59
+ */
60
+ readonly defaultWarehouse: pulumi.Output<string | undefined>;
61
+ readonly disabled: pulumi.Output<boolean>;
62
+ /**
63
+ * Name displayed for the user in the Snowflake web interface.
64
+ */
65
+ readonly displayName: pulumi.Output<string>;
66
+ /**
67
+ * Email address for the user.
68
+ */
69
+ readonly email: pulumi.Output<string | undefined>;
70
+ /**
71
+ * First name of the user.
72
+ */
73
+ readonly firstName: pulumi.Output<string | undefined>;
74
+ /**
75
+ * Will be true if user as an RSA key set.
76
+ */
77
+ readonly hasRsaPublicKey: pulumi.Output<boolean>;
78
+ /**
79
+ * Last name of the user.
80
+ */
81
+ readonly lastName: pulumi.Output<string | undefined>;
82
+ /**
83
+ * The name users use to log in. If not supplied, snowflake will use name instead.
84
+ */
85
+ readonly loginName: pulumi.Output<string>;
86
+ /**
87
+ * Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
88
+ */
89
+ readonly mustChangePassword: pulumi.Output<boolean | undefined>;
90
+ /**
91
+ * Name of the user. Note that if you do not supply login*name this will be used as login*name. [doc](https://docs.snowflake.net/manuals/sql-reference/sql/create-user.html#required-parameters)
92
+ */
93
+ readonly name: pulumi.Output<string>;
94
+ /**
95
+ * **WARNING:** this will put the password in the terraform state file. Use carefully.
96
+ */
97
+ readonly password: pulumi.Output<string | undefined>;
98
+ /**
99
+ * Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
100
+ */
101
+ readonly rsaPublicKey: pulumi.Output<string | undefined>;
102
+ /**
103
+ * Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
104
+ */
105
+ readonly rsaPublicKey2: pulumi.Output<string | undefined>;
106
+ /**
107
+ * Create a User resource with the given unique name, arguments, and options.
108
+ *
109
+ * @param name The _unique_ name of the resource.
110
+ * @param args The arguments to use to populate this resource's properties.
111
+ * @param opts A bag of options that control this resource's behavior.
112
+ */
113
+ constructor(name: string, args?: UserArgs, opts?: pulumi.CustomResourceOptions);
114
+ }
115
+ /**
116
+ * Input properties used for looking up and filtering User resources.
117
+ */
118
+ export interface UserState {
119
+ comment?: pulumi.Input<string>;
120
+ /**
121
+ * Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
122
+ */
123
+ defaultNamespace?: pulumi.Input<string>;
124
+ /**
125
+ * Specifies the role that is active by default for the user’s session upon login.
126
+ */
127
+ defaultRole?: pulumi.Input<string>;
128
+ /**
129
+ * Specifies the virtual warehouse that is active by default for the user’s session upon login.
130
+ */
131
+ defaultWarehouse?: pulumi.Input<string>;
132
+ disabled?: pulumi.Input<boolean>;
133
+ /**
134
+ * Name displayed for the user in the Snowflake web interface.
135
+ */
136
+ displayName?: pulumi.Input<string>;
137
+ /**
138
+ * Email address for the user.
139
+ */
140
+ email?: pulumi.Input<string>;
141
+ /**
142
+ * First name of the user.
143
+ */
144
+ firstName?: pulumi.Input<string>;
145
+ /**
146
+ * Will be true if user as an RSA key set.
147
+ */
148
+ hasRsaPublicKey?: pulumi.Input<boolean>;
149
+ /**
150
+ * Last name of the user.
151
+ */
152
+ lastName?: pulumi.Input<string>;
153
+ /**
154
+ * The name users use to log in. If not supplied, snowflake will use name instead.
155
+ */
156
+ loginName?: pulumi.Input<string>;
157
+ /**
158
+ * Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
159
+ */
160
+ mustChangePassword?: pulumi.Input<boolean>;
161
+ /**
162
+ * Name of the user. Note that if you do not supply login*name this will be used as login*name. [doc](https://docs.snowflake.net/manuals/sql-reference/sql/create-user.html#required-parameters)
163
+ */
164
+ name?: pulumi.Input<string>;
165
+ /**
166
+ * **WARNING:** this will put the password in the terraform state file. Use carefully.
167
+ */
168
+ password?: pulumi.Input<string>;
169
+ /**
170
+ * Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
171
+ */
172
+ rsaPublicKey?: pulumi.Input<string>;
173
+ /**
174
+ * Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
175
+ */
176
+ rsaPublicKey2?: pulumi.Input<string>;
177
+ }
178
+ /**
179
+ * The set of arguments for constructing a User resource.
180
+ */
181
+ export interface UserArgs {
182
+ comment?: pulumi.Input<string>;
183
+ /**
184
+ * Specifies the namespace (database only or database and schema) that is active by default for the user’s session upon login.
185
+ */
186
+ defaultNamespace?: pulumi.Input<string>;
187
+ /**
188
+ * Specifies the role that is active by default for the user’s session upon login.
189
+ */
190
+ defaultRole?: pulumi.Input<string>;
191
+ /**
192
+ * Specifies the virtual warehouse that is active by default for the user’s session upon login.
193
+ */
194
+ defaultWarehouse?: pulumi.Input<string>;
195
+ disabled?: pulumi.Input<boolean>;
196
+ /**
197
+ * Name displayed for the user in the Snowflake web interface.
198
+ */
199
+ displayName?: pulumi.Input<string>;
200
+ /**
201
+ * Email address for the user.
202
+ */
203
+ email?: pulumi.Input<string>;
204
+ /**
205
+ * First name of the user.
206
+ */
207
+ firstName?: pulumi.Input<string>;
208
+ /**
209
+ * Last name of the user.
210
+ */
211
+ lastName?: pulumi.Input<string>;
212
+ /**
213
+ * The name users use to log in. If not supplied, snowflake will use name instead.
214
+ */
215
+ loginName?: pulumi.Input<string>;
216
+ /**
217
+ * Specifies whether the user is forced to change their password on next login (including their first/initial login) into the system.
218
+ */
219
+ mustChangePassword?: pulumi.Input<boolean>;
220
+ /**
221
+ * Name of the user. Note that if you do not supply login*name this will be used as login*name. [doc](https://docs.snowflake.net/manuals/sql-reference/sql/create-user.html#required-parameters)
222
+ */
223
+ name?: pulumi.Input<string>;
224
+ /**
225
+ * **WARNING:** this will put the password in the terraform state file. Use carefully.
226
+ */
227
+ password?: pulumi.Input<string>;
228
+ /**
229
+ * Specifies the user’s RSA public key; used for key-pair authentication. Must be on 1 line without header and trailer.
230
+ */
231
+ rsaPublicKey?: pulumi.Input<string>;
232
+ /**
233
+ * Specifies the user’s second RSA public key; used to rotate the public and private keys for key-pair authentication based on an expiration schedule set by your organization. Must be on 1 line without header and trailer.
234
+ */
235
+ rsaPublicKey2?: pulumi.Input<string>;
236
+ }
package/user.js ADDED
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.User = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as snowflake from "@pulumi/snowflake";
14
+ *
15
+ * const user = new snowflake.User("user", {
16
+ * comment: "A user of snowflake.",
17
+ * defaultRole: "role1",
18
+ * defaultWarehouse: "warehouse",
19
+ * disabled: false,
20
+ * displayName: "Snowflake User",
21
+ * email: "user@snowflake.example",
22
+ * firstName: "Snowflake",
23
+ * lastName: "User",
24
+ * loginName: "snowflake_user",
25
+ * mustChangePassword: false,
26
+ * password: "secret",
27
+ * rsaPublicKey: "...",
28
+ * rsaPublicKey2: "...",
29
+ * });
30
+ * ```
31
+ *
32
+ * ## Import
33
+ *
34
+ * ```sh
35
+ * $ pulumi import snowflake:index/user:User example userName
36
+ * ```
37
+ */
38
+ class User extends pulumi.CustomResource {
39
+ constructor(name, argsOrState, opts) {
40
+ let inputs = {};
41
+ opts = opts || {};
42
+ if (opts.id) {
43
+ const state = argsOrState;
44
+ inputs["comment"] = state ? state.comment : undefined;
45
+ inputs["defaultNamespace"] = state ? state.defaultNamespace : undefined;
46
+ inputs["defaultRole"] = state ? state.defaultRole : undefined;
47
+ inputs["defaultWarehouse"] = state ? state.defaultWarehouse : undefined;
48
+ inputs["disabled"] = state ? state.disabled : undefined;
49
+ inputs["displayName"] = state ? state.displayName : undefined;
50
+ inputs["email"] = state ? state.email : undefined;
51
+ inputs["firstName"] = state ? state.firstName : undefined;
52
+ inputs["hasRsaPublicKey"] = state ? state.hasRsaPublicKey : undefined;
53
+ inputs["lastName"] = state ? state.lastName : undefined;
54
+ inputs["loginName"] = state ? state.loginName : undefined;
55
+ inputs["mustChangePassword"] = state ? state.mustChangePassword : undefined;
56
+ inputs["name"] = state ? state.name : undefined;
57
+ inputs["password"] = state ? state.password : undefined;
58
+ inputs["rsaPublicKey"] = state ? state.rsaPublicKey : undefined;
59
+ inputs["rsaPublicKey2"] = state ? state.rsaPublicKey2 : undefined;
60
+ }
61
+ else {
62
+ const args = argsOrState;
63
+ inputs["comment"] = args ? args.comment : undefined;
64
+ inputs["defaultNamespace"] = args ? args.defaultNamespace : undefined;
65
+ inputs["defaultRole"] = args ? args.defaultRole : undefined;
66
+ inputs["defaultWarehouse"] = args ? args.defaultWarehouse : undefined;
67
+ inputs["disabled"] = args ? args.disabled : undefined;
68
+ inputs["displayName"] = args ? args.displayName : undefined;
69
+ inputs["email"] = args ? args.email : undefined;
70
+ inputs["firstName"] = args ? args.firstName : undefined;
71
+ inputs["lastName"] = args ? args.lastName : undefined;
72
+ inputs["loginName"] = args ? args.loginName : undefined;
73
+ inputs["mustChangePassword"] = args ? args.mustChangePassword : undefined;
74
+ inputs["name"] = args ? args.name : undefined;
75
+ inputs["password"] = args ? args.password : undefined;
76
+ inputs["rsaPublicKey"] = args ? args.rsaPublicKey : undefined;
77
+ inputs["rsaPublicKey2"] = args ? args.rsaPublicKey2 : undefined;
78
+ inputs["hasRsaPublicKey"] = undefined /*out*/;
79
+ }
80
+ if (!opts.version) {
81
+ opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
82
+ }
83
+ super(User.__pulumiType, name, inputs, opts);
84
+ }
85
+ /**
86
+ * Get an existing User resource's state with the given name, ID, and optional extra
87
+ * properties used to qualify the lookup.
88
+ *
89
+ * @param name The _unique_ name of the resulting resource.
90
+ * @param id The _unique_ provider ID of the resource to lookup.
91
+ * @param state Any extra arguments used during the lookup.
92
+ * @param opts Optional settings to control the behavior of the CustomResource.
93
+ */
94
+ static get(name, id, state, opts) {
95
+ return new User(name, state, Object.assign(Object.assign({}, opts), { id: id }));
96
+ }
97
+ /**
98
+ * Returns true if the given object is an instance of User. This is designed to work even
99
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
100
+ */
101
+ static isInstance(obj) {
102
+ if (obj === undefined || obj === null) {
103
+ return false;
104
+ }
105
+ return obj['__pulumiType'] === User.__pulumiType;
106
+ }
107
+ }
108
+ exports.User = User;
109
+ /** @internal */
110
+ User.__pulumiType = 'snowflake:index/user:User';
111
+ //# sourceMappingURL=user.js.map
package/user.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../user.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IA+F3C,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,MAAM,GAAkB,EAAE,CAAC;QAC/B,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,MAAM,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,MAAM,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,MAAM,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,MAAM,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC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