pulumi-snowflake 0.61.0a1731393894__py3-none-any.whl → 0.61.1__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.

Files changed (39) hide show
  1. pulumi_snowflake/__init__.py +110 -0
  2. pulumi_snowflake/_inputs.py +5182 -1837
  3. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  4. pulumi_snowflake/authentication_policy.py +622 -0
  5. pulumi_snowflake/config/__init__.pyi +86 -36
  6. pulumi_snowflake/config/vars.py +104 -40
  7. pulumi_snowflake/external_volume.py +378 -0
  8. pulumi_snowflake/get_connections.py +147 -0
  9. pulumi_snowflake/get_grants.py +4 -0
  10. pulumi_snowflake/get_secrets.py +204 -0
  11. pulumi_snowflake/get_streams.py +105 -56
  12. pulumi_snowflake/grant_account_role.py +2 -2
  13. pulumi_snowflake/grant_application_role.py +2 -2
  14. pulumi_snowflake/grant_database_role.py +2 -2
  15. pulumi_snowflake/grant_ownership.py +14 -14
  16. pulumi_snowflake/grant_privileges_to_account_role.py +8 -8
  17. pulumi_snowflake/grant_privileges_to_database_role.py +8 -8
  18. pulumi_snowflake/grant_privileges_to_share.py +2 -2
  19. pulumi_snowflake/legacy_service_user.py +4 -0
  20. pulumi_snowflake/outputs.py +4390 -1335
  21. pulumi_snowflake/primary_connection.py +330 -0
  22. pulumi_snowflake/provider.py +433 -146
  23. pulumi_snowflake/pulumi-plugin.json +1 -1
  24. pulumi_snowflake/secondary_connection.py +339 -0
  25. pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
  26. pulumi_snowflake/secret_with_basic_authentication.py +500 -0
  27. pulumi_snowflake/secret_with_client_credentials.py +511 -0
  28. pulumi_snowflake/secret_with_generic_string.py +452 -0
  29. pulumi_snowflake/stream_on_directory_table.py +530 -0
  30. pulumi_snowflake/stream_on_external_table.py +50 -2
  31. pulumi_snowflake/stream_on_table.py +48 -0
  32. pulumi_snowflake/stream_on_view.py +679 -0
  33. pulumi_snowflake/tag_association.py +7 -7
  34. pulumi_snowflake/user.py +4 -0
  35. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  36. {pulumi_snowflake-0.61.0a1731393894.dist-info → pulumi_snowflake-0.61.1.dist-info}/METADATA +1 -1
  37. {pulumi_snowflake-0.61.0a1731393894.dist-info → pulumi_snowflake-0.61.1.dist-info}/RECORD +39 -25
  38. {pulumi_snowflake-0.61.0a1731393894.dist-info → pulumi_snowflake-0.61.1.dist-info}/WHEEL +1 -1
  39. {pulumi_snowflake-0.61.0a1731393894.dist-info → pulumi_snowflake-0.61.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,679 @@
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__ = ['StreamOnViewArgs', 'StreamOnView']
20
+
21
+ @pulumi.input_type
22
+ class StreamOnViewArgs:
23
+ def __init__(__self__, *,
24
+ database: pulumi.Input[str],
25
+ schema: pulumi.Input[str],
26
+ view: pulumi.Input[str],
27
+ append_only: Optional[pulumi.Input[str]] = None,
28
+ at: Optional[pulumi.Input['StreamOnViewAtArgs']] = None,
29
+ before: Optional[pulumi.Input['StreamOnViewBeforeArgs']] = 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 StreamOnView 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] view: Specifies an identifier for the view 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__, "view", view)
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 view(self) -> pulumi.Input[str]:
89
+ """
90
+ Specifies an identifier for the view the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
91
+ """
92
+ return pulumi.get(self, "view")
93
+
94
+ @view.setter
95
+ def view(self, value: pulumi.Input[str]):
96
+ pulumi.set(self, "view", 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['StreamOnViewAtArgs']]:
113
+ return pulumi.get(self, "at")
114
+
115
+ @at.setter
116
+ def at(self, value: Optional[pulumi.Input['StreamOnViewAtArgs']]):
117
+ pulumi.set(self, "at", value)
118
+
119
+ @property
120
+ @pulumi.getter
121
+ def before(self) -> Optional[pulumi.Input['StreamOnViewBeforeArgs']]:
122
+ return pulumi.get(self, "before")
123
+
124
+ @before.setter
125
+ def before(self, value: Optional[pulumi.Input['StreamOnViewBeforeArgs']]):
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 _StreamOnViewState:
176
+ def __init__(__self__, *,
177
+ append_only: Optional[pulumi.Input[str]] = None,
178
+ at: Optional[pulumi.Input['StreamOnViewAtArgs']] = None,
179
+ before: Optional[pulumi.Input['StreamOnViewBeforeArgs']] = 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['StreamOnViewDescribeOutputArgs']]]] = 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['StreamOnViewShowOutputArgs']]]] = None,
189
+ stale: Optional[pulumi.Input[bool]] = None,
190
+ stream_type: Optional[pulumi.Input[str]] = None,
191
+ view: Optional[pulumi.Input[str]] = None):
192
+ """
193
+ Input properties used for looking up and filtering StreamOnView resources.
194
+ :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.
195
+ :param pulumi.Input[str] comment: Specifies a comment for the stream.
196
+ :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.
197
+ :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: `|`, `.`, `(`, `)`, `"`
198
+ :param pulumi.Input[Sequence[pulumi.Input['StreamOnViewDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE STREAM` for the given stream.
199
+ :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).
200
+ :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: `|`, `.`, `(`, `)`, `"`
201
+ :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: `|`, `.`, `(`, `)`, `"`
202
+ :param pulumi.Input[Sequence[pulumi.Input['StreamOnViewShowOutputArgs']]] show_outputs: Outputs the result of `SHOW STREAMS` for the given stream.
203
+ :param pulumi.Input[str] stream_type: Specifies a type for the stream. This field is used for checking external changes and recreating the resources if needed.
204
+ :param pulumi.Input[str] view: Specifies an identifier for the view the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
205
+ """
206
+ if append_only is not None:
207
+ pulumi.set(__self__, "append_only", append_only)
208
+ if at is not None:
209
+ pulumi.set(__self__, "at", at)
210
+ if before is not None:
211
+ pulumi.set(__self__, "before", before)
212
+ if comment is not None:
213
+ pulumi.set(__self__, "comment", comment)
214
+ if copy_grants is not None:
215
+ pulumi.set(__self__, "copy_grants", copy_grants)
216
+ if database is not None:
217
+ pulumi.set(__self__, "database", database)
218
+ if describe_outputs is not None:
219
+ pulumi.set(__self__, "describe_outputs", describe_outputs)
220
+ if fully_qualified_name is not None:
221
+ pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
222
+ if name is not None:
223
+ pulumi.set(__self__, "name", name)
224
+ if schema is not None:
225
+ pulumi.set(__self__, "schema", schema)
226
+ if show_initial_rows is not None:
227
+ pulumi.set(__self__, "show_initial_rows", show_initial_rows)
228
+ if show_outputs is not None:
229
+ pulumi.set(__self__, "show_outputs", show_outputs)
230
+ if stale is not None:
231
+ pulumi.set(__self__, "stale", stale)
232
+ if stream_type is not None:
233
+ pulumi.set(__self__, "stream_type", stream_type)
234
+ if view is not None:
235
+ pulumi.set(__self__, "view", view)
236
+
237
+ @property
238
+ @pulumi.getter(name="appendOnly")
239
+ def append_only(self) -> Optional[pulumi.Input[str]]:
240
+ """
241
+ 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.
242
+ """
243
+ return pulumi.get(self, "append_only")
244
+
245
+ @append_only.setter
246
+ def append_only(self, value: Optional[pulumi.Input[str]]):
247
+ pulumi.set(self, "append_only", value)
248
+
249
+ @property
250
+ @pulumi.getter
251
+ def at(self) -> Optional[pulumi.Input['StreamOnViewAtArgs']]:
252
+ return pulumi.get(self, "at")
253
+
254
+ @at.setter
255
+ def at(self, value: Optional[pulumi.Input['StreamOnViewAtArgs']]):
256
+ pulumi.set(self, "at", value)
257
+
258
+ @property
259
+ @pulumi.getter
260
+ def before(self) -> Optional[pulumi.Input['StreamOnViewBeforeArgs']]:
261
+ return pulumi.get(self, "before")
262
+
263
+ @before.setter
264
+ def before(self, value: Optional[pulumi.Input['StreamOnViewBeforeArgs']]):
265
+ pulumi.set(self, "before", value)
266
+
267
+ @property
268
+ @pulumi.getter
269
+ def comment(self) -> Optional[pulumi.Input[str]]:
270
+ """
271
+ Specifies a comment for the stream.
272
+ """
273
+ return pulumi.get(self, "comment")
274
+
275
+ @comment.setter
276
+ def comment(self, value: Optional[pulumi.Input[str]]):
277
+ pulumi.set(self, "comment", value)
278
+
279
+ @property
280
+ @pulumi.getter(name="copyGrants")
281
+ def copy_grants(self) -> Optional[pulumi.Input[bool]]:
282
+ """
283
+ 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.
284
+ """
285
+ return pulumi.get(self, "copy_grants")
286
+
287
+ @copy_grants.setter
288
+ def copy_grants(self, value: Optional[pulumi.Input[bool]]):
289
+ pulumi.set(self, "copy_grants", value)
290
+
291
+ @property
292
+ @pulumi.getter
293
+ def database(self) -> Optional[pulumi.Input[str]]:
294
+ """
295
+ The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
296
+ """
297
+ return pulumi.get(self, "database")
298
+
299
+ @database.setter
300
+ def database(self, value: Optional[pulumi.Input[str]]):
301
+ pulumi.set(self, "database", value)
302
+
303
+ @property
304
+ @pulumi.getter(name="describeOutputs")
305
+ def describe_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['StreamOnViewDescribeOutputArgs']]]]:
306
+ """
307
+ Outputs the result of `DESCRIBE STREAM` for the given stream.
308
+ """
309
+ return pulumi.get(self, "describe_outputs")
310
+
311
+ @describe_outputs.setter
312
+ def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['StreamOnViewDescribeOutputArgs']]]]):
313
+ pulumi.set(self, "describe_outputs", value)
314
+
315
+ @property
316
+ @pulumi.getter(name="fullyQualifiedName")
317
+ def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
318
+ """
319
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
320
+ """
321
+ return pulumi.get(self, "fully_qualified_name")
322
+
323
+ @fully_qualified_name.setter
324
+ def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
325
+ pulumi.set(self, "fully_qualified_name", value)
326
+
327
+ @property
328
+ @pulumi.getter
329
+ def name(self) -> Optional[pulumi.Input[str]]:
330
+ """
331
+ 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: `|`, `.`, `(`, `)`, `"`
332
+ """
333
+ return pulumi.get(self, "name")
334
+
335
+ @name.setter
336
+ def name(self, value: Optional[pulumi.Input[str]]):
337
+ pulumi.set(self, "name", value)
338
+
339
+ @property
340
+ @pulumi.getter
341
+ def schema(self) -> Optional[pulumi.Input[str]]:
342
+ """
343
+ The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
344
+ """
345
+ return pulumi.get(self, "schema")
346
+
347
+ @schema.setter
348
+ def schema(self, value: Optional[pulumi.Input[str]]):
349
+ pulumi.set(self, "schema", value)
350
+
351
+ @property
352
+ @pulumi.getter(name="showInitialRows")
353
+ def show_initial_rows(self) -> Optional[pulumi.Input[str]]:
354
+ return pulumi.get(self, "show_initial_rows")
355
+
356
+ @show_initial_rows.setter
357
+ def show_initial_rows(self, value: Optional[pulumi.Input[str]]):
358
+ pulumi.set(self, "show_initial_rows", value)
359
+
360
+ @property
361
+ @pulumi.getter(name="showOutputs")
362
+ def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['StreamOnViewShowOutputArgs']]]]:
363
+ """
364
+ Outputs the result of `SHOW STREAMS` for the given stream.
365
+ """
366
+ return pulumi.get(self, "show_outputs")
367
+
368
+ @show_outputs.setter
369
+ def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['StreamOnViewShowOutputArgs']]]]):
370
+ pulumi.set(self, "show_outputs", value)
371
+
372
+ @property
373
+ @pulumi.getter
374
+ def stale(self) -> Optional[pulumi.Input[bool]]:
375
+ return pulumi.get(self, "stale")
376
+
377
+ @stale.setter
378
+ def stale(self, value: Optional[pulumi.Input[bool]]):
379
+ pulumi.set(self, "stale", value)
380
+
381
+ @property
382
+ @pulumi.getter(name="streamType")
383
+ def stream_type(self) -> Optional[pulumi.Input[str]]:
384
+ """
385
+ Specifies a type for the stream. This field is used for checking external changes and recreating the resources if needed.
386
+ """
387
+ return pulumi.get(self, "stream_type")
388
+
389
+ @stream_type.setter
390
+ def stream_type(self, value: Optional[pulumi.Input[str]]):
391
+ pulumi.set(self, "stream_type", value)
392
+
393
+ @property
394
+ @pulumi.getter
395
+ def view(self) -> Optional[pulumi.Input[str]]:
396
+ """
397
+ Specifies an identifier for the view the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
398
+ """
399
+ return pulumi.get(self, "view")
400
+
401
+ @view.setter
402
+ def view(self, value: Optional[pulumi.Input[str]]):
403
+ pulumi.set(self, "view", value)
404
+
405
+
406
+ class StreamOnView(pulumi.CustomResource):
407
+ @overload
408
+ def __init__(__self__,
409
+ resource_name: str,
410
+ opts: Optional[pulumi.ResourceOptions] = None,
411
+ append_only: Optional[pulumi.Input[str]] = None,
412
+ at: Optional[pulumi.Input[Union['StreamOnViewAtArgs', 'StreamOnViewAtArgsDict']]] = None,
413
+ before: Optional[pulumi.Input[Union['StreamOnViewBeforeArgs', 'StreamOnViewBeforeArgsDict']]] = None,
414
+ comment: Optional[pulumi.Input[str]] = None,
415
+ copy_grants: Optional[pulumi.Input[bool]] = None,
416
+ database: Optional[pulumi.Input[str]] = None,
417
+ name: Optional[pulumi.Input[str]] = None,
418
+ schema: Optional[pulumi.Input[str]] = None,
419
+ show_initial_rows: Optional[pulumi.Input[str]] = None,
420
+ view: Optional[pulumi.Input[str]] = None,
421
+ __props__=None):
422
+ """
423
+ ## Import
424
+
425
+ ```sh
426
+ $ pulumi import snowflake:index/streamOnView:StreamOnView example '"<database_name>"."<schema_name>"."<stream_name>"'
427
+ ```
428
+
429
+ :param str resource_name: The name of the resource.
430
+ :param pulumi.ResourceOptions opts: Options for the resource.
431
+ :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.
432
+ :param pulumi.Input[str] comment: Specifies a comment for the stream.
433
+ :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.
434
+ :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: `|`, `.`, `(`, `)`, `"`
435
+ :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: `|`, `.`, `(`, `)`, `"`
436
+ :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: `|`, `.`, `(`, `)`, `"`
437
+ :param pulumi.Input[str] view: Specifies an identifier for the view the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
438
+ """
439
+ ...
440
+ @overload
441
+ def __init__(__self__,
442
+ resource_name: str,
443
+ args: StreamOnViewArgs,
444
+ opts: Optional[pulumi.ResourceOptions] = None):
445
+ """
446
+ ## Import
447
+
448
+ ```sh
449
+ $ pulumi import snowflake:index/streamOnView:StreamOnView example '"<database_name>"."<schema_name>"."<stream_name>"'
450
+ ```
451
+
452
+ :param str resource_name: The name of the resource.
453
+ :param StreamOnViewArgs args: The arguments to use to populate this resource's properties.
454
+ :param pulumi.ResourceOptions opts: Options for the resource.
455
+ """
456
+ ...
457
+ def __init__(__self__, resource_name: str, *args, **kwargs):
458
+ resource_args, opts = _utilities.get_resource_args_opts(StreamOnViewArgs, pulumi.ResourceOptions, *args, **kwargs)
459
+ if resource_args is not None:
460
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
461
+ else:
462
+ __self__._internal_init(resource_name, *args, **kwargs)
463
+
464
+ def _internal_init(__self__,
465
+ resource_name: str,
466
+ opts: Optional[pulumi.ResourceOptions] = None,
467
+ append_only: Optional[pulumi.Input[str]] = None,
468
+ at: Optional[pulumi.Input[Union['StreamOnViewAtArgs', 'StreamOnViewAtArgsDict']]] = None,
469
+ before: Optional[pulumi.Input[Union['StreamOnViewBeforeArgs', 'StreamOnViewBeforeArgsDict']]] = None,
470
+ comment: Optional[pulumi.Input[str]] = None,
471
+ copy_grants: Optional[pulumi.Input[bool]] = None,
472
+ database: Optional[pulumi.Input[str]] = None,
473
+ name: Optional[pulumi.Input[str]] = None,
474
+ schema: Optional[pulumi.Input[str]] = None,
475
+ show_initial_rows: Optional[pulumi.Input[str]] = None,
476
+ view: Optional[pulumi.Input[str]] = None,
477
+ __props__=None):
478
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
479
+ if not isinstance(opts, pulumi.ResourceOptions):
480
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
481
+ if opts.id is None:
482
+ if __props__ is not None:
483
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
484
+ __props__ = StreamOnViewArgs.__new__(StreamOnViewArgs)
485
+
486
+ __props__.__dict__["append_only"] = append_only
487
+ __props__.__dict__["at"] = at
488
+ __props__.__dict__["before"] = before
489
+ __props__.__dict__["comment"] = comment
490
+ __props__.__dict__["copy_grants"] = copy_grants
491
+ if database is None and not opts.urn:
492
+ raise TypeError("Missing required property 'database'")
493
+ __props__.__dict__["database"] = database
494
+ __props__.__dict__["name"] = name
495
+ if schema is None and not opts.urn:
496
+ raise TypeError("Missing required property 'schema'")
497
+ __props__.__dict__["schema"] = schema
498
+ __props__.__dict__["show_initial_rows"] = show_initial_rows
499
+ if view is None and not opts.urn:
500
+ raise TypeError("Missing required property 'view'")
501
+ __props__.__dict__["view"] = view
502
+ __props__.__dict__["describe_outputs"] = None
503
+ __props__.__dict__["fully_qualified_name"] = None
504
+ __props__.__dict__["show_outputs"] = None
505
+ __props__.__dict__["stale"] = None
506
+ __props__.__dict__["stream_type"] = None
507
+ super(StreamOnView, __self__).__init__(
508
+ 'snowflake:index/streamOnView:StreamOnView',
509
+ resource_name,
510
+ __props__,
511
+ opts)
512
+
513
+ @staticmethod
514
+ def get(resource_name: str,
515
+ id: pulumi.Input[str],
516
+ opts: Optional[pulumi.ResourceOptions] = None,
517
+ append_only: Optional[pulumi.Input[str]] = None,
518
+ at: Optional[pulumi.Input[Union['StreamOnViewAtArgs', 'StreamOnViewAtArgsDict']]] = None,
519
+ before: Optional[pulumi.Input[Union['StreamOnViewBeforeArgs', 'StreamOnViewBeforeArgsDict']]] = None,
520
+ comment: Optional[pulumi.Input[str]] = None,
521
+ copy_grants: Optional[pulumi.Input[bool]] = None,
522
+ database: Optional[pulumi.Input[str]] = None,
523
+ describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['StreamOnViewDescribeOutputArgs', 'StreamOnViewDescribeOutputArgsDict']]]]] = None,
524
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
525
+ name: Optional[pulumi.Input[str]] = None,
526
+ schema: Optional[pulumi.Input[str]] = None,
527
+ show_initial_rows: Optional[pulumi.Input[str]] = None,
528
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['StreamOnViewShowOutputArgs', 'StreamOnViewShowOutputArgsDict']]]]] = None,
529
+ stale: Optional[pulumi.Input[bool]] = None,
530
+ stream_type: Optional[pulumi.Input[str]] = None,
531
+ view: Optional[pulumi.Input[str]] = None) -> 'StreamOnView':
532
+ """
533
+ Get an existing StreamOnView resource's state with the given name, id, and optional extra
534
+ properties used to qualify the lookup.
535
+
536
+ :param str resource_name: The unique name of the resulting resource.
537
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
538
+ :param pulumi.ResourceOptions opts: Options for the resource.
539
+ :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.
540
+ :param pulumi.Input[str] comment: Specifies a comment for the stream.
541
+ :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.
542
+ :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: `|`, `.`, `(`, `)`, `"`
543
+ :param pulumi.Input[Sequence[pulumi.Input[Union['StreamOnViewDescribeOutputArgs', 'StreamOnViewDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE STREAM` for the given stream.
544
+ :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).
545
+ :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: `|`, `.`, `(`, `)`, `"`
546
+ :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: `|`, `.`, `(`, `)`, `"`
547
+ :param pulumi.Input[Sequence[pulumi.Input[Union['StreamOnViewShowOutputArgs', 'StreamOnViewShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW STREAMS` for the given stream.
548
+ :param pulumi.Input[str] stream_type: Specifies a type for the stream. This field is used for checking external changes and recreating the resources if needed.
549
+ :param pulumi.Input[str] view: Specifies an identifier for the view the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
550
+ """
551
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
552
+
553
+ __props__ = _StreamOnViewState.__new__(_StreamOnViewState)
554
+
555
+ __props__.__dict__["append_only"] = append_only
556
+ __props__.__dict__["at"] = at
557
+ __props__.__dict__["before"] = before
558
+ __props__.__dict__["comment"] = comment
559
+ __props__.__dict__["copy_grants"] = copy_grants
560
+ __props__.__dict__["database"] = database
561
+ __props__.__dict__["describe_outputs"] = describe_outputs
562
+ __props__.__dict__["fully_qualified_name"] = fully_qualified_name
563
+ __props__.__dict__["name"] = name
564
+ __props__.__dict__["schema"] = schema
565
+ __props__.__dict__["show_initial_rows"] = show_initial_rows
566
+ __props__.__dict__["show_outputs"] = show_outputs
567
+ __props__.__dict__["stale"] = stale
568
+ __props__.__dict__["stream_type"] = stream_type
569
+ __props__.__dict__["view"] = view
570
+ return StreamOnView(resource_name, opts=opts, __props__=__props__)
571
+
572
+ @property
573
+ @pulumi.getter(name="appendOnly")
574
+ def append_only(self) -> pulumi.Output[Optional[str]]:
575
+ """
576
+ 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.
577
+ """
578
+ return pulumi.get(self, "append_only")
579
+
580
+ @property
581
+ @pulumi.getter
582
+ def at(self) -> pulumi.Output[Optional['outputs.StreamOnViewAt']]:
583
+ return pulumi.get(self, "at")
584
+
585
+ @property
586
+ @pulumi.getter
587
+ def before(self) -> pulumi.Output[Optional['outputs.StreamOnViewBefore']]:
588
+ return pulumi.get(self, "before")
589
+
590
+ @property
591
+ @pulumi.getter
592
+ def comment(self) -> pulumi.Output[Optional[str]]:
593
+ """
594
+ Specifies a comment for the stream.
595
+ """
596
+ return pulumi.get(self, "comment")
597
+
598
+ @property
599
+ @pulumi.getter(name="copyGrants")
600
+ def copy_grants(self) -> pulumi.Output[Optional[bool]]:
601
+ """
602
+ 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.
603
+ """
604
+ return pulumi.get(self, "copy_grants")
605
+
606
+ @property
607
+ @pulumi.getter
608
+ def database(self) -> pulumi.Output[str]:
609
+ """
610
+ The database in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
611
+ """
612
+ return pulumi.get(self, "database")
613
+
614
+ @property
615
+ @pulumi.getter(name="describeOutputs")
616
+ def describe_outputs(self) -> pulumi.Output[Sequence['outputs.StreamOnViewDescribeOutput']]:
617
+ """
618
+ Outputs the result of `DESCRIBE STREAM` for the given stream.
619
+ """
620
+ return pulumi.get(self, "describe_outputs")
621
+
622
+ @property
623
+ @pulumi.getter(name="fullyQualifiedName")
624
+ def fully_qualified_name(self) -> pulumi.Output[str]:
625
+ """
626
+ Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
627
+ """
628
+ return pulumi.get(self, "fully_qualified_name")
629
+
630
+ @property
631
+ @pulumi.getter
632
+ def name(self) -> pulumi.Output[str]:
633
+ """
634
+ 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: `|`, `.`, `(`, `)`, `"`
635
+ """
636
+ return pulumi.get(self, "name")
637
+
638
+ @property
639
+ @pulumi.getter
640
+ def schema(self) -> pulumi.Output[str]:
641
+ """
642
+ The schema in which to create the stream. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
643
+ """
644
+ return pulumi.get(self, "schema")
645
+
646
+ @property
647
+ @pulumi.getter(name="showInitialRows")
648
+ def show_initial_rows(self) -> pulumi.Output[Optional[str]]:
649
+ return pulumi.get(self, "show_initial_rows")
650
+
651
+ @property
652
+ @pulumi.getter(name="showOutputs")
653
+ def show_outputs(self) -> pulumi.Output[Sequence['outputs.StreamOnViewShowOutput']]:
654
+ """
655
+ Outputs the result of `SHOW STREAMS` for the given stream.
656
+ """
657
+ return pulumi.get(self, "show_outputs")
658
+
659
+ @property
660
+ @pulumi.getter
661
+ def stale(self) -> pulumi.Output[bool]:
662
+ return pulumi.get(self, "stale")
663
+
664
+ @property
665
+ @pulumi.getter(name="streamType")
666
+ def stream_type(self) -> pulumi.Output[str]:
667
+ """
668
+ Specifies a type for the stream. This field is used for checking external changes and recreating the resources if needed.
669
+ """
670
+ return pulumi.get(self, "stream_type")
671
+
672
+ @property
673
+ @pulumi.getter
674
+ def view(self) -> pulumi.Output[str]:
675
+ """
676
+ Specifies an identifier for the view the stream will monitor. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
677
+ """
678
+ return pulumi.get(self, "view")
679
+