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.
- pulumi_snowflake/__init__.py +36 -0
- pulumi_snowflake/_inputs.py +20444 -3310
- pulumi_snowflake/_utilities.py +1 -1
- pulumi_snowflake/account.py +5 -0
- pulumi_snowflake/account_parameter.py +5 -0
- pulumi_snowflake/account_password_policy_attachment.py +5 -0
- pulumi_snowflake/account_role.py +5 -0
- pulumi_snowflake/alert.py +5 -0
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +5 -0
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +5 -0
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +5 -0
- pulumi_snowflake/api_integration.py +5 -0
- pulumi_snowflake/config/__init__.pyi +5 -0
- pulumi_snowflake/config/outputs.py +5 -0
- pulumi_snowflake/config/vars.py +5 -0
- pulumi_snowflake/cortex_search_service.py +5 -0
- pulumi_snowflake/database.py +5 -0
- pulumi_snowflake/database_old.py +5 -0
- pulumi_snowflake/database_role.py +5 -0
- pulumi_snowflake/dynamic_table.py +5 -0
- pulumi_snowflake/email_notification_integration.py +5 -0
- pulumi_snowflake/external_function.py +5 -0
- pulumi_snowflake/external_oauth_integration.py +5 -0
- pulumi_snowflake/external_table.py +5 -0
- pulumi_snowflake/failover_group.py +5 -0
- pulumi_snowflake/file_format.py +5 -0
- pulumi_snowflake/function.py +5 -0
- pulumi_snowflake/get_accounts.py +13 -4
- pulumi_snowflake/get_alerts.py +17 -4
- pulumi_snowflake/get_cortex_search_services.py +19 -4
- pulumi_snowflake/get_current_account.py +13 -4
- pulumi_snowflake/get_current_role.py +11 -4
- pulumi_snowflake/get_database.py +20 -4
- pulumi_snowflake/get_database_role.py +16 -4
- pulumi_snowflake/get_database_roles.py +21 -4
- pulumi_snowflake/get_databases.py +21 -4
- pulumi_snowflake/get_dynamic_tables.py +19 -4
- pulumi_snowflake/get_external_functions.py +15 -4
- pulumi_snowflake/get_external_tables.py +15 -4
- pulumi_snowflake/get_failover_groups.py +13 -4
- pulumi_snowflake/get_file_formats.py +15 -4
- pulumi_snowflake/get_functions.py +15 -4
- pulumi_snowflake/get_grants.py +21 -4
- pulumi_snowflake/get_masking_policies.py +92 -52
- pulumi_snowflake/get_materialized_views.py +15 -4
- pulumi_snowflake/get_network_policies.py +15 -4
- pulumi_snowflake/get_parameters.py +21 -4
- pulumi_snowflake/get_pipes.py +15 -4
- pulumi_snowflake/get_procedures.py +15 -4
- pulumi_snowflake/get_resource_monitors.py +41 -20
- pulumi_snowflake/get_role.py +13 -4
- pulumi_snowflake/get_roles.py +15 -4
- pulumi_snowflake/get_row_access_policies.py +92 -52
- pulumi_snowflake/get_schemas.py +23 -4
- pulumi_snowflake/get_security_integrations.py +15 -4
- pulumi_snowflake/get_sequences.py +15 -4
- pulumi_snowflake/get_shares.py +13 -4
- pulumi_snowflake/get_stages.py +15 -4
- pulumi_snowflake/get_storage_integrations.py +11 -4
- pulumi_snowflake/get_streamlits.py +19 -4
- pulumi_snowflake/get_streams.py +15 -4
- pulumi_snowflake/get_system_generate_scim_access_token.py +13 -4
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +13 -4
- pulumi_snowflake/get_system_get_private_link_config.py +19 -4
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +12 -4
- pulumi_snowflake/get_tables.py +15 -4
- pulumi_snowflake/get_tasks.py +15 -4
- pulumi_snowflake/get_users.py +21 -4
- pulumi_snowflake/get_views.py +25 -4
- pulumi_snowflake/get_warehouses.py +17 -4
- pulumi_snowflake/grant_account_role.py +5 -0
- pulumi_snowflake/grant_application_role.py +5 -0
- pulumi_snowflake/grant_database_role.py +5 -0
- pulumi_snowflake/grant_ownership.py +5 -0
- pulumi_snowflake/grant_privileges_to_account_role.py +5 -0
- pulumi_snowflake/grant_privileges_to_database_role.py +5 -0
- pulumi_snowflake/grant_privileges_to_share.py +5 -0
- pulumi_snowflake/legacy_service_user.py +3666 -0
- pulumi_snowflake/managed_account.py +5 -0
- pulumi_snowflake/masking_policy.py +197 -234
- pulumi_snowflake/materialized_view.py +5 -0
- pulumi_snowflake/network_policy.py +5 -0
- pulumi_snowflake/network_policy_attachment.py +5 -0
- pulumi_snowflake/network_rule.py +5 -0
- pulumi_snowflake/notification_integration.py +5 -0
- pulumi_snowflake/oauth_integration.py +5 -0
- pulumi_snowflake/oauth_integration_for_custom_clients.py +5 -0
- pulumi_snowflake/oauth_integration_for_partner_applications.py +5 -0
- pulumi_snowflake/object_parameter.py +5 -0
- pulumi_snowflake/outputs.py +11392 -2385
- pulumi_snowflake/password_policy.py +5 -0
- pulumi_snowflake/pipe.py +5 -0
- pulumi_snowflake/procedure.py +5 -0
- pulumi_snowflake/provider.py +5 -0
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +88 -259
- pulumi_snowflake/role.py +5 -0
- pulumi_snowflake/row_access_policy.py +173 -114
- pulumi_snowflake/saml2_integration.py +5 -0
- pulumi_snowflake/saml_integration.py +5 -0
- pulumi_snowflake/schema.py +5 -0
- pulumi_snowflake/scim_integration.py +5 -0
- pulumi_snowflake/secondary_database.py +5 -0
- pulumi_snowflake/sequence.py +5 -0
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/session_parameter.py +5 -0
- pulumi_snowflake/share.py +5 -0
- pulumi_snowflake/shared_database.py +5 -0
- pulumi_snowflake/stage.py +12 -7
- pulumi_snowflake/storage_integration.py +5 -0
- pulumi_snowflake/stream.py +5 -0
- pulumi_snowflake/stream_on_external_table.py +597 -0
- pulumi_snowflake/stream_on_table.py +631 -0
- pulumi_snowflake/streamlit.py +5 -0
- pulumi_snowflake/table.py +5 -0
- pulumi_snowflake/table_column_masking_policy_application.py +5 -0
- pulumi_snowflake/table_constraint.py +5 -0
- pulumi_snowflake/tag.py +5 -0
- pulumi_snowflake/tag_association.py +5 -0
- pulumi_snowflake/tag_masking_policy_association.py +5 -0
- pulumi_snowflake/task.py +5 -0
- pulumi_snowflake/unsafe_execute.py +5 -0
- pulumi_snowflake/user.py +7 -2
- pulumi_snowflake/user_password_policy_attachment.py +5 -0
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +12 -7
- pulumi_snowflake/warehouse.py +9 -4
- {pulumi_snowflake-0.59.0a1726827563.dist-info → pulumi_snowflake-0.60.0.dist-info}/METADATA +3 -2
- pulumi_snowflake-0.60.0.dist-info/RECORD +133 -0
- pulumi_snowflake-0.59.0a1726827563.dist-info/RECORD +0 -129
- {pulumi_snowflake-0.59.0a1726827563.dist-info → pulumi_snowflake-0.60.0.dist-info}/WHEEL +0 -0
- {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
|
|
|
12
17
|
__all__ = [
|
|
@@ -122,9 +127,6 @@ def get_database_role(database: Optional[str] = None,
|
|
|
122
127
|
id=pulumi.get(__ret__, 'id'),
|
|
123
128
|
name=pulumi.get(__ret__, 'name'),
|
|
124
129
|
owner=pulumi.get(__ret__, 'owner'))
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
@_utilities.lift_output_func(get_database_role)
|
|
128
130
|
def get_database_role_output(database: Optional[pulumi.Input[str]] = None,
|
|
129
131
|
name: Optional[pulumi.Input[str]] = None,
|
|
130
132
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatabaseRoleResult]:
|
|
@@ -143,4 +145,14 @@ def get_database_role_output(database: Optional[pulumi.Input[str]] = None,
|
|
|
143
145
|
:param str database: The database from which to return the database role from.
|
|
144
146
|
:param str name: Database role name.
|
|
145
147
|
"""
|
|
146
|
-
|
|
148
|
+
__args__ = dict()
|
|
149
|
+
__args__['database'] = database
|
|
150
|
+
__args__['name'] = name
|
|
151
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
152
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getDatabaseRole:getDatabaseRole', __args__, opts=opts, typ=GetDatabaseRoleResult)
|
|
153
|
+
return __ret__.apply(lambda __response__: GetDatabaseRoleResult(
|
|
154
|
+
comment=pulumi.get(__response__, 'comment'),
|
|
155
|
+
database=pulumi.get(__response__, 'database'),
|
|
156
|
+
id=pulumi.get(__response__, 'id'),
|
|
157
|
+
name=pulumi.get(__response__, 'name'),
|
|
158
|
+
owner=pulumi.get(__response__, 'owner')))
|
|
@@ -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
|
from ._inputs import *
|
|
@@ -101,6 +106,8 @@ def get_database_roles(in_database: Optional[str] = None,
|
|
|
101
106
|
"""
|
|
102
107
|
!> **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.
|
|
103
108
|
|
|
109
|
+
Datasource used to get details of filtered database roles. Filtering is aligned with the current possibilities for [SHOW DATABASE ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-database-roles) query (`like` and `limit` are supported). The results of SHOW is encapsulated in show_output collection.
|
|
110
|
+
|
|
104
111
|
|
|
105
112
|
:param str in_database: The database from which to return the database roles from.
|
|
106
113
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
@@ -119,9 +126,6 @@ def get_database_roles(in_database: Optional[str] = None,
|
|
|
119
126
|
in_database=pulumi.get(__ret__, 'in_database'),
|
|
120
127
|
like=pulumi.get(__ret__, 'like'),
|
|
121
128
|
limit=pulumi.get(__ret__, 'limit'))
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
@_utilities.lift_output_func(get_database_roles)
|
|
125
129
|
def get_database_roles_output(in_database: Optional[pulumi.Input[str]] = None,
|
|
126
130
|
like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
127
131
|
limit: Optional[pulumi.Input[Optional[Union['GetDatabaseRolesLimitArgs', 'GetDatabaseRolesLimitArgsDict']]]] = None,
|
|
@@ -129,9 +133,22 @@ def get_database_roles_output(in_database: Optional[pulumi.Input[str]] = None,
|
|
|
129
133
|
"""
|
|
130
134
|
!> **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.
|
|
131
135
|
|
|
136
|
+
Datasource used to get details of filtered database roles. Filtering is aligned with the current possibilities for [SHOW DATABASE ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-database-roles) query (`like` and `limit` are supported). The results of SHOW is encapsulated in show_output collection.
|
|
137
|
+
|
|
132
138
|
|
|
133
139
|
:param str in_database: The database from which to return the database roles from.
|
|
134
140
|
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
135
141
|
:param Union['GetDatabaseRolesLimitArgs', 'GetDatabaseRolesLimitArgsDict'] 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`.
|
|
136
142
|
"""
|
|
137
|
-
|
|
143
|
+
__args__ = dict()
|
|
144
|
+
__args__['inDatabase'] = in_database
|
|
145
|
+
__args__['like'] = like
|
|
146
|
+
__args__['limit'] = limit
|
|
147
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
148
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getDatabaseRoles:getDatabaseRoles', __args__, opts=opts, typ=GetDatabaseRolesResult)
|
|
149
|
+
return __ret__.apply(lambda __response__: GetDatabaseRolesResult(
|
|
150
|
+
database_roles=pulumi.get(__response__, 'database_roles'),
|
|
151
|
+
id=pulumi.get(__response__, 'id'),
|
|
152
|
+
in_database=pulumi.get(__response__, 'in_database'),
|
|
153
|
+
like=pulumi.get(__response__, 'like'),
|
|
154
|
+
limit=pulumi.get(__response__, 'limit')))
|
|
@@ -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
|
from ._inputs import *
|
|
@@ -153,9 +158,6 @@ def get_databases(like: Optional[str] = None,
|
|
|
153
158
|
starts_with=pulumi.get(__ret__, 'starts_with'),
|
|
154
159
|
with_describe=pulumi.get(__ret__, 'with_describe'),
|
|
155
160
|
with_parameters=pulumi.get(__ret__, 'with_parameters'))
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
@_utilities.lift_output_func(get_databases)
|
|
159
161
|
def get_databases_output(like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
160
162
|
limit: Optional[pulumi.Input[Optional[Union['GetDatabasesLimitArgs', 'GetDatabasesLimitArgsDict']]]] = None,
|
|
161
163
|
starts_with: Optional[pulumi.Input[Optional[str]]] = None,
|
|
@@ -174,4 +176,19 @@ def get_databases_output(like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
|
174
176
|
:param bool with_describe: Runs DESC DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the description field. By default this value is set to true.
|
|
175
177
|
:param bool with_parameters: Runs SHOW PARAMETERS FOR DATABASE for each database returned by SHOW DATABASES. The output of describe is saved to the parameters field as a map. By default this value is set to true.
|
|
176
178
|
"""
|
|
177
|
-
|
|
179
|
+
__args__ = dict()
|
|
180
|
+
__args__['like'] = like
|
|
181
|
+
__args__['limit'] = limit
|
|
182
|
+
__args__['startsWith'] = starts_with
|
|
183
|
+
__args__['withDescribe'] = with_describe
|
|
184
|
+
__args__['withParameters'] = with_parameters
|
|
185
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
186
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getDatabases:getDatabases', __args__, opts=opts, typ=GetDatabasesResult)
|
|
187
|
+
return __ret__.apply(lambda __response__: GetDatabasesResult(
|
|
188
|
+
databases=pulumi.get(__response__, 'databases'),
|
|
189
|
+
id=pulumi.get(__response__, 'id'),
|
|
190
|
+
like=pulumi.get(__response__, 'like'),
|
|
191
|
+
limit=pulumi.get(__response__, 'limit'),
|
|
192
|
+
starts_with=pulumi.get(__response__, 'starts_with'),
|
|
193
|
+
with_describe=pulumi.get(__response__, 'with_describe'),
|
|
194
|
+
with_parameters=pulumi.get(__response__, 'with_parameters')))
|
|
@@ -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
|
from ._inputs import *
|
|
@@ -134,9 +139,6 @@ def get_dynamic_tables(in_: Optional[Union['GetDynamicTablesInArgs', 'GetDynamic
|
|
|
134
139
|
limit=pulumi.get(__ret__, 'limit'),
|
|
135
140
|
records=pulumi.get(__ret__, 'records'),
|
|
136
141
|
starts_with=pulumi.get(__ret__, 'starts_with'))
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
@_utilities.lift_output_func(get_dynamic_tables)
|
|
140
142
|
def get_dynamic_tables_output(in_: Optional[pulumi.Input[Optional[Union['GetDynamicTablesInArgs', 'GetDynamicTablesInArgsDict']]]] = None,
|
|
141
143
|
like: Optional[pulumi.Input[Optional[Union['GetDynamicTablesLikeArgs', 'GetDynamicTablesLikeArgsDict']]]] = None,
|
|
142
144
|
limit: Optional[pulumi.Input[Optional[Union['GetDynamicTablesLimitArgs', 'GetDynamicTablesLimitArgsDict']]]] = None,
|
|
@@ -150,4 +152,17 @@ def get_dynamic_tables_output(in_: Optional[pulumi.Input[Optional[Union['GetDyna
|
|
|
150
152
|
:param Union['GetDynamicTablesLimitArgs', 'GetDynamicTablesLimitArgsDict'] limit: Optionally limits the maximum number of rows returned, while also enabling “pagination” of the results. Note that the actual number of rows returned might be less than the specified limit (e.g. the number of existing objects is less than the specified limit).
|
|
151
153
|
:param str starts_with: Optionally filters the command output based on the characters that appear at the beginning of the object name. The string is case-sensitive.
|
|
152
154
|
"""
|
|
153
|
-
|
|
155
|
+
__args__ = dict()
|
|
156
|
+
__args__['in'] = in_
|
|
157
|
+
__args__['like'] = like
|
|
158
|
+
__args__['limit'] = limit
|
|
159
|
+
__args__['startsWith'] = starts_with
|
|
160
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
161
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getDynamicTables:getDynamicTables', __args__, opts=opts, typ=GetDynamicTablesResult)
|
|
162
|
+
return __ret__.apply(lambda __response__: GetDynamicTablesResult(
|
|
163
|
+
id=pulumi.get(__response__, 'id'),
|
|
164
|
+
in_=pulumi.get(__response__, 'in_'),
|
|
165
|
+
like=pulumi.get(__response__, 'like'),
|
|
166
|
+
limit=pulumi.get(__response__, 'limit'),
|
|
167
|
+
records=pulumi.get(__response__, 'records'),
|
|
168
|
+
starts_with=pulumi.get(__response__, 'starts_with')))
|
|
@@ -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_external_functions(database: Optional[str] = None,
|
|
|
110
115
|
external_functions=pulumi.get(__ret__, 'external_functions'),
|
|
111
116
|
id=pulumi.get(__ret__, 'id'),
|
|
112
117
|
schema=pulumi.get(__ret__, 'schema'))
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
@_utilities.lift_output_func(get_external_functions)
|
|
116
118
|
def get_external_functions_output(database: Optional[pulumi.Input[Optional[str]]] = None,
|
|
117
119
|
schema: Optional[pulumi.Input[Optional[str]]] = None,
|
|
118
120
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetExternalFunctionsResult]:
|
|
@@ -131,4 +133,13 @@ def get_external_functions_output(database: Optional[pulumi.Input[Optional[str]]
|
|
|
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 external functions 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/getExternalFunctions:getExternalFunctions', __args__, opts=opts, typ=GetExternalFunctionsResult)
|
|
141
|
+
return __ret__.apply(lambda __response__: GetExternalFunctionsResult(
|
|
142
|
+
database=pulumi.get(__response__, 'database'),
|
|
143
|
+
external_functions=pulumi.get(__response__, 'external_functions'),
|
|
144
|
+
id=pulumi.get(__response__, 'id'),
|
|
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_external_tables(database: Optional[str] = None,
|
|
|
110
115
|
external_tables=pulumi.get(__ret__, 'external_tables'),
|
|
111
116
|
id=pulumi.get(__ret__, 'id'),
|
|
112
117
|
schema=pulumi.get(__ret__, 'schema'))
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
@_utilities.lift_output_func(get_external_tables)
|
|
116
118
|
def get_external_tables_output(database: Optional[pulumi.Input[str]] = None,
|
|
117
119
|
schema: Optional[pulumi.Input[str]] = None,
|
|
118
120
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetExternalTablesResult]:
|
|
@@ -131,4 +133,13 @@ def get_external_tables_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 external tables 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/getExternalTables:getExternalTables', __args__, opts=opts, typ=GetExternalTablesResult)
|
|
141
|
+
return __ret__.apply(lambda __response__: GetExternalTablesResult(
|
|
142
|
+
database=pulumi.get(__response__, 'database'),
|
|
143
|
+
external_tables=pulumi.get(__response__, 'external_tables'),
|
|
144
|
+
id=pulumi.get(__response__, 'id'),
|
|
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
|
|
|
@@ -85,9 +90,6 @@ def get_failover_groups(in_account: Optional[str] = None,
|
|
|
85
90
|
failover_groups=pulumi.get(__ret__, 'failover_groups'),
|
|
86
91
|
id=pulumi.get(__ret__, 'id'),
|
|
87
92
|
in_account=pulumi.get(__ret__, 'in_account'))
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
@_utilities.lift_output_func(get_failover_groups)
|
|
91
93
|
def get_failover_groups_output(in_account: Optional[pulumi.Input[Optional[str]]] = None,
|
|
92
94
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFailoverGroupsResult]:
|
|
93
95
|
"""
|
|
@@ -95,4 +97,11 @@ def get_failover_groups_output(in_account: Optional[pulumi.Input[Optional[str]]]
|
|
|
95
97
|
|
|
96
98
|
:param str in_account: Specifies the identifier for the account
|
|
97
99
|
"""
|
|
98
|
-
|
|
100
|
+
__args__ = dict()
|
|
101
|
+
__args__['inAccount'] = in_account
|
|
102
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
103
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getFailoverGroups:getFailoverGroups', __args__, opts=opts, typ=GetFailoverGroupsResult)
|
|
104
|
+
return __ret__.apply(lambda __response__: GetFailoverGroupsResult(
|
|
105
|
+
failover_groups=pulumi.get(__response__, 'failover_groups'),
|
|
106
|
+
id=pulumi.get(__response__, 'id'),
|
|
107
|
+
in_account=pulumi.get(__response__, 'in_account')))
|
|
@@ -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_file_formats(database: Optional[str] = None,
|
|
|
110
115
|
file_formats=pulumi.get(__ret__, 'file_formats'),
|
|
111
116
|
id=pulumi.get(__ret__, 'id'),
|
|
112
117
|
schema=pulumi.get(__ret__, 'schema'))
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
@_utilities.lift_output_func(get_file_formats)
|
|
116
118
|
def get_file_formats_output(database: Optional[pulumi.Input[str]] = None,
|
|
117
119
|
schema: Optional[pulumi.Input[str]] = None,
|
|
118
120
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFileFormatsResult]:
|
|
@@ -131,4 +133,13 @@ def get_file_formats_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 file formats 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/getFileFormats:getFileFormats', __args__, opts=opts, typ=GetFileFormatsResult)
|
|
141
|
+
return __ret__.apply(lambda __response__: GetFileFormatsResult(
|
|
142
|
+
database=pulumi.get(__response__, 'database'),
|
|
143
|
+
file_formats=pulumi.get(__response__, 'file_formats'),
|
|
144
|
+
id=pulumi.get(__response__, 'id'),
|
|
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_functions(database: Optional[str] = None,
|
|
|
110
115
|
functions=pulumi.get(__ret__, 'functions'),
|
|
111
116
|
id=pulumi.get(__ret__, 'id'),
|
|
112
117
|
schema=pulumi.get(__ret__, 'schema'))
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
@_utilities.lift_output_func(get_functions)
|
|
116
118
|
def get_functions_output(database: Optional[pulumi.Input[str]] = None,
|
|
117
119
|
schema: Optional[pulumi.Input[str]] = None,
|
|
118
120
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetFunctionsResult]:
|
|
@@ -131,4 +133,13 @@ def get_functions_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 functions 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/getFunctions:getFunctions', __args__, opts=opts, typ=GetFunctionsResult)
|
|
141
|
+
return __ret__.apply(lambda __response__: GetFunctionsResult(
|
|
142
|
+
database=pulumi.get(__response__, 'database'),
|
|
143
|
+
functions=pulumi.get(__response__, 'functions'),
|
|
144
|
+
id=pulumi.get(__response__, 'id'),
|
|
145
|
+
schema=pulumi.get(__response__, 'schema')))
|
pulumi_snowflake/get_grants.py
CHANGED
|
@@ -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
|
from ._inputs import *
|
|
@@ -237,9 +242,6 @@ def get_grants(future_grants_in: Optional[Union['GetGrantsFutureGrantsInArgs', '
|
|
|
237
242
|
grants_on=pulumi.get(__ret__, 'grants_on'),
|
|
238
243
|
grants_to=pulumi.get(__ret__, 'grants_to'),
|
|
239
244
|
id=pulumi.get(__ret__, 'id'))
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
@_utilities.lift_output_func(get_grants)
|
|
243
245
|
def get_grants_output(future_grants_in: Optional[pulumi.Input[Optional[Union['GetGrantsFutureGrantsInArgs', 'GetGrantsFutureGrantsInArgsDict']]]] = None,
|
|
244
246
|
future_grants_to: Optional[pulumi.Input[Optional[Union['GetGrantsFutureGrantsToArgs', 'GetGrantsFutureGrantsToArgsDict']]]] = None,
|
|
245
247
|
grants_of: Optional[pulumi.Input[Optional[Union['GetGrantsGrantsOfArgs', 'GetGrantsGrantsOfArgsDict']]]] = None,
|
|
@@ -342,4 +344,19 @@ def get_grants_output(future_grants_in: Optional[pulumi.Input[Optional[Union['Ge
|
|
|
342
344
|
:param Union['GetGrantsGrantsOnArgs', 'GetGrantsGrantsOnArgsDict'] grants_on: Lists all privileges that have been granted on an object or on an account.
|
|
343
345
|
:param Union['GetGrantsGrantsToArgs', 'GetGrantsGrantsToArgsDict'] grants_to: Lists all privileges granted to the object.
|
|
344
346
|
"""
|
|
345
|
-
|
|
347
|
+
__args__ = dict()
|
|
348
|
+
__args__['futureGrantsIn'] = future_grants_in
|
|
349
|
+
__args__['futureGrantsTo'] = future_grants_to
|
|
350
|
+
__args__['grantsOf'] = grants_of
|
|
351
|
+
__args__['grantsOn'] = grants_on
|
|
352
|
+
__args__['grantsTo'] = grants_to
|
|
353
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
354
|
+
__ret__ = pulumi.runtime.invoke_output('snowflake:index/getGrants:getGrants', __args__, opts=opts, typ=GetGrantsResult)
|
|
355
|
+
return __ret__.apply(lambda __response__: GetGrantsResult(
|
|
356
|
+
future_grants_in=pulumi.get(__response__, 'future_grants_in'),
|
|
357
|
+
future_grants_to=pulumi.get(__response__, 'future_grants_to'),
|
|
358
|
+
grants=pulumi.get(__response__, 'grants'),
|
|
359
|
+
grants_of=pulumi.get(__response__, 'grants_of'),
|
|
360
|
+
grants_on=pulumi.get(__response__, 'grants_on'),
|
|
361
|
+
grants_to=pulumi.get(__response__, 'grants_to'),
|
|
362
|
+
id=pulumi.get(__response__, 'id')))
|
|
@@ -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
|
'GetMaskingPoliciesResult',
|
|
@@ -22,51 +28,73 @@ class GetMaskingPoliciesResult:
|
|
|
22
28
|
"""
|
|
23
29
|
A collection of values returned by getMaskingPolicies.
|
|
24
30
|
"""
|
|
25
|
-
def __init__(__self__,
|
|
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, masking_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 masking_policies and not isinstance(masking_policies, list):
|
|
33
45
|
raise TypeError("Expected argument 'masking_policies' to be a list")
|
|
34
46
|
pulumi.set(__self__, "masking_policies", masking_policies)
|
|
35
|
-
if
|
|
36
|
-
raise TypeError("Expected argument '
|
|
37
|
-
pulumi.set(__self__, "
|
|
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
|
|
53
|
+
def id(self) -> str:
|
|
42
54
|
"""
|
|
43
|
-
The
|
|
55
|
+
The provider-assigned unique ID for this managed resource.
|
|
44
56
|
"""
|
|
45
|
-
return pulumi.get(self, "
|
|
57
|
+
return pulumi.get(self, "id")
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
@pulumi.getter(name="in")
|
|
61
|
+
def in_(self) -> Optional['outputs.GetMaskingPoliciesInResult']:
|
|
62
|
+
"""
|
|
63
|
+
IN clause to filter the list of masking policies
|
|
64
|
+
"""
|
|
65
|
+
return pulumi.get(self, "in_")
|
|
46
66
|
|
|
47
67
|
@property
|
|
48
68
|
@pulumi.getter
|
|
49
|
-
def
|
|
69
|
+
def like(self) -> Optional[str]:
|
|
50
70
|
"""
|
|
51
|
-
|
|
71
|
+
Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
52
72
|
"""
|
|
53
|
-
return pulumi.get(self, "
|
|
73
|
+
return pulumi.get(self, "like")
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
@pulumi.getter
|
|
77
|
+
def limit(self) -> Optional['outputs.GetMaskingPoliciesLimitResult']:
|
|
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="maskingPolicies")
|
|
57
85
|
def masking_policies(self) -> Sequence['outputs.GetMaskingPoliciesMaskingPolicyResult']:
|
|
58
86
|
"""
|
|
59
|
-
|
|
87
|
+
Holds the aggregated output of all views details queries.
|
|
60
88
|
"""
|
|
61
89
|
return pulumi.get(self, "masking_policies")
|
|
62
90
|
|
|
63
91
|
@property
|
|
64
|
-
@pulumi.getter
|
|
65
|
-
def
|
|
92
|
+
@pulumi.getter(name="withDescribe")
|
|
93
|
+
def with_describe(self) -> Optional[bool]:
|
|
66
94
|
"""
|
|
67
|
-
The
|
|
95
|
+
Runs DESC MASKING POLICY for each masking policy returned by SHOW MASKING 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, "
|
|
97
|
+
return pulumi.get(self, "with_describe")
|
|
70
98
|
|
|
71
99
|
|
|
72
100
|
class AwaitableGetMaskingPoliciesResult(GetMaskingPoliciesResult):
|
|
@@ -75,60 +103,72 @@ class AwaitableGetMaskingPoliciesResult(GetMaskingPoliciesResult):
|
|
|
75
103
|
if False:
|
|
76
104
|
yield self
|
|
77
105
|
return GetMaskingPoliciesResult(
|
|
78
|
-
database=self.database,
|
|
79
106
|
id=self.id,
|
|
107
|
+
in_=self.in_,
|
|
108
|
+
like=self.like,
|
|
109
|
+
limit=self.limit,
|
|
80
110
|
masking_policies=self.masking_policies,
|
|
81
|
-
|
|
111
|
+
with_describe=self.with_describe)
|
|
82
112
|
|
|
83
113
|
|
|
84
|
-
def get_masking_policies(
|
|
85
|
-
|
|
114
|
+
def get_masking_policies(in_: Optional[Union['GetMaskingPoliciesInArgs', 'GetMaskingPoliciesInArgsDict']] = None,
|
|
115
|
+
like: Optional[str] = None,
|
|
116
|
+
limit: Optional[Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict']] = None,
|
|
117
|
+
with_describe: Optional[bool] = None,
|
|
86
118
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetMaskingPoliciesResult:
|
|
87
119
|
"""
|
|
88
|
-
|
|
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
|
|
95
|
-
schema="MYSCHEMA")
|
|
96
|
-
```
|
|
122
|
+
Datasource used to get details of filtered masking policies. Filtering is aligned with the current possibilities for [SHOW MASKING POLICIES](https://docs.snowflake.com/en/sql-reference/sql/show-masking-policies) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `masking_policies`.
|
|
97
123
|
|
|
98
124
|
|
|
99
|
-
:param
|
|
100
|
-
:param str
|
|
125
|
+
:param Union['GetMaskingPoliciesInArgs', 'GetMaskingPoliciesInArgsDict'] in_: IN clause to filter the list of masking policies
|
|
126
|
+
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
127
|
+
:param Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict'] 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 MASKING POLICY for each masking policy returned by SHOW MASKING 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__['
|
|
104
|
-
__args__['
|
|
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/getMaskingPolicies:getMaskingPolicies', __args__, opts=opts, typ=GetMaskingPoliciesResult).value
|
|
107
137
|
|
|
108
138
|
return AwaitableGetMaskingPoliciesResult(
|
|
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
|
masking_policies=pulumi.get(__ret__, 'masking_policies'),
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
schema: Optional[pulumi.Input[str]] = None,
|
|
144
|
+
with_describe=pulumi.get(__ret__, 'with_describe'))
|
|
145
|
+
def get_masking_policies_output(in_: Optional[pulumi.Input[Optional[Union['GetMaskingPoliciesInArgs', 'GetMaskingPoliciesInArgsDict']]]] = None,
|
|
146
|
+
like: Optional[pulumi.Input[Optional[str]]] = None,
|
|
147
|
+
limit: Optional[pulumi.Input[Optional[Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict']]]] = None,
|
|
148
|
+
with_describe: Optional[pulumi.Input[Optional[bool]]] = None,
|
|
118
149
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetMaskingPoliciesResult]:
|
|
119
150
|
"""
|
|
120
|
-
|
|
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
|
|
127
|
-
schema="MYSCHEMA")
|
|
128
|
-
```
|
|
153
|
+
Datasource used to get details of filtered masking policies. Filtering is aligned with the current possibilities for [SHOW MASKING POLICIES](https://docs.snowflake.com/en/sql-reference/sql/show-masking-policies) query. The results of SHOW and DESCRIBE are encapsulated in one output collection `masking_policies`.
|
|
129
154
|
|
|
130
155
|
|
|
131
|
-
:param
|
|
132
|
-
:param str
|
|
156
|
+
:param Union['GetMaskingPoliciesInArgs', 'GetMaskingPoliciesInArgsDict'] in_: IN clause to filter the list of masking policies
|
|
157
|
+
:param str like: Filters the output with **case-insensitive** pattern, with support for SQL wildcard characters (`%` and `_`).
|
|
158
|
+
:param Union['GetMaskingPoliciesLimitArgs', 'GetMaskingPoliciesLimitArgsDict'] 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 MASKING POLICY for each masking policy returned by SHOW MASKING 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/getMaskingPolicies:getMaskingPolicies', __args__, opts=opts, typ=GetMaskingPoliciesResult)
|
|
168
|
+
return __ret__.apply(lambda __response__: GetMaskingPoliciesResult(
|
|
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
|
+
masking_policies=pulumi.get(__response__, 'masking_policies'),
|
|
174
|
+
with_describe=pulumi.get(__response__, 'with_describe')))
|