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
@@ -4,11 +4,17 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
  from . import outputs
17
+ from ._inputs import *
12
18
 
13
19
  __all__ = [
14
20
  'GetStreamsResult',
@@ -22,52 +28,85 @@ class GetStreamsResult:
22
28
  """
23
29
  A collection of values returned by getStreams.
24
30
  """
25
- def __init__(__self__, database=None, id=None, schema=None, streams=None):
26
- if database and not isinstance(database, str):
27
- raise TypeError("Expected argument 'database' to be a str")
28
- pulumi.set(__self__, "database", database)
31
+ def __init__(__self__, id=None, in_=None, like=None, limit=None, starts_with=None, streams=None, with_describe=None):
29
32
  if id and not isinstance(id, str):
30
33
  raise TypeError("Expected argument 'id' to be a str")
31
34
  pulumi.set(__self__, "id", id)
32
- if schema and not isinstance(schema, str):
33
- raise TypeError("Expected argument 'schema' to be a str")
34
- pulumi.set(__self__, "schema", schema)
35
+ if in_ and not isinstance(in_, dict):
36
+ raise TypeError("Expected argument 'in_' to be a dict")
37
+ pulumi.set(__self__, "in_", in_)
38
+ if like and not isinstance(like, str):
39
+ raise TypeError("Expected argument 'like' to be a str")
40
+ pulumi.set(__self__, "like", like)
41
+ if limit and not isinstance(limit, dict):
42
+ raise TypeError("Expected argument 'limit' to be a dict")
43
+ pulumi.set(__self__, "limit", limit)
44
+ if starts_with and not isinstance(starts_with, str):
45
+ raise TypeError("Expected argument 'starts_with' to be a str")
46
+ pulumi.set(__self__, "starts_with", starts_with)
35
47
  if streams and not isinstance(streams, list):
36
48
  raise TypeError("Expected argument 'streams' to be a list")
37
49
  pulumi.set(__self__, "streams", streams)
50
+ if with_describe and not isinstance(with_describe, bool):
51
+ raise TypeError("Expected argument 'with_describe' to be a bool")
52
+ pulumi.set(__self__, "with_describe", with_describe)
38
53
 
39
54
  @property
40
55
  @pulumi.getter
41
- def database(self) -> str:
56
+ def id(self) -> str:
57
+ """
58
+ The provider-assigned unique ID for this managed resource.
59
+ """
60
+ return pulumi.get(self, "id")
61
+
62
+ @property
63
+ @pulumi.getter(name="in")
64
+ def in_(self) -> Optional['outputs.GetStreamsInResult']:
42
65
  """
43
- The database from which to return the streams from.
66
+ IN clause to filter the list of objects
44
67
  """
45
- return pulumi.get(self, "database")
68
+ return pulumi.get(self, "in_")
46
69
 
47
70
  @property
48
71
  @pulumi.getter
49
- def id(self) -> str:
72
+ def like(self) -> Optional[str]:
50
73
  """
51
- The provider-assigned unique ID for this managed resource.
74
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
52
75
  """
53
- return pulumi.get(self, "id")
76
+ return pulumi.get(self, "like")
54
77
 
55
78
  @property
56
79
  @pulumi.getter
57
- def schema(self) -> str:
80
+ def limit(self) -> Optional['outputs.GetStreamsLimitResult']:
58
81
  """
59
- The schema from which to return the streams from.
82
+ Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
60
83
  """
61
- return pulumi.get(self, "schema")
84
+ return pulumi.get(self, "limit")
85
+
86
+ @property
87
+ @pulumi.getter(name="startsWith")
88
+ def starts_with(self) -> Optional[str]:
89
+ """
90
+ Filters the output with **case-sensitive** characters indicating the beginning of the object name.
91
+ """
92
+ return pulumi.get(self, "starts_with")
62
93
 
63
94
  @property
64
95
  @pulumi.getter
65
96
  def streams(self) -> Sequence['outputs.GetStreamsStreamResult']:
66
97
  """
67
- The streams in the schema
98
+ Holds the aggregated output of all streams details queries.
68
99
  """
69
100
  return pulumi.get(self, "streams")
70
101
 
102
+ @property
103
+ @pulumi.getter(name="withDescribe")
104
+ def with_describe(self) -> Optional[bool]:
105
+ """
106
+ Runs DESC STREAM for each user returned by SHOW STREAMS. The output of describe is saved to the description field. By default this value is set to true.
107
+ """
108
+ return pulumi.get(self, "with_describe")
109
+
71
110
 
72
111
  class AwaitableGetStreamsResult(GetStreamsResult):
73
112
  # pylint: disable=using-constant-test
@@ -75,52 +114,77 @@ class AwaitableGetStreamsResult(GetStreamsResult):
75
114
  if False:
76
115
  yield self
77
116
  return GetStreamsResult(
78
- database=self.database,
79
117
  id=self.id,
80
- schema=self.schema,
81
- streams=self.streams)
82
-
83
-
84
- def get_streams(database: Optional[str] = None,
85
- schema: Optional[str] = None,
118
+ in_=self.in_,
119
+ like=self.like,
120
+ limit=self.limit,
121
+ starts_with=self.starts_with,
122
+ streams=self.streams,
123
+ with_describe=self.with_describe)
124
+
125
+
126
+ def get_streams(in_: Optional[Union['GetStreamsInArgs', 'GetStreamsInArgsDict']] = None,
127
+ like: Optional[str] = None,
128
+ limit: Optional[Union['GetStreamsLimitArgs', 'GetStreamsLimitArgsDict']] = None,
129
+ starts_with: Optional[str] = None,
130
+ with_describe: Optional[bool] = None,
86
131
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetStreamsResult:
87
132
  """
88
- ## Example Usage
133
+ Data source used to get details of filtered streams. Filtering is aligned with the current possibilities for [SHOW STREAMS](https://docs.snowflake.com/en/sql-reference/sql/show-streams) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `streams`.
89
134
 
90
- ```python
91
- import pulumi
92
- import pulumi_snowflake as snowflake
93
135
 
94
- current = snowflake.get_streams(database="MYDB",
95
- schema="MYSCHEMA")
96
- ```
136
+ :param Union['GetStreamsInArgs', 'GetStreamsInArgsDict'] in_: IN clause to filter the list of objects
137
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
138
+ :param Union['GetStreamsLimitArgs', 'GetStreamsLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
139
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
140
+ :param bool with_describe: Runs DESC STREAM for each user returned by SHOW STREAMS. The output of describe is saved to the description field. By default this value is set to true.
97
141
  """
98
142
  __args__ = dict()
99
- __args__['database'] = database
100
- __args__['schema'] = schema
143
+ __args__['in'] = in_
144
+ __args__['like'] = like
145
+ __args__['limit'] = limit
146
+ __args__['startsWith'] = starts_with
147
+ __args__['withDescribe'] = with_describe
101
148
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
102
149
  __ret__ = pulumi.runtime.invoke('snowflake:index/getStreams:getStreams', __args__, opts=opts, typ=GetStreamsResult).value
103
150
 
104
151
  return AwaitableGetStreamsResult(
105
- database=pulumi.get(__ret__, 'database'),
106
152
  id=pulumi.get(__ret__, 'id'),
107
- schema=pulumi.get(__ret__, 'schema'),
108
- streams=pulumi.get(__ret__, 'streams'))
109
-
110
-
111
- @_utilities.lift_output_func(get_streams)
112
- def get_streams_output(database: Optional[pulumi.Input[str]] = None,
113
- schema: Optional[pulumi.Input[str]] = None,
114
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetStreamsResult]:
153
+ in_=pulumi.get(__ret__, 'in_'),
154
+ like=pulumi.get(__ret__, 'like'),
155
+ limit=pulumi.get(__ret__, 'limit'),
156
+ starts_with=pulumi.get(__ret__, 'starts_with'),
157
+ streams=pulumi.get(__ret__, 'streams'),
158
+ with_describe=pulumi.get(__ret__, 'with_describe'))
159
+ def get_streams_output(in_: Optional[pulumi.Input[Optional[Union['GetStreamsInArgs', 'GetStreamsInArgsDict']]]] = None,
160
+ like: Optional[pulumi.Input[Optional[str]]] = None,
161
+ limit: Optional[pulumi.Input[Optional[Union['GetStreamsLimitArgs', 'GetStreamsLimitArgsDict']]]] = None,
162
+ starts_with: Optional[pulumi.Input[Optional[str]]] = None,
163
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
164
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetStreamsResult]:
115
165
  """
116
- ## Example Usage
166
+ Data source used to get details of filtered streams. Filtering is aligned with the current possibilities for [SHOW STREAMS](https://docs.snowflake.com/en/sql-reference/sql/show-streams) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `streams`.
117
167
 
118
- ```python
119
- import pulumi
120
- import pulumi_snowflake as snowflake
121
168
 
122
- current = snowflake.get_streams(database="MYDB",
123
- schema="MYSCHEMA")
124
- ```
169
+ :param Union['GetStreamsInArgs', 'GetStreamsInArgsDict'] in_: IN clause to filter the list of objects
170
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
171
+ :param Union['GetStreamsLimitArgs', 'GetStreamsLimitArgsDict'] limit: Limits the number of rows returned. If the `limit.from` is set, then the limit wll start from the first element matched by the expression. The expression is only used to match with the first element, later on the elements are not matched by the prefix, but you can enforce a certain pattern with `starts_with` or `like`.
172
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
173
+ :param bool with_describe: Runs DESC STREAM for each user returned by SHOW STREAMS. The output of describe is saved to the description field. By default this value is set to true.
125
174
  """
126
- ...
175
+ __args__ = dict()
176
+ __args__['in'] = in_
177
+ __args__['like'] = like
178
+ __args__['limit'] = limit
179
+ __args__['startsWith'] = starts_with
180
+ __args__['withDescribe'] = with_describe
181
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
182
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getStreams:getStreams', __args__, opts=opts, typ=GetStreamsResult)
183
+ return __ret__.apply(lambda __response__: GetStreamsResult(
184
+ id=pulumi.get(__response__, 'id'),
185
+ in_=pulumi.get(__response__, 'in_'),
186
+ like=pulumi.get(__response__, 'like'),
187
+ limit=pulumi.get(__response__, 'limit'),
188
+ starts_with=pulumi.get(__response__, 'starts_with'),
189
+ streams=pulumi.get(__response__, 'streams'),
190
+ with_describe=pulumi.get(__response__, 'with_describe')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -71,6 +76,8 @@ class AwaitableGetSystemGenerateScimAccessTokenResult(GetSystemGenerateScimAcces
71
76
  def get_system_generate_scim_access_token(integration_name: Optional[str] = None,
72
77
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSystemGenerateScimAccessTokenResult:
73
78
  """
79
+ !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
80
+
74
81
  ## Example Usage
75
82
 
76
83
  ```python
@@ -92,12 +99,11 @@ def get_system_generate_scim_access_token(integration_name: Optional[str] = None
92
99
  access_token=pulumi.get(__ret__, 'access_token'),
93
100
  id=pulumi.get(__ret__, 'id'),
94
101
  integration_name=pulumi.get(__ret__, 'integration_name'))
95
-
96
-
97
- @_utilities.lift_output_func(get_system_generate_scim_access_token)
98
102
  def get_system_generate_scim_access_token_output(integration_name: Optional[pulumi.Input[str]] = None,
99
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSystemGenerateScimAccessTokenResult]:
103
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSystemGenerateScimAccessTokenResult]:
100
104
  """
105
+ !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
106
+
101
107
  ## Example Usage
102
108
 
103
109
  ```python
@@ -110,4 +116,11 @@ def get_system_generate_scim_access_token_output(integration_name: Optional[pulu
110
116
 
111
117
  :param str integration_name: SCIM Integration Name
112
118
  """
113
- ...
119
+ __args__ = dict()
120
+ __args__['integrationName'] = integration_name
121
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
122
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getSystemGenerateScimAccessToken:getSystemGenerateScimAccessToken', __args__, opts=opts, typ=GetSystemGenerateScimAccessTokenResult)
123
+ return __ret__.apply(lambda __response__: GetSystemGenerateScimAccessTokenResult(
124
+ access_token=pulumi.get(__response__, 'access_token'),
125
+ id=pulumi.get(__response__, 'id'),
126
+ integration_name=pulumi.get(__response__, 'integration_name')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -71,7 +76,15 @@ class AwaitableGetSystemGetAwsSnsIamPolicyResult(GetSystemGetAwsSnsIamPolicyResu
71
76
  def get_system_get_aws_sns_iam_policy(aws_sns_topic_arn: Optional[str] = None,
72
77
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSystemGetAwsSnsIamPolicyResult:
73
78
  """
74
- Use this data source to access information about an existing resource.
79
+ ## Example Usage
80
+
81
+ ```python
82
+ import pulumi
83
+ import pulumi_snowflake as snowflake
84
+
85
+ snowflake_policy = snowflake.get_system_get_aws_sns_iam_policy(aws_sns_topic_arn="<aws_sns_topic_arn>")
86
+ ```
87
+
75
88
 
76
89
  :param str aws_sns_topic_arn: Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
77
90
  """
@@ -84,14 +97,26 @@ def get_system_get_aws_sns_iam_policy(aws_sns_topic_arn: Optional[str] = None,
84
97
  aws_sns_topic_arn=pulumi.get(__ret__, 'aws_sns_topic_arn'),
85
98
  aws_sns_topic_policy_json=pulumi.get(__ret__, 'aws_sns_topic_policy_json'),
86
99
  id=pulumi.get(__ret__, 'id'))
87
-
88
-
89
- @_utilities.lift_output_func(get_system_get_aws_sns_iam_policy)
90
100
  def get_system_get_aws_sns_iam_policy_output(aws_sns_topic_arn: Optional[pulumi.Input[str]] = None,
91
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSystemGetAwsSnsIamPolicyResult]:
101
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSystemGetAwsSnsIamPolicyResult]:
92
102
  """
93
- Use this data source to access information about an existing resource.
103
+ ## Example Usage
104
+
105
+ ```python
106
+ import pulumi
107
+ import pulumi_snowflake as snowflake
108
+
109
+ snowflake_policy = snowflake.get_system_get_aws_sns_iam_policy(aws_sns_topic_arn="<aws_sns_topic_arn>")
110
+ ```
111
+
94
112
 
95
113
  :param str aws_sns_topic_arn: Amazon Resource Name (ARN) of the SNS topic for your S3 bucket
96
114
  """
97
- ...
115
+ __args__ = dict()
116
+ __args__['awsSnsTopicArn'] = aws_sns_topic_arn
117
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
118
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getSystemGetAwsSnsIamPolicy:getSystemGetAwsSnsIamPolicy', __args__, opts=opts, typ=GetSystemGetAwsSnsIamPolicyResult)
119
+ return __ret__.apply(lambda __response__: GetSystemGetAwsSnsIamPolicyResult(
120
+ aws_sns_topic_arn=pulumi.get(__response__, 'aws_sns_topic_arn'),
121
+ aws_sns_topic_policy_json=pulumi.get(__response__, 'aws_sns_topic_policy_json'),
122
+ id=pulumi.get(__response__, 'id')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -154,7 +159,57 @@ class AwaitableGetSystemGetPrivateLinkConfigResult(GetSystemGetPrivateLinkConfig
154
159
 
155
160
  def get_system_get_private_link_config(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSystemGetPrivateLinkConfigResult:
156
161
  """
157
- Use this data source to access information about an existing resource.
162
+ !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
163
+
164
+ ## Example Usage
165
+
166
+ ```python
167
+ import pulumi
168
+ import pulumi_aws as aws
169
+ import pulumi_snowflake as snowflake
170
+
171
+ snowflake_private_link = snowflake.get_system_get_private_link_config()
172
+ snowflake_private_link_security_group = aws.index.SecurityGroup("snowflake_private_link",
173
+ vpc_id=vpc_id,
174
+ ingress=[
175
+ {
176
+ fromPort: 80,
177
+ toPort: 80,
178
+ cidrBlocks: vpc_cidr,
179
+ protocol: tcp,
180
+ },
181
+ {
182
+ fromPort: 443,
183
+ toPort: 443,
184
+ cidrBlocks: vpc_cidr,
185
+ protocol: tcp,
186
+ },
187
+ ])
188
+ snowflake_private_link_vpc_endpoint = aws.index.VpcEndpoint("snowflake_private_link",
189
+ vpc_id=vpc_id,
190
+ service_name=snowflake_private_link.aws_vpce_id,
191
+ vpc_endpoint_type=Interface,
192
+ security_group_ids=[snowflake_private_link_security_group.id],
193
+ subnet_ids=subnet_ids,
194
+ private_dns_enabled=False)
195
+ snowflake_private_link_route53_zone = aws.index.Route53Zone("snowflake_private_link",
196
+ name=privatelink.snowflakecomputing.com,
197
+ vpc=[{
198
+ vpcId: vpc_id,
199
+ }])
200
+ snowflake_private_link_url = aws.index.Route53Record("snowflake_private_link_url",
201
+ zone_id=snowflake_private_link_route53_zone.zone_id,
202
+ name=snowflake_private_link.account_url,
203
+ type=CNAME,
204
+ ttl=300,
205
+ records=[snowflake_private_link_vpc_endpoint.dns_entry[0].dns_name])
206
+ snowflake_private_link_ocsp_url = aws.index.Route53Record("snowflake_private_link_ocsp_url",
207
+ zone_id=snowflake_private_link_route53_zone.zone_id,
208
+ name=snowflake_private_link.ocsp_url,
209
+ type=CNAME,
210
+ ttl=300,
211
+ records=[snowflake_private_link_vpc_endpoint.dns_entry[0].dns_name])
212
+ ```
158
213
  """
159
214
  __args__ = dict()
160
215
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
@@ -171,11 +226,71 @@ def get_system_get_private_link_config(opts: Optional[pulumi.InvokeOptions] = No
171
226
  regionless_account_url=pulumi.get(__ret__, 'regionless_account_url'),
172
227
  regionless_snowsight_url=pulumi.get(__ret__, 'regionless_snowsight_url'),
173
228
  snowsight_url=pulumi.get(__ret__, 'snowsight_url'))
229
+ def get_system_get_private_link_config_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSystemGetPrivateLinkConfigResult]:
230
+ """
231
+ !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
174
232
 
233
+ ## Example Usage
175
234
 
176
- @_utilities.lift_output_func(get_system_get_private_link_config)
177
- def get_system_get_private_link_config_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSystemGetPrivateLinkConfigResult]:
178
- """
179
- Use this data source to access information about an existing resource.
235
+ ```python
236
+ import pulumi
237
+ import pulumi_aws as aws
238
+ import pulumi_snowflake as snowflake
239
+
240
+ snowflake_private_link = snowflake.get_system_get_private_link_config()
241
+ snowflake_private_link_security_group = aws.index.SecurityGroup("snowflake_private_link",
242
+ vpc_id=vpc_id,
243
+ ingress=[
244
+ {
245
+ fromPort: 80,
246
+ toPort: 80,
247
+ cidrBlocks: vpc_cidr,
248
+ protocol: tcp,
249
+ },
250
+ {
251
+ fromPort: 443,
252
+ toPort: 443,
253
+ cidrBlocks: vpc_cidr,
254
+ protocol: tcp,
255
+ },
256
+ ])
257
+ snowflake_private_link_vpc_endpoint = aws.index.VpcEndpoint("snowflake_private_link",
258
+ vpc_id=vpc_id,
259
+ service_name=snowflake_private_link.aws_vpce_id,
260
+ vpc_endpoint_type=Interface,
261
+ security_group_ids=[snowflake_private_link_security_group.id],
262
+ subnet_ids=subnet_ids,
263
+ private_dns_enabled=False)
264
+ snowflake_private_link_route53_zone = aws.index.Route53Zone("snowflake_private_link",
265
+ name=privatelink.snowflakecomputing.com,
266
+ vpc=[{
267
+ vpcId: vpc_id,
268
+ }])
269
+ snowflake_private_link_url = aws.index.Route53Record("snowflake_private_link_url",
270
+ zone_id=snowflake_private_link_route53_zone.zone_id,
271
+ name=snowflake_private_link.account_url,
272
+ type=CNAME,
273
+ ttl=300,
274
+ records=[snowflake_private_link_vpc_endpoint.dns_entry[0].dns_name])
275
+ snowflake_private_link_ocsp_url = aws.index.Route53Record("snowflake_private_link_ocsp_url",
276
+ zone_id=snowflake_private_link_route53_zone.zone_id,
277
+ name=snowflake_private_link.ocsp_url,
278
+ type=CNAME,
279
+ ttl=300,
280
+ records=[snowflake_private_link_vpc_endpoint.dns_entry[0].dns_name])
281
+ ```
180
282
  """
181
- ...
283
+ __args__ = dict()
284
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
285
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getSystemGetPrivateLinkConfig:getSystemGetPrivateLinkConfig', __args__, opts=opts, typ=GetSystemGetPrivateLinkConfigResult)
286
+ return __ret__.apply(lambda __response__: GetSystemGetPrivateLinkConfigResult(
287
+ account_name=pulumi.get(__response__, 'account_name'),
288
+ account_url=pulumi.get(__response__, 'account_url'),
289
+ aws_vpce_id=pulumi.get(__response__, 'aws_vpce_id'),
290
+ azure_pls_id=pulumi.get(__response__, 'azure_pls_id'),
291
+ id=pulumi.get(__response__, 'id'),
292
+ internal_stage=pulumi.get(__response__, 'internal_stage'),
293
+ ocsp_url=pulumi.get(__response__, 'ocsp_url'),
294
+ regionless_account_url=pulumi.get(__response__, 'regionless_account_url'),
295
+ regionless_snowsight_url=pulumi.get(__response__, 'regionless_snowsight_url'),
296
+ snowsight_url=pulumi.get(__response__, 'snowsight_url')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -70,7 +75,7 @@ class AwaitableGetSystemGetSnowflakePlatformInfoResult(GetSystemGetSnowflakePlat
70
75
 
71
76
  def get_system_get_snowflake_platform_info(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSystemGetSnowflakePlatformInfoResult:
72
77
  """
73
- Use this data source to access information about an existing resource.
78
+ !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
74
79
  """
75
80
  __args__ = dict()
76
81
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
@@ -80,11 +85,14 @@ def get_system_get_snowflake_platform_info(opts: Optional[pulumi.InvokeOptions]
80
85
  aws_vpc_ids=pulumi.get(__ret__, 'aws_vpc_ids'),
81
86
  azure_vnet_subnet_ids=pulumi.get(__ret__, 'azure_vnet_subnet_ids'),
82
87
  id=pulumi.get(__ret__, 'id'))
83
-
84
-
85
- @_utilities.lift_output_func(get_system_get_snowflake_platform_info)
86
- def get_system_get_snowflake_platform_info_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSystemGetSnowflakePlatformInfoResult]:
88
+ def get_system_get_snowflake_platform_info_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSystemGetSnowflakePlatformInfoResult]:
87
89
  """
88
- Use this data source to access information about an existing resource.
90
+ !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
89
91
  """
90
- ...
92
+ __args__ = dict()
93
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
94
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getSystemGetSnowflakePlatformInfo:getSystemGetSnowflakePlatformInfo', __args__, opts=opts, typ=GetSystemGetSnowflakePlatformInfoResult)
95
+ return __ret__.apply(lambda __response__: GetSystemGetSnowflakePlatformInfoResult(
96
+ aws_vpc_ids=pulumi.get(__response__, 'aws_vpc_ids'),
97
+ azure_vnet_subnet_ids=pulumi.get(__response__, 'azure_vnet_subnet_ids'),
98
+ id=pulumi.get(__response__, 'id')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
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
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
 
@@ -85,6 +90,8 @@ def get_tables(database: Optional[str] = None,
85
90
  schema: Optional[str] = None,
86
91
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetTablesResult:
87
92
  """
93
+ !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
94
+
88
95
  ## Example Usage
89
96
 
90
97
  ```python
@@ -94,6 +101,10 @@ def get_tables(database: Optional[str] = None,
94
101
  current = snowflake.get_tables(database="MYDB",
95
102
  schema="MYSCHEMA")
96
103
  ```
104
+
105
+
106
+ :param str database: The database from which to return the schemas from.
107
+ :param str schema: The schema from which to return the tables from.
97
108
  """
98
109
  __args__ = dict()
99
110
  __args__['database'] = database
@@ -106,13 +117,12 @@ def get_tables(database: Optional[str] = None,
106
117
  id=pulumi.get(__ret__, 'id'),
107
118
  schema=pulumi.get(__ret__, 'schema'),
108
119
  tables=pulumi.get(__ret__, 'tables'))
109
-
110
-
111
- @_utilities.lift_output_func(get_tables)
112
120
  def get_tables_output(database: Optional[pulumi.Input[str]] = None,
113
121
  schema: Optional[pulumi.Input[str]] = None,
114
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetTablesResult]:
122
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetTablesResult]:
115
123
  """
124
+ !> **Caution: Preview Feature** This feature is considered a preview feature in the provider, regardless of the state of the resource in Snowflake. We do not guarantee its stability. It will be reworked and marked as a stable feature in future releases. Breaking changes are expected, even without bumping the major version. To use this feature, add the relevant feature name to `preview_features_enabled field` in the provider configuration. Please always refer to the Getting Help section in our Github repo to best determine how to get help for your questions.
125
+
116
126
  ## Example Usage
117
127
 
118
128
  ```python
@@ -122,5 +132,18 @@ def get_tables_output(database: Optional[pulumi.Input[str]] = None,
122
132
  current = snowflake.get_tables(database="MYDB",
123
133
  schema="MYSCHEMA")
124
134
  ```
135
+
136
+
137
+ :param str database: The database from which to return the schemas from.
138
+ :param str schema: The schema from which to return the tables from.
125
139
  """
126
- ...
140
+ __args__ = dict()
141
+ __args__['database'] = database
142
+ __args__['schema'] = schema
143
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
144
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getTables:getTables', __args__, opts=opts, typ=GetTablesResult)
145
+ return __ret__.apply(lambda __response__: GetTablesResult(
146
+ database=pulumi.get(__response__, 'database'),
147
+ id=pulumi.get(__response__, 'id'),
148
+ schema=pulumi.get(__response__, 'schema'),
149
+ tables=pulumi.get(__response__, 'tables')))