pulumi-snowflake 0.59.0a1726827563__py3-none-any.whl → 0.60.0__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (132) hide show
  1. pulumi_snowflake/__init__.py +36 -0
  2. pulumi_snowflake/_inputs.py +20444 -3310
  3. pulumi_snowflake/_utilities.py +1 -1
  4. pulumi_snowflake/account.py +5 -0
  5. pulumi_snowflake/account_parameter.py +5 -0
  6. pulumi_snowflake/account_password_policy_attachment.py +5 -0
  7. pulumi_snowflake/account_role.py +5 -0
  8. pulumi_snowflake/alert.py +5 -0
  9. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +5 -0
  10. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +5 -0
  11. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +5 -0
  12. pulumi_snowflake/api_integration.py +5 -0
  13. pulumi_snowflake/config/__init__.pyi +5 -0
  14. pulumi_snowflake/config/outputs.py +5 -0
  15. pulumi_snowflake/config/vars.py +5 -0
  16. pulumi_snowflake/cortex_search_service.py +5 -0
  17. pulumi_snowflake/database.py +5 -0
  18. pulumi_snowflake/database_old.py +5 -0
  19. pulumi_snowflake/database_role.py +5 -0
  20. pulumi_snowflake/dynamic_table.py +5 -0
  21. pulumi_snowflake/email_notification_integration.py +5 -0
  22. pulumi_snowflake/external_function.py +5 -0
  23. pulumi_snowflake/external_oauth_integration.py +5 -0
  24. pulumi_snowflake/external_table.py +5 -0
  25. pulumi_snowflake/failover_group.py +5 -0
  26. pulumi_snowflake/file_format.py +5 -0
  27. pulumi_snowflake/function.py +5 -0
  28. pulumi_snowflake/get_accounts.py +13 -4
  29. pulumi_snowflake/get_alerts.py +17 -4
  30. pulumi_snowflake/get_cortex_search_services.py +19 -4
  31. pulumi_snowflake/get_current_account.py +13 -4
  32. pulumi_snowflake/get_current_role.py +11 -4
  33. pulumi_snowflake/get_database.py +20 -4
  34. pulumi_snowflake/get_database_role.py +16 -4
  35. pulumi_snowflake/get_database_roles.py +21 -4
  36. pulumi_snowflake/get_databases.py +21 -4
  37. pulumi_snowflake/get_dynamic_tables.py +19 -4
  38. pulumi_snowflake/get_external_functions.py +15 -4
  39. pulumi_snowflake/get_external_tables.py +15 -4
  40. pulumi_snowflake/get_failover_groups.py +13 -4
  41. pulumi_snowflake/get_file_formats.py +15 -4
  42. pulumi_snowflake/get_functions.py +15 -4
  43. pulumi_snowflake/get_grants.py +21 -4
  44. pulumi_snowflake/get_masking_policies.py +92 -52
  45. pulumi_snowflake/get_materialized_views.py +15 -4
  46. pulumi_snowflake/get_network_policies.py +15 -4
  47. pulumi_snowflake/get_parameters.py +21 -4
  48. pulumi_snowflake/get_pipes.py +15 -4
  49. pulumi_snowflake/get_procedures.py +15 -4
  50. pulumi_snowflake/get_resource_monitors.py +41 -20
  51. pulumi_snowflake/get_role.py +13 -4
  52. pulumi_snowflake/get_roles.py +15 -4
  53. pulumi_snowflake/get_row_access_policies.py +92 -52
  54. pulumi_snowflake/get_schemas.py +23 -4
  55. pulumi_snowflake/get_security_integrations.py +15 -4
  56. pulumi_snowflake/get_sequences.py +15 -4
  57. pulumi_snowflake/get_shares.py +13 -4
  58. pulumi_snowflake/get_stages.py +15 -4
  59. pulumi_snowflake/get_storage_integrations.py +11 -4
  60. pulumi_snowflake/get_streamlits.py +19 -4
  61. pulumi_snowflake/get_streams.py +15 -4
  62. pulumi_snowflake/get_system_generate_scim_access_token.py +13 -4
  63. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +13 -4
  64. pulumi_snowflake/get_system_get_private_link_config.py +19 -4
  65. pulumi_snowflake/get_system_get_snowflake_platform_info.py +12 -4
  66. pulumi_snowflake/get_tables.py +15 -4
  67. pulumi_snowflake/get_tasks.py +15 -4
  68. pulumi_snowflake/get_users.py +21 -4
  69. pulumi_snowflake/get_views.py +25 -4
  70. pulumi_snowflake/get_warehouses.py +17 -4
  71. pulumi_snowflake/grant_account_role.py +5 -0
  72. pulumi_snowflake/grant_application_role.py +5 -0
  73. pulumi_snowflake/grant_database_role.py +5 -0
  74. pulumi_snowflake/grant_ownership.py +5 -0
  75. pulumi_snowflake/grant_privileges_to_account_role.py +5 -0
  76. pulumi_snowflake/grant_privileges_to_database_role.py +5 -0
  77. pulumi_snowflake/grant_privileges_to_share.py +5 -0
  78. pulumi_snowflake/legacy_service_user.py +3666 -0
  79. pulumi_snowflake/managed_account.py +5 -0
  80. pulumi_snowflake/masking_policy.py +197 -234
  81. pulumi_snowflake/materialized_view.py +5 -0
  82. pulumi_snowflake/network_policy.py +5 -0
  83. pulumi_snowflake/network_policy_attachment.py +5 -0
  84. pulumi_snowflake/network_rule.py +5 -0
  85. pulumi_snowflake/notification_integration.py +5 -0
  86. pulumi_snowflake/oauth_integration.py +5 -0
  87. pulumi_snowflake/oauth_integration_for_custom_clients.py +5 -0
  88. pulumi_snowflake/oauth_integration_for_partner_applications.py +5 -0
  89. pulumi_snowflake/object_parameter.py +5 -0
  90. pulumi_snowflake/outputs.py +11392 -2385
  91. pulumi_snowflake/password_policy.py +5 -0
  92. pulumi_snowflake/pipe.py +5 -0
  93. pulumi_snowflake/procedure.py +5 -0
  94. pulumi_snowflake/provider.py +5 -0
  95. pulumi_snowflake/pulumi-plugin.json +1 -1
  96. pulumi_snowflake/resource_monitor.py +88 -259
  97. pulumi_snowflake/role.py +5 -0
  98. pulumi_snowflake/row_access_policy.py +173 -114
  99. pulumi_snowflake/saml2_integration.py +5 -0
  100. pulumi_snowflake/saml_integration.py +5 -0
  101. pulumi_snowflake/schema.py +5 -0
  102. pulumi_snowflake/scim_integration.py +5 -0
  103. pulumi_snowflake/secondary_database.py +5 -0
  104. pulumi_snowflake/sequence.py +5 -0
  105. pulumi_snowflake/service_user.py +3585 -0
  106. pulumi_snowflake/session_parameter.py +5 -0
  107. pulumi_snowflake/share.py +5 -0
  108. pulumi_snowflake/shared_database.py +5 -0
  109. pulumi_snowflake/stage.py +12 -7
  110. pulumi_snowflake/storage_integration.py +5 -0
  111. pulumi_snowflake/stream.py +5 -0
  112. pulumi_snowflake/stream_on_external_table.py +597 -0
  113. pulumi_snowflake/stream_on_table.py +631 -0
  114. pulumi_snowflake/streamlit.py +5 -0
  115. pulumi_snowflake/table.py +5 -0
  116. pulumi_snowflake/table_column_masking_policy_application.py +5 -0
  117. pulumi_snowflake/table_constraint.py +5 -0
  118. pulumi_snowflake/tag.py +5 -0
  119. pulumi_snowflake/tag_association.py +5 -0
  120. pulumi_snowflake/tag_masking_policy_association.py +5 -0
  121. pulumi_snowflake/task.py +5 -0
  122. pulumi_snowflake/unsafe_execute.py +5 -0
  123. pulumi_snowflake/user.py +7 -2
  124. pulumi_snowflake/user_password_policy_attachment.py +5 -0
  125. pulumi_snowflake/user_public_keys.py +5 -0
  126. pulumi_snowflake/view.py +12 -7
  127. pulumi_snowflake/warehouse.py +9 -4
  128. {pulumi_snowflake-0.59.0a1726827563.dist-info → pulumi_snowflake-0.60.0.dist-info}/METADATA +3 -2
  129. pulumi_snowflake-0.60.0.dist-info/RECORD +133 -0
  130. pulumi_snowflake-0.59.0a1726827563.dist-info/RECORD +0 -129
  131. {pulumi_snowflake-0.59.0a1726827563.dist-info → pulumi_snowflake-0.60.0.dist-info}/WHEEL +0 -0
  132. {pulumi_snowflake-0.59.0a1726827563.dist-info → pulumi_snowflake-0.60.0.dist-info}/top_level.txt +0 -0
