pulumi-snowflake 0.50.3a1710160126__py3-none-any.whl → 1.2.0a1736835738__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-snowflake might be problematic. Click here for more details.

Files changed (182) hide show
  1. pulumi_snowflake/__init__.py +224 -172
  2. pulumi_snowflake/_inputs.py +52857 -1665
  3. pulumi_snowflake/_utilities.py +41 -5
  4. pulumi_snowflake/account.py +188 -218
  5. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  6. pulumi_snowflake/account_parameter.py +21 -48
  7. pulumi_snowflake/account_password_policy_attachment.py +7 -32
  8. pulumi_snowflake/account_role.py +250 -0
  9. pulumi_snowflake/alert.py +38 -47
  10. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
  11. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
  12. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
  13. pulumi_snowflake/api_integration.py +33 -52
  14. pulumi_snowflake/authentication_policy.py +622 -0
  15. pulumi_snowflake/config/__init__.pyi +76 -99
  16. pulumi_snowflake/config/outputs.py +5 -0
  17. pulumi_snowflake/config/vars.py +93 -124
  18. pulumi_snowflake/cortex_search_service.py +596 -0
  19. pulumi_snowflake/database.py +819 -213
  20. pulumi_snowflake/database_role.py +81 -44
  21. pulumi_snowflake/dynamic_table.py +42 -49
  22. pulumi_snowflake/email_notification_integration.py +33 -28
  23. pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
  24. pulumi_snowflake/external_function.py +54 -75
  25. pulumi_snowflake/external_oauth_integration.py +593 -542
  26. pulumi_snowflake/external_table.py +67 -90
  27. pulumi_snowflake/external_volume.py +382 -0
  28. pulumi_snowflake/failover_group.py +57 -98
  29. pulumi_snowflake/file_format.py +33 -28
  30. pulumi_snowflake/function_java.py +1211 -0
  31. pulumi_snowflake/function_javascript.py +882 -0
  32. pulumi_snowflake/function_python.py +1212 -0
  33. pulumi_snowflake/function_scala.py +1212 -0
  34. pulumi_snowflake/function_sql.py +835 -0
  35. pulumi_snowflake/get_account_roles.py +129 -0
  36. pulumi_snowflake/get_accounts.py +53 -22
  37. pulumi_snowflake/get_alerts.py +22 -9
  38. pulumi_snowflake/get_connections.py +109 -0
  39. pulumi_snowflake/get_cortex_search_services.py +216 -0
  40. pulumi_snowflake/get_current_account.py +24 -13
  41. pulumi_snowflake/get_current_role.py +14 -7
  42. pulumi_snowflake/get_database.py +25 -9
  43. pulumi_snowflake/get_database_role.py +162 -0
  44. pulumi_snowflake/get_database_roles.py +79 -47
  45. pulumi_snowflake/get_databases.py +91 -73
  46. pulumi_snowflake/get_dynamic_tables.py +36 -19
  47. pulumi_snowflake/get_external_functions.py +28 -9
  48. pulumi_snowflake/get_external_tables.py +28 -9
  49. pulumi_snowflake/get_failover_groups.py +18 -7
  50. pulumi_snowflake/get_file_formats.py +28 -9
  51. pulumi_snowflake/get_functions.py +28 -9
  52. pulumi_snowflake/get_grants.py +207 -84
  53. pulumi_snowflake/get_masking_policies.py +91 -51
  54. pulumi_snowflake/get_materialized_views.py +28 -9
  55. pulumi_snowflake/get_network_policies.py +129 -0
  56. pulumi_snowflake/get_parameters.py +38 -15
  57. pulumi_snowflake/get_pipes.py +28 -9
  58. pulumi_snowflake/get_procedures.py +28 -9
  59. pulumi_snowflake/get_resource_monitors.py +37 -24
  60. pulumi_snowflake/get_row_access_policies.py +91 -51
  61. pulumi_snowflake/get_schemas.py +145 -41
  62. pulumi_snowflake/get_secrets.py +200 -0
  63. pulumi_snowflake/get_security_integrations.py +129 -0
  64. pulumi_snowflake/get_sequences.py +28 -9
  65. pulumi_snowflake/get_shares.py +18 -9
  66. pulumi_snowflake/get_stages.py +28 -9
  67. pulumi_snowflake/get_storage_integrations.py +16 -9
  68. pulumi_snowflake/get_streamlits.py +170 -0
  69. pulumi_snowflake/get_streams.py +114 -54
  70. pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
  71. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
  72. pulumi_snowflake/get_system_get_private_link_config.py +120 -5
  73. pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
  74. pulumi_snowflake/get_tables.py +28 -9
  75. pulumi_snowflake/get_tags.py +130 -0
  76. pulumi_snowflake/get_tasks.py +134 -54
  77. pulumi_snowflake/get_users.py +116 -44
  78. pulumi_snowflake/get_views.py +114 -54
  79. pulumi_snowflake/get_warehouses.py +79 -26
  80. pulumi_snowflake/grant_account_role.py +28 -75
  81. pulumi_snowflake/grant_application_role.py +257 -0
  82. pulumi_snowflake/grant_database_role.py +35 -94
  83. pulumi_snowflake/grant_ownership.py +382 -0
  84. pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
  85. pulumi_snowflake/grant_privileges_to_database_role.py +37 -383
  86. pulumi_snowflake/grant_privileges_to_share.py +96 -44
  87. pulumi_snowflake/legacy_service_user.py +3670 -0
  88. pulumi_snowflake/managed_account.py +40 -11
  89. pulumi_snowflake/masking_policy.py +213 -310
  90. pulumi_snowflake/materialized_view.py +62 -71
  91. pulumi_snowflake/network_policy.py +217 -61
  92. pulumi_snowflake/network_policy_attachment.py +5 -34
  93. pulumi_snowflake/network_rule.py +473 -0
  94. pulumi_snowflake/notification_integration.py +49 -84
  95. pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
  96. pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
  97. pulumi_snowflake/object_parameter.py +10 -101
  98. pulumi_snowflake/outputs.py +49200 -2928
  99. pulumi_snowflake/password_policy.py +41 -28
  100. pulumi_snowflake/pipe.py +33 -4
  101. pulumi_snowflake/primary_connection.py +330 -0
  102. pulumi_snowflake/procedure_java.py +1273 -0
  103. pulumi_snowflake/procedure_javascript.py +895 -0
  104. pulumi_snowflake/procedure_python.py +1226 -0
  105. pulumi_snowflake/procedure_scala.py +1273 -0
  106. pulumi_snowflake/procedure_sql.py +895 -0
  107. pulumi_snowflake/provider.py +378 -613
  108. pulumi_snowflake/pulumi-plugin.json +2 -1
  109. pulumi_snowflake/resource_monitor.py +118 -327
  110. pulumi_snowflake/row_access_policy.py +200 -149
  111. pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
  112. pulumi_snowflake/schema.py +949 -178
  113. pulumi_snowflake/scim_integration.py +286 -109
  114. pulumi_snowflake/secondary_connection.py +339 -0
  115. pulumi_snowflake/secondary_database.py +1080 -0
  116. pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
  117. pulumi_snowflake/secret_with_basic_authentication.py +500 -0
  118. pulumi_snowflake/secret_with_client_credentials.py +511 -0
  119. pulumi_snowflake/secret_with_generic_string.py +452 -0
  120. pulumi_snowflake/sequence.py +9 -34
  121. pulumi_snowflake/service_user.py +3585 -0
  122. pulumi_snowflake/share.py +33 -28
  123. pulumi_snowflake/shared_database.py +939 -0
  124. pulumi_snowflake/stage.py +95 -84
  125. pulumi_snowflake/storage_integration.py +46 -4
  126. pulumi_snowflake/stream_on_directory_table.py +517 -0
  127. pulumi_snowflake/stream_on_external_table.py +632 -0
  128. pulumi_snowflake/stream_on_table.py +666 -0
  129. pulumi_snowflake/stream_on_view.py +666 -0
  130. pulumi_snowflake/streamlit.py +671 -0
  131. pulumi_snowflake/table.py +86 -97
  132. pulumi_snowflake/table_column_masking_policy_application.py +7 -14
  133. pulumi_snowflake/table_constraint.py +29 -172
  134. pulumi_snowflake/tag.py +142 -74
  135. pulumi_snowflake/tag_association.py +40 -215
  136. pulumi_snowflake/task.py +3048 -418
  137. pulumi_snowflake/user.py +3351 -384
  138. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  139. pulumi_snowflake/user_password_policy_attachment.py +5 -4
  140. pulumi_snowflake/user_public_keys.py +5 -0
  141. pulumi_snowflake/view.py +466 -215
  142. pulumi_snowflake/warehouse.py +184 -168
  143. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/METADATA +7 -6
  144. pulumi_snowflake-1.2.0a1736835738.dist-info/RECORD +148 -0
  145. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
  146. pulumi_snowflake/account_grant.py +0 -343
  147. pulumi_snowflake/database_grant.py +0 -495
  148. pulumi_snowflake/external_table_grant.py +0 -690
  149. pulumi_snowflake/failover_group_grant.py +0 -388
  150. pulumi_snowflake/file_format_grant.py +0 -635
  151. pulumi_snowflake/function.py +0 -872
  152. pulumi_snowflake/function_grant.py +0 -745
  153. pulumi_snowflake/get_role.py +0 -121
  154. pulumi_snowflake/get_roles.py +0 -120
  155. pulumi_snowflake/grant_privileges_to_role.py +0 -825
  156. pulumi_snowflake/integration_grant.py +0 -440
  157. pulumi_snowflake/masking_policy_grant.py +0 -542
  158. pulumi_snowflake/materialized_view_grant.py +0 -689
  159. pulumi_snowflake/pipe_grant.py +0 -587
  160. pulumi_snowflake/procedure.py +0 -887
  161. pulumi_snowflake/procedure_grant.py +0 -745
  162. pulumi_snowflake/resource_monitor_grant.py +0 -387
  163. pulumi_snowflake/role.py +0 -273
  164. pulumi_snowflake/role_grants.py +0 -352
  165. pulumi_snowflake/role_ownership_grant.py +0 -338
  166. pulumi_snowflake/row_access_policy_grant.py +0 -540
  167. pulumi_snowflake/schema_grant.py +0 -647
  168. pulumi_snowflake/sequence_grant.py +0 -635
  169. pulumi_snowflake/session_parameter.py +0 -332
  170. pulumi_snowflake/stage_grant.py +0 -635
  171. pulumi_snowflake/stream.py +0 -614
  172. pulumi_snowflake/stream_grant.py +0 -635
  173. pulumi_snowflake/table_grant.py +0 -677
  174. pulumi_snowflake/tag_grant.py +0 -532
  175. pulumi_snowflake/tag_masking_policy_association.py +0 -210
  176. pulumi_snowflake/task_grant.py +0 -635
  177. pulumi_snowflake/user_grant.py +0 -394
  178. pulumi_snowflake/user_ownership_grant.py +0 -286
  179. pulumi_snowflake/view_grant.py +0 -705
  180. pulumi_snowflake/warehouse_grant.py +0 -440
  181. pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
  182. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
