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