pulumi-snowflake 0.63.0a1734416430__py3-none-any.whl → 1.0.0__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 (127) hide show
  1. pulumi_snowflake/__init__.py +82 -74
  2. pulumi_snowflake/_inputs.py +12705 -4876
  3. pulumi_snowflake/account.py +156 -163
  4. pulumi_snowflake/account_parameter.py +16 -16
  5. pulumi_snowflake/account_role.py +9 -9
  6. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +9 -22
  7. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +9 -22
  8. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +9 -22
  9. pulumi_snowflake/authentication_policy.py +21 -21
  10. pulumi_snowflake/config/__init__.pyi +8 -86
  11. pulumi_snowflake/config/vars.py +10 -110
  12. pulumi_snowflake/database.py +9 -9
  13. pulumi_snowflake/database_role.py +14 -14
  14. pulumi_snowflake/{unsafe_execute.py → execute.py} +35 -25
  15. pulumi_snowflake/external_oauth_integration.py +27 -27
  16. pulumi_snowflake/external_volume.py +11 -7
  17. pulumi_snowflake/function_java.py +1211 -0
  18. pulumi_snowflake/function_javascript.py +882 -0
  19. pulumi_snowflake/function_python.py +1212 -0
  20. pulumi_snowflake/function_scala.py +1212 -0
  21. pulumi_snowflake/function_sql.py +835 -0
  22. pulumi_snowflake/get_account_roles.py +129 -0
  23. pulumi_snowflake/get_accounts.py +41 -19
  24. pulumi_snowflake/get_alerts.py +4 -0
  25. pulumi_snowflake/get_connections.py +2 -40
  26. pulumi_snowflake/get_cortex_search_services.py +4 -0
  27. pulumi_snowflake/get_current_account.py +4 -0
  28. pulumi_snowflake/get_current_role.py +2 -2
  29. pulumi_snowflake/get_database.py +4 -0
  30. pulumi_snowflake/get_database_role.py +4 -0
  31. pulumi_snowflake/get_database_roles.py +2 -6
  32. pulumi_snowflake/get_databases.py +2 -6
  33. pulumi_snowflake/get_dynamic_tables.py +4 -2
  34. pulumi_snowflake/get_external_functions.py +4 -0
  35. pulumi_snowflake/get_external_tables.py +4 -0
  36. pulumi_snowflake/get_failover_groups.py +4 -2
  37. pulumi_snowflake/get_file_formats.py +4 -0
  38. pulumi_snowflake/get_functions.py +4 -0
  39. pulumi_snowflake/get_grants.py +0 -4
  40. pulumi_snowflake/get_masking_policies.py +2 -6
  41. pulumi_snowflake/get_materialized_views.py +4 -0
  42. pulumi_snowflake/get_network_policies.py +2 -6
  43. pulumi_snowflake/get_parameters.py +4 -0
  44. pulumi_snowflake/get_pipes.py +4 -0
  45. pulumi_snowflake/get_procedures.py +4 -0
  46. pulumi_snowflake/get_resource_monitors.py +2 -6
  47. pulumi_snowflake/get_row_access_policies.py +2 -6
  48. pulumi_snowflake/get_schemas.py +6 -4
  49. pulumi_snowflake/get_secrets.py +2 -6
  50. pulumi_snowflake/get_security_integrations.py +2 -6
  51. pulumi_snowflake/get_sequences.py +4 -0
  52. pulumi_snowflake/get_shares.py +4 -0
  53. pulumi_snowflake/get_stages.py +4 -0
  54. pulumi_snowflake/get_storage_integrations.py +4 -0
  55. pulumi_snowflake/get_streamlits.py +2 -6
  56. pulumi_snowflake/get_streams.py +2 -6
  57. pulumi_snowflake/get_system_generate_scim_access_token.py +4 -0
  58. pulumi_snowflake/get_system_get_private_link_config.py +4 -0
  59. pulumi_snowflake/get_system_get_snowflake_platform_info.py +2 -2
  60. pulumi_snowflake/get_tables.py +4 -0
  61. pulumi_snowflake/get_tags.py +2 -6
  62. pulumi_snowflake/get_tasks.py +0 -4
  63. pulumi_snowflake/get_users.py +2 -6
  64. pulumi_snowflake/get_views.py +2 -6
  65. pulumi_snowflake/get_warehouses.py +2 -6
  66. pulumi_snowflake/grant_account_role.py +21 -21
  67. pulumi_snowflake/grant_application_role.py +7 -7
  68. pulumi_snowflake/grant_database_role.py +28 -28
  69. pulumi_snowflake/grant_ownership.py +14 -14
  70. pulumi_snowflake/grant_privileges_to_account_role.py +14 -14
  71. pulumi_snowflake/grant_privileges_to_database_role.py +14 -14
  72. pulumi_snowflake/grant_privileges_to_share.py +42 -42
  73. pulumi_snowflake/legacy_service_user.py +21 -21
  74. pulumi_snowflake/masking_policy.py +21 -21
  75. pulumi_snowflake/network_policy.py +23 -23
  76. pulumi_snowflake/oauth_integration_for_custom_clients.py +73 -46
  77. pulumi_snowflake/oauth_integration_for_partner_applications.py +57 -30
  78. pulumi_snowflake/outputs.py +10029 -4056
  79. pulumi_snowflake/password_policy.py +12 -2
  80. pulumi_snowflake/primary_connection.py +16 -16
  81. pulumi_snowflake/procedure_java.py +1273 -0
  82. pulumi_snowflake/procedure_javascript.py +895 -0
  83. pulumi_snowflake/procedure_python.py +1226 -0
  84. pulumi_snowflake/procedure_scala.py +1273 -0
  85. pulumi_snowflake/procedure_sql.py +895 -0
  86. pulumi_snowflake/provider.py +40 -527
  87. pulumi_snowflake/pulumi-plugin.json +1 -1
  88. pulumi_snowflake/resource_monitor.py +16 -20
  89. pulumi_snowflake/row_access_policy.py +21 -21
  90. pulumi_snowflake/saml2_integration.py +9 -9
  91. pulumi_snowflake/schema.py +14 -18
  92. pulumi_snowflake/scim_integration.py +16 -16
  93. pulumi_snowflake/secondary_connection.py +16 -16
  94. pulumi_snowflake/secondary_database.py +16 -16
  95. pulumi_snowflake/secret_with_authorization_code_grant.py +28 -28
  96. pulumi_snowflake/secret_with_basic_authentication.py +21 -21
  97. pulumi_snowflake/secret_with_client_credentials.py +28 -28
  98. pulumi_snowflake/secret_with_generic_string.py +21 -21
  99. pulumi_snowflake/service_user.py +21 -21
  100. pulumi_snowflake/shared_database.py +16 -16
  101. pulumi_snowflake/stream_on_directory_table.py +28 -41
  102. pulumi_snowflake/stream_on_external_table.py +28 -41
  103. pulumi_snowflake/stream_on_table.py +28 -41
  104. pulumi_snowflake/stream_on_view.py +28 -41
  105. pulumi_snowflake/streamlit.py +42 -46
  106. pulumi_snowflake/tag.py +28 -28
  107. pulumi_snowflake/tag_association.py +28 -86
  108. pulumi_snowflake/task.py +58 -62
  109. pulumi_snowflake/user.py +21 -21
  110. pulumi_snowflake/view.py +28 -41
  111. pulumi_snowflake/warehouse.py +16 -16
  112. {pulumi_snowflake-0.63.0a1734416430.dist-info → pulumi_snowflake-1.0.0.dist-info}/METADATA +1 -1
  113. pulumi_snowflake-1.0.0.dist-info/RECORD +148 -0
  114. pulumi_snowflake/database_old.py +0 -489
  115. pulumi_snowflake/function.py +0 -901
  116. pulumi_snowflake/get_role.py +0 -126
  117. pulumi_snowflake/get_roles.py +0 -133
  118. pulumi_snowflake/oauth_integration.py +0 -610
  119. pulumi_snowflake/procedure.py +0 -910
  120. pulumi_snowflake/role.py +0 -250
  121. pulumi_snowflake/saml_integration.py +0 -916
  122. pulumi_snowflake/session_parameter.py +0 -301
  123. pulumi_snowflake/stream.py +0 -643
  124. pulumi_snowflake/tag_masking_policy_association.py +0 -211
  125. pulumi_snowflake-0.63.0a1734416430.dist-info/RECORD +0 -148
  126. {pulumi_snowflake-0.63.0a1734416430.dist-info → pulumi_snowflake-1.0.0.dist-info}/WHEEL +0 -0
  127. {pulumi_snowflake-0.63.0a1734416430.dist-info → pulumi_snowflake-1.0.0.dist-info}/top_level.txt +0 -0