@@ -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
+ 'GetAccountRolesResult',
20
+ 'AwaitableGetAccountRolesResult',
21
+ 'get_account_roles',
22
+ 'get_account_roles_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetAccountRolesResult:
27
+ """
28
+ A collection of values returned by getAccountRoles.
29
+ """
30
+ def __init__(__self__, account_roles=None, id=None, in_class=None, like=None):
31
+ if account_roles and not isinstance(account_roles, list):
32
+ raise TypeError("Expected argument 'account_roles' to be a list")
33
+ pulumi.set(__self__, "account_roles", account_roles)
34
+ if id and not isinstance(id, str):
35
+ raise TypeError("Expected argument 'id' to be a str")
36
+ pulumi.set(__self__, "id", id)
37
+ if in_class and not isinstance(in_class, str):
38
+ raise TypeError("Expected argument 'in_class' to be a str")
39
+ pulumi.set(__self__, "in_class", in_class)
40
+ if like and not isinstance(like, str):
41
+ raise TypeError("Expected argument 'like' to be a str")
42
+ pulumi.set(__self__, "like", like)
43
+
44
+ @property
45
+ @pulumi.getter(name="accountRoles")
46
+ def account_roles(self) -> Sequence['outputs.GetAccountRolesAccountRoleResult']:
47
+ """
48
+ Holds the aggregated output of all account role details queries.
49
+ """
50
+ return pulumi.get(self, "account_roles")
51
+
52
+ @property
53
+ @pulumi.getter
54
+ def id(self) -> str:
55
+ """
56
+ The provider-assigned unique ID for this managed resource.
57
+ """
58
+ return pulumi.get(self, "id")
59
+
60
+ @property
61
+ @pulumi.getter(name="inClass")
62
+ def in_class(self) -> Optional[str]:
63
+ """
64
+ Filters the SHOW GRANTS output by class name.
65
+ """
66
+ return pulumi.get(self, "in_class")
67
+
68
+ @property
69
+ @pulumi.getter
70
+ def like(self) -> Optional[str]:
71
+ """
72
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
73
+ """
74
+ return pulumi.get(self, "like")
75
+
76
+
77
+ class AwaitableGetAccountRolesResult(GetAccountRolesResult):
78
+ # pylint: disable=using-constant-test
79
+ def __await__(self):
80
+ if False:
81
+ yield self
82
+ return GetAccountRolesResult(
83
+ account_roles=self.account_roles,
84
+ id=self.id,
85
+ in_class=self.in_class,
86
+ like=self.like)
87
+
88
+
89
+ def get_account_roles(in_class: Optional[str] = None,
90
+ like: Optional[str] = None,
91
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAccountRolesResult:
92
+ """
93
+ Data source used to get details of filtered account roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `in_class` are all supported). The results of SHOW are encapsulated in one output collection.
94
+
95
+
96
+ :param str in_class: Filters the SHOW GRANTS output by class name.
97
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
98
+ """
99
+ __args__ = dict()
100
+ __args__['inClass'] = in_class
101
+ __args__['like'] = like
102
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
103
+ __ret__ = pulumi.runtime.invoke('snowflake:index/getAccountRoles:getAccountRoles', __args__, opts=opts, typ=GetAccountRolesResult).value
104
+
105
+ return AwaitableGetAccountRolesResult(
106
+ account_roles=pulumi.get(__ret__, 'account_roles'),
107
+ id=pulumi.get(__ret__, 'id'),
108
+ in_class=pulumi.get(__ret__, 'in_class'),
109
+ like=pulumi.get(__ret__, 'like'))
110
+ def get_account_roles_output(in_class: Optional[pulumi.Input[Optional[str]]] = None,
111
+ like: Optional[pulumi.Input[Optional[str]]] = None,
112
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAccountRolesResult]:
113
+ """
114
+ Data source used to get details of filtered account roles. Filtering is aligned with the current possibilities for [SHOW ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-roles) query (`like` and `in_class` are all supported). The results of SHOW are encapsulated in one output collection.
115
+
116
+
117
+ :param str in_class: Filters the SHOW GRANTS output by class name.
118
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
119
+ """
120
+ __args__ = dict()
121
+ __args__['inClass'] = in_class
122
+ __args__['like'] = like
123
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
124
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getAccountRoles:getAccountRoles', __args__, opts=opts, typ=GetAccountRolesResult)
125
+ return __ret__.apply(lambda __response__: GetAccountRolesResult(
126
+ account_roles=pulumi.get(__response__, 'account_roles'),
127
+ id=pulumi.get(__response__, 'id'),
128
+ in_class=pulumi.get(__response__, 'in_class'),
129
+ like=pulumi.get(__response__, 'like')))
@@ -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,22 +27,25 @@ class GetAccountsResult:
22
27
  """
23
28
  A collection of values returned by getAccounts.
24
29
  """
25
- def __init__(__self__, accounts=None, id=None, pattern=None):
30
+ def __init__(__self__, accounts=None, id=None, like=None, with_history=None):
26
31
  if accounts and not isinstance(accounts, list):
27
32
  raise TypeError("Expected argument 'accounts' to be a list")
28
33
  pulumi.set(__self__, "accounts", accounts)
29
34
  if id and not isinstance(id, str):
30
35
  raise TypeError("Expected argument 'id' to be a str")
31
36
  pulumi.set(__self__, "id", id)
32
- if pattern and not isinstance(pattern, str):
33
- raise TypeError("Expected argument 'pattern' to be a str")
34
- pulumi.set(__self__, "pattern", pattern)
37
+ if like and not isinstance(like, str):
38
+ raise TypeError("Expected argument 'like' to be a str")
39
+ pulumi.set(__self__, "like", like)
40
+ if with_history and not isinstance(with_history, bool):
41
+ raise TypeError("Expected argument 'with_history' to be a bool")
42
+ pulumi.set(__self__, "with_history", with_history)
35
43
 
36
44
  @property
37
45
  @pulumi.getter
38
46
  def accounts(self) -> Sequence['outputs.GetAccountsAccountResult']:
39
47
  """
40
- List of all the accounts available in the organization.
48
+ Holds the aggregated output of all accounts details queries.
41
49
  """
42
50
  return pulumi.get(self, "accounts")
43
51
 
@@ -51,11 +59,19 @@ class GetAccountsResult:
51
59
 
52
60
  @property
53
61
  @pulumi.getter
54
- def pattern(self) -> Optional[str]:
62
+ def like(self) -> Optional[str]:
55
63
  """
56
- Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.
64
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
57
65
  """
58
- return pulumi.get(self, "pattern")
66
+ return pulumi.get(self, "like")
67
+
68
+ @property
69
+ @pulumi.getter(name="withHistory")
70
+ def with_history(self) -> Optional[bool]:
71
+ """
72
+ Includes dropped accounts that have not yet been deleted.
73
+ """
74
+ return pulumi.get(self, "with_history")
59
75
 
60
76
 
61
77
  class AwaitableGetAccountsResult(GetAccountsResult):
@@ -66,33 +82,48 @@ class AwaitableGetAccountsResult(GetAccountsResult):
66
82
  return GetAccountsResult(
67
83
  accounts=self.accounts,
68
84
  id=self.id,
69
- pattern=self.pattern)
85
+ like=self.like,
86
+ with_history=self.with_history)
70
87
 