pulumi_snowflake/role.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 *
@@ -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[str] database: The database in which to create the row access policy.
26
- :param pulumi.Input[str] row_access_expression: Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
27
- :param pulumi.Input[str] schema: The schema in which to create the row access policy.
28
- :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.
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 database(self) -> pulumi.Input[str]:
50
+ def arguments(self) -> pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyArgumentArgs']]]:
44
51
  """
45
- The database in which to create the row access policy.
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, "database")
54
+ return pulumi.get(self, "arguments")
48
55
 
49
- @database.setter
50
- def database(self, value: pulumi.Input[str]):
51
- pulumi.set(self, "database", value)
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(name="rowAccessExpression")
55
- def row_access_expression(self) -> pulumi.Input[str]:
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, "row_access_expression")
66
+ return pulumi.get(self, "body")
60
67
 
61
- @row_access_expression.setter
62
- def row_access_expression(self, value: pulumi.Input[str]):
63
- pulumi.set(self, "row_access_expression", value)
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 schema(self) -> pulumi.Input[str]:
74
+ def database(self) -> pulumi.Input[str]:
68
75
  """
69
- The schema in which to create the row access policy.
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, "schema")
78
+ return pulumi.get(self, "database")
72
79
 
73
- @schema.setter
74
- def schema(self, value: pulumi.Input[str]):
75
- pulumi.set(self, "schema", value)
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 signature(self) -> pulumi.Input[Mapping[str, pulumi.Input[str]]]:
86
+ def schema(self) -> pulumi.Input[str]:
80
87
  """
81
- 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.
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, "signature")
90
+ return pulumi.get(self, "schema")
84
91
 
85
- @signature.setter
86
- def signature(self, value: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
87
- pulumi.set(self, "signature", value)
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,37 +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,
119
129
  fully_qualified_name: Optional[pulumi.Input[str]] = None,
120
130
  name: Optional[pulumi.Input[str]] = None,
121
- row_access_expression: Optional[pulumi.Input[str]] = None,
122
131
  schema: Optional[pulumi.Input[str]] = None,
123
- signature: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
132
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyShowOutputArgs']]]] = None):
124
133
  """