@@ -1,643 +0,0 @@
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
-
17
- __all__ = ['StreamArgs', 'Stream']
18
-
19
- @pulumi.input_type
20
- class StreamArgs:
21
- def __init__(__self__, *,
22
- database: pulumi.Input[str],
23
- schema: pulumi.Input[str],
24
- append_only: Optional[pulumi.Input[bool]] = None,
25
- comment: Optional[pulumi.Input[str]] = None,
26
- insert_only: Optional[pulumi.Input[bool]] = None,
27
- name: Optional[pulumi.Input[str]] = None,
28
- on_stage: Optional[pulumi.Input[str]] = None,
29
- on_table: Optional[pulumi.Input[str]] = None,
30
- on_view: Optional[pulumi.Input[str]] = None,
31
- show_initial_rows: Optional[pulumi.Input[bool]] = None):
32
- """
33
- The set of arguments for constructing a Stream resource.
34
- :param pulumi.Input[str] database: The database in which to create the stream.
35
- :param pulumi.Input[str] schema: The schema in which to create the stream.
36
- :param pulumi.Input[bool] append_only: Type of the stream that will be created.
37
- :param pulumi.Input[str] comment: Specifies a comment for the stream.
38
- :param pulumi.Input[bool] insert_only: Create an insert only stream type.
39
- :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.
40
- :param pulumi.Input[str] on_stage: Specifies an identifier for the stage the stream will monitor.
41
- :param pulumi.Input[str] on_table: Specifies an identifier for the table the stream will monitor.
42
- :param pulumi.Input[str] on_view: Specifies an identifier for the view the stream will monitor.
43
- :param pulumi.Input[bool] show_initial_rows: Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
44
- """
45
- pulumi.set(__self__, "database", database)
46
- pulumi.set(__self__, "schema", schema)
47
- if append_only is not None:
48
- pulumi.set(__self__, "append_only", append_only)
49
- if comment is not None:
50
- pulumi.set(__self__, "comment", comment)
51
- if insert_only is not None:
52
- pulumi.set(__self__, "insert_only", insert_only)
53
- if name is not None:
54
- pulumi.set(__self__, "name", name)
55
- if on_stage is not None:
56
- pulumi.set(__self__, "on_stage", on_stage)
57
- if on_table is not None:
58
- pulumi.set(__self__, "on_table", on_table)
59
- if on_view is not None:
60
- pulumi.set(__self__, "on_view", on_view)
61
- if show_initial_rows is not None:
62
- pulumi.set(__self__, "show_initial_rows", show_initial_rows)
63
-
64
- @property
65
- @pulumi.getter
66
- def database(self) -> pulumi.Input[str]:
67
- """
68
- The database in which to create the stream.
69
- """
70
- return pulumi.get(self, "database")
71
-
72
- @database.setter
73
- def database(self, value: pulumi.Input[str]):
74
- pulumi.set(self, "database", value)
75
-
76
- @property
77
- @pulumi.getter
78
- def schema(self) -> pulumi.Input[str]:
79
- """
80
- The schema in which to create the stream.
81
- """
82
- return pulumi.get(self, "schema")
83
-
84
- @schema.setter
85
- def schema(self, value: pulumi.Input[str]):
86
- pulumi.set(self, "schema", value)
87
-
88
- @property
89
- @pulumi.getter(name="appendOnly")
90
- def append_only(self) -> Optional[pulumi.Input[bool]]:
91
- """
92
- Type of the stream that will be created.
93
- """
94
- return pulumi.get(self, "append_only")
95
-
96
- @append_only.setter
97
- def append_only(self, value: Optional[pulumi.Input[bool]]):
98
- pulumi.set(self, "append_only", value)
99
-
100
- @property
101
- @pulumi.getter
102
- def comment(self) -> Optional[pulumi.Input[str]]:
103
- """
104
- Specifies a comment for the stream.
105
- """
106
- return pulumi.get(self, "comment")
107
-
108
- @comment.setter
109
- def comment(self, value: Optional[pulumi.Input[str]]):
110
- pulumi.set(self, "comment", value)
111
-
112
- @property
113
- @pulumi.getter(name="insertOnly")
114
- def insert_only(self) -> Optional[pulumi.Input[bool]]:
115
- """
116
- Create an insert only stream type.
117
- """
118
- return pulumi.get(self, "insert_only")
119
-
120
- @insert_only.setter
121
- def insert_only(self, value: Optional[pulumi.Input[bool]]):
122
- pulumi.set(self, "insert_only", value)
123
-
124
- @property
125
- @pulumi.getter
126
- def name(self) -> Optional[pulumi.Input[str]]:
127
- """
128
- Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.
129
- """
130
- return pulumi.get(self, "name")
131
-
132
- @name.setter
133
- def name(self, value: Optional[pulumi.Input[str]]):
134
- pulumi.set(self, "name", value)
135
-
136
- @property
137
- @pulumi.getter(name="onStage")
138
- def on_stage(self) -> Optional[pulumi.Input[str]]:
139
- """
140
- Specifies an identifier for the stage the stream will monitor.
141
- """
142
- return pulumi.get(self, "on_stage")
143
-
144
- @on_stage.setter
145
- def on_stage(self, value: Optional[pulumi.Input[str]]):
146
- pulumi.set(self, "on_stage", value)
147
-
148
- @property
149
- @pulumi.getter(name="onTable")
150
- def on_table(self) -> Optional[pulumi.Input[str]]:
151
- """
152
- Specifies an identifier for the table the stream will monitor.
153
- """
154
- return pulumi.get(self, "on_table")
155
-
156
- @on_table.setter
157
- def on_table(self, value: Optional[pulumi.Input[str]]):
158
- pulumi.set(self, "on_table", value)
159
-
160
- @property
161
- @pulumi.getter(name="onView")
162
- def on_view(self) -> Optional[pulumi.Input[str]]:
163
- """
164
- Specifies an identifier for the view the stream will monitor.
165
- """
166
- return pulumi.get(self, "on_view")
167
-
168
- @on_view.setter
169
- def on_view(self, value: Optional[pulumi.Input[str]]):
170
- pulumi.set(self, "on_view", value)
171
-
172
- @property
173
- @pulumi.getter(name="showInitialRows")
174
- def show_initial_rows(self) -> Optional[pulumi.Input[bool]]:
175
- """
176
- Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
177
- """
178
- return pulumi.get(self, "show_initial_rows")
179
-
180
- @show_initial_rows.setter
181
- def show_initial_rows(self, value: Optional[pulumi.Input[bool]]):
182
- pulumi.set(self, "show_initial_rows", value)
183
-
184
-
185
- @pulumi.input_type
186
- class _StreamState:
187
- def __init__(__self__, *,
188
- append_only: Optional[pulumi.Input[bool]] = None,
189
- comment: Optional[pulumi.Input[str]] = None,
190
- database: Optional[pulumi.Input[str]] = None,
191
- fully_qualified_name: Optional[pulumi.Input[str]] = None,
192
- insert_only: Optional[pulumi.Input[bool]] = None,
193
- name: Optional[pulumi.Input[str]] = None,
194
- on_stage: Optional[pulumi.Input[str]] = None,
195
- on_table: Optional[pulumi.Input[str]] = None,
196
- on_view: Optional[pulumi.Input[str]] = None,
197
- owner: Optional[pulumi.Input[str]] = None,
198
- schema: Optional[pulumi.Input[str]] = None,
199
- show_initial_rows: Optional[pulumi.Input[bool]] = None):
200
- """
201
- Input properties used for looking up and filtering Stream resources.
202
- :param pulumi.Input[bool] append_only: Type of the stream that will be created.
203
- :param pulumi.Input[str] comment: Specifies a comment for the stream.
204
- :param pulumi.Input[str] database: The database in which to create the stream.
205
- :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).
206
- :param pulumi.Input[bool] insert_only: Create an insert only stream type.
207
- :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.
208
- :param pulumi.Input[str] on_stage: Specifies an identifier for the stage the stream will monitor.
209
- :param pulumi.Input[str] on_table: Specifies an identifier for the table the stream will monitor.
210
- :param pulumi.Input[str] on_view: Specifies an identifier for the view the stream will monitor.
211
- :param pulumi.Input[str] owner: Name of the role that owns the stream.
212
- :param pulumi.Input[str] schema: The schema in which to create the stream.
213
- :param pulumi.Input[bool] show_initial_rows: Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
214
- """
215
- if append_only is not None:
216
- pulumi.set(__self__, "append_only", append_only)
217
- if comment is not None:
218
- pulumi.set(__self__, "comment", comment)
219
- if database is not None:
220
- pulumi.set(__self__, "database", database)
221
- if fully_qualified_name is not None:
222
- pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
223
- if insert_only is not None:
224
- pulumi.set(__self__, "insert_only", insert_only)
225
- if name is not None:
226
- pulumi.set(__self__, "name", name)
227
- if on_stage is not None:
228
- pulumi.set(__self__, "on_stage", on_stage)
229
- if on_table is not None:
230
- pulumi.set(__self__, "on_table", on_table)
231
- if on_view is not None:
232
- pulumi.set(__self__, "on_view", on_view)
233
- if owner is not None:
234
- pulumi.set(__self__, "owner", owner)
235
- if schema is not None:
236
- pulumi.set(__self__, "schema", schema)
237
- if show_initial_rows is not None:
238
- pulumi.set(__self__, "show_initial_rows", show_initial_rows)
239
-
240
- @property
241
- @pulumi.getter(name="appendOnly")
242
- def append_only(self) -> Optional[pulumi.Input[bool]]:
243
- """
244
- Type of the stream that will be created.
245
- """
246
- return pulumi.get(self, "append_only")
247
-
248
- @append_only.setter
249
- def append_only(self, value: Optional[pulumi.Input[bool]]):
250
- pulumi.set(self, "append_only", value)
251
-
252
- @property
253
- @pulumi.getter
254
- def comment(self) -> Optional[pulumi.Input[str]]:
255
- """
256
- Specifies a comment for the stream.
257
- """
258
- return pulumi.get(self, "comment")
259
-
260
- @comment.setter
261
- def comment(self, value: Optional[pulumi.Input[str]]):
262
- pulumi.set(self, "comment", value)
263
-
264
- @property
265
- @pulumi.getter
266
- def database(self) -> Optional[pulumi.Input[str]]:
267
- """
268
- The database in which to create the stream.
269
- """
270
- return pulumi.get(self, "database")
271
-
272
- @database.setter
273
- def database(self, value: Optional[pulumi.Input[str]]):
274
- pulumi.set(self, "database", value)
275
-
276
- @property
277
- @pulumi.getter(name="fullyQualifiedName")
278
- def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
279
- """
280
- Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
281
- """
282
- return pulumi.get(self, "fully_qualified_name")
283
-
284
- @fully_qualified_name.setter
285
- def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
286
- pulumi.set(self, "fully_qualified_name", value)
287
-
288
- @property
289
- @pulumi.getter(name="insertOnly")
290
- def insert_only(self) -> Optional[pulumi.Input[bool]]:
291
- """
292
- Create an insert only stream type.
293
- """
294
- return pulumi.get(self, "insert_only")
295
-
296
- @insert_only.setter
297
- def insert_only(self, value: Optional[pulumi.Input[bool]]):
298
- pulumi.set(self, "insert_only", value)
299
-
300
- @property
301
- @pulumi.getter
302
- def name(self) -> Optional[pulumi.Input[str]]:
303
- """
304
- Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.
305
- """
306
- return pulumi.get(self, "name")
307
-
308
- @name.setter
309
- def name(self, value: Optional[pulumi.Input[str]]):
310
- pulumi.set(self, "name", value)
311
-
312
- @property
313
- @pulumi.getter(name="onStage")
314
- def on_stage(self) -> Optional[pulumi.Input[str]]:
315
- """
316
- Specifies an identifier for the stage the stream will monitor.
317
- """
318
- return pulumi.get(self, "on_stage")
319
-
320
- @on_stage.setter
321
- def on_stage(self, value: Optional[pulumi.Input[str]]):
322
- pulumi.set(self, "on_stage", value)
323
-
324
- @property
325
- @pulumi.getter(name="onTable")
326
- def on_table(self) -> Optional[pulumi.Input[str]]:
327
- """
328
- Specifies an identifier for the table the stream will monitor.
329
- """
330
- return pulumi.get(self, "on_table")
331
-
332
- @on_table.setter
333
- def on_table(self, value: Optional[pulumi.Input[str]]):
334
- pulumi.set(self, "on_table", value)
335
-
336
- @property
337
- @pulumi.getter(name="onView")
338
- def on_view(self) -> Optional[pulumi.Input[str]]:
339
- """
340
- Specifies an identifier for the view the stream will monitor.
341
- """
342
- return pulumi.get(self, "on_view")
343
-
344
- @on_view.setter
345
- def on_view(self, value: Optional[pulumi.Input[str]]):
346
- pulumi.set(self, "on_view", value)
347
-
348
- @property
349
- @pulumi.getter
350
- def owner(self) -> Optional[pulumi.Input[str]]:
351
- """
352
- Name of the role that owns the stream.
353
- """
354
- return pulumi.get(self, "owner")
355
-
356
- @owner.setter
357
- def owner(self, value: Optional[pulumi.Input[str]]):
358
- pulumi.set(self, "owner", value)
359
-
360
- @property
361
- @pulumi.getter
362
- def schema(self) -> Optional[pulumi.Input[str]]:
363
- """
364
- The schema in which to create the stream.
365
- """
366
- return pulumi.get(self, "schema")
367
-
368
- @schema.setter
369
- def schema(self, value: Optional[pulumi.Input[str]]):
370
- pulumi.set(self, "schema", value)
371
-
372
- @property
373
- @pulumi.getter(name="showInitialRows")
374
- def show_initial_rows(self) -> Optional[pulumi.Input[bool]]:
375
- """
376
- Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
377
- """
378
- return pulumi.get(self, "show_initial_rows")
379
-
380
- @show_initial_rows.setter
381
- def show_initial_rows(self, value: Optional[pulumi.Input[bool]]):
382
- pulumi.set(self, "show_initial_rows", value)
383
-
384
-
385
- class Stream(pulumi.CustomResource):
386
- @overload
387
- def __init__(__self__,
388
- resource_name: str,
389
- opts: Optional[pulumi.ResourceOptions] = None,
390
- append_only: Optional[pulumi.Input[bool]] = None,
391
- comment: Optional[pulumi.Input[str]] = None,
392
- database: Optional[pulumi.Input[str]] = None,
393
- insert_only: Optional[pulumi.Input[bool]] = None,
394
- name: Optional[pulumi.Input[str]] = None,
395
- on_stage: Optional[pulumi.Input[str]] = None,
396
- on_table: Optional[pulumi.Input[str]] = None,
397
- on_view: Optional[pulumi.Input[str]] = None,
398
- schema: Optional[pulumi.Input[str]] = None,
399
- show_initial_rows: Optional[pulumi.Input[bool]] = None,
400
- __props__=None):
401
- """
402
- ## Import
403
-
404
- format is database name | schema name | stream name
405
-
406
- ```sh
407
- $ pulumi import snowflake:index/stream:Stream example 'dbName|schemaName|streamName'
408
- ```
409
-
410
- :param str resource_name: The name of the resource.
411
- :param pulumi.ResourceOptions opts: Options for the resource.
412
- :param pulumi.Input[bool] append_only: Type of the stream that will be created.
413
- :param pulumi.Input[str] comment: Specifies a comment for the stream.
414
- :param pulumi.Input[str] database: The database in which to create the stream.
415
- :param pulumi.Input[bool] insert_only: Create an insert only stream type.
416
- :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.
417
- :param pulumi.Input[str] on_stage: Specifies an identifier for the stage the stream will monitor.
418
- :param pulumi.Input[str] on_table: Specifies an identifier for the table the stream will monitor.
419
- :param pulumi.Input[str] on_view: Specifies an identifier for the view the stream will monitor.
420
- :param pulumi.Input[str] schema: The schema in which to create the stream.
421
- :param pulumi.Input[bool] show_initial_rows: Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
422
- """
423
- ...
424
- @overload
425
- def __init__(__self__,
426
- resource_name: str,
427
- args: StreamArgs,
428
- opts: Optional[pulumi.ResourceOptions] = None):
429
- """
430
- ## Import
431
-
432
- format is database name | schema name | stream name
433
-
434
- ```sh
435
- $ pulumi import snowflake:index/stream:Stream example 'dbName|schemaName|streamName'
436
- ```
437
-
438
- :param str resource_name: The name of the resource.
439
- :param StreamArgs args: The arguments to use to populate this resource's properties.
440
- :param pulumi.ResourceOptions opts: Options for the resource.
441
- """
442
- ...
443
- def __init__(__self__, resource_name: str, *args, **kwargs):
444
- resource_args, opts = _utilities.get_resource_args_opts(StreamArgs, pulumi.ResourceOptions, *args, **kwargs)
445
- if resource_args is not None:
446
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
447
- else:
448
- __self__._internal_init(resource_name, *args, **kwargs)
449
-
450
- def _internal_init(__self__,
451
- resource_name: str,
452
- opts: Optional[pulumi.ResourceOptions] = None,
453
- append_only: Optional[pulumi.Input[bool]] = None,
454
- comment: Optional[pulumi.Input[str]] = None,
455
- database: Optional[pulumi.Input[str]] = None,
456
- insert_only: Optional[pulumi.Input[bool]] = None,
457
- name: Optional[pulumi.Input[str]] = None,
458
- on_stage: Optional[pulumi.Input[str]] = None,
459
- on_table: Optional[pulumi.Input[str]] = None,
460
- on_view: Optional[pulumi.Input[str]] = None,
461
- schema: Optional[pulumi.Input[str]] = None,
462
- show_initial_rows: Optional[pulumi.Input[bool]] = None,
463
- __props__=None):
464
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
465
- if not isinstance(opts, pulumi.ResourceOptions):
466
- raise TypeError('Expected resource options to be a ResourceOptions instance')
467
- if opts.id is None:
468
- if __props__ is not None:
469
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
470
- __props__ = StreamArgs.__new__(StreamArgs)
471
-
472
- __props__.__dict__["append_only"] = append_only
473
- __props__.__dict__["comment"] = comment
474
- if database is None and not opts.urn:
475
- raise TypeError("Missing required property 'database'")
476
- __props__.__dict__["database"] = database
477
- __props__.__dict__["insert_only"] = insert_only
478
- __props__.__dict__["name"] = name
479
- __props__.__dict__["on_stage"] = on_stage
480
- __props__.__dict__["on_table"] = on_table
481
- __props__.__dict__["on_view"] = on_view
482
- if schema is None and not opts.urn:
483
- raise TypeError("Missing required property 'schema'")
484
- __props__.__dict__["schema"] = schema
485
- __props__.__dict__["show_initial_rows"] = show_initial_rows
486
- __props__.__dict__["fully_qualified_name"] = None
487
- __props__.__dict__["owner"] = None
488
- super(Stream, __self__).__init__(
489
- 'snowflake:index/stream:Stream',
490
- resource_name,
491
- __props__,
492
- opts)
493
-
494
- @staticmethod
495
- def get(resource_name: str,
496
- id: pulumi.Input[str],
497
- opts: Optional[pulumi.ResourceOptions] = None,
498
- append_only: Optional[pulumi.Input[bool]] = None,
499
- comment: Optional[pulumi.Input[str]] = None,
500
- database: Optional[pulumi.Input[str]] = None,
501
- fully_qualified_name: Optional[pulumi.Input[str]] = None,
502
- insert_only: Optional[pulumi.Input[bool]] = None,
503
- name: Optional[pulumi.Input[str]] = None,
504
- on_stage: Optional[pulumi.Input[str]] = None,
505
- on_table: Optional[pulumi.Input[str]] = None,
506
- on_view: Optional[pulumi.Input[str]] = None,
507
- owner: Optional[pulumi.Input[str]] = None,
508
- schema: Optional[pulumi.Input[str]] = None,
509
- show_initial_rows: Optional[pulumi.Input[bool]] = None) -> 'Stream':
510
- """
511
- Get an existing Stream resource's state with the given name, id, and optional extra
512
- properties used to qualify the lookup.
513
-
514
- :param str resource_name: The unique name of the resulting resource.
515
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
516
- :param pulumi.ResourceOptions opts: Options for the resource.
517
- :param pulumi.Input[bool] append_only: Type of the stream that will be created.
518
- :param pulumi.Input[str] comment: Specifies a comment for the stream.
519
- :param pulumi.Input[str] database: The database in which to create the stream.
520
- :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).
521
- :param pulumi.Input[bool] insert_only: Create an insert only stream type.
522
- :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.
523
- :param pulumi.Input[str] on_stage: Specifies an identifier for the stage the stream will monitor.
524
- :param pulumi.Input[str] on_table: Specifies an identifier for the table the stream will monitor.
525
- :param pulumi.Input[str] on_view: Specifies an identifier for the view the stream will monitor.
526
- :param pulumi.Input[str] owner: Name of the role that owns the stream.
527
- :param pulumi.Input[str] schema: The schema in which to create the stream.
528
- :param pulumi.Input[bool] show_initial_rows: Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
529
- """
530
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
531
-
532
- __props__ = _StreamState.__new__(_StreamState)
533
-
534
- __props__.__dict__["append_only"] = append_only
535
- __props__.__dict__["comment"] = comment
536
- __props__.__dict__["database"] = database
537
- __props__.__dict__["fully_qualified_name"] = fully_qualified_name
538
- __props__.__dict__["insert_only"] = insert_only
539
- __props__.__dict__["name"] = name
540
- __props__.__dict__["on_stage"] = on_stage
541
- __props__.__dict__["on_table"] = on_table
542
- __props__.__dict__["on_view"] = on_view
543
- __props__.__dict__["owner"] = owner
544
- __props__.__dict__["schema"] = schema
545
- __props__.__dict__["show_initial_rows"] = show_initial_rows
546
- return Stream(resource_name, opts=opts, __props__=__props__)
547
-
548
- @property
549
- @pulumi.getter(name="appendOnly")
550
- def append_only(self) -> pulumi.Output[Optional[bool]]:
551
- """
552
- Type of the stream that will be created.
553
- """
554
- return pulumi.get(self, "append_only")
555
-
556
- @property
557
- @pulumi.getter
558
- def comment(self) -> pulumi.Output[Optional[str]]:
559
- """
560
- Specifies a comment for the stream.
561
- """
562
- return pulumi.get(self, "comment")
563
-
564
- @property
565
- @pulumi.getter
566
- def database(self) -> pulumi.Output[str]:
567
- """
568
- The database in which to create the stream.
569
- """
570
- return pulumi.get(self, "database")
571
-
572
- @property
573
- @pulumi.getter(name="fullyQualifiedName")
574
- def fully_qualified_name(self) -> pulumi.Output[str]:
575
- """
576
- Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
577
- """
578
- return pulumi.get(self, "fully_qualified_name")
579
-
580
- @property
581
- @pulumi.getter(name="insertOnly")
582
- def insert_only(self) -> pulumi.Output[Optional[bool]]:
583
- """
584
- Create an insert only stream type.
585
- """
586
- return pulumi.get(self, "insert_only")
587
-
588
- @property
589
- @pulumi.getter
590
- def name(self) -> pulumi.Output[str]:
591
- """
592
- Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.
593
- """
594
- return pulumi.get(self, "name")
595
-
596
- @property
597
- @pulumi.getter(name="onStage")
598
- def on_stage(self) -> pulumi.Output[Optional[str]]:
599
- """
600
- Specifies an identifier for the stage the stream will monitor.
601
- """
602
- return pulumi.get(self, "on_stage")
603
-
604
- @property
605
- @pulumi.getter(name="onTable")
606
- def on_table(self) -> pulumi.Output[Optional[str]]:
607
- """
608
- Specifies an identifier for the table the stream will monitor.
609
- """
610
- return pulumi.get(self, "on_table")
611
-
612
- @property
613
- @pulumi.getter(name="onView")
614
- def on_view(self) -> pulumi.Output[Optional[str]]:
615
- """
616
- Specifies an identifier for the view the stream will monitor.
617
- """
618
- return pulumi.get(self, "on_view")
619
-
620
- @property
621
- @pulumi.getter
622
- def owner(self) -> pulumi.Output[str]:
623
- """
624
- Name of the role that owns the stream.
625
- """
626
- return pulumi.get(self, "owner")
627
-
628
- @property
629
- @pulumi.getter
630
- def schema(self) -> pulumi.Output[str]:
631
- """
632
- The schema in which to create the stream.
633
- """
634
- return pulumi.get(self, "schema")
635
-
636
- @property
637
- @pulumi.getter(name="showInitialRows")
638
- def show_initial_rows(self) -> pulumi.Output[Optional[bool]]:
639
- """
640
- Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
641
- """
642
- return pulumi.get(self, "show_initial_rows")
643
-