pulumi-snowflake 0.60.0a1728636583__py3-none-any.whl → 0.60.0a1728941570__py3-none-any.whl

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.

Potentially problematic release.


This version of pulumi-snowflake might be problematic. Click here for more details.

@@ -0,0 +1,631 @@
1
+ # coding=utf-8
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
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from . import _utilities
16
+ from . import outputs
17
+ from ._inputs import *
18
+
19
+ __all__ = ['StreamOnTableArgs', 'StreamOnTable']
20
+
21
+ @pulumi.input_type
22
+ class StreamOnTableArgs:
23
+ def __init__(__self__, *,
24
+ database: pulumi.Input[str],
25
+ schema: pulumi.Input[str],
26
+ table: pulumi.Input[str],
27
+ append_only: Optional[pulumi.Input[str]] = None,
28
+ at: Optional[pulumi.Input['StreamOnTableAtArgs']] = None,
29
+ before: Optional[pulumi.Input['StreamOnTableBeforeArgs']] = None,
30
+ comment: Optional[pulumi.Input[str]] = None,
31
+ copy_grants: Optional[pulumi.Input[bool]] = None,
32
+ name: Optional[pulumi.Input[str]] = None,
33
+ show_initial_rows: Optional[pulumi.Input[str]] = None):
34
+ """
35
+ The set of arguments for constructing a StreamOnTable resource.
36
+ :param pulumi.Input[str] database: The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
37
+ :param pulumi.Input[str] schema: The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
38
+ :param pulumi.Input[str] table: Specifies an identifier for the table the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
39
+ :param pulumi.Input[str] append_only: Specifies whether this is an append-only stream. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
40
+ :param pulumi.Input[str] comment: Specifies a comment for the stream.
41
+ :param pulumi.Input[bool] copy_grants: Retains the access permissions from the original stream when a stream is recreated using the OR REPLACE clause. That is sometimes used when the provider detects changes for fields that can not be changed by ALTER. This value will not have any effect when creating a new stream.
42
+ :param pulumi.Input[str] name: Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
43
+ """
44
+ pulumi.set(__self__, "database", database)
45
+ pulumi.set(__self__, "schema", schema)
46
+ pulumi.set(__self__, "table", table)
47
+ if append_only is not None:
48
+ pulumi.set(__self__, "append_only", append_only)
49
+ if at is not None:
50
+ pulumi.set(__self__, "at", at)
51
+ if before is not None:
52
+ pulumi.set(__self__, "before", before)
53
+ if comment is not None:
54
+ pulumi.set(__self__, "comment", comment)
55
+ if copy_grants is not None:
56
+ pulumi.set(__self__, "copy_grants", copy_grants)
57
+ if name is not None:
58
+ pulumi.set(__self__, "name", name)
59
+ if show_initial_rows is not None:
60
+ pulumi.set(__self__, "show_initial_rows", show_initial_rows)
61
+
62
+ @property
63
+ @pulumi.getter
64
+ def database(self) -> pulumi.Input[str]:
65
+ """
66
+ The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
67
+ """
68
+ return pulumi.get(self, "database")
69
+
70
+ @database.setter
71
+ def database(self, value: pulumi.Input[str]):
72
+ pulumi.set(self, "database", value)
73
+
74
+ @property
75
+ @pulumi.getter
76
+ def schema(self) -> pulumi.Input[str]:
77
+ """
78
+ The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
79
+ """
80
+ return pulumi.get(self, "schema")
81
+
82
+ @schema.setter
83
+ def schema(self, value: pulumi.Input[str]):
84
+ pulumi.set(self, "schema", value)
85
+
86
+ @property
87
+ @pulumi.getter
88
+ def table(self) -> pulumi.Input[str]:
89
+ """
90
+ Specifies an identifier for the table the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
91
+ """
92
+ return pulumi.get(self, "table")
93
+
94
+ @table.setter
95
+ def table(self, value: pulumi.Input[str]):
96
+ pulumi.set(self, "table", value)
97
+
98
+ @property
99
+ @pulumi.getter(name="appendOnly")
100
+ def append_only(self) -> Optional[pulumi.Input[str]]:
101
+ """
102
+ Specifies whether this is an append-only stream. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
103
+ """
104
+ return pulumi.get(self, "append_only")
105
+
106
+ @append_only.setter
107
+ def append_only(self, value: Optional[pulumi.Input[str]]):
108
+ pulumi.set(self, "append_only", value)
109
+
110
+ @property
111
+ @pulumi.getter
112
+ def at(self) -> Optional[pulumi.Input['StreamOnTableAtArgs']]:
113
+ return pulumi.get(self, "at")
114
+
115
+ @at.setter
116
+ def at(self, value: Optional[pulumi.Input['StreamOnTableAtArgs']]):
117
+ pulumi.set(self, "at", value)
118
+
119
+ @property
120
+ @pulumi.getter
121
+ def before(self) -> Optional[pulumi.Input['StreamOnTableBeforeArgs']]:
122
+ return pulumi.get(self, "before")
123
+
124
+ @before.setter
125
+ def before(self, value: Optional[pulumi.Input['StreamOnTableBeforeArgs']]):
126
+ pulumi.set(self, "before", value)
127
+
128
+ @property
129
+ @pulumi.getter
130
+ def comment(self) -> Optional[pulumi.Input[str]]:
131
+ """
132
+ Specifies a comment for the stream.
133
+ """
134
+ return pulumi.get(self, "comment")
135
+
136
+ @comment.setter
137
+ def comment(self, value: Optional[pulumi.Input[str]]):
138
+ pulumi.set(self, "comment", value)
139
+
140
+ @property
141
+ @pulumi.getter(name="copyGrants")
142
+ def copy_grants(self) -> Optional[pulumi.Input[bool]]:
143
+ """
144
+ Retains the access permissions from the original stream when a stream is recreated using the OR REPLACE clause. That is sometimes used when the provider detects changes for fields that can not be changed by ALTER. This value will not have any effect when creating a new stream.
145
+ """
146
+ return pulumi.get(self, "copy_grants")
147
+
148
+ @copy_grants.setter
149
+ def copy_grants(self, value: Optional[pulumi.Input[bool]]):
150
+ pulumi.set(self, "copy_grants", value)
151
+
152
+ @property
153
+ @pulumi.getter
154
+ def name(self) -> Optional[pulumi.Input[str]]:
155
+ """
156
+ Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
157
+ """
158
+ return pulumi.get(self, "name")
159
+
160
+ @name.setter
161
+ def name(self, value: Optional[pulumi.Input[str]]):
162
+ pulumi.set(self, "name", value)
163
+
164
+ @property
165
+ @pulumi.getter(name="showInitialRows")
166
+ def show_initial_rows(self) -> Optional[pulumi.Input[str]]:
167
+ return pulumi.get(self, "show_initial_rows")
168
+
169
+ @show_initial_rows.setter
170
+ def show_initial_rows(self, value: Optional[pulumi.Input[str]]):
171
+ pulumi.set(self, "show_initial_rows", value)
172
+
173
+
174
+ @pulumi.input_type
175
+ class _StreamOnTableState:
176
+ def __init__(__self__, *,
177
+ append_only: Optional[pulumi.Input[str]] = None,
178
+ at: Optional[pulumi.Input['StreamOnTableAtArgs']] = None,
179
+ before: Optional[pulumi.Input['StreamOnTableBeforeArgs']] = None,
180
+ comment: Optional[pulumi.Input[str]] = None,
181
+ copy_grants: Optional[pulumi.Input[bool]] = None,
182
+ database: Optional[pulumi.Input[str]] = None,
183
+ describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['StreamOnTableDescribeOutputArgs']]]] = None,
184
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
185
+ name: Optional[pulumi.Input[str]] = None,
186
+ schema: Optional[pulumi.Input[str]] = None,
187
+ show_initial_rows: Optional[pulumi.Input[str]] = None,
188
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['StreamOnTableShowOutputArgs']]]] = None,
189
+ table: Optional[pulumi.Input[str]] = None):
190
+ """
191
+ Input properties used for looking up and filtering StreamOnTable resources.
192
+ :param pulumi.Input[str] append_only: Specifies whether this is an append-only stream. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
193
+ :param pulumi.Input[str] comment: Specifies a comment for the stream.
194
+ :param pulumi.Input[bool] copy_grants: Retains the access permissions from the original stream when a stream is recreated using the OR REPLACE clause. That is sometimes used when the provider detects changes for fields that can not be changed by ALTER. This value will not have any effect when creating a new stream.
195
+ :param pulumi.Input[str] database: The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
196
+ :param pulumi.Input[Sequence[pulumi.Input['StreamOnTableDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE STREAM` for the given stream.
197
+ :param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
198
+ :param pulumi.Input[str] name: Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
199
+ :param pulumi.Input[str] schema: The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
200
+ :param pulumi.Input[Sequence[pulumi.Input['StreamOnTableShowOutputArgs']]] show_outputs: Outputs the result of `SHOW STREAMS` for the given stream.
201
+ :param pulumi.Input[str] table: Specifies an identifier for the table the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
202
+ """
203
+ if append_only is not None:
204
+ pulumi.set(__self__, "append_only", append_only)
205
+ if at is not None:
206
+ pulumi.set(__self__, "at", at)
207
+ if before is not None:
208
+ pulumi.set(__self__, "before", before)
209
+ if comment is not None:
210
+ pulumi.set(__self__, "comment", comment)
211
+ if copy_grants is not None:
212
+ pulumi.set(__self__, "copy_grants", copy_grants)
213
+ if database is not None:
214
+ pulumi.set(__self__, "database", database)
215
+ if describe_outputs is not None:
216
+ pulumi.set(__self__, "describe_outputs", describe_outputs)
217
+ if fully_qualified_name is not None:
218
+ pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
219
+ if name is not None:
220
+ pulumi.set(__self__, "name", name)
221
+ if schema is not None:
222
+ pulumi.set(__self__, "schema", schema)
223
+ if show_initial_rows is not None:
224
+ pulumi.set(__self__, "show_initial_rows", show_initial_rows)
225
+ if show_outputs is not None:
226
+ pulumi.set(__self__, "show_outputs", show_outputs)
227
+ if table is not None:
228
+ pulumi.set(__self__, "table", table)
229
+
230
+ @property
231
+ @pulumi.getter(name="appendOnly")
232
+ def append_only(self) -> Optional[pulumi.Input[str]]:
233
+ """
234
+ Specifies whether this is an append-only stream. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
235
+ """
236
+ return pulumi.get(self, "append_only")
237
+
238
+ @append_only.setter
239
+ def append_only(self, value: Optional[pulumi.Input[str]]):
240
+ pulumi.set(self, "append_only", value)
241
+
242
+ @property
243
+ @pulumi.getter
244
+ def at(self) -> Optional[pulumi.Input['StreamOnTableAtArgs']]:
245
+ return pulumi.get(self, "at")
246
+
247
+ @at.setter
248
+ def at(self, value: Optional[pulumi.Input['StreamOnTableAtArgs']]):
249
+ pulumi.set(self, "at", value)
250
+
251
+ @property
252
+ @pulumi.getter
253
+ def before(self) -> Optional[pulumi.Input['StreamOnTableBeforeArgs']]:
254
+ return pulumi.get(self, "before")
255
+
256
+ @before.setter
257
+ def before(self, value: Optional[pulumi.Input['StreamOnTableBeforeArgs']]):
258
+ pulumi.set(self, "before", value)
259
+
260
+ @property
261
+ @pulumi.getter
262
+ def comment(self) -> Optional[pulumi.Input[str]]:
263
+ """
264
+ Specifies a comment for the stream.
265
+ """
266
+ return pulumi.get(self, "comment")
267
+
268
+ @comment.setter
269
+ def comment(self, value: Optional[pulumi.Input[str]]):
270
+ pulumi.set(self, "comment", value)
271
+
272
+ @property
273
+ @pulumi.getter(name="copyGrants")
274
+ def copy_grants(self) -> Optional[pulumi.Input[bool]]:
275
+ """
276
+ Retains the access permissions from the original stream when a stream is recreated using the OR REPLACE clause. That is sometimes used when the provider detects changes for fields that can not be changed by ALTER. This value will not have any effect when creating a new stream.
277
+ """
278
+ return pulumi.get(self, "copy_grants")
279
+
280
+ @copy_grants.setter
281
+ def copy_grants(self, value: Optional[pulumi.Input[bool]]):
282
+ pulumi.set(self, "copy_grants", value)
283
+
284
+ @property
285
+ @pulumi.getter
286
+ def database(self) -> Optional[pulumi.Input[str]]:
287
+ """
288
+ The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
289
+ """
290
+ return pulumi.get(self, "database")
291
+
292
+ @database.setter
293
+ def database(self, value: Optional[pulumi.Input[str]]):
294
+ pulumi.set(self, "database", value)
295
+
296
+ @property
297
+ @pulumi.getter(name="describeOutputs")
298
+ def describe_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['StreamOnTableDescribeOutputArgs']]]]:
299
+ """
300
+ Outputs the result of `DESCRIBE STREAM` for the given stream.
301
+ """
302
+ return pulumi.get(self, "describe_outputs")
303
+
304
+ @describe_outputs.setter
305
+ def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['StreamOnTableDescribeOutputArgs']]]]):
306
+ pulumi.set(self, "describe_outputs", value)
307
+
308
+ @property
309
+ @pulumi.getter(name="fullyQualifiedName")
310
+ def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
311
+ """
312
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
313
+ """
314
+ return pulumi.get(self, "fully_qualified_name")
315
+
316
+ @fully_qualified_name.setter
317
+ def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
318
+ pulumi.set(self, "fully_qualified_name", value)
319
+
320
+ @property
321
+ @pulumi.getter
322
+ def name(self) -> Optional[pulumi.Input[str]]:
323
+ """
324
+ Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
325
+ """
326
+ return pulumi.get(self, "name")
327
+
328
+ @name.setter
329
+ def name(self, value: Optional[pulumi.Input[str]]):
330
+ pulumi.set(self, "name", value)
331
+
332
+ @property
333
+ @pulumi.getter
334
+ def schema(self) -> Optional[pulumi.Input[str]]:
335
+ """
336
+ The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
337
+ """
338
+ return pulumi.get(self, "schema")
339
+
340
+ @schema.setter
341
+ def schema(self, value: Optional[pulumi.Input[str]]):
342
+ pulumi.set(self, "schema", value)
343
+
344
+ @property
345
+ @pulumi.getter(name="showInitialRows")
346
+ def show_initial_rows(self) -> Optional[pulumi.Input[str]]:
347
+ return pulumi.get(self, "show_initial_rows")
348
+
349
+ @show_initial_rows.setter
350
+ def show_initial_rows(self, value: Optional[pulumi.Input[str]]):
351
+ pulumi.set(self, "show_initial_rows", value)
352
+
353
+ @property
354
+ @pulumi.getter(name="showOutputs")
355
+ def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['StreamOnTableShowOutputArgs']]]]:
356
+ """
357
+ Outputs the result of `SHOW STREAMS` for the given stream.
358
+ """
359
+ return pulumi.get(self, "show_outputs")
360
+
361
+ @show_outputs.setter
362
+ def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['StreamOnTableShowOutputArgs']]]]):
363
+ pulumi.set(self, "show_outputs", value)
364
+
365
+ @property
366
+ @pulumi.getter
367
+ def table(self) -> Optional[pulumi.Input[str]]:
368
+ """
369
+ Specifies an identifier for the table the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
370
+ """
371
+ return pulumi.get(self, "table")
372
+
373
+ @table.setter
374
+ def table(self, value: Optional[pulumi.Input[str]]):
375
+ pulumi.set(self, "table", value)
376
+
377
+
378
+ class StreamOnTable(pulumi.CustomResource):
379
+ @overload
380
+ def __init__(__self__,
381
+ resource_name: str,
382
+ opts: Optional[pulumi.ResourceOptions] = None,
383
+ append_only: Optional[pulumi.Input[str]] = None,
384
+ at: Optional[pulumi.Input[Union['StreamOnTableAtArgs', 'StreamOnTableAtArgsDict']]] = None,
385
+ before: Optional[pulumi.Input[Union['StreamOnTableBeforeArgs', 'StreamOnTableBeforeArgsDict']]] = None,
386
+ comment: Optional[pulumi.Input[str]] = None,
387
+ copy_grants: Optional[pulumi.Input[bool]] = None,
388
+ database: Optional[pulumi.Input[str]] = None,
389
+ name: Optional[pulumi.Input[str]] = None,
390
+ schema: Optional[pulumi.Input[str]] = None,
391
+ show_initial_rows: Optional[pulumi.Input[str]] = None,
392
+ table: Optional[pulumi.Input[str]] = None,
393
+ __props__=None):
394
+ """
395
+ ## Import
396
+
397
+ ```sh
398
+ $ pulumi import snowflake:index/streamOnTable:StreamOnTable example '"<database_name>"."<schema_name>"."<stream_name>"'
399
+ ```
400
+
401
+ :param str resource_name: The name of the resource.
402
+ :param pulumi.ResourceOptions opts: Options for the resource.
403
+ :param pulumi.Input[str] append_only: Specifies whether this is an append-only stream. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
404
+ :param pulumi.Input[str] comment: Specifies a comment for the stream.
405
+ :param pulumi.Input[bool] copy_grants: Retains the access permissions from the original stream when a stream is recreated using the OR REPLACE clause. That is sometimes used when the provider detects changes for fields that can not be changed by ALTER. This value will not have any effect when creating a new stream.
406
+ :param pulumi.Input[str] database: The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
407
+ :param pulumi.Input[str] name: Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
408
+ :param pulumi.Input[str] schema: The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
409
+ :param pulumi.Input[str] table: Specifies an identifier for the table the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
410
+ """
411
+ ...
412
+ @overload
413
+ def __init__(__self__,
414
+ resource_name: str,
415
+ args: StreamOnTableArgs,
416
+ opts: Optional[pulumi.ResourceOptions] = None):
417
+ """
418
+ ## Import
419
+
420
+ ```sh
421
+ $ pulumi import snowflake:index/streamOnTable:StreamOnTable example '"<database_name>"."<schema_name>"."<stream_name>"'
422
+ ```
423
+
424
+ :param str resource_name: The name of the resource.
425
+ :param StreamOnTableArgs args: The arguments to use to populate this resource's properties.
426
+ :param pulumi.ResourceOptions opts: Options for the resource.
427
+ """
428
+ ...
429
+ def __init__(__self__, resource_name: str, *args, **kwargs):
430
+ resource_args, opts = _utilities.get_resource_args_opts(StreamOnTableArgs, pulumi.ResourceOptions, *args, **kwargs)
431
+ if resource_args is not None:
432
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
433
+ else:
434
+ __self__._internal_init(resource_name, *args, **kwargs)
435
+
436
+ def _internal_init(__self__,
437
+ resource_name: str,
438
+ opts: Optional[pulumi.ResourceOptions] = None,
439
+ append_only: Optional[pulumi.Input[str]] = None,
440
+ at: Optional[pulumi.Input[Union['StreamOnTableAtArgs', 'StreamOnTableAtArgsDict']]] = None,
441
+ before: Optional[pulumi.Input[Union['StreamOnTableBeforeArgs', 'StreamOnTableBeforeArgsDict']]] = None,
442
+ comment: Optional[pulumi.Input[str]] = None,
443
+ copy_grants: Optional[pulumi.Input[bool]] = None,
444
+ database: Optional[pulumi.Input[str]] = None,
445
+ name: Optional[pulumi.Input[str]] = None,
446
+ schema: Optional[pulumi.Input[str]] = None,
447
+ show_initial_rows: Optional[pulumi.Input[str]] = None,
448
+ table: Optional[pulumi.Input[str]] = None,
449
+ __props__=None):
450
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
451
+ if not isinstance(opts, pulumi.ResourceOptions):
452
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
453
+ if opts.id is None:
454
+ if __props__ is not None:
455
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
456
+ __props__ = StreamOnTableArgs.__new__(StreamOnTableArgs)
457
+
458
+ __props__.__dict__["append_only"] = append_only
459
+ __props__.__dict__["at"] = at
460
+ __props__.__dict__["before"] = before
461
+ __props__.__dict__["comment"] = comment
462
+ __props__.__dict__["copy_grants"] = copy_grants
463
+ if database is None and not opts.urn:
464
+ raise TypeError("Missing required property 'database'")
465
+ __props__.__dict__["database"] = database
466
+ __props__.__dict__["name"] = name
467
+ if schema is None and not opts.urn:
468
+ raise TypeError("Missing required property 'schema'")
469
+ __props__.__dict__["schema"] = schema
470
+ __props__.__dict__["show_initial_rows"] = show_initial_rows
471
+ if table is None and not opts.urn:
472
+ raise TypeError("Missing required property 'table'")
473
+ __props__.__dict__["table"] = table
474
+ __props__.__dict__["describe_outputs"] = None
475
+ __props__.__dict__["fully_qualified_name"] = None
476
+ __props__.__dict__["show_outputs"] = None
477
+ super(StreamOnTable, __self__).__init__(
478
+ 'snowflake:index/streamOnTable:StreamOnTable',
479
+ resource_name,
480
+ __props__,
481
+ opts)
482
+
483
+ @staticmethod
484
+ def get(resource_name: str,
485
+ id: pulumi.Input[str],
486
+ opts: Optional[pulumi.ResourceOptions] = None,
487
+ append_only: Optional[pulumi.Input[str]] = None,
488
+ at: Optional[pulumi.Input[Union['StreamOnTableAtArgs', 'StreamOnTableAtArgsDict']]] = None,
489
+ before: Optional[pulumi.Input[Union['StreamOnTableBeforeArgs', 'StreamOnTableBeforeArgsDict']]] = None,
490
+ comment: Optional[pulumi.Input[str]] = None,
491
+ copy_grants: Optional[pulumi.Input[bool]] = None,
492
+ database: Optional[pulumi.Input[str]] = None,
493
+ describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['StreamOnTableDescribeOutputArgs', 'StreamOnTableDescribeOutputArgsDict']]]]] = None,
494
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
495
+ name: Optional[pulumi.Input[str]] = None,
496
+ schema: Optional[pulumi.Input[str]] = None,
497
+ show_initial_rows: Optional[pulumi.Input[str]] = None,
498
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['StreamOnTableShowOutputArgs', 'StreamOnTableShowOutputArgsDict']]]]] = None,
499
+ table: Optional[pulumi.Input[str]] = None) -> 'StreamOnTable':
500
+ """
501
+ Get an existing StreamOnTable resource's state with the given name, id, and optional extra
502
+ properties used to qualify the lookup.
503
+
504
+ :param str resource_name: The unique name of the resulting resource.
505
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
506
+ :param pulumi.ResourceOptions opts: Options for the resource.
507
+ :param pulumi.Input[str] append_only: Specifies whether this is an append-only stream. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
508
+ :param pulumi.Input[str] comment: Specifies a comment for the stream.
509
+ :param pulumi.Input[bool] copy_grants: Retains the access permissions from the original stream when a stream is recreated using the OR REPLACE clause. That is sometimes used when the provider detects changes for fields that can not be changed by ALTER. This value will not have any effect when creating a new stream.
510
+ :param pulumi.Input[str] database: The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
511
+ :param pulumi.Input[Sequence[pulumi.Input[Union['StreamOnTableDescribeOutputArgs', 'StreamOnTableDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE STREAM` for the given stream.
512
+ :param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
513
+ :param pulumi.Input[str] name: Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
514
+ :param pulumi.Input[str] schema: The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
515
+ :param pulumi.Input[Sequence[pulumi.Input[Union['StreamOnTableShowOutputArgs', 'StreamOnTableShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW STREAMS` for the given stream.
516
+ :param pulumi.Input[str] table: Specifies an identifier for the table the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
517
+ """
518
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
519
+
520
+ __props__ = _StreamOnTableState.__new__(_StreamOnTableState)
521
+
522
+ __props__.__dict__["append_only"] = append_only
523
+ __props__.__dict__["at"] = at
524
+ __props__.__dict__["before"] = before
525
+ __props__.__dict__["comment"] = comment
526
+ __props__.__dict__["copy_grants"] = copy_grants
527
+ __props__.__dict__["database"] = database
528
+ __props__.__dict__["describe_outputs"] = describe_outputs
529
+ __props__.__dict__["fully_qualified_name"] = fully_qualified_name
530
+ __props__.__dict__["name"] = name
531
+ __props__.__dict__["schema"] = schema
532
+ __props__.__dict__["show_initial_rows"] = show_initial_rows
533
+ __props__.__dict__["show_outputs"] = show_outputs
534
+ __props__.__dict__["table"] = table
535
+ return StreamOnTable(resource_name, opts=opts, __props__=__props__)
536
+
537
+ @property
538
+ @pulumi.getter(name="appendOnly")
539
+ def append_only(self) -> pulumi.Output[Optional[str]]:
540
+ """
541
+ Specifies whether this is an append-only stream. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
542
+ """
543
+ return pulumi.get(self, "append_only")
544
+
545
+ @property
546
+ @pulumi.getter
547
+ def at(self) -> pulumi.Output[Optional['outputs.StreamOnTableAt']]:
548
+ return pulumi.get(self, "at")
549
+
550
+ @property
551
+ @pulumi.getter
552
+ def before(self) -> pulumi.Output[Optional['outputs.StreamOnTableBefore']]:
553
+ return pulumi.get(self, "before")
554
+
555
+ @property
556
+ @pulumi.getter
557
+ def comment(self) -> pulumi.Output[Optional[str]]:
558
+ """
559
+ Specifies a comment for the stream.
560
+ """
561
+ return pulumi.get(self, "comment")
562
+
563
+ @property
564
+ @pulumi.getter(name="copyGrants")
565
+ def copy_grants(self) -> pulumi.Output[Optional[bool]]:
566
+ """
567
+ Retains the access permissions from the original stream when a stream is recreated using the OR REPLACE clause. That is sometimes used when the provider detects changes for fields that can not be changed by ALTER. This value will not have any effect when creating a new stream.
568
+ """
569
+ return pulumi.get(self, "copy_grants")
570
+
571
+ @property
572
+ @pulumi.getter
573
+ def database(self) -> pulumi.Output[str]:
574
+ """
575
+ The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
576
+ """
577
+ return pulumi.get(self, "database")
578
+
579
+ @property
580
+ @pulumi.getter(name="describeOutputs")
581
+ def describe_outputs(self) -> pulumi.Output[Sequence['outputs.StreamOnTableDescribeOutput']]:
582
+ """
583
+ Outputs the result of `DESCRIBE STREAM` for the given stream.
584
+ """
585
+ return pulumi.get(self, "describe_outputs")
586
+
587
+ @property
588
+ @pulumi.getter(name="fullyQualifiedName")
589
+ def fully_qualified_name(self) -> pulumi.Output[str]:
590
+ """
591
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
592
+ """
593
+ return pulumi.get(self, "fully_qualified_name")
594
+
595
+ @property
596
+ @pulumi.getter
597
+ def name(self) -> pulumi.Output[str]:
598
+ """
599
+ Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
600
+ """
601
+ return pulumi.get(self, "name")
602
+
603
+ @property
604
+ @pulumi.getter
605
+ def schema(self) -> pulumi.Output[str]:
606
+ """
607
+ The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
608
+ """
609
+ return pulumi.get(self, "schema")
610
+
611
+ @property
612
+ @pulumi.getter(name="showInitialRows")
613
+ def show_initial_rows(self) -> pulumi.Output[Optional[str]]:
614
+ return pulumi.get(self, "show_initial_rows")
615
+
616
+ @property
617
+ @pulumi.getter(name="showOutputs")
618
+ def show_outputs(self) -> pulumi.Output[Sequence['outputs.StreamOnTableShowOutput']]:
619
+ """
620
+ Outputs the result of `SHOW STREAMS` for the given stream.
621
+ """
622
+ return pulumi.get(self, "show_outputs")
623
+
624
+ @property
625
+ @pulumi.getter
626
+ def table(self) -> pulumi.Output[str]:
627
+ """
628
+ Specifies an identifier for the table the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
629
+ """
630
+ return pulumi.get(self, "table")
631
+
pulumi_snowflake/user.py CHANGED
@@ -2675,7 +2675,7 @@ class User(pulumi.CustomResource):
2675
2675
  ## Import
2676
2676
 
2677
2677
  ```sh
2678
- $ pulumi import snowflake:index/user:User example userName
2678
+ $ pulumi import snowflake:index/user:User example '"<user_name>"'
2679
2679
  ```
2680
2680
 
2681
2681
  :param str resource_name: The name of the resource.
@@ -2765,7 +2765,7 @@ class User(pulumi.CustomResource):
2765
2765
  ## Import
2766
2766
 
2767
2767
  ```sh
2768
- $ pulumi import snowflake:index/user:User example userName
2768
+ $ pulumi import snowflake:index/user:User example '"<user_name>"'
2769
2769
  ```
2770
2770
 
2771
2771
  :param str resource_name: The name of the resource.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_snowflake
3
- Version: 0.60.0a1728636583
3
+ Version: 0.60.0a1728941570
4
4
  Summary: A Pulumi package for creating and managing snowflake cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io