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,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_materialized_views(database: Optional[str] = None,
85
90
  schema: Optional[str] = None,
86
91
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMaterializedViewsResult:
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_materialized_views(database: Optional[str] = None,
94
101
  current = snowflake.get_materialized_views(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 views from.
97
108
  """
98
109
  __args__ = dict()
99
110
  __args__['database'] = database
@@ -106,13 +117,12 @@ def get_materialized_views(database: Optional[str] = None,
106
117
  id=pulumi.get(__ret__, 'id'),
107
118
  materialized_views=pulumi.get(__ret__, 'materialized_views'),
108
119
  schema=pulumi.get(__ret__, 'schema'))
109
-
110
-
111
- @_utilities.lift_output_func(get_materialized_views)
112
120
  def get_materialized_views_output(database: Optional[pulumi.Input[str]] = None,
113
121
  schema: Optional[pulumi.Input[str]] = None,
114
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetMaterializedViewsResult]:
122
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetMaterializedViewsResult]:
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_materialized_views_output(database: Optional[pulumi.Input[str]] = None,
122
132
  current = snowflake.get_materialized_views(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 views 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/getMaterializedViews:getMaterializedViews', __args__, opts=opts, typ=GetMaterializedViewsResult)
145
+ return __ret__.apply(lambda __response__: GetMaterializedViewsResult(
146
+ database=pulumi.get(__response__, 'database'),
147
+ id=pulumi.get(__response__, 'id'),
148
+ materialized_views=pulumi.get(__response__, 'materialized_views'),
149
+ schema=pulumi.get(__response__, 'schema')))
@@ -0,0 +1,129 @@
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
+
18
+ __all__ = [
19
+ 'GetNetworkPoliciesResult',
20
+ 'AwaitableGetNetworkPoliciesResult',
21
+ 'get_network_policies',
22
+ 'get_network_policies_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetNetworkPoliciesResult:
27
+ """
28
+ A collection of values returned by getNetworkPolicies.
29
+ """
30
+ def __init__(__self__, id=None, like=None, network_policies=None, with_describe=None):
31
+ if id and not isinstance(id, str):
32
+ raise TypeError("Expected argument 'id' to be a str")
33
+ pulumi.set(__self__, "id", id)
34
+ if like and not isinstance(like, str):
35
+ raise TypeError("Expected argument 'like' to be a str")
36
+ pulumi.set(__self__, "like", like)
37
+ if network_policies and not isinstance(network_policies, list):
38
+ raise TypeError("Expected argument 'network_policies' to be a list")
39
+ pulumi.set(__self__, "network_policies", network_policies)
40
+ if with_describe and not isinstance(with_describe, bool):
41
+ raise TypeError("Expected argument 'with_describe' to be a bool")
42
+ pulumi.set(__self__, "with_describe", with_describe)
43
+
44
+ @property
45
+ @pulumi.getter
46
+ def id(self) -> str:
47
+ """
48
+ The provider-assigned unique ID for this managed resource.
49
+ """
50
+ return pulumi.get(self, "id")
51
+
52
+ @property
53
+ @pulumi.getter
54
+ def like(self) -> Optional[str]:
55
+ """
56
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
57
+ """
58
+ return pulumi.get(self, "like")
59
+
60
+ @property
61
+ @pulumi.getter(name="networkPolicies")
62
+ def network_policies(self) -> Sequence['outputs.GetNetworkPoliciesNetworkPolicyResult']:
63
+ """
64
+ Holds the aggregated output of all network policies details queries.
65
+ """
66
+ return pulumi.get(self, "network_policies")
67
+
68
+ @property
69
+ @pulumi.getter(name="withDescribe")
70
+ def with_describe(self) -> Optional[bool]:
71
+ """
72
+ Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK POLICIES. The output of describe is saved to the description field. By default this value is set to true.
73
+ """
74
+ return pulumi.get(self, "with_describe")
75
+
76
+
77
+ class AwaitableGetNetworkPoliciesResult(GetNetworkPoliciesResult):
78
+ # pylint: disable=using-constant-test
79
+ def __await__(self):
80
+ if False:
81
+ yield self
82
+ return GetNetworkPoliciesResult(
83
+ id=self.id,
84
+ like=self.like,
85
+ network_policies=self.network_policies,
86
+ with_describe=self.with_describe)
87
+
88
+
89
+ def get_network_policies(like: Optional[str] = None,
90
+ with_describe: Optional[bool] = None,
91
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNetworkPoliciesResult:
92
+ """
93
+ Data source used to get details of filtered network policies. Filtering is aligned with the current possibilities for [SHOW NETWORK POLICIES](https://docs.snowflake.com/en/sql-reference/sql/show-network-policies) query (`like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection.
94
+
95
+
96
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
97
+ :param bool with_describe: Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK POLICIES. The output of describe is saved to the description field. By default this value is set to true.
98
+ """
99
+ __args__ = dict()
100
+ __args__['like'] = like
101
+ __args__['withDescribe'] = with_describe
102
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
103
+ __ret__ = pulumi.runtime.invoke('snowflake:index/getNetworkPolicies:getNetworkPolicies', __args__, opts=opts, typ=GetNetworkPoliciesResult).value
104
+
105
+ return AwaitableGetNetworkPoliciesResult(
106
+ id=pulumi.get(__ret__, 'id'),
107
+ like=pulumi.get(__ret__, 'like'),
108
+ network_policies=pulumi.get(__ret__, 'network_policies'),
109
+ with_describe=pulumi.get(__ret__, 'with_describe'))
110
+ def get_network_policies_output(like: Optional[pulumi.Input[Optional[str]]] = None,
111
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
112
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetNetworkPoliciesResult]:
113
+ """
114
+ Data source used to get details of filtered network policies. Filtering is aligned with the current possibilities for [SHOW NETWORK POLICIES](https://docs.snowflake.com/en/sql-reference/sql/show-network-policies) query (`like` is supported). The results of SHOW and DESCRIBE are encapsulated in one output collection.
115
+
116
+
117
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
118
+ :param bool with_describe: Runs DESC NETWORK POLICY for each network policy returned by SHOW NETWORK POLICIES. The output of describe is saved to the description field. By default this value is set to true.
119
+ """
120
+ __args__ = dict()
121
+ __args__['like'] = like
122
+ __args__['withDescribe'] = with_describe
123
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
124
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getNetworkPolicies:getNetworkPolicies', __args__, opts=opts, typ=GetNetworkPoliciesResult)
125
+ return __ret__.apply(lambda __response__: GetNetworkPoliciesResult(
126
+ id=pulumi.get(__response__, 'id'),
127
+ like=pulumi.get(__response__, 'like'),
128
+ network_policies=pulumi.get(__response__, 'network_policies'),
129
+ 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
  from . import outputs
12
17
 
@@ -124,18 +129,23 @@ def get_parameters(object_name: Optional[str] = None,
124
129
  user: Optional[str] = None,
125
130
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetParametersResult:
126
131
  """
132
+ !> **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.
133
+
127
134
  ## Example Usage
128
135
 
129
136
  ```python
130
137
  import pulumi
131
138
  import pulumi_snowflake as snowflake
132
139
 
133
- database = snowflake.Database("database")
134
- parameters = snowflake.get_parameters_output(parameter_type="OBJECT",
140
+ d = snowflake.Database("d", name="TEST_DB")
141
+ # read all object parameters in database TEST_DB
142
+ p = snowflake.get_parameters_output(parameter_type="OBJECT",
135
143
  object_type="DATABASE",
136
- object_name=database.name)
144
+ object_name=d.name)
145
+ # read all account parameters with the pattern '%TIMESTAMP%'
137
146
  p2 = snowflake.get_parameters(parameter_type="ACCOUNT",
138
147
  pattern="%TIMESTAMP%")
148
+ # read the exact session parameter ROWS_PER_RESULTSET
139
149
  p3 = snowflake.get_parameters(parameter_type="SESSION",
140
150
  pattern="ROWS_PER_RESULTSET",
141
151
  user="TEST_USER")
@@ -165,28 +175,30 @@ def get_parameters(object_name: Optional[str] = None,
165
175
  parameters=pulumi.get(__ret__, 'parameters'),
166
176
  pattern=pulumi.get(__ret__, 'pattern'),
167
177
  user=pulumi.get(__ret__, 'user'))
168
-
169
-
170
- @_utilities.lift_output_func(get_parameters)
171
178
  def get_parameters_output(object_name: Optional[pulumi.Input[Optional[str]]] = None,
172
179
  object_type: Optional[pulumi.Input[Optional[str]]] = None,
173
180
  parameter_type: Optional[pulumi.Input[Optional[str]]] = None,
174
181
  pattern: Optional[pulumi.Input[Optional[str]]] = None,
175
182
  user: Optional[pulumi.Input[Optional[str]]] = None,
176
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetParametersResult]:
183
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetParametersResult]:
177
184
  """
185
+ !> **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.
186
+
178
187
  ## Example Usage
179
188
 
180
189
  ```python
181
190
  import pulumi
182
191
  import pulumi_snowflake as snowflake
183
192
 
184
- database = snowflake.Database("database")
185
- parameters = snowflake.get_parameters_output(parameter_type="OBJECT",
193
+ d = snowflake.Database("d", name="TEST_DB")
194
+ # read all object parameters in database TEST_DB
195
+ p = snowflake.get_parameters_output(parameter_type="OBJECT",
186
196
  object_type="DATABASE",
187
- object_name=database.name)
197
+ object_name=d.name)
198
+ # read all account parameters with the pattern '%TIMESTAMP%'
188
199
  p2 = snowflake.get_parameters(parameter_type="ACCOUNT",
189
200
  pattern="%TIMESTAMP%")
201
+ # read the exact session parameter ROWS_PER_RESULTSET
190
202
  p3 = snowflake.get_parameters(parameter_type="SESSION",
191
203
  pattern="ROWS_PER_RESULTSET",
192
204
  user="TEST_USER")
@@ -199,4 +211,19 @@ def get_parameters_output(object_name: Optional[pulumi.Input[Optional[str]]] = N
199
211
  :param str pattern: Allows limiting the list of parameters by name using LIKE clause. Refer to [Limiting the List of Parameters by Name](https://docs.snowflake.com/en/sql-reference/parameters.html#limiting-the-list-of-parameters-by-name)
200
212
  :param str user: If parameter_type is set to "SESSION" then user is the name of the user to display session parameters for.
201
213
  """
202
- ...
214
+ __args__ = dict()
215
+ __args__['objectName'] = object_name
216
+ __args__['objectType'] = object_type
217
+ __args__['parameterType'] = parameter_type
218
+ __args__['pattern'] = pattern
219
+ __args__['user'] = user
220
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
221
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getParameters:getParameters', __args__, opts=opts, typ=GetParametersResult)
222
+ return __ret__.apply(lambda __response__: GetParametersResult(
223
+ id=pulumi.get(__response__, 'id'),
224
+ object_name=pulumi.get(__response__, 'object_name'),
225
+ object_type=pulumi.get(__response__, 'object_type'),
226
+ parameter_type=pulumi.get(__response__, 'parameter_type'),
227
+ parameters=pulumi.get(__response__, 'parameters'),
228
+ pattern=pulumi.get(__response__, 'pattern'),
229
+ user=pulumi.get(__response__, 'user')))
@@ -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_pipes(database: Optional[str] = None,
85
90
  schema: Optional[str] = None,
86
91
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetPipesResult:
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_pipes(database: Optional[str] = None,
94
101
  current = snowflake.get_pipes(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 pipes from.
97
108
  """
98
109
  __args__ = dict()
99
110
  __args__['database'] = database
@@ -106,13 +117,12 @@ def get_pipes(database: Optional[str] = None,
106
117
  id=pulumi.get(__ret__, 'id'),
107
118
  pipes=pulumi.get(__ret__, 'pipes'),
108
119
  schema=pulumi.get(__ret__, 'schema'))
109
-
110
-
111
- @_utilities.lift_output_func(get_pipes)
112
120
  def get_pipes_output(database: Optional[pulumi.Input[str]] = None,
113
121
  schema: Optional[pulumi.Input[str]] = None,
114
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPipesResult]:
122
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetPipesResult]:
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_pipes_output(database: Optional[pulumi.Input[str]] = None,
122
132
  current = snowflake.get_pipes(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 pipes 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/getPipes:getPipes', __args__, opts=opts, typ=GetPipesResult)
145
+ return __ret__.apply(lambda __response__: GetPipesResult(
146
+ database=pulumi.get(__response__, 'database'),
147
+ id=pulumi.get(__response__, 'id'),
148
+ pipes=pulumi.get(__response__, 'pipes'),
149
+ schema=pulumi.get(__response__, 'schema')))
@@ -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_procedures(database: Optional[str] = None,
85
90
  schema: Optional[str] = None,
86
91
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetProceduresResult:
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_procedures(database: Optional[str] = None,
94
101
  current = snowflake.get_procedures(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 procedures from.
97
108
  """
98
109
  __args__ = dict()
99
110
  __args__['database'] = database
@@ -106,13 +117,12 @@ def get_procedures(database: Optional[str] = None,
106
117
  id=pulumi.get(__ret__, 'id'),
107
118
  procedures=pulumi.get(__ret__, 'procedures'),
108
119
  schema=pulumi.get(__ret__, 'schema'))
109
-
110
-
111
- @_utilities.lift_output_func(get_procedures)
112
120
  def get_procedures_output(database: Optional[pulumi.Input[str]] = None,
113
121
  schema: Optional[pulumi.Input[str]] = None,
114
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProceduresResult]:
122
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetProceduresResult]:
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_procedures_output(database: Optional[pulumi.Input[str]] = None,
122
132
  current = snowflake.get_procedures(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 procedures 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/getProcedures:getProcedures', __args__, opts=opts, typ=GetProceduresResult)
145
+ return __ret__.apply(lambda __response__: GetProceduresResult(
146
+ database=pulumi.get(__response__, 'database'),
147
+ id=pulumi.get(__response__, 'id'),
148
+ procedures=pulumi.get(__response__, 'procedures'),
149
+ schema=pulumi.get(__response__, 'schema')))
@@ -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
 
@@ -22,10 +27,13 @@ class GetResourceMonitorsResult:
22
27
  """
23
28
  A collection of values returned by getResourceMonitors.
24
29
  """
25
- def __init__(__self__, id=None, resource_monitors=None):
30
+ def __init__(__self__, id=None, like=None, resource_monitors=None):
26
31
  if id and not isinstance(id, str):
27
32
  raise TypeError("Expected argument 'id' to be a str")
28
33
  pulumi.set(__self__, "id", id)
34
+ if like and not isinstance(like, str):
35
+ raise TypeError("Expected argument 'like' to be a str")
36
+ pulumi.set(__self__, "like", like)
29
37
  if resource_monitors and not isinstance(resource_monitors, list):
30
38
  raise TypeError("Expected argument 'resource_monitors' to be a list")
31
39
  pulumi.set(__self__, "resource_monitors", resource_monitors)
@@ -38,11 +46,19 @@ class GetResourceMonitorsResult:
38
46
  """
39
47
  return pulumi.get(self, "id")
40
48
 
49
+ @property
50
+ @pulumi.getter
51
+ def like(self) -> Optional[str]:
52
+ """
53
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
54
+ """
55
+ return pulumi.get(self, "like")
56
+
41
57
  @property
42
58
  @pulumi.getter(name="resourceMonitors")
43
59
  def resource_monitors(self) -> Sequence['outputs.GetResourceMonitorsResourceMonitorResult']:
44
60
  """
45
- The resource monitors in the database
61
+ Holds the aggregated output of all resource monitor details queries.
46
62
  """
47
63
  return pulumi.get(self, "resource_monitors")
48
64
 
@@ -54,39 +70,40 @@ class AwaitableGetResourceMonitorsResult(GetResourceMonitorsResult):
54
70
  yield self
55
71
  return GetResourceMonitorsResult(
56
72
  id=self.id,
73
+ like=self.like,
57
74
  resource_monitors=self.resource_monitors)
58
75
 
59
76
 
60
- def get_resource_monitors(opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetResourceMonitorsResult:
77
+ def get_resource_monitors(like: Optional[str] = None,
78
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetResourceMonitorsResult:
61
79
  """
62
- ## Example Usage
80
+ Data source used to get details of filtered resource monitors. Filtering is aligned with the current possibilities for [SHOW RESOURCE MONITORS](https://docs.snowflake.com/en/sql-reference/sql/show-resource-monitors) query (`like` is supported). The results of SHOW is encapsulated in show_output collection.
63
81
 
64
- ```python
65
- import pulumi
66
- import pulumi_snowflake as snowflake
67
82
 
68
- current = snowflake.get_resource_monitors()
69
- ```
83
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
70
84
  """
71
85
  __args__ = dict()
86
+ __args__['like'] = like
72
87
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
73
88
  __ret__ = pulumi.runtime.invoke('snowflake:index/getResourceMonitors:getResourceMonitors', __args__, opts=opts, typ=GetResourceMonitorsResult).value
74
89
 
75
90
  return AwaitableGetResourceMonitorsResult(
76
91
  id=pulumi.get(__ret__, 'id'),
92
+ like=pulumi.get(__ret__, 'like'),
77
93
  resource_monitors=pulumi.get(__ret__, 'resource_monitors'))
78
-
79
-
80
- @_utilities.lift_output_func(get_resource_monitors)
81
- def get_resource_monitors_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetResourceMonitorsResult]:
94
+ def get_resource_monitors_output(like: Optional[pulumi.Input[Optional[str]]] = None,
95
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetResourceMonitorsResult]:
82
96
  """
83
- ## Example Usage
97
+ Data source used to get details of filtered resource monitors. Filtering is aligned with the current possibilities for [SHOW RESOURCE MONITORS](https://docs.snowflake.com/en/sql-reference/sql/show-resource-monitors) query (`like` is supported). The results of SHOW is encapsulated in show_output collection.
84
98
 
85
- ```python
86
- import pulumi
87
- import pulumi_snowflake as snowflake
88
99
 
89
- current = snowflake.get_resource_monitors()
90
- ```
100
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
91
101
  """
92
- ...
102
+ __args__ = dict()
103
+ __args__['like'] = like
104
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
105
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getResourceMonitors:getResourceMonitors', __args__, opts=opts, typ=GetResourceMonitorsResult)
106
+ return __ret__.apply(lambda __response__: GetResourceMonitorsResult(
107
+ id=pulumi.get(__response__, 'id'),
108
+ like=pulumi.get(__response__, 'like'),
109
+ resource_monitors=pulumi.get(__response__, 'resource_monitors')))