@pulumi/snowflake 0.35.0 → 0.35.1-alpha.1696372187

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 (49) hide show
  1. package/externalFunction.d.ts +3 -3
  2. package/externalTable.d.ts +9 -9
  3. package/failoverGroup.d.ts +3 -3
  4. package/function.d.ts +3 -3
  5. package/getExternalFunctions.d.ts +0 -12
  6. package/getExternalFunctions.js.map +1 -1
  7. package/getExternalTables.d.ts +0 -12
  8. package/getExternalTables.js.map +1 -1
  9. package/getFileFormats.d.ts +0 -12
  10. package/getFileFormats.js.map +1 -1
  11. package/getFunctions.d.ts +0 -12
  12. package/getFunctions.js.map +1 -1
  13. package/getMaskingPolicies.d.ts +0 -12
  14. package/getMaskingPolicies.js.map +1 -1
  15. package/getMaterializedViews.d.ts +0 -12
  16. package/getMaterializedViews.js.map +1 -1
  17. package/getPipes.d.ts +0 -12
  18. package/getPipes.js.map +1 -1
  19. package/getProcedures.d.ts +0 -12
  20. package/getProcedures.js.map +1 -1
  21. package/getRowAccessPolicies.d.ts +0 -12
  22. package/getRowAccessPolicies.js.map +1 -1
  23. package/getSchemas.d.ts +0 -6
  24. package/getSchemas.js.map +1 -1
  25. package/getSequences.d.ts +0 -12
  26. package/getSequences.js.map +1 -1
  27. package/getStages.d.ts +0 -12
  28. package/getStages.js.map +1 -1
  29. package/getStreams.d.ts +0 -12
  30. package/getStreams.js.map +1 -1
  31. package/getTables.d.ts +0 -12
  32. package/getTables.js.map +1 -1
  33. package/getTasks.d.ts +0 -12
  34. package/getTasks.js.map +1 -1
  35. package/getViews.d.ts +0 -12
  36. package/getViews.js.map +1 -1
  37. package/maskingPolicy.d.ts +3 -3
  38. package/materializedView.d.ts +9 -9
  39. package/package.json +1 -1
  40. package/procedure.d.ts +3 -3
  41. package/role.d.ts +9 -0
  42. package/role.js.map +1 -1
  43. package/schema.d.ts +6 -6
  44. package/stage.d.ts +9 -9
  45. package/table.d.ts +12 -12
  46. package/tableConstraint.d.ts +6 -6
  47. package/types/input.d.ts +63 -3
  48. package/types/output.d.ts +57 -96
  49. package/view.d.ts +9 -9
package/types/output.d.ts CHANGED
@@ -10,7 +10,13 @@ export interface AlertAlertSchedule {
10
10
  interval?: number;
11
11
  }
12
12
  export interface AlertAlertScheduleCron {
13
+ /**
14
+ * Specifies the cron expression for the alert. The cron expression must be in the following format: "minute hour day-of-month month day-of-week". The following values are supported: minute: 0-59 hour: 0-23 day-of-month: 1-31 month: 1-12 day-of-week: 0-6 (0 is Sunday)
15
+ */
13
16
  expression: string;
17
+ /**
18
+ * Specifies the time zone for alert refresh.
19
+ */
14
20
  timeZone: string;
15
21
  }