125
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.
126
137
  :param pulumi.Input[str] comment: Specifies a comment for the row access policy.
127
- :param pulumi.Input[str] database: The database in which to create the row access policy.
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.
128
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).
129
- :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.
130
- :param pulumi.Input[str] row_access_expression: Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
131
- :param pulumi.Input[str] schema: The schema in which to create the row access policy.
132
- :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.
133
- """
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)
134
149
  if comment is not None:
135
150
  pulumi.set(__self__, "comment", comment)
136
151
  if database is not None:
137
152
  pulumi.set(__self__, "database", database)
153
+ if describe_outputs is not None:
154
+ pulumi.set(__self__, "describe_outputs", describe_outputs)
138
155
  if fully_qualified_name is not None:
139
156
  pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
140
157
  if name is not None:
141
158
  pulumi.set(__self__, "name", name)
142
- if row_access_expression is not None:
143
- pulumi.set(__self__, "row_access_expression", row_access_expression)
144
159
  if schema is not None:
145
160
  pulumi.set(__self__, "schema", schema)
146
- if signature is not None:
147
- pulumi.set(__self__, "signature", signature)
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)
148
187
 
149
188
  @property
150
189
  @pulumi.getter
@@ -162,7 +201,7 @@ class _RowAccessPolicyState:
162
201
  @pulumi.getter
163
202
  def database(self) -> Optional[pulumi.Input[str]]:
164
203
  """
