pulumi-snowflake 0.50.3a1710160126__py3-none-any.whl → 1.2.0a1736835738__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-snowflake might be problematic. Click here for more details.
- pulumi_snowflake/__init__.py +224 -172
- pulumi_snowflake/_inputs.py +52857 -1665
- pulumi_snowflake/_utilities.py +41 -5
- pulumi_snowflake/account.py +188 -218
- pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
- pulumi_snowflake/account_parameter.py +21 -48
- pulumi_snowflake/account_password_policy_attachment.py +7 -32
- pulumi_snowflake/account_role.py +250 -0
- pulumi_snowflake/alert.py +38 -47
- 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 +33 -52
- 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 -213
- pulumi_snowflake/database_role.py +81 -44
- pulumi_snowflake/dynamic_table.py +42 -49
- pulumi_snowflake/email_notification_integration.py +33 -28
- pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
- pulumi_snowflake/external_function.py +54 -75
- pulumi_snowflake/external_oauth_integration.py +593 -542
- pulumi_snowflake/external_table.py +67 -90
- pulumi_snowflake/external_volume.py +382 -0
- pulumi_snowflake/failover_group.py +57 -98
- pulumi_snowflake/file_format.py +33 -28
- 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 -9
- pulumi_snowflake/get_connections.py +109 -0
- pulumi_snowflake/get_cortex_search_services.py +216 -0
- pulumi_snowflake/get_current_account.py +24 -13
- pulumi_snowflake/get_current_role.py +14 -7
- pulumi_snowflake/get_database.py +25 -9
- pulumi_snowflake/get_database_role.py +162 -0
- pulumi_snowflake/get_database_roles.py +79 -47
- pulumi_snowflake/get_databases.py +91 -73
- pulumi_snowflake/get_dynamic_tables.py +36 -19
- pulumi_snowflake/get_external_functions.py +28 -9
- pulumi_snowflake/get_external_tables.py +28 -9
- pulumi_snowflake/get_failover_groups.py +18 -7
- pulumi_snowflake/get_file_formats.py +28 -9
- pulumi_snowflake/get_functions.py +28 -9
- pulumi_snowflake/get_grants.py +207 -84
- pulumi_snowflake/get_masking_policies.py +91 -51
- pulumi_snowflake/get_materialized_views.py +28 -9
- pulumi_snowflake/get_network_policies.py +129 -0
- pulumi_snowflake/get_parameters.py +38 -15
- pulumi_snowflake/get_pipes.py +28 -9
- pulumi_snowflake/get_procedures.py +28 -9
- pulumi_snowflake/get_resource_monitors.py +37 -24
- pulumi_snowflake/get_row_access_policies.py +91 -51
- pulumi_snowflake/get_schemas.py +145 -41
- pulumi_snowflake/get_secrets.py +200 -0
- pulumi_snowflake/get_security_integrations.py +129 -0
- pulumi_snowflake/get_sequences.py +28 -9
- pulumi_snowflake/get_shares.py +18 -9
- pulumi_snowflake/get_stages.py +28 -9
- pulumi_snowflake/get_storage_integrations.py +16 -9
- pulumi_snowflake/get_streamlits.py +170 -0
- pulumi_snowflake/get_streams.py +114 -54
- pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
- pulumi_snowflake/get_system_get_private_link_config.py +120 -5
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
- pulumi_snowflake/get_tables.py +28 -9
- pulumi_snowflake/get_tags.py +130 -0
- pulumi_snowflake/get_tasks.py +134 -54
- pulumi_snowflake/get_users.py +116 -44
- pulumi_snowflake/get_views.py +114 -54
- pulumi_snowflake/get_warehouses.py +79 -26
- pulumi_snowflake/grant_account_role.py +28 -75
- pulumi_snowflake/grant_application_role.py +257 -0
- pulumi_snowflake/grant_database_role.py +35 -94
- 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 -383
- pulumi_snowflake/grant_privileges_to_share.py +96 -44
- pulumi_snowflake/legacy_service_user.py +3670 -0
- pulumi_snowflake/managed_account.py +40 -11
- pulumi_snowflake/masking_policy.py +213 -310
- pulumi_snowflake/materialized_view.py +62 -71
- pulumi_snowflake/network_policy.py +217 -61
- pulumi_snowflake/network_policy_attachment.py +5 -34
- pulumi_snowflake/network_rule.py +473 -0
- pulumi_snowflake/notification_integration.py +49 -84
- pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
- pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
- pulumi_snowflake/object_parameter.py +10 -101
- pulumi_snowflake/outputs.py +49200 -2928
- pulumi_snowflake/password_policy.py +41 -28
- pulumi_snowflake/pipe.py +33 -4
- 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 -327
- pulumi_snowflake/row_access_policy.py +200 -149
- pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
- pulumi_snowflake/schema.py +949 -178
- pulumi_snowflake/scim_integration.py +286 -109
- 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 -34
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/share.py +33 -28
- pulumi_snowflake/shared_database.py +939 -0
- pulumi_snowflake/stage.py +95 -84
- pulumi_snowflake/storage_integration.py +46 -4
- 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 -97
- pulumi_snowflake/table_column_masking_policy_application.py +7 -14
- pulumi_snowflake/table_constraint.py +29 -172
- pulumi_snowflake/tag.py +142 -74
- pulumi_snowflake/tag_association.py +40 -215
- pulumi_snowflake/task.py +3048 -418
- pulumi_snowflake/user.py +3351 -384
- pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
- pulumi_snowflake/user_password_policy_attachment.py +5 -4
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +466 -215
- pulumi_snowflake/warehouse.py +184 -168
- {pulumi_snowflake-0.50.3a1710160126.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.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -343
- pulumi_snowflake/database_grant.py +0 -495
- pulumi_snowflake/external_table_grant.py +0 -690
- pulumi_snowflake/failover_group_grant.py +0 -388
- pulumi_snowflake/file_format_grant.py +0 -635
- pulumi_snowflake/function.py +0 -872
- pulumi_snowflake/function_grant.py +0 -745
- pulumi_snowflake/get_role.py +0 -121
- pulumi_snowflake/get_roles.py +0 -120
- pulumi_snowflake/grant_privileges_to_role.py +0 -825
- pulumi_snowflake/integration_grant.py +0 -440
- pulumi_snowflake/masking_policy_grant.py +0 -542
- pulumi_snowflake/materialized_view_grant.py +0 -689
- pulumi_snowflake/pipe_grant.py +0 -587
- pulumi_snowflake/procedure.py +0 -887
- pulumi_snowflake/procedure_grant.py +0 -745
- pulumi_snowflake/resource_monitor_grant.py +0 -387
- pulumi_snowflake/role.py +0 -273
- pulumi_snowflake/role_grants.py +0 -352
- pulumi_snowflake/role_ownership_grant.py +0 -338
- pulumi_snowflake/row_access_policy_grant.py +0 -540
- pulumi_snowflake/schema_grant.py +0 -647
- pulumi_snowflake/sequence_grant.py +0 -635
- pulumi_snowflake/session_parameter.py +0 -332
- pulumi_snowflake/stage_grant.py +0 -635
- pulumi_snowflake/stream.py +0 -614
- pulumi_snowflake/stream_grant.py +0 -635
- pulumi_snowflake/table_grant.py +0 -677
- pulumi_snowflake/tag_grant.py +0 -532
- pulumi_snowflake/tag_masking_policy_association.py +0 -210
- pulumi_snowflake/task_grant.py +0 -635
- pulumi_snowflake/user_grant.py +0 -394
- pulumi_snowflake/user_ownership_grant.py +0 -286
- pulumi_snowflake/view_grant.py +0 -705
- pulumi_snowflake/warehouse_grant.py +0 -440
- pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
- {pulumi_snowflake-0.50.3a1710160126.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,48 +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
|
-
<!--Start PulumiCodeChooser -->
|
|
234
|
-
```python
|
|
235
|
-
import pulumi
|
|
236
|
-
import pulumi_snowflake as snowflake
|
|
237
|
-
|
|
238
|
-
example_row_access_policy = snowflake.RowAccessPolicy("exampleRowAccessPolicy",
|
|
239
|
-
database="EXAMPLE_DB",
|
|
240
|
-
row_access_expression="case when current_role() in ('ANALYST') then true else false end",
|
|
241
|
-
schema="EXAMPLE_SCHEMA",
|
|
242
|
-
signature={
|
|
243
|
-
"A": "VARCHAR",
|
|
244
|
-
"B": "VARCHAR",
|
|
245
|
-
})
|
|
246
|
-
```
|
|
247
|
-
<!--End PulumiCodeChooser -->
|
|
248
|
-
|
|
249
286
|
## Import
|
|
250
287
|
|
|
251
|
-
format is database name | schema name | policy name
|
|
252
|
-
|
|
253
288
|
```sh
|
|
254
|
-
$ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example '
|
|
289
|
+
$ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example '"<database_name>"."<schema_name>"."<row_access_policy_name>"'
|
|
255
290
|
```
|
|
256
291
|
|
|
257
292
|
:param str resource_name: The name of the resource.
|
|
258
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.
|
|
259
296
|
:param pulumi.Input[str] comment: Specifies a comment for the row access policy.
|
|
260
|
-
:param pulumi.Input[str] database: The database in which to create the row access policy.
|
|
261
|
-
: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.
|
|
262
|
-
:param pulumi.Input[str]
|
|
263
|
-
:param pulumi.Input[str] schema: The schema in which to create the row access policy.
|
|
264
|
-
: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: `|`, `.`, `"`.
|
|
265
300
|
"""
|
|
266
301
|
...
|
|
267
302
|
@overload
|
|
@@ -270,30 +305,10 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
270
305
|
args: RowAccessPolicyArgs,
|
|
271
306
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
272
307
|
"""
|
|
273
|
-
## Example Usage
|
|
274
|
-
|
|
275
|
-
<!--Start PulumiCodeChooser -->
|
|
276
|
-
```python
|
|
277
|
-
import pulumi
|
|
278
|
-
import pulumi_snowflake as snowflake
|
|
279
|
-
|
|
280
|
-
example_row_access_policy = snowflake.RowAccessPolicy("exampleRowAccessPolicy",
|
|
281
|
-
database="EXAMPLE_DB",
|
|
282
|
-
row_access_expression="case when current_role() in ('ANALYST') then true else false end",
|
|
283
|
-
schema="EXAMPLE_SCHEMA",
|
|
284
|
-
signature={
|
|
285
|
-
"A": "VARCHAR",
|
|
286
|
-
"B": "VARCHAR",
|
|
287
|
-
})
|
|
288
|
-
```
|
|
289
|
-
<!--End PulumiCodeChooser -->
|
|
290
|
-
|
|
291
308
|
## Import
|
|
292
309
|
|
|
293
|
-
format is database name | schema name | policy name
|
|
294
|
-
|
|
295
310
|
```sh
|
|
296
|
-
$ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example '
|
|
311
|
+
$ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example '"<database_name>"."<schema_name>"."<row_access_policy_name>"'
|
|
297
312
|
```
|
|
298
313
|
|
|
299
314
|
:param str resource_name: The name of the resource.
|
|
@@ -311,12 +326,12 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
311
326
|
def _internal_init(__self__,
|
|
312
327
|
resource_name: str,
|
|
313
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,
|
|
314
331
|
comment: Optional[pulumi.Input[str]] = None,
|
|
315
332
|
database: Optional[pulumi.Input[str]] = None,
|
|
316
333
|
name: Optional[pulumi.Input[str]] = None,
|
|
317
|
-
row_access_expression: Optional[pulumi.Input[str]] = None,
|
|
318
334
|
schema: Optional[pulumi.Input[str]] = None,
|
|
319
|
-
signature: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
320
335
|
__props__=None):
|
|
321
336
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
322
337
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -326,20 +341,23 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
326
341
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
327
342
|
__props__ = RowAccessPolicyArgs.__new__(RowAccessPolicyArgs)
|
|
328
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
|
|
329
350
|
__props__.__dict__["comment"] = comment
|
|
330
351
|
if database is None and not opts.urn:
|
|
331
352
|
raise TypeError("Missing required property 'database'")
|
|
332
353
|
__props__.__dict__["database"] = database
|
|
333
354
|
__props__.__dict__["name"] = name
|
|
334
|
-
if row_access_expression is None and not opts.urn:
|
|
335
|
-
raise TypeError("Missing required property 'row_access_expression'")
|
|
336
|
-
__props__.__dict__["row_access_expression"] = row_access_expression
|
|
337
355
|
if schema is None and not opts.urn:
|
|
338
356
|
raise TypeError("Missing required property 'schema'")
|
|
339
357
|
__props__.__dict__["schema"] = schema
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
__props__.__dict__["
|
|
358
|
+
__props__.__dict__["describe_outputs"] = None
|
|
359
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
360
|
+
__props__.__dict__["show_outputs"] = None
|
|
343
361
|
super(RowAccessPolicy, __self__).__init__(
|
|
344
362
|
'snowflake:index/rowAccessPolicy:RowAccessPolicy',
|
|
345
363
|
resource_name,
|
|
@@ -350,12 +368,15 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
350
368
|
def get(resource_name: str,
|
|
351
369
|
id: pulumi.Input[str],
|
|
352
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,
|
|
353
373
|
comment: Optional[pulumi.Input[str]] = None,
|
|
354
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,
|
|
355
377
|
name: Optional[pulumi.Input[str]] = None,
|
|
356
|
-
row_access_expression: Optional[pulumi.Input[str]] = None,
|
|
357
378
|
schema: Optional[pulumi.Input[str]] = None,
|
|
358
|
-
|
|
379
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyShowOutputArgs', 'RowAccessPolicyShowOutputArgsDict']]]]] = None) -> 'RowAccessPolicy':
|
|
359
380
|
"""
|
|
360
381
|
Get an existing RowAccessPolicy resource's state with the given name, id, and optional extra
|
|
361
382
|
properties used to qualify the lookup.
|
|
@@ -363,25 +384,47 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
363
384
|
:param str resource_name: The unique name of the resulting resource.
|
|
364
385
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
365
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.
|
|
366
389
|
:param pulumi.Input[str] comment: Specifies a comment for the row access policy.
|
|
367
|
-
:param pulumi.Input[str] database: The database in which to create the row access policy.
|
|
368
|
-
:param pulumi.Input[
|
|
369
|
-
:param pulumi.Input[str]
|
|
370
|
-
:param pulumi.Input[str]
|
|
371
|
-
: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.
|
|
372
396
|
"""
|
|
373
397
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
374
398
|
|
|
375
399
|
__props__ = _RowAccessPolicyState.__new__(_RowAccessPolicyState)
|
|
376
400
|
|
|
401
|
+
__props__.__dict__["arguments"] = arguments
|
|
402
|
+
__props__.__dict__["body"] = body
|
|
377
403
|
__props__.__dict__["comment"] = comment
|
|
378
404
|
__props__.__dict__["database"] = database
|
|
405
|
+
__props__.__dict__["describe_outputs"] = describe_outputs
|
|
406
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
379
407
|
__props__.__dict__["name"] = name
|
|
380
|
-
__props__.__dict__["row_access_expression"] = row_access_expression
|
|
381
408
|
__props__.__dict__["schema"] = schema
|
|
382
|
-
__props__.__dict__["
|
|
409
|
+
__props__.__dict__["show_outputs"] = show_outputs
|
|
383
410
|
return RowAccessPolicy(resource_name, opts=opts, __props__=__props__)
|
|
384
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
|
+
|
|
385
428
|
@property
|
|
386
429
|
@pulumi.getter
|
|
387
430
|
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -394,39 +437,47 @@ class RowAccessPolicy(pulumi.CustomResource):
|
|
|
394
437
|
@pulumi.getter
|
|
395
438
|
def database(self) -> pulumi.Output[str]:
|
|
396
439
|
"""
|
|
397
|
-
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: `|`, `.`, `"`.
|
|
398
441
|
"""
|
|
399
442
|
return pulumi.get(self, "database")
|
|
400
443
|
|
|
401
444
|
@property
|
|
402
|
-
@pulumi.getter
|
|
403
|
-
def
|
|
445
|
+
@pulumi.getter(name="describeOutputs")
|
|
446
|
+
def describe_outputs(self) -> pulumi.Output[Sequence['outputs.RowAccessPolicyDescribeOutput']]:
|
|
404
447
|
"""
|
|
405
|
-
|
|
448
|
+
Outputs the result of `DESCRIBE ROW ACCESS POLICY` for the given row access policy.
|
|
406
449
|
"""
|
|
407
|
-
return pulumi.get(self, "
|
|
450
|
+
return pulumi.get(self, "describe_outputs")
|
|
408
451
|
|
|
409
452
|
@property
|
|
410
|
-
@pulumi.getter(name="
|
|
411
|
-
def
|
|
453
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
454
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
412
455
|
"""
|
|
413
|
-
|
|
456
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
414
457
|
"""
|
|
415
|
-
return pulumi.get(self, "
|
|
458
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
459
|
+
|
|
460
|
+
@property
|
|
461
|
+
@pulumi.getter
|
|
462
|
+
def name(self) -> pulumi.Output[str]:
|
|
463
|
+
"""
|
|
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: `|`, `.`, `"`.
|
|
465
|
+
"""
|
|
466
|
+
return pulumi.get(self, "name")
|
|
416
467
|
|
|
417
468
|
@property
|
|
418
469
|
@pulumi.getter
|
|
419
470
|
def schema(self) -> pulumi.Output[str]:
|
|
420
471
|
"""
|
|
421
|
-
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: `|`, `.`, `"`.
|
|
422
473
|
"""
|
|
423
474
|
return pulumi.get(self, "schema")
|
|
424
475
|
|
|
425
476
|
@property
|
|
426
|
-
@pulumi.getter
|
|
427
|
-
def
|
|
477
|
+
@pulumi.getter(name="showOutputs")
|
|
478
|
+
def show_outputs(self) -> pulumi.Output[Sequence['outputs.RowAccessPolicyShowOutput']]:
|
|
428
479
|
"""
|
|
429
|
-
|
|
480
|
+
Outputs the result of `SHOW ROW ACCESS POLICIES` for the given row access policy.
|
|
430
481
|
"""
|
|
431
|
-
return pulumi.get(self, "
|
|
482
|
+
return pulumi.get(self, "show_outputs")
|
|
432
483
|
|