pulumi-snowflake 0.50.2a1709892015__py3-none-any.whl → 1.2.0a1736835738__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-snowflake might be problematic. Click here for more details.
- pulumi_snowflake/__init__.py +224 -172
- pulumi_snowflake/_inputs.py +52854 -1662
- pulumi_snowflake/_utilities.py +41 -5
- pulumi_snowflake/account.py +188 -214
- pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
- pulumi_snowflake/account_parameter.py +21 -44
- pulumi_snowflake/account_password_policy_attachment.py +7 -28
- pulumi_snowflake/account_role.py +250 -0
- pulumi_snowflake/alert.py +38 -43
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
- pulumi_snowflake/api_integration.py +35 -50
- pulumi_snowflake/authentication_policy.py +622 -0
- pulumi_snowflake/config/__init__.pyi +76 -99
- pulumi_snowflake/config/outputs.py +5 -0
- pulumi_snowflake/config/vars.py +93 -124
- pulumi_snowflake/cortex_search_service.py +596 -0
- pulumi_snowflake/database.py +819 -209
- pulumi_snowflake/database_role.py +81 -40
- pulumi_snowflake/dynamic_table.py +44 -47
- pulumi_snowflake/email_notification_integration.py +35 -26
- pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -139
- pulumi_snowflake/external_function.py +54 -71
- pulumi_snowflake/external_oauth_integration.py +593 -538
- pulumi_snowflake/external_table.py +67 -86
- pulumi_snowflake/external_volume.py +382 -0
- pulumi_snowflake/failover_group.py +59 -96
- pulumi_snowflake/file_format.py +33 -24
- pulumi_snowflake/function_java.py +1211 -0
- pulumi_snowflake/function_javascript.py +882 -0
- pulumi_snowflake/function_python.py +1212 -0
- pulumi_snowflake/function_scala.py +1212 -0
- pulumi_snowflake/function_sql.py +835 -0
- pulumi_snowflake/get_account_roles.py +129 -0
- pulumi_snowflake/get_accounts.py +53 -22
- pulumi_snowflake/get_alerts.py +22 -5
- pulumi_snowflake/get_connections.py +109 -0
- pulumi_snowflake/get_cortex_search_services.py +216 -0
- pulumi_snowflake/get_current_account.py +24 -9
- pulumi_snowflake/get_current_role.py +14 -7
- pulumi_snowflake/get_database.py +25 -5
- pulumi_snowflake/get_database_role.py +162 -0
- pulumi_snowflake/get_database_roles.py +79 -43
- pulumi_snowflake/get_databases.py +91 -69
- pulumi_snowflake/get_dynamic_tables.py +36 -19
- pulumi_snowflake/get_external_functions.py +28 -5
- pulumi_snowflake/get_external_tables.py +28 -5
- pulumi_snowflake/get_failover_groups.py +18 -7
- pulumi_snowflake/get_file_formats.py +28 -5
- pulumi_snowflake/get_functions.py +28 -5
- pulumi_snowflake/get_grants.py +207 -80
- pulumi_snowflake/get_masking_policies.py +91 -47
- pulumi_snowflake/get_materialized_views.py +28 -5
- pulumi_snowflake/get_network_policies.py +129 -0
- pulumi_snowflake/get_parameters.py +38 -11
- pulumi_snowflake/get_pipes.py +28 -5
- pulumi_snowflake/get_procedures.py +28 -5
- pulumi_snowflake/get_resource_monitors.py +37 -20
- pulumi_snowflake/get_row_access_policies.py +91 -47
- pulumi_snowflake/get_schemas.py +145 -37
- pulumi_snowflake/get_secrets.py +200 -0
- pulumi_snowflake/get_security_integrations.py +129 -0
- pulumi_snowflake/get_sequences.py +28 -5
- pulumi_snowflake/get_shares.py +18 -5
- pulumi_snowflake/get_stages.py +28 -5
- pulumi_snowflake/get_storage_integrations.py +16 -5
- pulumi_snowflake/get_streamlits.py +170 -0
- pulumi_snowflake/get_streams.py +114 -50
- pulumi_snowflake/get_system_generate_scim_access_token.py +18 -5
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
- pulumi_snowflake/get_system_get_private_link_config.py +121 -6
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
- pulumi_snowflake/get_tables.py +28 -5
- pulumi_snowflake/get_tags.py +130 -0
- pulumi_snowflake/get_tasks.py +134 -50
- pulumi_snowflake/get_users.py +116 -40
- pulumi_snowflake/get_views.py +114 -50
- pulumi_snowflake/get_warehouses.py +79 -22
- pulumi_snowflake/grant_account_role.py +28 -61
- pulumi_snowflake/grant_application_role.py +257 -0
- pulumi_snowflake/grant_database_role.py +35 -108
- pulumi_snowflake/grant_ownership.py +382 -0
- pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
- pulumi_snowflake/grant_privileges_to_database_role.py +37 -223
- pulumi_snowflake/grant_privileges_to_share.py +96 -44
- pulumi_snowflake/legacy_service_user.py +3670 -0
- pulumi_snowflake/managed_account.py +42 -9
- pulumi_snowflake/masking_policy.py +213 -306
- pulumi_snowflake/materialized_view.py +62 -67
- pulumi_snowflake/network_policy.py +217 -57
- pulumi_snowflake/network_policy_attachment.py +7 -32
- pulumi_snowflake/network_rule.py +473 -0
- pulumi_snowflake/notification_integration.py +51 -82
- pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
- pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -188
- pulumi_snowflake/object_parameter.py +12 -99
- pulumi_snowflake/outputs.py +49200 -2928
- pulumi_snowflake/password_policy.py +41 -28
- pulumi_snowflake/pipe.py +33 -0
- pulumi_snowflake/primary_connection.py +330 -0
- pulumi_snowflake/procedure_java.py +1273 -0
- pulumi_snowflake/procedure_javascript.py +895 -0
- pulumi_snowflake/procedure_python.py +1226 -0
- pulumi_snowflake/procedure_scala.py +1273 -0
- pulumi_snowflake/procedure_sql.py +895 -0
- pulumi_snowflake/provider.py +378 -613
- pulumi_snowflake/pulumi-plugin.json +2 -1
- pulumi_snowflake/resource_monitor.py +118 -323
- pulumi_snowflake/row_access_policy.py +200 -145
- pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -295
- pulumi_snowflake/schema.py +949 -174
- pulumi_snowflake/scim_integration.py +286 -105
- pulumi_snowflake/secondary_connection.py +339 -0
- pulumi_snowflake/secondary_database.py +1080 -0
- pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
- pulumi_snowflake/secret_with_basic_authentication.py +500 -0
- pulumi_snowflake/secret_with_client_credentials.py +511 -0
- pulumi_snowflake/secret_with_generic_string.py +452 -0
- pulumi_snowflake/sequence.py +9 -30
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/share.py +35 -26
- pulumi_snowflake/shared_database.py +939 -0
- pulumi_snowflake/stage.py +95 -80
- pulumi_snowflake/storage_integration.py +48 -2
- pulumi_snowflake/stream_on_directory_table.py +517 -0
- pulumi_snowflake/stream_on_external_table.py +632 -0
- pulumi_snowflake/stream_on_table.py +666 -0
- pulumi_snowflake/stream_on_view.py +666 -0
- pulumi_snowflake/streamlit.py +671 -0
- pulumi_snowflake/table.py +86 -93
- pulumi_snowflake/table_column_masking_policy_application.py +7 -14
- pulumi_snowflake/table_constraint.py +29 -168
- pulumi_snowflake/tag.py +142 -70
- pulumi_snowflake/tag_association.py +40 -211
- pulumi_snowflake/task.py +3048 -414
- pulumi_snowflake/user.py +3351 -380
- pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
- pulumi_snowflake/user_password_policy_attachment.py +7 -6
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +466 -211
- pulumi_snowflake/warehouse.py +184 -164
- {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/METADATA +7 -6
- pulumi_snowflake-1.2.0a1736835738.dist-info/RECORD +148 -0
- {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -339
- pulumi_snowflake/database_grant.py +0 -491
- pulumi_snowflake/external_table_grant.py +0 -686
- pulumi_snowflake/failover_group_grant.py +0 -388
- pulumi_snowflake/file_format_grant.py +0 -631
- pulumi_snowflake/function.py +0 -868
- pulumi_snowflake/function_grant.py +0 -741
- pulumi_snowflake/get_role.py +0 -117
- pulumi_snowflake/get_roles.py +0 -116
- pulumi_snowflake/grant_privileges_to_role.py +0 -667
- pulumi_snowflake/integration_grant.py +0 -436
- pulumi_snowflake/masking_policy_grant.py +0 -538
- pulumi_snowflake/materialized_view_grant.py +0 -685
- pulumi_snowflake/pipe_grant.py +0 -583
- pulumi_snowflake/procedure.py +0 -883
- pulumi_snowflake/procedure_grant.py +0 -741
- pulumi_snowflake/resource_monitor_grant.py +0 -383
- pulumi_snowflake/role.py +0 -269
- pulumi_snowflake/role_grants.py +0 -348
- pulumi_snowflake/role_ownership_grant.py +0 -334
- pulumi_snowflake/row_access_policy_grant.py +0 -536
- pulumi_snowflake/schema_grant.py +0 -643
- pulumi_snowflake/sequence_grant.py +0 -631
- pulumi_snowflake/session_parameter.py +0 -328
- pulumi_snowflake/stage_grant.py +0 -631
- pulumi_snowflake/stream.py +0 -610
- pulumi_snowflake/stream_grant.py +0 -631
- pulumi_snowflake/table_grant.py +0 -673
- pulumi_snowflake/tag_grant.py +0 -528
- pulumi_snowflake/tag_masking_policy_association.py +0 -210
- pulumi_snowflake/task_grant.py +0 -631
- pulumi_snowflake/user_grant.py +0 -390
- pulumi_snowflake/user_ownership_grant.py +0 -286
- pulumi_snowflake/view_grant.py +0 -701
- pulumi_snowflake/warehouse_grant.py +0 -436
- pulumi_snowflake-0.50.2a1709892015.dist-info/RECORD +0 -136
- {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
|
@@ -4,35 +4,42 @@
|
|
|
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
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
11
18
|
|
|
12
19
|
__all__ = ['RowAccessPolicyArgs', 'RowAccessPolicy']
|
|
13
20
|
|
|
14
21
|
@pulumi.input_type
|
|
15
22
|
class RowAccessPolicyArgs:
|
|
16
23
|
def __init__(__self__, *,
|
|
24
|
+
arguments: pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyArgumentArgs']]],
|
|
25
|
+
body: pulumi.Input[str],
|
|
17
26
|
database: pulumi.Input[str],
|
|
18
|
-
row_access_expression: pulumi.Input[str],
|
|
19
27
|
schema: pulumi.Input[str],
|
|
20
|
-
signature: pulumi.Input[Mapping[str, pulumi.Input[str]]],
|
|
21
28
|
comment: Optional[pulumi.Input[str]] = None,
|
|
22
29
|
name: Optional[pulumi.Input[str]] = None):
|
|
23
30
|
"""
|
|
24
31
|
The set of arguments for constructing a RowAccessPolicy resource.
|
|
25
|
-
:param pulumi.Input[
|
|
26
|
-
:param pulumi.Input[str]
|
|
27
|
-
:param pulumi.Input[str]
|
|
28
|
-
:param pulumi.Input[
|
|
32
|
+
:param pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyArgumentArgs']]] arguments: List of the arguments for the row access policy. A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy. If any argument name or type is changed, the resource is recreated.
|
|
33
|
+
:param pulumi.Input[str] body: Specifies the SQL expression. The expression can be any boolean-valued SQL expression. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
34
|
+
:param pulumi.Input[str] database: The database in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
35
|
+
:param pulumi.Input[str] schema: The schema in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
29
36
|
:param pulumi.Input[str] comment: Specifies a comment for the row access policy.
|
|
30
|
-
:param pulumi.Input[str] name: Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
|
|
37
|
+
:param pulumi.Input[str] name: Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
31
38
|
"""
|
|
39
|
+
pulumi.set(__self__, "arguments", arguments)
|
|
40
|
+
pulumi.set(__self__, "body", body)
|
|
32
41
|
pulumi.set(__self__, "database", database)
|
|
33
|
-
pulumi.set(__self__, "row_access_expression", row_access_expression)
|
|
34
42
|
pulumi.set(__self__, "schema", schema)
|
|
35
|
-
pulumi.set(__self__, "signature", signature)
|
|
36
43
|
if comment is not None:
|
|
37
44
|
pulumi.set(__self__, "comment", comment)
|
|
38
45
|
if name is not None:
|
|
@@ -40,51 +47,51 @@ class RowAccessPolicyArgs:
|
|
|
40
47
|
|
|
41
48
|
@property
|
|
42
49
|
@pulumi.getter
|
|
43
|
-
def
|
|
50
|
+
def arguments(self) -> pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyArgumentArgs']]]:
|
|
44
51
|
"""
|
|
45
|
-
The database
|
|
52
|
+
List of the arguments for the row access policy. A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy. If any argument name or type is changed, the resource is recreated.
|
|
46
53
|
"""
|
|
47
|
-
return pulumi.get(self, "
|
|
54
|
+
return pulumi.get(self, "arguments")
|
|
48
55
|
|
|
49
|
-
@
|
|
50
|
-
def
|
|
51
|
-
pulumi.set(self, "
|
|
56
|
+
@arguments.setter
|
|
57
|
+
def arguments(self, value: pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyArgumentArgs']]]):
|
|
58
|
+
pulumi.set(self, "arguments", value)
|
|
52
59
|
|
|
53
60
|
@property
|
|
54
|
-
@pulumi.getter
|
|
55
|
-
def
|
|
61
|
+
@pulumi.getter
|
|
62
|
+
def body(self) -> pulumi.Input[str]:
|
|
56
63
|
"""
|
|
57
|
-
Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
|
|
64
|
+
Specifies the SQL expression. The expression can be any boolean-valued SQL expression. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
58
65
|
"""
|
|
59
|
-
return pulumi.get(self, "
|
|
66
|
+
return pulumi.get(self, "body")
|
|
60
67
|
|
|
61
|
-
@
|
|
62
|
-
def
|
|
63
|
-
pulumi.set(self, "
|
|
68
|
+
@body.setter
|
|
69
|
+
def body(self, value: pulumi.Input[str]):
|
|
70
|
+
pulumi.set(self, "body", value)
|
|
64
71
|
|
|
65
72
|
@property
|
|
66
73
|
@pulumi.getter
|
|
67
|
-
def
|
|
74
|
+
def database(self) -> pulumi.Input[str]:
|
|
68
75
|
"""
|
|
69
|
-
The
|
|
76
|
+
The database in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
70
77
|
"""
|
|
71
|
-
return pulumi.get(self, "
|
|
78
|
+
return pulumi.get(self, "database")
|
|
72
79
|
|
|
73
|
-
@
|
|
74
|
-
def
|
|
75
|
-
pulumi.set(self, "
|
|
80
|
+
@database.setter
|
|
81
|
+
def database(self, value: pulumi.Input[str]):
|
|
82
|
+
pulumi.set(self, "database", value)
|
|
76
83
|
|
|
77
84
|
@property
|
|
78
85
|
@pulumi.getter
|
|
79
|
-
def
|
|
86
|
+
def schema(self) -> pulumi.Input[str]:
|
|
80
87
|
"""
|
|
81
|
-
|
|
88
|
+
The schema in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
82
89
|
"""
|
|
83
|
-
return pulumi.get(self, "
|
|
90
|
+
return pulumi.get(self, "schema")
|
|
84
91
|
|
|
85
|
-
@
|
|
86
|
-
def
|
|
87
|
-
pulumi.set(self, "
|
|
92
|
+
@schema.setter
|
|
93
|
+
def schema(self, value: pulumi.Input[str]):
|
|
94
|
+
pulumi.set(self, "schema", value)
|
|
88
95
|
|
|
89
96
|
@property
|
|
90
97
|
@pulumi.getter
|
|
@@ -102,7 +109,7 @@ class RowAccessPolicyArgs:
|
|
|
102
109
|
@pulumi.getter
|
|
103
110
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
104
111
|
"""
|
|
105
|
-
Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
|
|
112
|
+
Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
106
113
|
"""
|
|
107
114
|
return pulumi.get(self, "name")
|
|
108
115
|
|
|
@@ -114,33 +121,69 @@ class RowAccessPolicyArgs:
|
|
|
114
121
|
@pulumi.input_type
|
|
115
122
|
class _RowAccessPolicyState:
|
|
116
123
|
def __init__(__self__, *,
|
|
124
|
+
arguments: Optional[pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyArgumentArgs']]]] = None,
|
|
125
|
+
body: Optional[pulumi.Input[str]] = None,
|
|
117
126
|
comment: Optional[pulumi.Input[str]] = None,
|
|
118
127
|
database: Optional[pulumi.Input[str]] = None,
|
|
128
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyDescribeOutputArgs']]]] = None,
|
|
129
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
119
130
|
name: Optional[pulumi.Input[str]] = None,
|
|
120
|
-
row_access_expression: Optional[pulumi.Input[str]] = None,
|
|
121
131
|
schema: Optional[pulumi.Input[str]] = None,
|
|
122
|
-
|
|
132
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyShowOutputArgs']]]] = None):
|
|
123
133
|
"""
|
|
124
134
|
Input properties used for looking up and filtering RowAccessPolicy resources.
|
|
135
|
+
:param pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyArgumentArgs']]] arguments: List of the arguments for the row access policy. A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy. If any argument name or type is changed, the resource is recreated.
|
|
136
|
+
:param pulumi.Input[str] body: Specifies the SQL expression. The expression can be any boolean-valued SQL expression. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
125
137
|
:param pulumi.Input[str] comment: Specifies a comment for the row access policy.
|
|
126
|
-
:param pulumi.Input[str] database: The database in which to create the row access policy.
|
|
127
|
-
:param pulumi.Input[
|
|
128
|
-
:param pulumi.Input[str]
|
|
129
|
-
:param pulumi.Input[str]
|
|
130
|
-
:param pulumi.Input[
|
|
131
|
-
|
|
138
|
+
:param pulumi.Input[str] database: The database in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
139
|
+
:param pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE ROW ACCESS POLICY` for the given row access policy.
|
|
140
|
+
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
141
|
+
:param pulumi.Input[str] name: Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
142
|
+
:param pulumi.Input[str] schema: The schema in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
143
|
+
:param pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyShowOutputArgs']]] show_outputs: Outputs the result of `SHOW ROW ACCESS POLICIES` for the given row access policy.
|
|
144
|
+
"""
|
|
145
|
+
if arguments is not None:
|
|
146
|
+
pulumi.set(__self__, "arguments", arguments)
|
|
147
|
+
if body is not None:
|
|
148
|
+
pulumi.set(__self__, "body", body)
|
|
132
149
|
if comment is not None:
|
|
133
150
|
pulumi.set(__self__, "comment", comment)
|
|
134
151
|
if database is not None:
|
|
135
152
|
pulumi.set(__self__, "database", database)
|
|
153
|
+
if describe_outputs is not None:
|
|
154
|
+
pulumi.set(__self__, "describe_outputs", describe_outputs)
|
|
155
|
+
if fully_qualified_name is not None:
|
|
156
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
136
157
|
if name is not None:
|
|
137
158
|
pulumi.set(__self__, "name", name)
|
|
138
|
-
if row_access_expression is not None:
|
|
139
|
-
pulumi.set(__self__, "row_access_expression", row_access_expression)
|
|
140
159
|
if schema is not None:
|
|
141
160
|
pulumi.set(__self__, "schema", schema)
|
|
142
|
-
if
|
|
143
|
-
pulumi.set(__self__, "
|
|
161
|
+
if show_outputs is not None:
|
|
162
|
+
pulumi.set(__self__, "show_outputs", show_outputs)
|
|
163
|
+
|
|
164
|
+
@property
|
|
165
|
+
@pulumi.getter
|
|
166
|
+
def arguments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyArgumentArgs']]]]:
|
|
167
|
+
"""
|
|
168
|
+
List of the arguments for the row access policy. A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy. If any argument name or type is changed, the resource is recreated.
|
|
169
|
+
"""
|
|
170
|
+
return pulumi.get(self, "arguments")
|
|
171
|
+
|
|
172
|
+
@arguments.setter
|
|
173
|
+
def arguments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyArgumentArgs']]]]):
|
|
174
|
+
pulumi.set(self, "arguments", value)
|
|
175
|
+
|
|
176
|
+
@property
|
|
177
|
+
@pulumi.getter
|
|
178
|
+
def body(self) -> Optional[pulumi.Input[str]]:
|
|
179
|
+
"""
|
|
180
|
+
Specifies the SQL expression. The expression can be any boolean-valued SQL expression. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
181
|
+
"""
|
|
182
|
+
return pulumi.get(self, "body")
|
|
183
|
+
|
|
184
|
+
@body.setter
|
|
185
|
+
def body(self, value: Optional[pulumi.Input[str]]):
|
|
186
|
+
pulumi.set(self, "body", value)
|
|
144
187
|
|
|
145
188
|
@property
|
|
146
189
|
@pulumi.getter
|
|
@@ -158,7 +201,7 @@ class _RowAccessPolicyState:
|
|
|
158
201
|
@pulumi.getter
|
|
159
202
|
def database(self) -> Optional[pulumi.Input[str]]:
|
|
160
203
|
"""
|
|
161
|
-
The database in which to create the row access policy.
|
|
204
|
+
The database in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
162
205
|
"""
|
|
163
206
|
return pulumi.get(self, "database")
|
|
164
207
|
|
|
@@ -166,11 +209,35 @@ class _RowAccessPolicyState:
|
|
|
166
209
|
def database(self, value: Optional[pulumi.Input[str]]):
|
|
167
210
|
pulumi.set(self, "database", value)
|
|
168
211
|
|
|
212
|
+
@property
|
|
213
|
+
@pulumi.getter(name="describeOutputs")
|
|
214
|
+
def describe_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyDescribeOutputArgs']]]]:
|
|
215
|
+
"""
|
|
216
|
+
Outputs the result of `DESCRIBE ROW ACCESS POLICY` for the given row access policy.
|
|
217
|
+
"""
|
|
218
|
+
return pulumi.get(self, "describe_outputs")
|
|
219
|
+
|
|
220
|
+
@describe_outputs.setter
|
|
221
|
+
def describe_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyDescribeOutputArgs']]]]):
|
|
222
|
+
pulumi.set(self, "describe_outputs", value)
|
|
223
|
+
|
|
224
|
+
@property
|
|
225
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
226
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
227
|
+
"""
|
|
228
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
229
|
+
"""
|
|
230
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
231
|
+
|
|
232
|
+
@fully_qualified_name.setter
|
|
233
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
234
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
235
|
+
|
|
169
236
|
@property
|
|
170
237
|
@pulumi.getter
|
|
171
238
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
172
239
|
"""
|
|
173
|
-
Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
|
|
240
|
+
Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
174
241
|
"""
|
|
175
242
|
return pulumi.get(self, "name")
|
|
176
243
|
|
|
@@ -178,23 +245,11 @@ class _RowAccessPolicyState:
|
|
|
178
245
|
def name(self, value: Optional[pulumi.Input[str]]):
|
|
179
246
|
pulumi.set(self, "name", value)
|
|
180
247
|
|
|
181
|
-
@property
|
|
182
|
-
@pulumi.getter(name="rowAccessExpression")
|
|
183
|
-
def row_access_expression(self) -> Optional[pulumi.Input[str]]:
|
|
184
|
-
"""
|
|
185
|
-
Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
|
|
186
|
-
"""
|
|
187
|
-
return pulumi.get(self, "row_access_expression")
|
|
188
|
-
|
|
189
|
-
@row_access_expression.setter
|
|
190
|
-
def row_access_expression(self, value: Optional[pulumi.Input[str]]):
|
|
191
|
-
pulumi.set(self, "row_access_expression", value)
|
|
192
|
-
|
|
193
248
|
@property
|
|
194
249
|
@pulumi.getter
|
|
195
250
|
def schema(self) -> Optional[pulumi.Input[str]]:
|
|
196
251
|
"""
|
|
197
|
-
The schema in which to create the row access policy.
|
|
252
|
+
The schema in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
198
253
|
"""
|
|
199
254
|
return pulumi.get(self, "schema")
|
|
200
255
|
|
|
@@ -203,16 +258,16 @@ class _RowAccessPolicyState:
|
|
|
203
258
|
pulumi.set(self, "schema", value)
|
|
204
259
|
|
|
205
260
|
@property
|
|
206
|
-
@pulumi.getter
|
|
207
|
-
def
|
|
261
|
+
@pulumi.getter(name="showOutputs")
|
|
262
|
+
def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyShowOutputArgs']]]]:
|
|
208
263
|
"""
|
|
209
|
-
|
|
264
|
+
Outputs the result of `SHOW ROW ACCESS POLICIES` for the given row access policy.
|
|
210
265
|
"""
|
|
211
|
-
return pulumi.get(self, "
|
|
266
|
+
return pulumi.get(self, "show_outputs")
|
|
212
267
|
|
|
213
|
-
@
|
|
214
|
-
def
|
|
215
|
-
pulumi.set(self, "
|
|
268
|
+
@show_outputs.setter
|
|
269
|
+
def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyShowOutputArgs']]]]):
|
|
270
|
+
pulumi.set(self, "show_outputs", value)
|
|
216
271
|
|
|
217
272
|
|
|
218
273
|
class RowAccessPolicy(pulumi.CustomResource):
|
|
@@ -220,46 +275,28 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
220
275
|
def __init__(__self__,
|
|
221
276
|
resource_name: str,
|
|
222
277
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
278
|
+
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyArgumentArgs', 'RowAccessPolicyArgumentArgsDict']]]]] = None,
|
|
279
|
+
body: Optional[pulumi.Input[str]] = None,
|
|
223
280
|
comment: Optional[pulumi.Input[str]] = None,
|
|
224
281
|
database: Optional[pulumi.Input[str]] = None,
|
|
225
282
|
name: Optional[pulumi.Input[str]] = None,
|
|
226
|
-
row_access_expression: Optional[pulumi.Input[str]] = None,
|
|
227
283
|
schema: Optional[pulumi.Input[str]] = None,
|
|
228
|
-
signature: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
229
284
|
__props__=None):
|
|
230
285
|
"""
|
|
231
|
-
## Example Usage
|
|
232
|
-
|
|
233
|
-
```python
|
|
234
|
-
import pulumi
|
|
235
|
-
import pulumi_snowflake as snowflake
|
|
236
|
-
|
|
237
|
-
example_row_access_policy = snowflake.RowAccessPolicy("exampleRowAccessPolicy",
|
|
238
|
-
database="EXAMPLE_DB",
|
|
239
|
-
row_access_expression="case when current_role() in ('ANALYST') then true else false end",
|
|
240
|
-
schema="EXAMPLE_SCHEMA",
|
|
241
|
-
signature={
|
|
242
|
-
"A": "VARCHAR",
|
|
243
|
-
"B": "VARCHAR",
|
|
244
|
-
})
|
|
245
|
-
```
|
|
246
|
-
|
|
247
286
|
## Import
|
|
248
287
|
|
|
249
|
-
format is database name | schema name | policy name
|
|
250
|
-
|
|
251
288
|
```sh
|
|
252
|
-
$ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example '
|
|
289
|
+
$ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example '"<database_name>"."<schema_name>"."<row_access_policy_name>"'
|
|
253
290
|
```
|
|
254
291
|
|
|
255
292
|
:param str resource_name: The name of the resource.
|
|
256
293
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
294
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyArgumentArgs', 'RowAccessPolicyArgumentArgsDict']]]] arguments: List of the arguments for the row access policy. A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy. If any argument name or type is changed, the resource is recreated.
|
|
295
|
+
:param pulumi.Input[str] body: Specifies the SQL expression. The expression can be any boolean-valued SQL expression. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
257
296
|
:param pulumi.Input[str] comment: Specifies a comment for the row access policy.
|
|
258
|
-
:param pulumi.Input[str] database: The database in which to create the row access policy.
|
|
259
|
-
:param pulumi.Input[str] name: Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
|
|
260
|
-
:param pulumi.Input[str]
|
|
261
|
-
:param pulumi.Input[str] schema: The schema in which to create the row access policy.
|
|
262
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] signature: Specifies signature (arguments) for the row access policy (uppercase and sorted to avoid recreation of resource). A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy.
|
|
297
|
+
:param pulumi.Input[str] database: The database in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
298
|
+
:param pulumi.Input[str] name: Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
299
|
+
:param pulumi.Input[str] schema: The schema in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
263
300
|
"""
|
|
264
301
|
...
|
|
265
302
|
@overload
|
|
@@ -268,28 +305,10 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
268
305
|
args: RowAccessPolicyArgs,
|
|
269
306
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
270
307
|
"""
|
|
271
|
-
## Example Usage
|
|
272
|
-
|
|
273
|
-
```python
|
|
274
|
-
import pulumi
|
|
275
|
-
import pulumi_snowflake as snowflake
|
|
276
|
-
|
|
277
|
-
example_row_access_policy = snowflake.RowAccessPolicy("exampleRowAccessPolicy",
|
|
278
|
-
database="EXAMPLE_DB",
|
|
279
|
-
row_access_expression="case when current_role() in ('ANALYST') then true else false end",
|
|
280
|
-
schema="EXAMPLE_SCHEMA",
|
|
281
|
-
signature={
|
|
282
|
-
"A": "VARCHAR",
|
|
283
|
-
"B": "VARCHAR",
|
|
284
|
-
})
|
|
285
|
-
```
|
|
286
|
-
|
|
287
308
|
## Import
|
|
288
309
|
|
|
289
|
-
format is database name | schema name | policy name
|
|
290
|
-
|
|
291
310
|
```sh
|
|
292
|
-
$ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example '
|
|
311
|
+
$ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example '"<database_name>"."<schema_name>"."<row_access_policy_name>"'
|
|
293
312
|
```
|
|
294
313
|
|
|
295
314
|
:param str resource_name: The name of the resource.
|
|
@@ -307,12 +326,12 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
307
326
|
def _internal_init(__self__,
|
|
308
327
|
resource_name: str,
|
|
309
328
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
329
|
+
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyArgumentArgs', 'RowAccessPolicyArgumentArgsDict']]]]] = None,
|
|
330
|
+
body: Optional[pulumi.Input[str]] = None,
|
|
310
331
|
comment: Optional[pulumi.Input[str]] = None,
|
|
311
332
|
database: Optional[pulumi.Input[str]] = None,
|
|
312
333
|
name: Optional[pulumi.Input[str]] = None,
|
|
313
|
-
row_access_expression: Optional[pulumi.Input[str]] = None,
|
|
314
334
|
schema: Optional[pulumi.Input[str]] = None,
|
|
315
|
-
signature: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
316
335
|
__props__=None):
|
|
317
336
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
318
337
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -322,20 +341,23 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
322
341
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
323
342
|
__props__ = RowAccessPolicyArgs.__new__(RowAccessPolicyArgs)
|
|
324
343
|
|
|
344
|
+
if arguments is None and not opts.urn:
|
|
345
|
+
raise TypeError("Missing required property 'arguments'")
|
|
346
|
+
__props__.__dict__["arguments"] = arguments
|
|
347
|
+
if body is None and not opts.urn:
|
|
348
|
+
raise TypeError("Missing required property 'body'")
|
|
349
|
+
__props__.__dict__["body"] = body
|
|
325
350
|
__props__.__dict__["comment"] = comment
|
|
326
351
|
if database is None and not opts.urn:
|
|
327
352
|
raise TypeError("Missing required property 'database'")
|
|
328
353
|
__props__.__dict__["database"] = database
|
|
329
354
|
__props__.__dict__["name"] = name
|
|
330
|
-
if row_access_expression is None and not opts.urn:
|
|
331
|
-
raise TypeError("Missing required property 'row_access_expression'")
|
|
332
|
-
__props__.__dict__["row_access_expression"] = row_access_expression
|
|
333
355
|
if schema is None and not opts.urn:
|
|
334
356
|
raise TypeError("Missing required property 'schema'")
|
|
335
357
|
__props__.__dict__["schema"] = schema
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
__props__.__dict__["
|
|
358
|
+
__props__.__dict__["describe_outputs"] = None
|
|
359
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
360
|
+
__props__.__dict__["show_outputs"] = None
|
|
339
361
|
super(RowAccessPolicy, __self__).__init__(
|
|
340
362
|
'snowflake:index/rowAccessPolicy:RowAccessPolicy',
|
|
341
363
|
resource_name,
|
|
@@ -346,12 +368,15 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
346
368
|
def get(resource_name: str,
|
|
347
369
|
id: pulumi.Input[str],
|
|
348
370
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
371
|
+
arguments: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyArgumentArgs', 'RowAccessPolicyArgumentArgsDict']]]]] = None,
|
|
372
|
+
body: Optional[pulumi.Input[str]] = None,
|
|
349
373
|
comment: Optional[pulumi.Input[str]] = None,
|
|
350
374
|
database: Optional[pulumi.Input[str]] = None,
|
|
375
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyDescribeOutputArgs', 'RowAccessPolicyDescribeOutputArgsDict']]]]] = None,
|
|
376
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
351
377
|
name: Optional[pulumi.Input[str]] = None,
|
|
352
|
-
row_access_expression: Optional[pulumi.Input[str]] = None,
|
|
353
378
|
schema: Optional[pulumi.Input[str]] = None,
|
|
354
|
-
|
|
379
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyShowOutputArgs', 'RowAccessPolicyShowOutputArgsDict']]]]] = None) -> 'RowAccessPolicy':
|
|
355
380
|
"""
|
|
356
381
|
Get an existing RowAccessPolicy resource's state with the given name, id, and optional extra
|
|
357
382
|
properties used to qualify the lookup.
|
|
@@ -359,25 +384,47 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
359
384
|
:param str resource_name: The unique name of the resulting resource.
|
|
360
385
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
361
386
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
387
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyArgumentArgs', 'RowAccessPolicyArgumentArgsDict']]]] arguments: List of the arguments for the row access policy. A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy. If any argument name or type is changed, the resource is recreated.
|
|
388
|
+
:param pulumi.Input[str] body: Specifies the SQL expression. The expression can be any boolean-valued SQL expression. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
362
389
|
:param pulumi.Input[str] comment: Specifies a comment for the row access policy.
|
|
363
|
-
:param pulumi.Input[str] database: The database in which to create the row access policy.
|
|
364
|
-
:param pulumi.Input[
|
|
365
|
-
:param pulumi.Input[str]
|
|
366
|
-
:param pulumi.Input[str]
|
|
367
|
-
:param pulumi.Input[
|
|
390
|
+
:param pulumi.Input[str] database: The database in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
391
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyDescribeOutputArgs', 'RowAccessPolicyDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE ROW ACCESS POLICY` for the given row access policy.
|
|
392
|
+
:param pulumi.Input[str] fully_qualified_name: Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
393
|
+
:param pulumi.Input[str] name: Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
394
|
+
:param pulumi.Input[str] schema: The schema in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
395
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyShowOutputArgs', 'RowAccessPolicyShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW ROW ACCESS POLICIES` for the given row access policy.
|
|
368
396
|
"""
|
|
369
397
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
370
398
|
|
|
371
399
|
__props__ = _RowAccessPolicyState.__new__(_RowAccessPolicyState)
|
|
372
400
|
|
|
401
|
+
__props__.__dict__["arguments"] = arguments
|
|
402
|
+
__props__.__dict__["body"] = body
|
|
373
403
|
__props__.__dict__["comment"] = comment
|
|
374
404
|
__props__.__dict__["database"] = database
|
|
405
|
+
__props__.__dict__["describe_outputs"] = describe_outputs
|
|
406
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
375
407
|
__props__.__dict__["name"] = name
|
|
376
|
-
__props__.__dict__["row_access_expression"] = row_access_expression
|
|
377
408
|
__props__.__dict__["schema"] = schema
|
|
378
|
-
__props__.__dict__["
|
|
409
|
+
__props__.__dict__["show_outputs"] = show_outputs
|
|
379
410
|
return RowAccessPolicy(resource_name, opts=opts, __props__=__props__)
|
|
380
411
|
|
|
412
|
+
@property
|
|
413
|
+
@pulumi.getter
|
|
414
|
+
def arguments(self) -> pulumi.Output[Sequence['outputs.RowAccessPolicyArgument']]:
|
|
415
|
+
"""
|
|
416
|
+
List of the arguments for the row access policy. A signature specifies a set of attributes that must be considered to determine whether the row is accessible. The attribute values come from the database object (e.g. table or view) to be protected by the row access policy. If any argument name or type is changed, the resource is recreated.
|
|
417
|
+
"""
|
|
418
|
+
return pulumi.get(self, "arguments")
|
|
419
|
+
|
|
420
|
+
@property
|
|
421
|
+
@pulumi.getter
|
|
422
|
+
def body(self) -> pulumi.Output[str]:
|
|
423
|
+
"""
|
|
424
|
+
Specifies the SQL expression. The expression can be any boolean-valued SQL expression. To mitigate permadiff on this field, the provider replaces blank characters with a space. This can lead to false positives in cases where a change in case or run of whitespace is semantically significant.
|
|
425
|
+
"""
|
|
426
|
+
return pulumi.get(self, "body")
|
|
427
|
+
|
|
381
428
|
@property
|
|
382
429
|
@pulumi.getter
|
|
383
430
|
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -390,39 +437,47 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
390
437
|
@pulumi.getter
|
|
391
438
|
def database(self) -> pulumi.Output[str]:
|
|
392
439
|
"""
|
|
393
|
-
The database in which to create the row access policy.
|
|
440
|
+
The database in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
394
441
|
"""
|
|
395
442
|
return pulumi.get(self, "database")
|
|
396
443
|
|
|
397
444
|
@property
|
|
398
|
-
@pulumi.getter
|
|
399
|
-
def
|
|
445
|
+
@pulumi.getter(name="describeOutputs")
|
|
446
|
+
def describe_outputs(self) -> pulumi.Output[Sequence['outputs.RowAccessPolicyDescribeOutput']]:
|
|
400
447
|
"""
|
|
401
|
-
|
|
448
|
+
Outputs the result of `DESCRIBE ROW ACCESS POLICY` for the given row access policy.
|
|
402
449
|
"""
|
|
403
|
-
return pulumi.get(self, "
|
|
450
|
+
return pulumi.get(self, "describe_outputs")
|
|
451
|
+
|
|
452
|
+
@property
|
|
453
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
454
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
455
|
+
"""
|
|
456
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
457
|
+
"""
|
|
458
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
404
459
|
|
|
405
460
|
@property
|
|
406
|
-
@pulumi.getter
|
|
407
|
-
def
|
|
461
|
+
@pulumi.getter
|
|
462
|
+
def name(self) -> pulumi.Output[str]:
|
|
408
463
|
"""
|
|
409
|
-
Specifies the
|
|
464
|
+
Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
410
465
|
"""
|
|
411
|
-
return pulumi.get(self, "
|
|
466
|
+
return pulumi.get(self, "name")
|
|
412
467
|
|
|
413
468
|
@property
|
|
414
469
|
@pulumi.getter
|
|
415
470
|
def schema(self) -> pulumi.Output[str]:
|
|
416
471
|
"""
|
|
417
|
-
The schema in which to create the row access policy.
|
|
472
|
+
The schema in which to create the row access policy. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `"`.
|
|
418
473
|
"""
|
|
419
474
|
return pulumi.get(self, "schema")
|
|
420
475
|
|
|
421
476
|
@property
|
|
422
|
-
@pulumi.getter
|
|
423
|
-
def
|
|
477
|
+
@pulumi.getter(name="showOutputs")
|
|
478
|
+
def show_outputs(self) -> pulumi.Output[Sequence['outputs.RowAccessPolicyShowOutput']]:
|
|
424
479
|
"""
|
|
425
|
-
|
|
480
|
+
Outputs the result of `SHOW ROW ACCESS POLICIES` for the given row access policy.
|
|
426
481
|
"""
|
|
427
|
-
return pulumi.get(self, "
|
|
482
|
+
return pulumi.get(self, "show_outputs")
|
|
428
483
|
|