165
- 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: `|`, `.`, `(`, `)`, `"`
166
205
  """
167
206
  return pulumi.get(self, "database")
168
207
 
@@ -170,6 +209,18 @@ class _RowAccessPolicyState:
170
209
  def database(self, value: Optional[pulumi.Input[str]]):
171
210
  pulumi.set(self, "database", value)
172
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
+
173
224
  @property
174
225
  @pulumi.getter(name="fullyQualifiedName")
175
226
  def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
@@ -186,7 +237,7 @@ class _RowAccessPolicyState:
186
237
  @pulumi.getter
187
238
  def name(self) -> Optional[pulumi.Input[str]]:
188
239
  """
189
- 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: `|`, `.`, `(`, `)`, `"`
190
241
  """
191
242
  return pulumi.get(self, "name")
192
243
 
@@ -194,23 +245,11 @@ class _RowAccessPolicyState:
194
245
  def name(self, value: Optional[pulumi.Input[str]]):
195
246
  pulumi.set(self, "name", value)
196
247
 
197
- @property
198
- @pulumi.getter(name="rowAccessExpression")
199
- def row_access_expression(self) -> Optional[pulumi.Input[str]]:
200
- """
201
- Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
202
- """
203
- return pulumi.get(self, "row_access_expression")
204
-
205
- @row_access_expression.setter
206
- def row_access_expression(self, value: Optional[pulumi.Input[str]]):
207
- pulumi.set(self, "row_access_expression", value)
208
-
209
248
  @property
210
249
  @pulumi.getter
211
250
  def schema(self) -> Optional[pulumi.Input[str]]:
212
251
  """
213
- 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: `|`, `.`, `(`, `)`, `"`
214
253
  """
215
254
  return pulumi.get(self, "schema")
216
255
 
@@ -219,16 +258,16 @@ class _RowAccessPolicyState:
219
258
  pulumi.set(self, "schema", value)
220
259
 
221
260
  @property
222
- @pulumi.getter
223
- def signature(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
261
+ @pulumi.getter(name="showOutputs")
262
+ def show_outputs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyShowOutputArgs']]]]:
224
263
  """