71
88
 
72
- def get_accounts(pattern: Optional[str] = None,
89
+ def get_accounts(like: Optional[str] = None,
90
+ with_history: Optional[bool] = None,
73
91
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAccountsResult:
74
92
  """
75
- Use this data source to access information about an existing resource.
93
+ Data source used to get details of filtered accounts. Filtering is aligned with the current possibilities for [SHOW ACCOUNTS](https://docs.snowflake.com/en/sql-reference/sql/show-accounts) query. The results of SHOW are encapsulated in one output collection `accounts`.
94
+
76
95
 
77
- :param str pattern: Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.
96
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
97
+ :param bool with_history: Includes dropped accounts that have not yet been deleted.
78
98
  """
79
99
  __args__ = dict()
80
- __args__['pattern'] = pattern
100
+ __args__['like'] = like
101
+ __args__['withHistory'] = with_history
81
102
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
82
103
  __ret__ = pulumi.runtime.invoke('snowflake:index/getAccounts:getAccounts', __args__, opts=opts, typ=GetAccountsResult).value
83
104
 
84
105
  return AwaitableGetAccountsResult(
85
106
  accounts=pulumi.get(__ret__, 'accounts'),
86
107
  id=pulumi.get(__ret__, 'id'),
87
- pattern=pulumi.get(__ret__, 'pattern'))
88
-
89
-
90
- @_utilities.lift_output_func(get_accounts)
91
- def get_accounts_output(pattern: Optional[pulumi.Input[Optional[str]]] = None,
92
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAccountsResult]:
108
+ like=pulumi.get(__ret__, 'like'),
109
+ with_history=pulumi.get(__ret__, 'with_history'))
110
+ def get_accounts_output(like: Optional[pulumi.Input[Optional[str]]] = None,
111
+ with_history: Optional[pulumi.Input[Optional[bool]]] = None,
112
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAccountsResult]:
93
113
  """
94
- Use this data source to access information about an existing resource.
114
+ Data source used to get details of filtered accounts. Filtering is aligned with the current possibilities for [SHOW ACCOUNTS](https://docs.snowflake.com/en/sql-reference/sql/show-accounts) query. The results of SHOW are encapsulated in one output collection `accounts`.
95
115
 
96
- :param str pattern: Specifies an account name pattern. If a pattern is specified, only accounts matching the pattern are returned.
116
+
117
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
118
+ :param bool with_history: Includes dropped accounts that have not yet been deleted.
97
119
  """
98
- ...
120
+ __args__ = dict()
121
+ __args__['like'] = like
122
+ __args__['withHistory'] = with_history
123
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
124
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getAccounts:getAccounts', __args__, opts=opts, typ=GetAccountsResult)
125
+ return __ret__.apply(lambda __response__: GetAccountsResult(
126
+ accounts=pulumi.get(__response__, 'accounts'),
127
+ id=pulumi.get(__response__, 'id'),
128
+ like=pulumi.get(__response__, 'like'),
129
+ with_history=pulumi.get(__response__, 'with_history')))
@@ -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
 
@@ -98,9 +103,10 @@ def get_alerts(database: Optional[str] = None,
98
103
  schema: Optional[str] = None,
99
104
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertsResult:
100
105
  """
106
+ !> **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.
107
+
101
108
  ## Example Usage
102
109
 
103
- <!--Start PulumiCodeChooser -->
104
110
  ```python
105
111
  import pulumi
106
112
  import pulumi_snowflake as snowflake
@@ -108,7 +114,6 @@ def get_alerts(database: Optional[str] = None,
108
114
  current = snowflake.get_alerts(database="MYDB",
109
115
  schema="MYSCHEMA")
110
116
  ```
111
- <!--End PulumiCodeChooser -->
112
117
 
113
118
 
114
119
  :param str database: The database from which to return the alerts from.
@@ -128,17 +133,15 @@ def get_alerts(database: Optional[str] = None,
128
133
  id=pulumi.get(__ret__, 'id'),
129
134
  pattern=pulumi.get(__ret__, 'pattern'),
130
135
  schema=pulumi.get(__ret__, 'schema'))
131
-
132
-
133
- @_utilities.lift_output_func(get_alerts)
134
136
  def get_alerts_output(database: Optional[pulumi.Input[Optional[str]]] = None,
135
137
  pattern: Optional[pulumi.Input[Optional[str]]] = None,
136
138
  schema: Optional[pulumi.Input[Optional[str]]] = None,
137
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlertsResult]:
139
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlertsResult]:
138
140
  """
141
+ !> **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.
142
+
139
143
  ## Example Usage
140
144
 
141
- <!--Start PulumiCodeChooser -->
142
145
  ```python
143
146
  import pulumi
144
147
  import pulumi_snowflake as snowflake
@@ -146,11 +149,21 @@ def get_alerts_output(database: Optional[pulumi.Input[Optional[str]]] = None,
146
149
  current = snowflake.get_alerts(database="MYDB",
147
150
  schema="MYSCHEMA")
148
151
  ```
149
- <!--End PulumiCodeChooser -->
150
152
 
151
153
 
152
154
  :param str database: The database from which to return the alerts from.
153
155
  :param str pattern: Filters the command output by object name.
154
156
  :param str schema: The schema from which to return the alerts from.
155
157
  """
156
- ...
158
+ __args__ = dict()
159
+ __args__['database'] = database
160
+ __args__['pattern'] = pattern
161
+ __args__['schema'] = schema
162
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
163
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getAlerts:getAlerts', __args__, opts=opts, typ=GetAlertsResult)
164
+ return __ret__.apply(lambda __response__: GetAlertsResult(
165
+ alerts=pulumi.get(__response__, 'alerts'),
166
+ database=pulumi.get(__response__, 'database'),
167
+ id=pulumi.get(__response__, 'id'),
168
+ pattern=pulumi.get(__response__, 'pattern'),
169
+ schema=pulumi.get(__response__, 'schema')))
@@ -0,0 +1,109 @@
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
+ 'GetConnectionsResult',
20
+ 'AwaitableGetConnectionsResult',
21
+ 'get_connections',
22
+ 'get_connections_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetConnectionsResult:
27
+ """
28
+ A collection of values returned by getConnections.
29
+ """
30
+ def __init__(__self__, connections=None, id=None, like=None):
31
+ if connections and not isinstance(connections, list):
32
+ raise TypeError("Expected argument 'connections' to be a list")
33
+ pulumi.set(__self__, "connections", connections)
34
+ if id and not isinstance(id, str):
35
+ raise TypeError("Expected argument 'id' to be a str")
36
+ pulumi.set(__self__, "id", id)
37
+ if like and not isinstance(like, str):
38
+ raise TypeError("Expected argument 'like' to be a str")
39
+ pulumi.set(__self__, "like", like)
40
+
41
+ @property
42
+ @pulumi.getter
43
+ def connections(self) -> Sequence['outputs.GetConnectionsConnectionResult']:
44
+ """
45
+ Holds the aggregated output of all connections details queries.
46
+ """
47
+ return pulumi.get(self, "connections")
48
+
49
+ @property
50
+ @pulumi.getter
51
+ def id(self) -> str:
52
+ """
53
+ The provider-assigned unique ID for this managed resource.
54
+ """
55
+ return pulumi.get(self, "id")
56
+
57
+ @property
58
+ @pulumi.getter
59
+ def like(self) -> Optional[str]:
60
+ """
61
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
62
+ """
63
+ return pulumi.get(self, "like")
64
+
65
+
66
+ class AwaitableGetConnectionsResult(GetConnectionsResult):
67
+ # pylint: disable=using-constant-test
68
+ def __await__(self):
69
+ if False:
70
+ yield self
71
+ return GetConnectionsResult(
72
+ connections=self.connections,
73
+ id=self.id,
74
+ like=self.like)
75
+
76
+
77
+ def get_connections(like: Optional[str] = None,
78
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetConnectionsResult:
79
+ """
80
+ Data source used to get details of filtered connections. Filtering is aligned with the current possibilities for [SHOW CONNECTIONS](https://docs.snowflake.com/en/sql-reference/sql/show-connections) query. The results of SHOW is encapsulated in one output collection `connections`.
81
+
82
+
83
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
84
+ """
85
+ __args__ = dict()
86
+ __args__['like'] = like
87
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
88
+ __ret__ = pulumi.runtime.invoke('snowflake:index/getConnections:getConnections', __args__, opts=opts, typ=GetConnectionsResult).value
89
+
90
+ return AwaitableGetConnectionsResult(
91
+ connections=pulumi.get(__ret__, 'connections'),
92
+ id=pulumi.get(__ret__, 'id'),
93
+ like=pulumi.get(__ret__, 'like'))
94
+ def get_connections_output(like: Optional[pulumi.Input[Optional[str]]] = None,
95
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetConnectionsResult]:
96
+ """
97
+ Data source used to get details of filtered connections. Filtering is aligned with the current possibilities for [SHOW CONNECTIONS](https://docs.snowflake.com/en/sql-reference/sql/show-connections) query. The results of SHOW is encapsulated in one output collection `connections`.
98
+
99
+
100
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
101
+ """
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/getConnections:getConnections', __args__, opts=opts, typ=GetConnectionsResult)
106
+ return __ret__.apply(lambda __response__: GetConnectionsResult(
107
+ connections=pulumi.get(__response__, 'connections'),
108
+ id=pulumi.get(__response__, 'id'),
109
+ like=pulumi.get(__response__, 'like')))
@@ -0,0 +1,216 @@
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__ = [
20
+ 'GetCortexSearchServicesResult',
21
+ 'AwaitableGetCortexSearchServicesResult',
22
+ 'get_cortex_search_services',
23
+ 'get_cortex_search_services_output',
24
+ ]
25
+
26
+ @pulumi.output_type
27
+ class GetCortexSearchServicesResult:
28
+ """
29
+ A collection of values returned by getCortexSearchServices.
30
+ """
31
+ def __init__(__self__, cortex_search_services=None, id=None, in_=None, like=None, limit=None, starts_with=None):
32
+ if cortex_search_services and not isinstance(cortex_search_services, list):
33
+ raise TypeError("Expected argument 'cortex_search_services' to be a list")
34
+ pulumi.set(__self__, "cortex_search_services", cortex_search_services)
35
+ if id and not isinstance(id, str):
36
+ raise TypeError("Expected argument 'id' to be a str")
37
+ pulumi.set(__self__, "id", id)
38
+ if in_ and not isinstance(in_, dict):
39
+ raise TypeError("Expected argument 'in_' to be a dict")
40
+ pulumi.set(__self__, "in_", in_)
41
+ if like and not isinstance(like, str):
42
+ raise TypeError("Expected argument 'like' to be a str")
43
+ pulumi.set(__self__, "like", like)
44
+ if limit and not isinstance(limit, dict):
45
+ raise TypeError("Expected argument 'limit' to be a dict")
46
+ pulumi.set(__self__, "limit", limit)
47
+ if starts_with and not isinstance(starts_with, str):
48
+ raise TypeError("Expected argument 'starts_with' to be a str")
49
+ pulumi.set(__self__, "starts_with", starts_with)
50
+
51
+ @property
52
+ @pulumi.getter(name="cortexSearchServices")
53
+ def cortex_search_services(self) -> Sequence['outputs.GetCortexSearchServicesCortexSearchServiceResult']:
54
+ """
55
+ Holds the output of SHOW CORTEX SEARCH SERVICES.
56
+ """
57
+ return pulumi.get(self, "cortex_search_services")
58
+
59
+ @property
60
+ @pulumi.getter
61
+ def id(self) -> str:
62
+ """
63
+ The provider-assigned unique ID for this managed resource.
64
+ """
65
+ return pulumi.get(self, "id")
66
+
67
+ @property
68
+ @pulumi.getter(name="in")
69
+ def in_(self) -> Optional['outputs.GetCortexSearchServicesInResult']:
70
+ """
71
+ IN clause to filter the list of cortex search services.
72
+ """
73
+ return pulumi.get(self, "in_")
74
+
75
+ @property
76
+ @pulumi.getter
77
+ def like(self) -> Optional[str]:
78
+ """
79
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
80
+ """
81
+ return pulumi.get(self, "like")
82
+
83
+ @property
84
+ @pulumi.getter
85
+ def limit(self) -> Optional['outputs.GetCortexSearchServicesLimitResult']:
86
+ """
87
+ 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`.
88
+ """
89
+ return pulumi.get(self, "limit")
90
+
91
+ @property
92
+ @pulumi.getter(name="startsWith")
93
+ def starts_with(self) -> Optional[str]:
94
+ """
95
+ Filters the output with **case-sensitive** characters indicating the beginning of the object name.
96
+ """
97
+ return pulumi.get(self, "starts_with")
98
+
99
+
100
+ class AwaitableGetCortexSearchServicesResult(GetCortexSearchServicesResult):
101
+ # pylint: disable=using-constant-test
102
+ def __await__(self):
103
+ if False:
104
+ yield self
105
+ return GetCortexSearchServicesResult(
106
+ cortex_search_services=self.cortex_search_services,
107
+ id=self.id,
108
+ in_=self.in_,
109
+ like=self.like,
110
+ limit=self.limit,
111
+ starts_with=self.starts_with)
112
+
113
+
114
+ def get_cortex_search_services(in_: Optional[Union['GetCortexSearchServicesInArgs', 'GetCortexSearchServicesInArgsDict']] = None,
115
+ like: Optional[str] = None,
116
+ limit: Optional[Union['GetCortexSearchServicesLimitArgs', 'GetCortexSearchServicesLimitArgsDict']] = None,
117
+ starts_with: Optional[str] = None,
118
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCortexSearchServicesResult:
119
+ """
120
+ !> **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.
121
+
122
+ ## Example Usage
123
+
124
+ ```python
125
+ import pulumi
126
+ import pulumi_snowflake as snowflake
127
+
128
+ # Simple usage
129
+ simple = snowflake.get_cortex_search_services()
130
+ pulumi.export("simpleOutput", simple.cortex_search_services)
131
+ # Filtering (like)
132
+ like = snowflake.get_cortex_search_services(like="some-name")
133
+ pulumi.export("likeOutput", like.cortex_search_services)
134
+ # Filtering (starts_with)
135
+ starts_with = snowflake.get_cortex_search_services(starts_with="prefix-")
136
+ pulumi.export("startsWithOutput", starts_with.cortex_search_services)
137
+ # Filtering (limit)
138
+ limit = snowflake.get_cortex_search_services(limit={
139
+ "rows": 10,
140
+ "from_": "prefix-",
141
+ })
142
+ pulumi.export("limitOutput", limit.cortex_search_services)
143
+ ```
144
+
145
+
146
+ :param Union['GetCortexSearchServicesInArgs', 'GetCortexSearchServicesInArgsDict'] in_: IN clause to filter the list of cortex search services.
147
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
148
+ :param Union['GetCortexSearchServicesLimitArgs', 'GetCortexSearchServicesLimitArgsDict'] 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`.
149
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
150
+ """
151
+ __args__ = dict()
152
+ __args__['in'] = in_
153
+ __args__['like'] = like
154
+ __args__['limit'] = limit
155
+ __args__['startsWith'] = starts_with
156
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
157
+ __ret__ = pulumi.runtime.invoke('snowflake:index/getCortexSearchServices:getCortexSearchServices', __args__, opts=opts, typ=GetCortexSearchServicesResult).value
158
+
159
+ return AwaitableGetCortexSearchServicesResult(
160
+ cortex_search_services=pulumi.get(__ret__, 'cortex_search_services'),
161
+ id=pulumi.get(__ret__, 'id'),
162
+ in_=pulumi.get(__ret__, 'in_'),
163
+ like=pulumi.get(__ret__, 'like'),
164
+ limit=pulumi.get(__ret__, 'limit'),
165
+ starts_with=pulumi.get(__ret__, 'starts_with'))
166
+ def get_cortex_search_services_output(in_: Optional[pulumi.Input[Optional[Union['GetCortexSearchServicesInArgs', 'GetCortexSearchServicesInArgsDict']]]] = None,
167
+ like: Optional[pulumi.Input[Optional[str]]] = None,
168
+ limit: Optional[pulumi.Input[Optional[Union['GetCortexSearchServicesLimitArgs', 'GetCortexSearchServicesLimitArgsDict']]]] = None,
169
+ starts_with: Optional[pulumi.Input[Optional[str]]] = None,
170
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetCortexSearchServicesResult]:
171
+ """
172
+ !> **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.
173
+
174
+ ## Example Usage
175
+
176
+ ```python
177
+ import pulumi
178
+ import pulumi_snowflake as snowflake
179
+
180
+ # Simple usage
181
+ simple = snowflake.get_cortex_search_services()
182
+ pulumi.export("simpleOutput", simple.cortex_search_services)
183
+ # Filtering (like)
184
+ like = snowflake.get_cortex_search_services(like="some-name")
185
+ pulumi.export("likeOutput", like.cortex_search_services)
186
+ # Filtering (starts_with)
187
+ starts_with = snowflake.get_cortex_search_services(starts_with="prefix-")
188
+ pulumi.export("startsWithOutput", starts_with.cortex_search_services)
189
+ # Filtering (limit)
190
+ limit = snowflake.get_cortex_search_services(limit={
191
+ "rows": 10,
192
+ "from_": "prefix-",
193
+ })
194
+ pulumi.export("limitOutput", limit.cortex_search_services)
195
+ ```
196
+
197
+
198
+ :param Union['GetCortexSearchServicesInArgs', 'GetCortexSearchServicesInArgsDict'] in_: IN clause to filter the list of cortex search services.
199
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
200
+ :param Union['GetCortexSearchServicesLimitArgs', 'GetCortexSearchServicesLimitArgsDict'] 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`.
201
+ :param str starts_with: Filters the output with **case-sensitive** characters indicating the beginning of the object name.
202
+ """
203
+ __args__ = dict()
204
+ __args__['in'] = in_
205
+ __args__['like'] = like
206
+ __args__['limit'] = limit
207
+ __args__['startsWith'] = starts_with
208
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
209
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getCortexSearchServices:getCortexSearchServices', __args__, opts=opts, typ=GetCortexSearchServicesResult)
210
+ return __ret__.apply(lambda __response__: GetCortexSearchServicesResult(
211
+ cortex_search_services=pulumi.get(__response__, 'cortex_search_services'),
212
+ id=pulumi.get(__response__, 'id'),
213
+ in_=pulumi.get(__response__, 'in_'),
214
+ like=pulumi.get(__response__, 'like'),
215
+ limit=pulumi.get(__response__, 'limit'),
216
+ starts_with=pulumi.get(__response__, 'starts_with')))