16
22
  export interface DatabaseReplicationConfiguration {
@@ -94,7 +100,13 @@ export interface FailoverGroupReplicationSchedule {
94
100
  interval?: number;
95
101
  }
96
102
  export interface FailoverGroupReplicationScheduleCron {
103
+ /**
104
+ * Specifies the cron expression for the replication schedule. The cron expression must be in the following format: "minute hour day-of-month month day-of-week". The following values are supported: minute: 0-59 hour: 0-23 day-of-month: 1-31 month: 1-12 day-of-week: 0-6 (0 is Sunday)
105
+ */
97
106
  expression: string;
107
+ /**
108
+ * Specifies the time zone for secondary group refresh.
109
+ */
98
110
  timeZone: string;
99
111
  }
100
112
  export interface FunctionArgument {
@@ -157,27 +169,15 @@ export interface GetDatabasesDatabaseReplicationConfiguration {
157
169
  }
158
170
  export interface GetExternalFunctionsExternalFunction {
159
171
  comment: string;
160
- /**
161
- * The database from which to return the schemas from.
162
- */
163
172
  database: string;
164
173
  language: string;
165
174
  name: string;
166
- /**
167
- * The schema from which to return the external functions from.
168
- */
169
175
  schema: string;
170
176
  }
171
177
  export interface GetExternalTablesExternalTable {
172
178
  comment: string;
173
- /**
174
- * The database from which to return the schemas from.
175
- */
176
179
  database: string;
177
180
  name: string;
178
- /**
179
- * The schema from which to return the external tables from.
180
- */
181
181
  schema: string;
182
182
  }
183
183
  export interface GetFailoverGroupsFailoverGroup {
@@ -201,29 +201,17 @@ export interface GetFailoverGroupsFailoverGroup {
201
201
  }
202
202
  export interface GetFileFormatsFileFormat {
203
203
  comment: string;
204
- /**
205
- * The database from which to return the schemas from.
206
- */
207
204
  database: string;
208
205
  formatType: string;
209
206
  name: string;
210
- /**
211
- * The schema from which to return the file formats from.
212
- */
213
207
  schema: string;
214
208
  }
215
209
  export interface GetFunctionsFunction {
216
210
  argumentTypes: string[];
217
211
  comment: string;
218
- /**
219
- * The database from which to return the schemas from.
220
- */
221
212
  database: string;
222
213
  name: string;
223
214
  returnType: string;
224
- /**
225
- * The schema from which to return the functions from.
226
- */
227
215
  schema: string;
228
216
  }
229
217
  export interface GetGrantsFutureGrantsIn {
@@ -237,7 +225,13 @@ export interface GetGrantsFutureGrantsIn {
237
225
  schema?: outputs.GetGrantsFutureGrantsInSchema;
238
226
  }
239
227
  export interface GetGrantsFutureGrantsInSchema {
228
+ /**
229
+ * The database in which the scehma resides. Optional when querying a schema in the current database.
230
+ */
240
231
  databaseName?: string;
232
+ /**
233
+ * The name of the schema to list all privileges of new (ie. future) objects granted to
234
+ */
241
235
  schemaName: string;
242
236
  }
243
237
  export interface GetGrantsFutureGrantsTo {
@@ -296,27 +290,15 @@ export interface GetGrantsGrantsTo {
296
290
  }
297
291
  export interface GetMaskingPoliciesMaskingPolicy {
298
292
  comment: string;
299
- /**
300
- * The database from which to return the schemas from.
301
- */
302
293
  database: string;
303
294
  kind: string;
304
295
  name: string;
305
- /**
306
- * The schema from which to return the maskingPolicies from.
307
- */
308
296
  schema: string;
309
297
  }
310
298
  export interface GetMaterializedViewsMaterializedView {
311
299
  comment: string;
312
- /**
313
- * The database from which to return the schemas from.
314
- */
315
300
  database: string;
316
301
  name: string;
317
- /**
318
- * The schema from which to return the views from.
319
- */
320
302
  schema: string;
321
303
  }
322
304
  export interface GetParametersParameter {
@@ -328,29 +310,17 @@ export interface GetParametersParameter {
328
310
  }
329
311
  export interface GetPipesPipe {
330
312
  comment: string;
331
- /**
332
- * The database from which to return the schemas from.
333
- */
334
313
  database: string;
335
314
  integration: string;
336
315
  name: string;
337
- /**
338
- * The schema from which to return the pipes from.
339
- */
340
316
  schema: string;
341
317
  }
342
318
  export interface GetProceduresProcedure {
343
319
  argumentTypes: string[];
344
320
  comment: string;
345
- /**
346
- * The database from which to return the schemas from.
347
- */
348
321
  database: string;
349
322
  name: string;
350
323
  returnType: string;
351
- /**
352
- * The schema from which to return the procedures from.
353
- */
354
324
  schema: string;
355
325
  }
356
326
  export interface GetResourceMonitorsResourceMonitor {
@@ -366,34 +336,19 @@ export interface GetRolesRole {
366
336
  }
367
337
  export interface GetRowAccessPoliciesRowAccessPolicy {
368
338
  comment: string;
369
- /**
370
- * The database from which to return the schemas from.
371
- */
372
339
  database: string;
373
340
  name: string;
374
- /**
375
- * The schema from which to return the row access policyfrom.
376
- */
377
341
  schema: string;
378
342
  }
379
343
  export interface GetSchemasSchema {
380
344
  comment: string;
381
- /**
382
- * The database from which to return the schemas from.
383
- */
384
345
  database: string;
385
346
  name: string;
386
347
  }
387
348
  export interface GetSequencesSequence {
388
349
  comment: string;
389
- /**
390
- * The database from which to return the schemas from.
391
- */
392
350
  database: string;
393
351
  name: string;
394
- /**
395
- * The schema from which to return the sequences from.
396
- */
397
352
  schema: string;
398
353
  }
399
354
  export interface GetSharesShare {
@@ -405,14 +360,8 @@ export interface GetSharesShare {
405
360
  }
406
361
  export interface GetStagesStage {
407
362
  comment: string;
408
- /**
409
- * The database from which to return the schemas from.
410
- */
411
363
  database: string;
412
364
  name: string;
413
- /**
414
- * The schema from which to return the stages from.
415
- */
416
365
  schema: string;
417
366
  storageIntegration: string;
418
367
  }
@@ -424,39 +373,21 @@ export interface GetStorageIntegrationsStorageIntegration {
424
373
  }
425
374
  export interface GetStreamsStream {
426
375
  comment: string;
427
- /**
428
- * The database from which to return the streams from.
429
- */
430
376
  database: string;
431
377
  name: string;
432
- /**
433
- * The schema from which to return the streams from.
434
- */
435
378
  schema: string;
436
379
  table: string;
437
380
  }
438
381
  export interface GetTablesTable {
439
382
  comment: string;
440
- /**
441
- * The database from which to return the schemas from.
442
- */
443
383
  database: string;
444
384
  name: string;
445
- /**
446
- * The schema from which to return the tables from.
447
- */
448
385
  schema: string;
449
386
  }
450
387
  export interface GetTasksTask {
451
388
  comment: string;
452
- /**
453
- * The database from which to return the schemas from.
454
- */
455
389
  database: string;
456
390
  name: string;
457
- /**
458
- * The schema from which to return the tasks from.
459
- */
460
391
  schema: string;
461
392
  warehouse: string;
462
393
  }
@@ -477,14 +408,8 @@ export interface GetUsersUser {
477
408
  }
478
409
  export interface GetViewsView {
479
410
  comment: string;
480
- /**
481
- * The database from which to return the schemas from.
482
- */
483
411
  database: string;
484
412
  name: string;
485
- /**
486
- * The schema from which to return the views from.
487
- */
488
413
  schema: string;
489
414
  }
490
415
  export interface GetWarehousesWarehouse {
@@ -538,13 +463,31 @@ export interface GrantPrivilegesToRoleOnSchemaObject {
538
463
  objectType?: string;
539
464
  }
540
465
  export interface GrantPrivilegesToRoleOnSchemaObjectAll {
466
+ /**
467
+ * The fully qualified name of the database.
468
+ */
541
469
  inDatabase?: string;
470
+ /**
471
+ * The fully qualified name of the schema.
472
+ */
542
473
  inSchema?: string;
474
+ /**
475
+ * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS
476
+ */
543
477
  objectTypePlural: string;
544
478
  }
545
479
  export interface GrantPrivilegesToRoleOnSchemaObjectFuture {
480
+ /**
481
+ * The fully qualified name of the database.
482
+ */
546
483
  inDatabase?: string;
484
+ /**
485
+ * The fully qualified name of the schema.
486
+ */
547
487
  inSchema?: string;
488
+ /**
489
+ * The plural object type of the schema object on which privileges will be granted. Valid values are: ALERTS | DYNAMIC TABLES | EVENT TABLES | FILE FORMATS | FUNCTIONS | PROCEDURES | SECRETS | SEQUENCES | PIPES | MASKING POLICIES | PASSWORD POLICIES | ROW ACCESS POLICIES | SESSION POLICIES | TAGS | STAGES | STREAMS | TABLES | EXTERNAL TABLES | TASKS | VIEWS | MATERIALIZED VIEWS
490
+ */
548
491
  objectTypePlural: string;
549
492
  }
550
493
  export interface MaskingPolicySignature {
@@ -552,9 +495,12 @@ export interface MaskingPolicySignature {
552
495
  }
553
496
  export interface MaskingPolicySignatureColumn {
554
497
  /**
555
- * Specifies the identifier for the masking policy; must be unique for the database and schema in which the masking policy is created.
498
+ * Specifies the column name to mask.
556
499
  */
557
500
  name: string;
501
+ /**
502
+ * Specifies the column type to mask.
503
+ */
558
504
  type: string;
559
505
  }
560
506
  export interface MaterializedViewTag {
@@ -684,12 +630,27 @@ export interface TableColumn {
684
630
  type: string;
685
631
  }
686
632
  export interface TableColumnDefault {
633
+ /**
634
+ * The default constant value for the column
635
+ */
687
636
  constant?: string;
637
+ /**
638
+ * The default expression value for the column
639
+ */
688
640
  expression?: string;
641
+ /**
642
+ * The default sequence to use for the column
643
+ */
689
644
  sequence?: string;
690
645
  }
691
646
  export interface TableColumnIdentity {
647
+ /**
648
+ * The number to start incrementing at.
649
+ */
692
650
  startNum?: number;
651
+ /**
652
+ * Step size to increment by.
653
+ */
693
654
  stepNum?: number;
694
655
  }
695
656
  export interface TableConstraintForeignKeyProperties {
@@ -712,11 +673,11 @@ export interface TableConstraintForeignKeyProperties {
712
673
  }
713
674
  export interface TableConstraintForeignKeyPropertiesReferences {
714
675
  /**
715
- * Columns to use in constraint key
676
+ * Columns to use in foreign key reference
716
677
  */
717
678
  columns: string[];
718
679
  /**
719
- * Idenfifier for table to create constraint on. Must be of the form Note: format must follow: "\n\n"."\n\n"."\n\n" or "\n\n.\n\n.\n\n" or "\n\n|\n\n.\n\n" (snowflake*table.my*table.id)
680
+ * Name of constraint
720
681
  */
721
682
  tableId: string;
722
683
  }
package/view.d.ts CHANGED
@@ -55,7 +55,7 @@ export declare class View extends pulumi.CustomResource {
55
55
  */
56
56
  readonly createdOn: pulumi.Output<string>;
57
57
  /**
58
- * The database in which to create the view. Don't use the | character.
58
+ * Name of the database that the tag was created in.
59
59
  */
60
60
  readonly database: pulumi.Output<string>;
61
61
  /**
@@ -63,7 +63,7 @@ export declare class View extends pulumi.CustomResource {
63
63
  */
64
64
  readonly isSecure: pulumi.Output<boolean | undefined>;
65
65
  /**
66
- * Specifies the identifier for the view; must be unique for the schema in which the view is created. Don't use the | character.
66
+ * Tag name, e.g. department.
67
67
  */
68
68
  readonly name: pulumi.Output<string>;
69
69
  /**
@@ -71,7 +71,7 @@ export declare class View extends pulumi.CustomResource {
71
71
  */
72
72
  readonly orReplace: pulumi.Output<boolean | undefined>;
73
73
  /**
74
- * The schema in which to create the view. Don't use the | character.
74
+ * Name of the schema that the tag was created in.
75
75
  */
76
76
  readonly schema: pulumi.Output<string>;
77
77
  /**
@@ -110,7 +110,7 @@ export interface ViewState {
110
110
  */
111
111
  createdOn?: pulumi.Input<string>;
112
112
  /**
113
- * The database in which to create the view. Don't use the | character.
113
+ * Name of the database that the tag was created in.
114
114
  */
115
115
  database?: pulumi.Input<string>;
116
116
  /**
@@ -118,7 +118,7 @@ export interface ViewState {
118
118
  */
119
119
  isSecure?: pulumi.Input<boolean>;
120
120
  /**
121
- * Specifies the identifier for the view; must be unique for the schema in which the view is created. Don't use the | character.
121
+ * Tag name, e.g. department.
122
122
  */
123
123
  name?: pulumi.Input<string>;
124
124
  /**
@@ -126,7 +126,7 @@ export interface ViewState {
126
126
  */
127
127
  orReplace?: pulumi.Input<boolean>;
128
128
  /**
129
- * The schema in which to create the view. Don't use the | character.
129
+ * Name of the schema that the tag was created in.
130
130
  */
131
131
  schema?: pulumi.Input<string>;
132
132
  /**
@@ -153,7 +153,7 @@ export interface ViewArgs {
153
153
  */
154
154
  copyGrants?: pulumi.Input<boolean>;
155
155
  /**
156
- * The database in which to create the view. Don't use the | character.
156
+ * Name of the database that the tag was created in.
157
157
  */
158
158
  database: pulumi.Input<string>;
159
159
  /**
@@ -161,7 +161,7 @@ export interface ViewArgs {
161
161
  */
162
162
  isSecure?: pulumi.Input<boolean>;
163
163
  /**
164
- * Specifies the identifier for the view; must be unique for the schema in which the view is created. Don't use the | character.
164
+ * Tag name, e.g. department.
165
165
  */
166
166
  name?: pulumi.Input<string>;
167
167
  /**
@@ -169,7 +169,7 @@ export interface ViewArgs {
169
169
  */
170
170
  orReplace?: pulumi.Input<boolean>;
171
171
  /**
172
- * The schema in which to create the view. Don't use the | character.
172
+ * Name of the schema that the tag was created in.
173
173
  */
174
174
  schema: pulumi.Input<string>;
175
175
  /**