225
- 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.
264
+ Outputs the result of `SHOW ROW ACCESS POLICIES` for the given row access policy.
226
265
  """
227
- return pulumi.get(self, "signature")
266
+ return pulumi.get(self, "show_outputs")
228
267
 
229
- @signature.setter
230
- def signature(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
231
- pulumi.set(self, "signature", value)
268
+ @show_outputs.setter
269
+ def show_outputs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['RowAccessPolicyShowOutputArgs']]]]):
270
+ pulumi.set(self, "show_outputs", value)
232
271
 
233
272
 
234
273
  class RowAccessPolicy(pulumi.CustomResource):
@@ -236,30 +275,28 @@ class RowAccessPolicy(pulumi.CustomResource):
236
275
  def __init__(__self__,
237
276
  resource_name: str,
238
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,
239
280
  comment: Optional[pulumi.Input[str]] = None,
240
281
  database: Optional[pulumi.Input[str]] = None,
241
282
  name: Optional[pulumi.Input[str]] = None,
242
- row_access_expression: Optional[pulumi.Input[str]] = None,
243
283
  schema: Optional[pulumi.Input[str]] = None,
244
- signature: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
245
284
  __props__=None):
246
285
  """
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 'dbName|schemaName|policyName'
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] row_access_expression: Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
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
@@ -270,10 +307,8 @@ class RowAccessPolicy(pulumi.CustomResource):
270
307
  """
271
308
  ## Import
272
309
 
273
- format is database name | schema name | policy name
274
-
275
310
  ```sh
276
- $ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example 'dbName|schemaName|policyName'
311
+ $ pulumi import snowflake:index/rowAccessPolicy:RowAccessPolicy example '"<database_name>"."<schema_name>"."<row_access_policy_name>"'
277
312
  ```
278
313
 
279
314
  :param str resource_name: The name of the resource.
@@ -291,12 +326,12 @@ class RowAccessPolicy(pulumi.CustomResource):
291
326
  def _internal_init(__self__,
292
327
  resource_name: str,
293
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,
294
331
  comment: Optional[pulumi.Input[str]] = None,
295
332
  database: Optional[pulumi.Input[str]] = None,
296
333
  name: Optional[pulumi.Input[str]] = None,
297
- row_access_expression: Optional[pulumi.Input[str]] = None,
298
334
  schema: Optional[pulumi.Input[str]] = None,
299
- signature: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
300
335
  __props__=None):
301
336
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
302
337
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -306,21 +341,23 @@ class RowAccessPolicy(pulumi.CustomResource):
306
341
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
307
342
  __props__ = RowAccessPolicyArgs.__new__(RowAccessPolicyArgs)
308
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
309
350
  __props__.__dict__["comment"] = comment
310
351
  if database is None and not opts.urn:
311
352
  raise TypeError("Missing required property 'database'")
312
353
  __props__.__dict__["database"] = database
313
354
  __props__.__dict__["name"] = name
314
- if row_access_expression is None and not opts.urn:
315
- raise TypeError("Missing required property 'row_access_expression'")
316
- __props__.__dict__["row_access_expression"] = row_access_expression
317
355
  if schema is None and not opts.urn:
318
356
  raise TypeError("Missing required property 'schema'")
319
357
  __props__.__dict__["schema"] = schema
320
- if signature is None and not opts.urn:
321
- raise TypeError("Missing required property 'signature'")
322
- __props__.__dict__["signature"] = signature
358
+ __props__.__dict__["describe_outputs"] = None
323
359
  __props__.__dict__["fully_qualified_name"] = None
360
+ __props__.__dict__["show_outputs"] = None
324
361
  super(RowAccessPolicy, __self__).__init__(
325
362
  'snowflake:index/rowAccessPolicy:RowAccessPolicy',
326
363
  resource_name,
@@ -331,13 +368,15 @@ class RowAccessPolicy(pulumi.CustomResource):
331
368
  def get(resource_name: str,
332
369
  id: pulumi.Input[str],
333
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,
334
373
  comment: Optional[pulumi.Input[str]] = None,
335
374
  database: Optional[pulumi.Input[str]] = None,
375
+ describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyDescribeOutputArgs', 'RowAccessPolicyDescribeOutputArgsDict']]]]] = None,
336
376
  fully_qualified_name: Optional[pulumi.Input[str]] = None,
337
377
  name: Optional[pulumi.Input[str]] = None,
338
- row_access_expression: Optional[pulumi.Input[str]] = None,
339
378
  schema: Optional[pulumi.Input[str]] = None,
340
- signature: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None) -> 'RowAccessPolicy':
379
+ show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['RowAccessPolicyShowOutputArgs', 'RowAccessPolicyShowOutputArgsDict']]]]] = None) -> 'RowAccessPolicy':
341
380
  """
342
381
  Get an existing RowAccessPolicy resource's state with the given name, id, and optional extra
343
382
  properties used to qualify the lookup.
@@ -345,27 +384,47 @@ class RowAccessPolicy(pulumi.CustomResource):
345
384
  :param str resource_name: The unique name of the resulting resource.
346
385
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
347
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.
348
389
  :param pulumi.Input[str] comment: Specifies a comment for the row access policy.
