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