pulumi-snowflake 0.50.3a1710160126__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 +52857 -1665
  3. pulumi_snowflake/_utilities.py +41 -5
  4. pulumi_snowflake/account.py +188 -218
  5. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  6. pulumi_snowflake/account_parameter.py +21 -48
  7. pulumi_snowflake/account_password_policy_attachment.py +7 -32
  8. pulumi_snowflake/account_role.py +250 -0
  9. pulumi_snowflake/alert.py +38 -47
  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 +33 -52
  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 -213
  20. pulumi_snowflake/database_role.py +81 -44
  21. pulumi_snowflake/dynamic_table.py +42 -49
  22. pulumi_snowflake/email_notification_integration.py +33 -28
  23. pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
  24. pulumi_snowflake/external_function.py +54 -75
  25. pulumi_snowflake/external_oauth_integration.py +593 -542
  26. pulumi_snowflake/external_table.py +67 -90
  27. pulumi_snowflake/external_volume.py +382 -0
  28. pulumi_snowflake/failover_group.py +57 -98
  29. pulumi_snowflake/file_format.py +33 -28
  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 -9
  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 -13
  41. pulumi_snowflake/get_current_role.py +14 -7
  42. pulumi_snowflake/get_database.py +25 -9
  43. pulumi_snowflake/get_database_role.py +162 -0
  44. pulumi_snowflake/get_database_roles.py +79 -47
  45. pulumi_snowflake/get_databases.py +91 -73
  46. pulumi_snowflake/get_dynamic_tables.py +36 -19
  47. pulumi_snowflake/get_external_functions.py +28 -9
  48. pulumi_snowflake/get_external_tables.py +28 -9
  49. pulumi_snowflake/get_failover_groups.py +18 -7
  50. pulumi_snowflake/get_file_formats.py +28 -9
  51. pulumi_snowflake/get_functions.py +28 -9
  52. pulumi_snowflake/get_grants.py +207 -84
  53. pulumi_snowflake/get_masking_policies.py +91 -51
  54. pulumi_snowflake/get_materialized_views.py +28 -9
  55. pulumi_snowflake/get_network_policies.py +129 -0
  56. pulumi_snowflake/get_parameters.py +38 -15
  57. pulumi_snowflake/get_pipes.py +28 -9
  58. pulumi_snowflake/get_procedures.py +28 -9
  59. pulumi_snowflake/get_resource_monitors.py +37 -24
  60. pulumi_snowflake/get_row_access_policies.py +91 -51
  61. pulumi_snowflake/get_schemas.py +145 -41
  62. pulumi_snowflake/get_secrets.py +200 -0
  63. pulumi_snowflake/get_security_integrations.py +129 -0
  64. pulumi_snowflake/get_sequences.py +28 -9
  65. pulumi_snowflake/get_shares.py +18 -9
  66. pulumi_snowflake/get_stages.py +28 -9
  67. pulumi_snowflake/get_storage_integrations.py +16 -9
  68. pulumi_snowflake/get_streamlits.py +170 -0
  69. pulumi_snowflake/get_streams.py +114 -54
  70. pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
  71. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
  72. pulumi_snowflake/get_system_get_private_link_config.py +120 -5
  73. pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
  74. pulumi_snowflake/get_tables.py +28 -9
  75. pulumi_snowflake/get_tags.py +130 -0
  76. pulumi_snowflake/get_tasks.py +134 -54
  77. pulumi_snowflake/get_users.py +116 -44
  78. pulumi_snowflake/get_views.py +114 -54
  79. pulumi_snowflake/get_warehouses.py +79 -26
  80. pulumi_snowflake/grant_account_role.py +28 -75
  81. pulumi_snowflake/grant_application_role.py +257 -0
  82. pulumi_snowflake/grant_database_role.py +35 -94
  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 -383
  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 +40 -11
  89. pulumi_snowflake/masking_policy.py +213 -310
  90. pulumi_snowflake/materialized_view.py +62 -71
  91. pulumi_snowflake/network_policy.py +217 -61
  92. pulumi_snowflake/network_policy_attachment.py +5 -34
  93. pulumi_snowflake/network_rule.py +473 -0
  94. pulumi_snowflake/notification_integration.py +49 -84
  95. pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
  96. pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
  97. pulumi_snowflake/object_parameter.py +10 -101
  98. pulumi_snowflake/outputs.py +49200 -2928
  99. pulumi_snowflake/password_policy.py +41 -28
  100. pulumi_snowflake/pipe.py +33 -4
  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 -327
  110. pulumi_snowflake/row_access_policy.py +200 -149
  111. pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
  112. pulumi_snowflake/schema.py +949 -178
  113. pulumi_snowflake/scim_integration.py +286 -109
  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 -34
  121. pulumi_snowflake/service_user.py +3585 -0
  122. pulumi_snowflake/share.py +33 -28
  123. pulumi_snowflake/shared_database.py +939 -0
  124. pulumi_snowflake/stage.py +95 -84
  125. pulumi_snowflake/storage_integration.py +46 -4
  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 -97
  132. pulumi_snowflake/table_column_masking_policy_application.py +7 -14
  133. pulumi_snowflake/table_constraint.py +29 -172
  134. pulumi_snowflake/tag.py +142 -74
  135. pulumi_snowflake/tag_association.py +40 -215
  136. pulumi_snowflake/task.py +3048 -418
  137. pulumi_snowflake/user.py +3351 -384
  138. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  139. pulumi_snowflake/user_password_policy_attachment.py +5 -4
  140. pulumi_snowflake/user_public_keys.py +5 -0
  141. pulumi_snowflake/view.py +466 -215
  142. pulumi_snowflake/warehouse.py +184 -168
  143. {pulumi_snowflake-0.50.3a1710160126.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.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
  146. pulumi_snowflake/account_grant.py +0 -343
  147. pulumi_snowflake/database_grant.py +0 -495
  148. pulumi_snowflake/external_table_grant.py +0 -690
  149. pulumi_snowflake/failover_group_grant.py +0 -388
  150. pulumi_snowflake/file_format_grant.py +0 -635
  151. pulumi_snowflake/function.py +0 -872
  152. pulumi_snowflake/function_grant.py +0 -745
  153. pulumi_snowflake/get_role.py +0 -121
  154. pulumi_snowflake/get_roles.py +0 -120
  155. pulumi_snowflake/grant_privileges_to_role.py +0 -825
  156. pulumi_snowflake/integration_grant.py +0 -440
  157. pulumi_snowflake/masking_policy_grant.py +0 -542
  158. pulumi_snowflake/materialized_view_grant.py +0 -689
  159. pulumi_snowflake/pipe_grant.py +0 -587
  160. pulumi_snowflake/procedure.py +0 -887
  161. pulumi_snowflake/procedure_grant.py +0 -745
  162. pulumi_snowflake/resource_monitor_grant.py +0 -387
  163. pulumi_snowflake/role.py +0 -273
  164. pulumi_snowflake/role_grants.py +0 -352
  165. pulumi_snowflake/role_ownership_grant.py +0 -338
  166. pulumi_snowflake/row_access_policy_grant.py +0 -540
  167. pulumi_snowflake/schema_grant.py +0 -647
  168. pulumi_snowflake/sequence_grant.py +0 -635
  169. pulumi_snowflake/session_parameter.py +0 -332
  170. pulumi_snowflake/stage_grant.py +0 -635
  171. pulumi_snowflake/stream.py +0 -614
  172. pulumi_snowflake/stream_grant.py +0 -635
  173. pulumi_snowflake/table_grant.py +0 -677
  174. pulumi_snowflake/tag_grant.py +0 -532
  175. pulumi_snowflake/tag_masking_policy_association.py +0 -210
  176. pulumi_snowflake/task_grant.py +0 -635
  177. pulumi_snowflake/user_grant.py +0 -394
  178. pulumi_snowflake/user_ownership_grant.py +0 -286
  179. pulumi_snowflake/view_grant.py +0 -705
  180. pulumi_snowflake/warehouse_grant.py +0 -440
  181. pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
  182. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
@@ -1,614 +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
- ## Example Usage
382
-
383
- ## Import
384
-
385
- format is database name | schema name | stream name
386
-
387
- ```sh
388
- $ pulumi import snowflake:index/stream:Stream example 'dbName|schemaName|streamName'
389
- ```
390
-
391
- :param str resource_name: The name of the resource.
392
- :param pulumi.ResourceOptions opts: Options for the resource.
393
- :param pulumi.Input[bool] append_only: Type of the stream that will be created.
394
- :param pulumi.Input[str] comment: Specifies a comment for the stream.
395
- :param pulumi.Input[str] database: The database in which to create the stream.
396
- :param pulumi.Input[bool] insert_only: Create an insert only stream type.
397
- :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.
398
- :param pulumi.Input[str] on_stage: Specifies an identifier for the stage the stream will monitor.
399
- :param pulumi.Input[str] on_table: Specifies an identifier for the table the stream will monitor.
400
- :param pulumi.Input[str] on_view: Specifies an identifier for the view the stream will monitor.
401
- :param pulumi.Input[str] schema: The schema in which to create the stream.
402
- :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.
403
- """
404
- ...
405
- @overload
406
- def __init__(__self__,
407
- resource_name: str,
408
- args: StreamArgs,
409
- opts: Optional[pulumi.ResourceOptions] = None):
410
- """
411
- ## Example Usage
412
-
413
- ## Import
414
-
415
- format is database name | schema name | stream name
416
-
417
- ```sh
418
- $ pulumi import snowflake:index/stream:Stream example 'dbName|schemaName|streamName'
419
- ```
420
-
421
- :param str resource_name: The name of the resource.
422
- :param StreamArgs args: The arguments to use to populate this resource's properties.
423
- :param pulumi.ResourceOptions opts: Options for the resource.
424
- """
425
- ...
426
- def __init__(__self__, resource_name: str, *args, **kwargs):
427
- resource_args, opts = _utilities.get_resource_args_opts(StreamArgs, pulumi.ResourceOptions, *args, **kwargs)
428
- if resource_args is not None:
429
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
430
- else:
431
- __self__._internal_init(resource_name, *args, **kwargs)
432
-
433
- def _internal_init(__self__,
434
- resource_name: str,
435
- opts: Optional[pulumi.ResourceOptions] = None,
436
- append_only: Optional[pulumi.Input[bool]] = None,
437
- comment: Optional[pulumi.Input[str]] = None,
438
- database: Optional[pulumi.Input[str]] = None,
439
- insert_only: Optional[pulumi.Input[bool]] = None,
440
- name: Optional[pulumi.Input[str]] = None,
441
- on_stage: Optional[pulumi.Input[str]] = None,
442
- on_table: Optional[pulumi.Input[str]] = None,
443
- on_view: Optional[pulumi.Input[str]] = None,
444
- schema: Optional[pulumi.Input[str]] = None,
445
- show_initial_rows: Optional[pulumi.Input[bool]] = None,
446
- __props__=None):
447
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
448
- if not isinstance(opts, pulumi.ResourceOptions):
449
- raise TypeError('Expected resource options to be a ResourceOptions instance')
450
- if opts.id is None:
451
- if __props__ is not None:
452
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
453
- __props__ = StreamArgs.__new__(StreamArgs)
454
-
455
- __props__.__dict__["append_only"] = append_only
456
- __props__.__dict__["comment"] = comment
457
- if database is None and not opts.urn:
458
- raise TypeError("Missing required property 'database'")
459
- __props__.__dict__["database"] = database
460
- __props__.__dict__["insert_only"] = insert_only
461
- __props__.__dict__["name"] = name
462
- __props__.__dict__["on_stage"] = on_stage
463
- __props__.__dict__["on_table"] = on_table
464
- __props__.__dict__["on_view"] = on_view
465
- if schema is None and not opts.urn:
466
- raise TypeError("Missing required property 'schema'")
467
- __props__.__dict__["schema"] = schema
468
- __props__.__dict__["show_initial_rows"] = show_initial_rows
469
- __props__.__dict__["owner"] = None
470
- super(Stream, __self__).__init__(
471
- 'snowflake:index/stream:Stream',
472
- resource_name,
473
- __props__,
474
- opts)
475
-
476
- @staticmethod
477
- def get(resource_name: str,
478
- id: pulumi.Input[str],
479
- opts: Optional[pulumi.ResourceOptions] = None,
480
- append_only: Optional[pulumi.Input[bool]] = None,
481
- comment: Optional[pulumi.Input[str]] = None,
482
- database: Optional[pulumi.Input[str]] = None,
483
- insert_only: Optional[pulumi.Input[bool]] = None,
484
- name: Optional[pulumi.Input[str]] = None,
485
- on_stage: Optional[pulumi.Input[str]] = None,
486
- on_table: Optional[pulumi.Input[str]] = None,
487
- on_view: Optional[pulumi.Input[str]] = None,
488
- owner: Optional[pulumi.Input[str]] = None,
489
- schema: Optional[pulumi.Input[str]] = None,
490
- show_initial_rows: Optional[pulumi.Input[bool]] = None) -> 'Stream':
491
- """
492
- Get an existing Stream resource's state with the given name, id, and optional extra
493
- properties used to qualify the lookup.
494
-
495
- :param str resource_name: The unique name of the resulting resource.
496
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
497
- :param pulumi.ResourceOptions opts: Options for the resource.
498
- :param pulumi.Input[bool] append_only: Type of the stream that will be created.
499
- :param pulumi.Input[str] comment: Specifies a comment for the stream.
500
- :param pulumi.Input[str] database: The database in which to create the stream.
501
- :param pulumi.Input[bool] insert_only: Create an insert only stream type.
502
- :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.
503
- :param pulumi.Input[str] on_stage: Specifies an identifier for the stage the stream will monitor.
504
- :param pulumi.Input[str] on_table: Specifies an identifier for the table the stream will monitor.
505
- :param pulumi.Input[str] on_view: Specifies an identifier for the view the stream will monitor.
506
- :param pulumi.Input[str] owner: Name of the role that owns the stream.
507
- :param pulumi.Input[str] schema: The schema in which to create the stream.
508
- :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.
509
- """
510
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
511
-
512
- __props__ = _StreamState.__new__(_StreamState)
513
-
514
- __props__.__dict__["append_only"] = append_only
515
- __props__.__dict__["comment"] = comment
516
- __props__.__dict__["database"] = database
517
- __props__.__dict__["insert_only"] = insert_only
518
- __props__.__dict__["name"] = name
519
- __props__.__dict__["on_stage"] = on_stage
520
- __props__.__dict__["on_table"] = on_table
521
- __props__.__dict__["on_view"] = on_view
522
- __props__.__dict__["owner"] = owner
523
- __props__.__dict__["schema"] = schema
524
- __props__.__dict__["show_initial_rows"] = show_initial_rows
525
- return Stream(resource_name, opts=opts, __props__=__props__)
526
-
527
- @property
528
- @pulumi.getter(name="appendOnly")
529
- def append_only(self) -> pulumi.Output[Optional[bool]]:
530
- """
531
- Type of the stream that will be created.
532
- """
533
- return pulumi.get(self, "append_only")
534
-
535
- @property
536
- @pulumi.getter
537
- def comment(self) -> pulumi.Output[Optional[str]]:
538
- """
539
- Specifies a comment for the stream.
540
- """
541
- return pulumi.get(self, "comment")
542
-
543
- @property
544
- @pulumi.getter
545
- def database(self) -> pulumi.Output[str]:
546
- """
547
- The database in which to create the stream.
548
- """
549
- return pulumi.get(self, "database")
550
-
551
- @property
552
- @pulumi.getter(name="insertOnly")
553
- def insert_only(self) -> pulumi.Output[Optional[bool]]:
554
- """
555
- Create an insert only stream type.
556
- """
557
- return pulumi.get(self, "insert_only")
558
-
559
- @property
560
- @pulumi.getter
561
- def name(self) -> pulumi.Output[str]:
562
- """
563
- Specifies the identifier for the stream; must be unique for the database and schema in which the stream is created.
564
- """
565
- return pulumi.get(self, "name")
566
-
567
- @property
568
- @pulumi.getter(name="onStage")
569
- def on_stage(self) -> pulumi.Output[Optional[str]]:
570
- """
571
- Specifies an identifier for the stage the stream will monitor.
572
- """
573
- return pulumi.get(self, "on_stage")
574
-
575
- @property
576
- @pulumi.getter(name="onTable")
577
- def on_table(self) -> pulumi.Output[Optional[str]]:
578
- """
579
- Specifies an identifier for the table the stream will monitor.
580
- """
581
- return pulumi.get(self, "on_table")
582
-
583
- @property
584
- @pulumi.getter(name="onView")
585
- def on_view(self) -> pulumi.Output[Optional[str]]:
586
- """
587
- Specifies an identifier for the view the stream will monitor.
588
- """
589
- return pulumi.get(self, "on_view")
590
-
591
- @property
592
- @pulumi.getter
593
- def owner(self) -> pulumi.Output[str]:
594
- """
595
- Name of the role that owns the stream.
596
- """
597
- return pulumi.get(self, "owner")
598
-
599
- @property
600
- @pulumi.getter
601
- def schema(self) -> pulumi.Output[str]:
602
- """
603
- The schema in which to create the stream.
604
- """
605
- return pulumi.get(self, "schema")
606
-
607
- @property
608
- @pulumi.getter(name="showInitialRows")
609
- def show_initial_rows(self) -> pulumi.Output[Optional[bool]]:
610
- """
611
- Specifies whether to return all existing rows in the source table as row inserts the first time the stream is consumed.
612
- """
613
- return pulumi.get(self, "show_initial_rows")
614
-