349
- :param pulumi.Input[str] database: The database in which to create the row access policy.
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.
350
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).
351
- :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.
352
- :param pulumi.Input[str] row_access_expression: Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
353
- :param pulumi.Input[str] schema: The schema in which to create the row access policy.
354
- :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.
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.
355
396
  """
356
397
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
357
398
 
358
399
  __props__ = _RowAccessPolicyState.__new__(_RowAccessPolicyState)
359
400
 
401
+ __props__.__dict__["arguments"] = arguments
402
+ __props__.__dict__["body"] = body
360
403
  __props__.__dict__["comment"] = comment
361
404
  __props__.__dict__["database"] = database
405
+ __props__.__dict__["describe_outputs"] = describe_outputs
362
406
  __props__.__dict__["fully_qualified_name"] = fully_qualified_name
363
407
  __props__.__dict__["name"] = name
364
- __props__.__dict__["row_access_expression"] = row_access_expression
365
408
  __props__.__dict__["schema"] = schema
366
- __props__.__dict__["signature"] = signature
409
+ __props__.__dict__["show_outputs"] = show_outputs
367
410
  return RowAccessPolicy(resource_name, opts=opts, __props__=__props__)
368
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
+
369
428
  @property
370
429
  @pulumi.getter
371
430
  def comment(self) -> pulumi.Output[Optional[str]]:
@@ -378,10 +437,18 @@ class RowAccessPolicy(pulumi.CustomResource):
378
437
  @pulumi.getter
379
438
  def database(self) -> pulumi.Output[str]:
380
439
  """
381
- 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: `|`, `.`, `(`, `)`, `"`
382
441
  """
383
442
  return pulumi.get(self, "database")
384
443
 
444
+ @property
445
+ @pulumi.getter(name="describeOutputs")
446
+ def describe_outputs(self) -> pulumi.Output[Sequence['outputs.RowAccessPolicyDescribeOutput']]:
447
+ """
448
+ Outputs the result of `DESCRIBE ROW ACCESS POLICY` for the given row access policy.
449
+ """
450
+ return pulumi.get(self, "describe_outputs")
451
+
385
452
  @property
386
453
  @pulumi.getter(name="fullyQualifiedName")
387
454
  def fully_qualified_name(self) -> pulumi.Output[str]:
@@ -394,31 +461,23 @@ class RowAccessPolicy(pulumi.CustomResource):
394
461
  @pulumi.getter
395
462
  def name(self) -> pulumi.Output[str]:
396
463
  """
397
- Specifies the identifier for the row access policy; must be unique for the database and schema in which the row access policy is created.
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: `|`, `.`, `(`, `)`, `"`
398
465
  """
399
466
  return pulumi.get(self, "name")
400
467
 
401
- @property
402
- @pulumi.getter(name="rowAccessExpression")
403
- def row_access_expression(self) -> pulumi.Output[str]:
404
- """
405
- Specifies the SQL expression. The expression can be any boolean-valued SQL expression.
406
- """
407
- return pulumi.get(self, "row_access_expression")
408
-
409
468
  @property
410
469
  @pulumi.getter
411
470
  def schema(self) -> pulumi.Output[str]:
412
471
  """
413
- 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: `|`, `.`, `(`, `)`, `"`
414
473
  """
415
474
  return pulumi.get(self, "schema")
416
475
 
417
476
  @property
418
- @pulumi.getter
419
- def signature(self) -> pulumi.Output[Mapping[str, str]]:
477
+ @pulumi.getter(name="showOutputs")
478
+ def show_outputs(self) -> pulumi.Output[Sequence['outputs.RowAccessPolicyShowOutput']]:
420
479
  """
421
- 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.
480
+ Outputs the result of `SHOW ROW ACCESS POLICIES` for the given row access policy.
422
481
  """
423
- return pulumi.get(self, "signature")
482
+ return pulumi.get(self, "show_outputs")
424
483
 
@@ -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 *
@@ -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__ = ['SamlIntegrationArgs', 'SamlIntegration']
@@ -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 *
@@ -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 *
@@ -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__ = ['SecondaryDatabaseArgs', 'SecondaryDatabase']