pulumi-snowflake 0.59.0a1726827563__py3-none-any.whl → 0.60.0__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 (132) hide show
  1. pulumi_snowflake/__init__.py +36 -0
  2. pulumi_snowflake/_inputs.py +20444 -3310
  3. pulumi_snowflake/_utilities.py +1 -1
  4. pulumi_snowflake/account.py +5 -0
  5. pulumi_snowflake/account_parameter.py +5 -0
  6. pulumi_snowflake/account_password_policy_attachment.py +5 -0
  7. pulumi_snowflake/account_role.py +5 -0
  8. pulumi_snowflake/alert.py +5 -0
  9. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +5 -0
  10. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +5 -0
  11. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +5 -0
  12. pulumi_snowflake/api_integration.py +5 -0
  13. pulumi_snowflake/config/__init__.pyi +5 -0
  14. pulumi_snowflake/config/outputs.py +5 -0
  15. pulumi_snowflake/config/vars.py +5 -0
  16. pulumi_snowflake/cortex_search_service.py +5 -0
  17. pulumi_snowflake/database.py +5 -0
  18. pulumi_snowflake/database_old.py +5 -0
  19. pulumi_snowflake/database_role.py +5 -0
  20. pulumi_snowflake/dynamic_table.py +5 -0
  21. pulumi_snowflake/email_notification_integration.py +5 -0
  22. pulumi_snowflake/external_function.py +5 -0
  23. pulumi_snowflake/external_oauth_integration.py +5 -0
  24. pulumi_snowflake/external_table.py +5 -0
  25. pulumi_snowflake/failover_group.py +5 -0
  26. pulumi_snowflake/file_format.py +5 -0
  27. pulumi_snowflake/function.py +5 -0
  28. pulumi_snowflake/get_accounts.py +13 -4
  29. pulumi_snowflake/get_alerts.py +17 -4
  30. pulumi_snowflake/get_cortex_search_services.py +19 -4
  31. pulumi_snowflake/get_current_account.py +13 -4
  32. pulumi_snowflake/get_current_role.py +11 -4
  33. pulumi_snowflake/get_database.py +20 -4
  34. pulumi_snowflake/get_database_role.py +16 -4
  35. pulumi_snowflake/get_database_roles.py +21 -4
  36. pulumi_snowflake/get_databases.py +21 -4
  37. pulumi_snowflake/get_dynamic_tables.py +19 -4
  38. pulumi_snowflake/get_external_functions.py +15 -4
  39. pulumi_snowflake/get_external_tables.py +15 -4
  40. pulumi_snowflake/get_failover_groups.py +13 -4
  41. pulumi_snowflake/get_file_formats.py +15 -4
  42. pulumi_snowflake/get_functions.py +15 -4
  43. pulumi_snowflake/get_grants.py +21 -4
  44. pulumi_snowflake/get_masking_policies.py +92 -52
  45. pulumi_snowflake/get_materialized_views.py +15 -4
  46. pulumi_snowflake/get_network_policies.py +15 -4
  47. pulumi_snowflake/get_parameters.py +21 -4
  48. pulumi_snowflake/get_pipes.py +15 -4
  49. pulumi_snowflake/get_procedures.py +15 -4
  50. pulumi_snowflake/get_resource_monitors.py +41 -20
  51. pulumi_snowflake/get_role.py +13 -4
  52. pulumi_snowflake/get_roles.py +15 -4
  53. pulumi_snowflake/get_row_access_policies.py +92 -52
  54. pulumi_snowflake/get_schemas.py +23 -4
  55. pulumi_snowflake/get_security_integrations.py +15 -4
  56. pulumi_snowflake/get_sequences.py +15 -4
  57. pulumi_snowflake/get_shares.py +13 -4
  58. pulumi_snowflake/get_stages.py +15 -4
  59. pulumi_snowflake/get_storage_integrations.py +11 -4
  60. pulumi_snowflake/get_streamlits.py +19 -4
  61. pulumi_snowflake/get_streams.py +15 -4
  62. pulumi_snowflake/get_system_generate_scim_access_token.py +13 -4
  63. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +13 -4
  64. pulumi_snowflake/get_system_get_private_link_config.py +19 -4
  65. pulumi_snowflake/get_system_get_snowflake_platform_info.py +12 -4
  66. pulumi_snowflake/get_tables.py +15 -4
  67. pulumi_snowflake/get_tasks.py +15 -4
  68. pulumi_snowflake/get_users.py +21 -4
  69. pulumi_snowflake/get_views.py +25 -4
  70. pulumi_snowflake/get_warehouses.py +17 -4
  71. pulumi_snowflake/grant_account_role.py +5 -0
  72. pulumi_snowflake/grant_application_role.py +5 -0
  73. pulumi_snowflake/grant_database_role.py +5 -0
  74. pulumi_snowflake/grant_ownership.py +5 -0
  75. pulumi_snowflake/grant_privileges_to_account_role.py +5 -0
  76. pulumi_snowflake/grant_privileges_to_database_role.py +5 -0
  77. pulumi_snowflake/grant_privileges_to_share.py +5 -0
  78. pulumi_snowflake/legacy_service_user.py +3666 -0
  79. pulumi_snowflake/managed_account.py +5 -0
  80. pulumi_snowflake/masking_policy.py +197 -234
  81. pulumi_snowflake/materialized_view.py +5 -0
  82. pulumi_snowflake/network_policy.py +5 -0
  83. pulumi_snowflake/network_policy_attachment.py +5 -0
  84. pulumi_snowflake/network_rule.py +5 -0
  85. pulumi_snowflake/notification_integration.py +5 -0
  86. pulumi_snowflake/oauth_integration.py +5 -0
  87. pulumi_snowflake/oauth_integration_for_custom_clients.py +5 -0
  88. pulumi_snowflake/oauth_integration_for_partner_applications.py +5 -0
  89. pulumi_snowflake/object_parameter.py +5 -0
  90. pulumi_snowflake/outputs.py +11392 -2385
  91. pulumi_snowflake/password_policy.py +5 -0
  92. pulumi_snowflake/pipe.py +5 -0
  93. pulumi_snowflake/procedure.py +5 -0
  94. pulumi_snowflake/provider.py +5 -0
  95. pulumi_snowflake/pulumi-plugin.json +1 -1
  96. pulumi_snowflake/resource_monitor.py +88 -259
  97. pulumi_snowflake/role.py +5 -0
  98. pulumi_snowflake/row_access_policy.py +173 -114
  99. pulumi_snowflake/saml2_integration.py +5 -0
  100. pulumi_snowflake/saml_integration.py +5 -0
  101. pulumi_snowflake/schema.py +5 -0
  102. pulumi_snowflake/scim_integration.py +5 -0
  103. pulumi_snowflake/secondary_database.py +5 -0
  104. pulumi_snowflake/sequence.py +5 -0
  105. pulumi_snowflake/service_user.py +3585 -0
  106. pulumi_snowflake/session_parameter.py +5 -0
  107. pulumi_snowflake/share.py +5 -0
  108. pulumi_snowflake/shared_database.py +5 -0
  109. pulumi_snowflake/stage.py +12 -7
  110. pulumi_snowflake/storage_integration.py +5 -0
  111. pulumi_snowflake/stream.py +5 -0
  112. pulumi_snowflake/stream_on_external_table.py +597 -0
  113. pulumi_snowflake/stream_on_table.py +631 -0
  114. pulumi_snowflake/streamlit.py +5 -0
  115. pulumi_snowflake/table.py +5 -0
  116. pulumi_snowflake/table_column_masking_policy_application.py +5 -0
  117. pulumi_snowflake/table_constraint.py +5 -0
  118. pulumi_snowflake/tag.py +5 -0
  119. pulumi_snowflake/tag_association.py +5 -0
  120. pulumi_snowflake/tag_masking_policy_association.py +5 -0
  121. pulumi_snowflake/task.py +5 -0
  122. pulumi_snowflake/unsafe_execute.py +5 -0
  123. pulumi_snowflake/user.py +7 -2
  124. pulumi_snowflake/user_password_policy_attachment.py +5 -0
  125. pulumi_snowflake/user_public_keys.py +5 -0
  126. pulumi_snowflake/view.py +12 -7
  127. pulumi_snowflake/warehouse.py +9 -4
  128. {pulumi_snowflake-0.59.0a1726827563.dist-info → pulumi_snowflake-0.60.0.dist-info}/METADATA +3 -2
  129. pulumi_snowflake-0.60.0.dist-info/RECORD +133 -0
  130. pulumi_snowflake-0.59.0a1726827563.dist-info/RECORD +0 -129
  131. {pulumi_snowflake-0.59.0a1726827563.dist-info → pulumi_snowflake-0.60.0.dist-info}/WHEEL +0 -0
  132. {pulumi_snowflake-0.59.0a1726827563.dist-info → pulumi_snowflake-0.60.0.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
 
@@ -110,9 +115,6 @@ def get_materialized_views(database: Optional[str] = None,
110
115
  id=pulumi.get(__ret__, 'id'),
111
116
  materialized_views=pulumi.get(__ret__, 'materialized_views'),
112
117
  schema=pulumi.get(__ret__, 'schema'))
113
-
114
-
115
- @_utilities.lift_output_func(get_materialized_views)
116
118
  def get_materialized_views_output(database: Optional[pulumi.Input[str]] = None,
117
119
  schema: Optional[pulumi.Input[str]] = None,
118
120
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetMaterializedViewsResult]:
@@ -131,4 +133,13 @@ def get_materialized_views_output(database: Optional[pulumi.Input[str]] = None,
131
133
  :param str database: The database from which to return the schemas from.
132
134
  :param str schema: The schema from which to return the views from.
133
135
  """
134
- ...
136
+ __args__ = dict()
137
+ __args__['database'] = database
138
+ __args__['schema'] = schema
139
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
140
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getMaterializedViews:getMaterializedViews', __args__, opts=opts, typ=GetMaterializedViewsResult)
141
+ return __ret__.apply(lambda __response__: GetMaterializedViewsResult(
142
+ database=pulumi.get(__response__, 'database'),
143
+ id=pulumi.get(__response__, 'id'),
144
+ materialized_views=pulumi.get(__response__, 'materialized_views'),
145
+ 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
 
@@ -104,9 +109,6 @@ def get_network_policies(like: Optional[str] = None,
104
109
  like=pulumi.get(__ret__, 'like'),
105
110
  network_policies=pulumi.get(__ret__, 'network_policies'),
106
111
  with_describe=pulumi.get(__ret__, 'with_describe'))
107
-
108
-
109
- @_utilities.lift_output_func(get_network_policies)
110
112
  def get_network_policies_output(like: Optional[pulumi.Input[Optional[str]]] = None,
111
113
  with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
112
114
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNetworkPoliciesResult]:
@@ -119,4 +121,13 @@ def get_network_policies_output(like: Optional[pulumi.Input[Optional[str]]] = No
119
121
  :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
120
122
  :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.
121
123
  """
122
- ...
124
+ __args__ = dict()
125
+ __args__['like'] = like
126
+ __args__['withDescribe'] = with_describe
127
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
128
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getNetworkPolicies:getNetworkPolicies', __args__, opts=opts, typ=GetNetworkPoliciesResult)
129
+ return __ret__.apply(lambda __response__: GetNetworkPoliciesResult(
130
+ id=pulumi.get(__response__, 'id'),
131
+ like=pulumi.get(__response__, 'like'),
132
+ network_policies=pulumi.get(__response__, 'network_policies'),
133
+ 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
 
@@ -168,9 +173,6 @@ def get_parameters(object_name: Optional[str] = None,
168
173
  parameters=pulumi.get(__ret__, 'parameters'),
169
174
  pattern=pulumi.get(__ret__, 'pattern'),
170
175
  user=pulumi.get(__ret__, 'user'))
171
-
172
-
173
- @_utilities.lift_output_func(get_parameters)
174
176
  def get_parameters_output(object_name: Optional[pulumi.Input[Optional[str]]] = None,
175
177
  object_type: Optional[pulumi.Input[Optional[str]]] = None,
176
178
  parameter_type: Optional[pulumi.Input[Optional[str]]] = None,
@@ -205,4 +207,19 @@ def get_parameters_output(object_name: Optional[pulumi.Input[Optional[str]]] = N
205
207
  :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)
206
208
  :param str user: If parameter_type is set to "SESSION" then user is the name of the user to display session parameters for.
207
209
  """
208
- ...
210
+ __args__ = dict()
211
+ __args__['objectName'] = object_name
212
+ __args__['objectType'] = object_type
213
+ __args__['parameterType'] = parameter_type
214
+ __args__['pattern'] = pattern
215
+ __args__['user'] = user
216
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
217
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getParameters:getParameters', __args__, opts=opts, typ=GetParametersResult)
218
+ return __ret__.apply(lambda __response__: GetParametersResult(
219
+ id=pulumi.get(__response__, 'id'),
220
+ object_name=pulumi.get(__response__, 'object_name'),
221
+ object_type=pulumi.get(__response__, 'object_type'),
222
+ parameter_type=pulumi.get(__response__, 'parameter_type'),
223
+ parameters=pulumi.get(__response__, 'parameters'),
224
+ pattern=pulumi.get(__response__, 'pattern'),
225
+ 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
 
@@ -110,9 +115,6 @@ def get_pipes(database: Optional[str] = None,
110
115
  id=pulumi.get(__ret__, 'id'),
111
116
  pipes=pulumi.get(__ret__, 'pipes'),
112
117
  schema=pulumi.get(__ret__, 'schema'))
113
-
114
-
115
- @_utilities.lift_output_func(get_pipes)
116
118
  def get_pipes_output(database: Optional[pulumi.Input[str]] = None,
117
119
  schema: Optional[pulumi.Input[str]] = None,
118
120
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetPipesResult]:
@@ -131,4 +133,13 @@ def get_pipes_output(database: Optional[pulumi.Input[str]] = None,
131
133
  :param str database: The database from which to return the schemas from.
132
134
  :param str schema: The schema from which to return the pipes from.
133
135
  """
134
- ...
136
+ __args__ = dict()
137
+ __args__['database'] = database
138
+ __args__['schema'] = schema
139
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
140
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getPipes:getPipes', __args__, opts=opts, typ=GetPipesResult)
141
+ return __ret__.apply(lambda __response__: GetPipesResult(
142
+ database=pulumi.get(__response__, 'database'),
143
+ id=pulumi.get(__response__, 'id'),
144
+ pipes=pulumi.get(__response__, 'pipes'),
145
+ 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
 
@@ -110,9 +115,6 @@ def get_procedures(database: Optional[str] = None,
110
115
  id=pulumi.get(__ret__, 'id'),
111
116
  procedures=pulumi.get(__ret__, 'procedures'),
112
117
  schema=pulumi.get(__ret__, 'schema'))
113
-
114
-
115
- @_utilities.lift_output_func(get_procedures)
116
118
  def get_procedures_output(database: Optional[pulumi.Input[str]] = None,
117
119
  schema: Optional[pulumi.Input[str]] = None,
118
120
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetProceduresResult]:
@@ -131,4 +133,13 @@ def get_procedures_output(database: Optional[pulumi.Input[str]] = None,
131
133
  :param str database: The database from which to return the schemas from.
132
134
  :param str schema: The schema from which to return the procedures from.
133
135
  """
134
- ...
136
+ __args__ = dict()
137
+ __args__['database'] = database
138
+ __args__['schema'] = schema
139
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
140
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getProcedures:getProcedures', __args__, opts=opts, typ=GetProceduresResult)
141
+ return __ret__.apply(lambda __response__: GetProceduresResult(
142
+ database=pulumi.get(__response__, 'database'),
143
+ id=pulumi.get(__response__, 'id'),
144
+ procedures=pulumi.get(__response__, 'procedures'),
145
+ 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,44 @@ 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
+ !> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
81
+
82
+ Datasource 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
83
 
64
- ```python
65
- import pulumi
66
- import pulumi_snowflake as snowflake
67
84
 
68
- current = snowflake.get_resource_monitors()
69
- ```
85
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
70
86
  """
71
87
  __args__ = dict()
88
+ __args__['like'] = like
72
89
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
73
90
  __ret__ = pulumi.runtime.invoke('snowflake:index/getResourceMonitors:getResourceMonitors', __args__, opts=opts, typ=GetResourceMonitorsResult).value
74
91
 
75
92
  return AwaitableGetResourceMonitorsResult(
76
93
  id=pulumi.get(__ret__, 'id'),
94
+ like=pulumi.get(__ret__, 'like'),
77
95
  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]:
96
+ def get_resource_monitors_output(like: Optional[pulumi.Input[Optional[str]]] = None,
97
+ opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetResourceMonitorsResult]:
82
98
  """
83
- ## Example Usage
99
+ !> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
100
+
101
+ Datasource 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
102
 
85
- ```python
86
- import pulumi
87
- import pulumi_snowflake as snowflake
88
103
 
89
- current = snowflake.get_resource_monitors()
90
- ```
104
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
91
105
  """
92
- ...
106
+ __args__ = dict()
107
+ __args__['like'] = like
108
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
109
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getResourceMonitors:getResourceMonitors', __args__, opts=opts, typ=GetResourceMonitorsResult)
110
+ return __ret__.apply(lambda __response__: GetResourceMonitorsResult(
111
+ id=pulumi.get(__response__, 'id'),
112
+ like=pulumi.get(__response__, 'like'),
113
+ resource_monitors=pulumi.get(__response__, 'resource_monitors')))
@@ -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__ = [
@@ -94,9 +99,6 @@ def get_role(name: Optional[str] = None,
94
99
  comment=pulumi.get(__ret__, 'comment'),
95
100
  id=pulumi.get(__ret__, 'id'),
96
101
  name=pulumi.get(__ret__, 'name'))
97
-
98
-
99
- @_utilities.lift_output_func(get_role)
100
102
  def get_role_output(name: Optional[pulumi.Input[str]] = None,
101
103
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRoleResult]:
102
104
  """
@@ -114,4 +116,11 @@ def get_role_output(name: Optional[pulumi.Input[str]] = None,
114
116
 
115
117
  :param str name: The role for which to return metadata.
116
118
  """
117
- ...
119
+ __args__ = dict()
120
+ __args__['name'] = name
121
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
122
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getRole:getRole', __args__, opts=opts, typ=GetRoleResult)
123
+ return __ret__.apply(lambda __response__: GetRoleResult(
124
+ comment=pulumi.get(__response__, 'comment'),
125
+ id=pulumi.get(__response__, 'id'),
126
+ name=pulumi.get(__response__, '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
  from . import outputs
12
17
 
@@ -104,9 +109,6 @@ def get_roles(in_class: Optional[str] = None,
104
109
  in_class=pulumi.get(__ret__, 'in_class'),
105
110
  like=pulumi.get(__ret__, 'like'),
106
111
  roles=pulumi.get(__ret__, 'roles'))
107
-
108
-
109
- @_utilities.lift_output_func(get_roles)
110
112
  def get_roles_output(in_class: Optional[pulumi.Input[Optional[str]]] = None,
111
113
  like: Optional[pulumi.Input[Optional[str]]] = None,
112
114
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRolesResult]:
@@ -119,4 +121,13 @@ def get_roles_output(in_class: Optional[pulumi.Input[Optional[str]]] = None,
119
121
  :param str in_class: Filters the SHOW GRANTS output by class name.
120
122
  :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
121
123
  """
122
- ...
124
+ __args__ = dict()
125
+ __args__['inClass'] = in_class
126
+ __args__['like'] = like
127
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
128
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getRoles:getRoles', __args__, opts=opts, typ=GetRolesResult)
129
+ return __ret__.apply(lambda __response__: GetRolesResult(
130
+ id=pulumi.get(__response__, 'id'),
131
+ in_class=pulumi.get(__response__, 'in_class'),
132
+ like=pulumi.get(__response__, 'like'),
133
+ roles=pulumi.get(__response__, 'roles')))
@@ -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
  'GetRowAccessPoliciesResult',
@@ -22,51 +28,73 @@ class GetRowAccessPoliciesResult:
22
28
  """
23
29
  A collection of values returned by getRowAccessPolicies.
24
30
  """
25
- def __init__(__self__, database=None, id=None, row_access_policies=None, schema=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, row_access_policies=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)
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)
32
44
  if row_access_policies and not isinstance(row_access_policies, list):
33
45
  raise TypeError("Expected argument 'row_access_policies' to be a list")
34
46
  pulumi.set(__self__, "row_access_policies", row_access_policies)
35
- if schema and not isinstance(schema, str):
36
- raise TypeError("Expected argument 'schema' to be a str")
37
- pulumi.set(__self__, "schema", schema)
47
+ if with_describe and not isinstance(with_describe, bool):
48
+ raise TypeError("Expected argument 'with_describe' to be a bool")
49
+ pulumi.set(__self__, "with_describe", with_describe)
38
50
 
39
51
  @property
40
52
  @pulumi.getter
41
- def database(self) -> str:
53
+ def id(self) -> str:
42
54
  """
43
- The database from which to return the schemas from.
55
+ The provider-assigned unique ID for this managed resource.
44
56
  """
45
- return pulumi.get(self, "database")
57
+ return pulumi.get(self, "id")
58
+
59
+ @property
60
+ @pulumi.getter(name="in")
61
+ def in_(self) -> Optional['outputs.GetRowAccessPoliciesInResult']:
62
+ """
63
+ IN clause to filter the list of row access policies
64
+ """
65
+ return pulumi.get(self, "in_")
46
66
 
47
67
  @property
48
68
  @pulumi.getter
49
- def id(self) -> str:
69
+ def like(self) -> Optional[str]:
50
70
  """
51
- The provider-assigned unique ID for this managed resource.
71
+ Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
52
72
  """
53
- return pulumi.get(self, "id")
73
+ return pulumi.get(self, "like")
74
+
75
+ @property
76
+ @pulumi.getter
77
+ def limit(self) -> Optional['outputs.GetRowAccessPoliciesLimitResult']:
78
+ """
79
+ 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`.
80
+ """
81
+ return pulumi.get(self, "limit")
54
82
 
55
83
  @property
56
84
  @pulumi.getter(name="rowAccessPolicies")
57
85
  def row_access_policies(self) -> Sequence['outputs.GetRowAccessPoliciesRowAccessPolicyResult']:
58
86
  """
59
- The row access policy in the schema
87
+ Holds the aggregated output of all views details queries.
60
88
  """
61
89
  return pulumi.get(self, "row_access_policies")
62
90
 
63
91
  @property
64
- @pulumi.getter
65
- def schema(self) -> str:
92
+ @pulumi.getter(name="withDescribe")
93
+ def with_describe(self) -> Optional[bool]:
66
94
  """
67
- The schema from which to return the row access policy from.
95
+ Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
68
96
  """
69
- return pulumi.get(self, "schema")
97
+ return pulumi.get(self, "with_describe")
70
98
 
71
99
 
72
100
  class AwaitableGetRowAccessPoliciesResult(GetRowAccessPoliciesResult):
@@ -75,60 +103,72 @@ class AwaitableGetRowAccessPoliciesResult(GetRowAccessPoliciesResult):
75
103
  if False:
76
104
  yield self
77
105
  return GetRowAccessPoliciesResult(
78
- database=self.database,
79
106
  id=self.id,
107
+ in_=self.in_,
108
+ like=self.like,
109
+ limit=self.limit,
80
110
  row_access_policies=self.row_access_policies,
81
- schema=self.schema)
111
+ with_describe=self.with_describe)
82
112
 
83
113
 
84
- def get_row_access_policies(database: Optional[str] = None,
85
- schema: Optional[str] = None,
114
+ def get_row_access_policies(in_: Optional[Union['GetRowAccessPoliciesInArgs', 'GetRowAccessPoliciesInArgsDict']] = None,
115
+ like: Optional[str] = None,
116
+ limit: Optional[Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict']] = None,
117
+ with_describe: Optional[bool] = None,
86
118
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRowAccessPoliciesResult:
87
119
  """
88
- ## Example Usage
89
-
90
- ```python
91
- import pulumi
92
- import pulumi_snowflake as snowflake
120
+ !> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
93
121
 
94
- current = snowflake.get_row_access_policies(database="MYDB",
95
- schema="MYSCHEMA")
96
- ```
122
+ Datasource used to get details of filtered row access policies. Filtering is aligned with the current possibilities for [SHOW ROW ACCESS POLICIES](https://docs.snowflake.com/en/sql-reference/sql/show-row-access-policies) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `row_access_policies`.
97
123
 
98
124
 
99
- :param str database: The database from which to return the schemas from.
100
- :param str schema: The schema from which to return the row access policy from.
125
+ :param Union['GetRowAccessPoliciesInArgs', 'GetRowAccessPoliciesInArgsDict'] in_: IN clause to filter the list of row access policies
126
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
127
+ :param Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict'] 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`.
128
+ :param bool with_describe: Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
101
129
  """
102
130
  __args__ = dict()
103
- __args__['database'] = database
104
- __args__['schema'] = schema
131
+ __args__['in'] = in_
132
+ __args__['like'] = like
133
+ __args__['limit'] = limit
134
+ __args__['withDescribe'] = with_describe
105
135
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
106
136
  __ret__ = pulumi.runtime.invoke('snowflake:index/getRowAccessPolicies:getRowAccessPolicies', __args__, opts=opts, typ=GetRowAccessPoliciesResult).value
107
137
 
108
138
  return AwaitableGetRowAccessPoliciesResult(
109
- database=pulumi.get(__ret__, 'database'),
110
139
  id=pulumi.get(__ret__, 'id'),
140
+ in_=pulumi.get(__ret__, 'in_'),
141
+ like=pulumi.get(__ret__, 'like'),
142
+ limit=pulumi.get(__ret__, 'limit'),
111
143
  row_access_policies=pulumi.get(__ret__, 'row_access_policies'),
112
- schema=pulumi.get(__ret__, 'schema'))
113
-
114
-
115
- @_utilities.lift_output_func(get_row_access_policies)
116
- def get_row_access_policies_output(database: Optional[pulumi.Input[str]] = None,
117
- schema: Optional[pulumi.Input[str]] = None,
144
+ with_describe=pulumi.get(__ret__, 'with_describe'))
145
+ def get_row_access_policies_output(in_: Optional[pulumi.Input[Optional[Union['GetRowAccessPoliciesInArgs', 'GetRowAccessPoliciesInArgsDict']]]] = None,
146
+ like: Optional[pulumi.Input[Optional[str]]] = None,
147
+ limit: Optional[pulumi.Input[Optional[Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict']]]] = None,
148
+ with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
118
149
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetRowAccessPoliciesResult]:
119
150
  """
120
- ## Example Usage
121
-
122
- ```python
123
- import pulumi
124
- import pulumi_snowflake as snowflake
151
+ !> **V1 release candidate** This data source was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the data source if needed. Any errors reported will be resolved with a higher priority. We encourage checking this data source out before the V1 release. Please follow the migration guide to use it.
125
152
 
126
- current = snowflake.get_row_access_policies(database="MYDB",
127
- schema="MYSCHEMA")
128
- ```
153
+ Datasource used to get details of filtered row access policies. Filtering is aligned with the current possibilities for [SHOW ROW ACCESS POLICIES](https://docs.snowflake.com/en/sql-reference/sql/show-row-access-policies) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `row_access_policies`.
129
154
 
130
155
 
131
- :param str database: The database from which to return the schemas from.
132
- :param str schema: The schema from which to return the row access policy from.
156
+ :param Union['GetRowAccessPoliciesInArgs', 'GetRowAccessPoliciesInArgsDict'] in_: IN clause to filter the list of row access policies
157
+ :param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
158
+ :param Union['GetRowAccessPoliciesLimitArgs', 'GetRowAccessPoliciesLimitArgsDict'] 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`.
159
+ :param bool with_describe: Runs DESC ROW ACCESS POLICY for each row access policy returned by SHOW ROW ACCESS POLICIES. The output of describe is saved to the description field. By default this value is set to true.
133
160
  """
134
- ...
161
+ __args__ = dict()
162
+ __args__['in'] = in_
163
+ __args__['like'] = like
164
+ __args__['limit'] = limit
165
+ __args__['withDescribe'] = with_describe
166
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
167
+ __ret__ = pulumi.runtime.invoke_output('snowflake:index/getRowAccessPolicies:getRowAccessPolicies', __args__, opts=opts, typ=GetRowAccessPoliciesResult)
168
+ return __ret__.apply(lambda __response__: GetRowAccessPoliciesResult(
169
+ id=pulumi.get(__response__, 'id'),
170
+ in_=pulumi.get(__response__, 'in_'),
171
+ like=pulumi.get(__response__, 'like'),
172
+ limit=pulumi.get(__response__, 'limit'),
173
+ row_access_policies=pulumi.get(__response__, 'row_access_policies'),
174
+ with_describe=pulumi.get(__response__, 'with_describe')))