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
pulumi_snowflake/table.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 *
|
|
@@ -29,13 +34,13 @@ class TableArgs:
|
|
|
29
34
|
"""
|
|
30
35
|
The set of arguments for constructing a Table resource.
|
|
31
36
|
:param pulumi.Input[Sequence[pulumi.Input['TableColumnArgs']]] columns: Definitions of a column to create in the table. Minimum one required.
|
|
32
|
-
:param pulumi.Input[str] database:
|
|
33
|
-
:param pulumi.Input[str] schema:
|
|
37
|
+
:param pulumi.Input[str] database: The database in which to create the table.
|
|
38
|
+
:param pulumi.Input[str] schema: The schema in which to create the table.
|
|
34
39
|
:param pulumi.Input[bool] change_tracking: Specifies whether to enable change tracking on the table. Default false.
|
|
35
40
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] cluster_bies: A list of one or more table columns/expressions to be used as clustering key(s) for the table
|
|
36
|
-
:param pulumi.Input[str] comment:
|
|
41
|
+
:param pulumi.Input[str] comment: Specifies a comment for the table.
|
|
37
42
|
:param pulumi.Input[int] data_retention_time_in_days: Specifies the retention period for the table so that Time Travel actions (SELECT, CLONE, UNDROP) can be performed on historical data in the table. If you wish to inherit the parent schema setting then pass in the schema attribute to this argument or do not fill this parameter at all; the default value for this field is -1, which is a fallback to use Snowflake default - in this case the schema value
|
|
38
|
-
:param pulumi.Input[str] name:
|
|
43
|
+
:param pulumi.Input[str] name: Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
|
|
39
44
|
:param pulumi.Input['TablePrimaryKeyArgs'] primary_key: Definitions of primary key constraint to create on table
|
|
40
45
|
:param pulumi.Input[Sequence[pulumi.Input['TableTagArgs']]] tags: Definitions of a tag to associate with the resource.
|
|
41
46
|
"""
|
|
@@ -53,8 +58,8 @@ class TableArgs:
|
|
|
53
58
|
if name is not None:
|
|
54
59
|
pulumi.set(__self__, "name", name)
|
|
55
60
|
if primary_key is not None:
|
|
56
|
-
warnings.warn("""Use
|
|
57
|
-
pulumi.log.warn("""primary_key is deprecated: Use
|
|
61
|
+
warnings.warn("""Use TableConstraint instead""", DeprecationWarning)
|
|
62
|
+
pulumi.log.warn("""primary_key is deprecated: Use TableConstraint instead""")
|
|
58
63
|
if primary_key is not None:
|
|
59
64
|
pulumi.set(__self__, "primary_key", primary_key)
|
|
60
65
|
if tags is not None:
|
|
@@ -79,7 +84,7 @@ class TableArgs:
|
|
|
79
84
|
@pulumi.getter
|
|
80
85
|
def database(self) -> pulumi.Input[str]:
|
|
81
86
|
"""
|
|
82
|
-
|
|
87
|
+
The database in which to create the table.
|
|
83
88
|
"""
|
|
84
89
|
return pulumi.get(self, "database")
|
|
85
90
|
|
|
@@ -91,7 +96,7 @@ class TableArgs:
|
|
|
91
96
|
@pulumi.getter
|
|
92
97
|
def schema(self) -> pulumi.Input[str]:
|
|
93
98
|
"""
|
|
94
|
-
|
|
99
|
+
The schema in which to create the table.
|
|
95
100
|
"""
|
|
96
101
|
return pulumi.get(self, "schema")
|
|
97
102
|
|
|
@@ -127,7 +132,7 @@ class TableArgs:
|
|
|
127
132
|
@pulumi.getter
|
|
128
133
|
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
129
134
|
"""
|
|
130
|
-
|
|
135
|
+
Specifies a comment for the table.
|
|
131
136
|
"""
|
|
132
137
|
return pulumi.get(self, "comment")
|
|
133
138
|
|
|
@@ -151,7 +156,7 @@ class TableArgs:
|
|
|
151
156
|
@pulumi.getter
|
|
152
157
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
153
158
|
"""
|
|
154
|
-
|
|
159
|
+
Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
|
|
155
160
|
"""
|
|
156
161
|
return pulumi.get(self, "name")
|
|
157
162
|
|
|
@@ -161,13 +166,11 @@ class TableArgs:
|
|
|
161
166
|
|
|
162
167
|
@property
|
|
163
168
|
@pulumi.getter(name="primaryKey")
|
|
169
|
+
@_utilities.deprecated("""Use TableConstraint instead""")
|
|
164
170
|
def primary_key(self) -> Optional[pulumi.Input['TablePrimaryKeyArgs']]:
|
|
165
171
|
"""
|
|
166
172
|
Definitions of primary key constraint to create on table
|
|
167
173
|
"""
|
|
168
|
-
warnings.warn("""Use snowflake_table_constraint instead""", DeprecationWarning)
|
|
169
|
-
pulumi.log.warn("""primary_key is deprecated: Use snowflake_table_constraint instead""")
|
|
170
|
-
|
|
171
174
|
return pulumi.get(self, "primary_key")
|
|
172
175
|
|
|
173
176
|
@primary_key.setter
|
|
@@ -176,13 +179,11 @@ class TableArgs:
|
|
|
176
179
|
|
|
177
180
|
@property
|
|
178
181
|
@pulumi.getter
|
|
182
|
+
@_utilities.deprecated("""Use the 'snowflake_tag_association' resource instead.""")
|
|
179
183
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['TableTagArgs']]]]:
|
|
180
184
|
"""
|
|
181
185
|
Definitions of a tag to associate with the resource.
|
|
182
186
|
"""
|
|
183
|
-
warnings.warn("""Use the 'snowflake_tag_association' resource instead.""", DeprecationWarning)
|
|
184
|
-
pulumi.log.warn("""tags is deprecated: Use the 'snowflake_tag_association' resource instead.""")
|
|
185
|
-
|
|
186
187
|
return pulumi.get(self, "tags")
|
|
187
188
|
|
|
188
189
|
@tags.setter
|
|
@@ -199,10 +200,10 @@ class _TableState:
|
|
|
199
200
|
comment: Optional[pulumi.Input[str]] = None,
|
|
200
201
|
data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
|
|
201
202
|
database: Optional[pulumi.Input[str]] = None,
|
|
203
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
202
204
|
name: Optional[pulumi.Input[str]] = None,
|
|
203
205
|
owner: Optional[pulumi.Input[str]] = None,
|
|
204
206
|
primary_key: Optional[pulumi.Input['TablePrimaryKeyArgs']] = None,
|
|
205
|
-
qualified_name: Optional[pulumi.Input[str]] = None,
|
|
206
207
|
schema: Optional[pulumi.Input[str]] = None,
|
|
207
208
|
tags: Optional[pulumi.Input[Sequence[pulumi.Input['TableTagArgs']]]] = None):
|
|
208
209
|
"""
|
|
@@ -210,14 +211,14 @@ class _TableState:
|
|
|
210
211
|
:param pulumi.Input[bool] change_tracking: Specifies whether to enable change tracking on the table. Default false.
|
|
211
212
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] cluster_bies: A list of one or more table columns/expressions to be used as clustering key(s) for the table
|
|
212
213
|
:param pulumi.Input[Sequence[pulumi.Input['TableColumnArgs']]] columns: Definitions of a column to create in the table. Minimum one required.
|
|
213
|
-
:param pulumi.Input[str] comment:
|
|
214
|
+
:param pulumi.Input[str] comment: Specifies a comment for the table.
|
|
214
215
|
:param pulumi.Input[int] data_retention_time_in_days: Specifies the retention period for the table so that Time Travel actions (SELECT, CLONE, UNDROP) can be performed on historical data in the table. If you wish to inherit the parent schema setting then pass in the schema attribute to this argument or do not fill this parameter at all; the default value for this field is -1, which is a fallback to use Snowflake default - in this case the schema value
|
|
215
|
-
:param pulumi.Input[str] database:
|
|
216
|
-
:param pulumi.Input[str]
|
|
216
|
+
:param pulumi.Input[str] database: The database in which to create the table.
|
|
217
|
+
: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).
|
|
218
|
+
:param pulumi.Input[str] name: Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
|
|
217
219
|
:param pulumi.Input[str] owner: Name of the role that owns the table.
|
|
218
220
|
:param pulumi.Input['TablePrimaryKeyArgs'] primary_key: Definitions of primary key constraint to create on table
|
|
219
|
-
:param pulumi.Input[str]
|
|
220
|
-
:param pulumi.Input[str] schema: Name of the schema that the tag was created in.
|
|
221
|
+
:param pulumi.Input[str] schema: The schema in which to create the table.
|
|
221
222
|
:param pulumi.Input[Sequence[pulumi.Input['TableTagArgs']]] tags: Definitions of a tag to associate with the resource.
|
|
222
223
|
"""
|
|
223
224
|
if change_tracking is not None:
|
|
@@ -232,17 +233,17 @@ class _TableState:
|
|
|
232
233
|
pulumi.set(__self__, "data_retention_time_in_days", data_retention_time_in_days)
|
|
233
234
|
if database is not None:
|
|
234
235
|
pulumi.set(__self__, "database", database)
|
|
236
|
+
if fully_qualified_name is not None:
|
|
237
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
235
238
|
if name is not None:
|
|
236
239
|
pulumi.set(__self__, "name", name)
|
|
237
240
|
if owner is not None:
|
|
238
241
|
pulumi.set(__self__, "owner", owner)
|
|
239
242
|
if primary_key is not None:
|
|
240
|
-
warnings.warn("""Use
|
|
241
|
-
pulumi.log.warn("""primary_key is deprecated: Use
|
|
243
|
+
warnings.warn("""Use TableConstraint instead""", DeprecationWarning)
|
|
244
|
+
pulumi.log.warn("""primary_key is deprecated: Use TableConstraint instead""")
|
|
242
245
|
if primary_key is not None:
|
|
243
246
|
pulumi.set(__self__, "primary_key", primary_key)
|
|
244
|
-
if qualified_name is not None:
|
|
245
|
-
pulumi.set(__self__, "qualified_name", qualified_name)
|
|
246
247
|
if schema is not None:
|
|
247
248
|
pulumi.set(__self__, "schema", schema)
|
|
248
249
|
if tags is not None:
|
|
@@ -291,7 +292,7 @@ class _TableState:
|
|
|
291
292
|
@pulumi.getter
|
|
292
293
|
def comment(self) -> Optional[pulumi.Input[str]]:
|
|
293
294
|
"""
|
|
294
|
-
|
|
295
|
+
Specifies a comment for the table.
|
|
295
296
|
"""
|
|
296
297
|
return pulumi.get(self, "comment")
|
|
297
298
|
|
|
@@ -315,7 +316,7 @@ class _TableState:
|
|
|
315
316
|
@pulumi.getter
|
|
316
317
|
def database(self) -> Optional[pulumi.Input[str]]:
|
|
317
318
|
"""
|
|
318
|
-
|
|
319
|
+
The database in which to create the table.
|
|
319
320
|
"""
|
|
320
321
|
return pulumi.get(self, "database")
|
|
321
322
|
|
|
@@ -323,11 +324,23 @@ class _TableState:
|
|
|
323
324
|
def database(self, value: Optional[pulumi.Input[str]]):
|
|
324
325
|
pulumi.set(self, "database", value)
|
|
325
326
|
|
|
327
|
+
@property
|
|
328
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
329
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
330
|
+
"""
|
|
331
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
332
|
+
"""
|
|
333
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
334
|
+
|
|
335
|
+
@fully_qualified_name.setter
|
|
336
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
337
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
338
|
+
|
|
326
339
|
@property
|
|
327
340
|
@pulumi.getter
|
|
328
341
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
329
342
|
"""
|
|
330
|
-
|
|
343
|
+
Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
|
|
331
344
|
"""
|
|
332
345
|
return pulumi.get(self, "name")
|
|
333
346
|
|
|
@@ -349,36 +362,22 @@ class _TableState:
|
|
|
349
362
|
|
|
350
363
|
@property
|
|
351
364
|
@pulumi.getter(name="primaryKey")
|
|
365
|
+
@_utilities.deprecated("""Use TableConstraint instead""")
|
|
352
366
|
def primary_key(self) -> Optional[pulumi.Input['TablePrimaryKeyArgs']]:
|
|
353
367
|
"""
|
|
354
368
|
Definitions of primary key constraint to create on table
|
|
355
369
|
"""
|
|
356
|
-
warnings.warn("""Use snowflake_table_constraint instead""", DeprecationWarning)
|
|
357
|
-
pulumi.log.warn("""primary_key is deprecated: Use snowflake_table_constraint instead""")
|
|
358
|
-
|
|
359
370
|
return pulumi.get(self, "primary_key")
|
|
360
371
|
|
|
361
372
|
@primary_key.setter
|
|
362
373
|
def primary_key(self, value: Optional[pulumi.Input['TablePrimaryKeyArgs']]):
|
|
363
374
|
pulumi.set(self, "primary_key", value)
|
|
364
375
|
|
|
365
|
-
@property
|
|
366
|
-
@pulumi.getter(name="qualifiedName")
|
|
367
|
-
def qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
368
|
-
"""
|
|
369
|
-
Qualified name of the table.
|
|
370
|
-
"""
|
|
371
|
-
return pulumi.get(self, "qualified_name")
|
|
372
|
-
|
|
373
|
-
@qualified_name.setter
|
|
374
|
-
def qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
375
|
-
pulumi.set(self, "qualified_name", value)
|
|
376
|
-
|
|
377
376
|
@property
|
|
378
377
|
@pulumi.getter
|
|
379
378
|
def schema(self) -> Optional[pulumi.Input[str]]:
|
|
380
379
|
"""
|
|
381
|
-
|
|
380
|
+
The schema in which to create the table.
|
|
382
381
|
"""
|
|
383
382
|
return pulumi.get(self, "schema")
|
|
384
383
|
|
|
@@ -388,13 +387,11 @@ class _TableState:
|
|
|
388
387
|
|
|
389
388
|
@property
|
|
390
389
|
@pulumi.getter
|
|
390
|
+
@_utilities.deprecated("""Use the 'snowflake_tag_association' resource instead.""")
|
|
391
391
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['TableTagArgs']]]]:
|
|
392
392
|
"""
|
|
393
393
|
Definitions of a tag to associate with the resource.
|
|
394
394
|
"""
|
|
395
|
-
warnings.warn("""Use the 'snowflake_tag_association' resource instead.""", DeprecationWarning)
|
|
396
|
-
pulumi.log.warn("""tags is deprecated: Use the 'snowflake_tag_association' resource instead.""")
|
|
397
|
-
|
|
398
395
|
return pulumi.get(self, "tags")
|
|
399
396
|
|
|
400
397
|
@tags.setter
|
|
@@ -409,14 +406,14 @@ class Table(pulumi.CustomResource):
|
|
|
409
406
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
410
407
|
change_tracking: Optional[pulumi.Input[bool]] = None,
|
|
411
408
|
cluster_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
412
|
-
columns: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
409
|
+
columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableColumnArgs', 'TableColumnArgsDict']]]]] = None,
|
|
413
410
|
comment: Optional[pulumi.Input[str]] = None,
|
|
414
411
|
data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
|
|
415
412
|
database: Optional[pulumi.Input[str]] = None,
|
|
416
413
|
name: Optional[pulumi.Input[str]] = None,
|
|
417
|
-
primary_key: Optional[pulumi.Input[
|
|
414
|
+
primary_key: Optional[pulumi.Input[Union['TablePrimaryKeyArgs', 'TablePrimaryKeyArgsDict']]] = None,
|
|
418
415
|
schema: Optional[pulumi.Input[str]] = None,
|
|
419
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
416
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableTagArgs', 'TableTagArgsDict']]]]] = None,
|
|
420
417
|
__props__=None):
|
|
421
418
|
"""
|
|
422
419
|
## Import
|
|
@@ -431,14 +428,14 @@ class Table(pulumi.CustomResource):
|
|
|
431
428
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
432
429
|
:param pulumi.Input[bool] change_tracking: Specifies whether to enable change tracking on the table. Default false.
|
|
433
430
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] cluster_bies: A list of one or more table columns/expressions to be used as clustering key(s) for the table
|
|
434
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
435
|
-
:param pulumi.Input[str] comment:
|
|
431
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['TableColumnArgs', 'TableColumnArgsDict']]]] columns: Definitions of a column to create in the table. Minimum one required.
|
|
432
|
+
:param pulumi.Input[str] comment: Specifies a comment for the table.
|
|
436
433
|
:param pulumi.Input[int] data_retention_time_in_days: Specifies the retention period for the table so that Time Travel actions (SELECT, CLONE, UNDROP) can be performed on historical data in the table. If you wish to inherit the parent schema setting then pass in the schema attribute to this argument or do not fill this parameter at all; the default value for this field is -1, which is a fallback to use Snowflake default - in this case the schema value
|
|
437
|
-
:param pulumi.Input[str] database:
|
|
438
|
-
:param pulumi.Input[str] name:
|
|
439
|
-
:param pulumi.Input[
|
|
440
|
-
:param pulumi.Input[str] schema:
|
|
441
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
434
|
+
:param pulumi.Input[str] database: The database in which to create the table.
|
|
435
|
+
:param pulumi.Input[str] name: Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
|
|
436
|
+
:param pulumi.Input[Union['TablePrimaryKeyArgs', 'TablePrimaryKeyArgsDict']] primary_key: Definitions of primary key constraint to create on table
|
|
437
|
+
:param pulumi.Input[str] schema: The schema in which to create the table.
|
|
438
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['TableTagArgs', 'TableTagArgsDict']]]] tags: Definitions of a tag to associate with the resource.
|
|
442
439
|
"""
|
|
443
440
|
...
|
|
444
441
|
@overload
|
|
@@ -472,14 +469,14 @@ class Table(pulumi.CustomResource):
|
|
|
472
469
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
473
470
|
change_tracking: Optional[pulumi.Input[bool]] = None,
|
|
474
471
|
cluster_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
475
|
-
columns: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
472
|
+
columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableColumnArgs', 'TableColumnArgsDict']]]]] = None,
|
|
476
473
|
comment: Optional[pulumi.Input[str]] = None,
|
|
477
474
|
data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
|
|
478
475
|
database: Optional[pulumi.Input[str]] = None,
|
|
479
476
|
name: Optional[pulumi.Input[str]] = None,
|
|
480
|
-
primary_key: Optional[pulumi.Input[
|
|
477
|
+
primary_key: Optional[pulumi.Input[Union['TablePrimaryKeyArgs', 'TablePrimaryKeyArgsDict']]] = None,
|
|
481
478
|
schema: Optional[pulumi.Input[str]] = None,
|
|
482
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
479
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableTagArgs', 'TableTagArgsDict']]]]] = None,
|
|
483
480
|
__props__=None):
|
|
484
481
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
485
482
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -505,8 +502,8 @@ class Table(pulumi.CustomResource):
|
|
|
505
502
|
raise TypeError("Missing required property 'schema'")
|
|
506
503
|
__props__.__dict__["schema"] = schema
|
|
507
504
|
__props__.__dict__["tags"] = tags
|
|
505
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
508
506
|
__props__.__dict__["owner"] = None
|
|
509
|
-
__props__.__dict__["qualified_name"] = None
|
|
510
507
|
super(Table, __self__).__init__(
|
|
511
508
|
'snowflake:index/table:Table',
|
|
512
509
|
resource_name,
|
|
@@ -519,16 +516,16 @@ class Table(pulumi.CustomResource):
|
|
|
519
516
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
520
517
|
change_tracking: Optional[pulumi.Input[bool]] = None,
|
|
521
518
|
cluster_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
522
|
-
columns: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
519
|
+
columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableColumnArgs', 'TableColumnArgsDict']]]]] = None,
|
|
523
520
|
comment: Optional[pulumi.Input[str]] = None,
|
|
524
521
|
data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
|
|
525
522
|
database: Optional[pulumi.Input[str]] = None,
|
|
523
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
526
524
|
name: Optional[pulumi.Input[str]] = None,
|
|
527
525
|
owner: Optional[pulumi.Input[str]] = None,
|
|
528
|
-
primary_key: Optional[pulumi.Input[
|
|
529
|
-
qualified_name: Optional[pulumi.Input[str]] = None,
|
|
526
|
+
primary_key: Optional[pulumi.Input[Union['TablePrimaryKeyArgs', 'TablePrimaryKeyArgsDict']]] = None,
|
|
530
527
|
schema: Optional[pulumi.Input[str]] = None,
|
|
531
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
528
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableTagArgs', 'TableTagArgsDict']]]]] = None) -> 'Table':
|
|
532
529
|
"""
|
|
533
530
|
Get an existing Table resource's state with the given name, id, and optional extra
|
|
534
531
|
properties used to qualify the lookup.
|
|
@@ -538,16 +535,16 @@ class Table(pulumi.CustomResource):
|
|
|
538
535
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
539
536
|
:param pulumi.Input[bool] change_tracking: Specifies whether to enable change tracking on the table. Default false.
|
|
540
537
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] cluster_bies: A list of one or more table columns/expressions to be used as clustering key(s) for the table
|
|
541
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
542
|
-
:param pulumi.Input[str] comment:
|
|
538
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['TableColumnArgs', 'TableColumnArgsDict']]]] columns: Definitions of a column to create in the table. Minimum one required.
|
|
539
|
+
:param pulumi.Input[str] comment: Specifies a comment for the table.
|
|
543
540
|
:param pulumi.Input[int] data_retention_time_in_days: Specifies the retention period for the table so that Time Travel actions (SELECT, CLONE, UNDROP) can be performed on historical data in the table. If you wish to inherit the parent schema setting then pass in the schema attribute to this argument or do not fill this parameter at all; the default value for this field is -1, which is a fallback to use Snowflake default - in this case the schema value
|
|
544
|
-
:param pulumi.Input[str] database:
|
|
545
|
-
:param pulumi.Input[str]
|
|
541
|
+
:param pulumi.Input[str] database: The database in which to create the table.
|
|
542
|
+
: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).
|
|
543
|
+
:param pulumi.Input[str] name: Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
|
|
546
544
|
:param pulumi.Input[str] owner: Name of the role that owns the table.
|
|
547
|
-
:param pulumi.Input[
|
|
548
|
-
:param pulumi.Input[str]
|
|
549
|
-
:param pulumi.Input[
|
|
550
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableTagArgs']]]] tags: Definitions of a tag to associate with the resource.
|
|
545
|
+
:param pulumi.Input[Union['TablePrimaryKeyArgs', 'TablePrimaryKeyArgsDict']] primary_key: Definitions of primary key constraint to create on table
|
|
546
|
+
:param pulumi.Input[str] schema: The schema in which to create the table.
|
|
547
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['TableTagArgs', 'TableTagArgsDict']]]] tags: Definitions of a tag to associate with the resource.
|
|
551
548
|
"""
|
|
552
549
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
553
550
|
|
|
@@ -559,10 +556,10 @@ class Table(pulumi.CustomResource):
|
|
|
559
556
|
__props__.__dict__["comment"] = comment
|
|
560
557
|
__props__.__dict__["data_retention_time_in_days"] = data_retention_time_in_days
|
|
561
558
|
__props__.__dict__["database"] = database
|
|
559
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
562
560
|
__props__.__dict__["name"] = name
|
|
563
561
|
__props__.__dict__["owner"] = owner
|
|
564
562
|
__props__.__dict__["primary_key"] = primary_key
|
|
565
|
-
__props__.__dict__["qualified_name"] = qualified_name
|
|
566
563
|
__props__.__dict__["schema"] = schema
|
|
567
564
|
__props__.__dict__["tags"] = tags
|
|
568
565
|
return Table(resource_name, opts=opts, __props__=__props__)
|
|
@@ -595,7 +592,7 @@ class Table(pulumi.CustomResource):
|
|
|
595
592
|
@pulumi.getter
|
|
596
593
|
def comment(self) -> pulumi.Output[Optional[str]]:
|
|
597
594
|
"""
|
|
598
|
-
|
|
595
|
+
Specifies a comment for the table.
|
|
599
596
|
"""
|
|
600
597
|
return pulumi.get(self, "comment")
|
|
601
598
|
|
|
@@ -611,15 +608,23 @@ class Table(pulumi.CustomResource):
|
|
|
611
608
|
@pulumi.getter
|
|
612
609
|
def database(self) -> pulumi.Output[str]:
|
|
613
610
|
"""
|
|
614
|
-
|
|
611
|
+
The database in which to create the table.
|
|
615
612
|
"""
|
|
616
613
|
return pulumi.get(self, "database")
|
|
617
614
|
|
|
615
|
+
@property
|
|
616
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
617
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
618
|
+
"""
|
|
619
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
620
|
+
"""
|
|
621
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
622
|
+
|
|
618
623
|
@property
|
|
619
624
|
@pulumi.getter
|
|
620
625
|
def name(self) -> pulumi.Output[str]:
|
|
621
626
|
"""
|
|
622
|
-
|
|
627
|
+
Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
|
|
623
628
|
"""
|
|
624
629
|
return pulumi.get(self, "name")
|
|
625
630
|
|
|
@@ -633,39 +638,27 @@ class Table(pulumi.CustomResource):
|
|
|
633
638
|
|
|
634
639
|
@property
|
|
635
640
|
@pulumi.getter(name="primaryKey")
|
|
641
|
+
@_utilities.deprecated("""Use TableConstraint instead""")
|
|
636
642
|
def primary_key(self) -> pulumi.Output[Optional['outputs.TablePrimaryKey']]:
|
|
637
643
|
"""
|
|
638
644
|
Definitions of primary key constraint to create on table
|
|
639
645
|
"""
|
|
640
|
-
warnings.warn("""Use snowflake_table_constraint instead""", DeprecationWarning)
|
|
641
|
-
pulumi.log.warn("""primary_key is deprecated: Use snowflake_table_constraint instead""")
|
|
642
|
-
|
|
643
646
|
return pulumi.get(self, "primary_key")
|
|
644
647
|
|
|
645
|
-
@property
|
|
646
|
-
@pulumi.getter(name="qualifiedName")
|
|
647
|
-
def qualified_name(self) -> pulumi.Output[str]:
|
|
648
|
-
"""
|
|
649
|
-
Qualified name of the table.
|
|
650
|
-
"""
|
|
651
|
-
return pulumi.get(self, "qualified_name")
|
|
652
|
-
|
|
653
648
|
@property
|
|
654
649
|
@pulumi.getter
|
|
655
650
|
def schema(self) -> pulumi.Output[str]:
|
|
656
651
|
"""
|
|
657
|
-
|
|
652
|
+
The schema in which to create the table.
|
|
658
653
|
"""
|
|
659
654
|
return pulumi.get(self, "schema")
|
|
660
655
|
|
|
661
656
|
@property
|
|
662
657
|
@pulumi.getter
|
|
658
|
+
@_utilities.deprecated("""Use the 'snowflake_tag_association' resource instead.""")
|
|
663
659
|
def tags(self) -> pulumi.Output[Optional[Sequence['outputs.TableTag']]]:
|
|
664
660
|
"""
|
|
665
661
|
Definitions of a tag to associate with the resource.
|
|
666
662
|
"""
|
|
667
|
-
warnings.warn("""Use the 'snowflake_tag_association' resource instead.""", DeprecationWarning)
|
|
668
|
-
pulumi.log.warn("""tags is deprecated: Use the 'snowflake_tag_association' resource instead.""")
|
|
669
|
-
|
|
670
663
|
return pulumi.get(self, "tags")
|
|
671
664
|
|
|
@@ -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__ = ['TableColumnMaskingPolicyApplicationArgs', 'TableColumnMaskingPolicyApplication']
|
|
@@ -130,13 +135,7 @@ class TableColumnMaskingPolicyApplication(pulumi.CustomResource):
|
|
|
130
135
|
table: Optional[pulumi.Input[str]] = None,
|
|
131
136
|
__props__=None):
|
|
132
137
|
"""
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
Only one masking policy may be applied per table column, hence only one `TableColumnMaskingPolicyApplication` resources may be present per table column.
|
|
136
|
-
Using two or more `TableColumnMaskingPolicyApplication` resources for the same table column will result in the last one overriding any previously applied masking policies and unresolvable diffs in pulumi preview.
|
|
137
|
-
|
|
138
|
-
When using this resource to manage a table column's masking policy make sure to ignore changes to the column's masking policy in the table definition, otherwise the two resources would conflict. See example below.
|
|
139
|
-
|
|
138
|
+
Create a TableColumnMaskingPolicyApplication resource with the given unique name, props, and options.
|
|
140
139
|
:param str resource_name: The name of the resource.
|
|
141
140
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
142
141
|
:param pulumi.Input[str] column: The column to apply the masking policy to.
|
|
@@ -150,13 +149,7 @@ class TableColumnMaskingPolicyApplication(pulumi.CustomResource):
|
|
|
150
149
|
args: TableColumnMaskingPolicyApplicationArgs,
|
|
151
150
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
152
151
|
"""
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
Only one masking policy may be applied per table column, hence only one `TableColumnMaskingPolicyApplication` resources may be present per table column.
|
|
156
|
-
Using two or more `TableColumnMaskingPolicyApplication` resources for the same table column will result in the last one overriding any previously applied masking policies and unresolvable diffs in pulumi preview.
|
|
157
|
-
|
|
158
|
-
When using this resource to manage a table column's masking policy make sure to ignore changes to the column's masking policy in the table definition, otherwise the two resources would conflict. See example below.
|
|
159
|
-
|
|
152
|
+
Create a TableColumnMaskingPolicyApplication resource with the given unique name, props, and options.
|
|
160
153
|
:param str resource_name: The name of the resource.
|
|
161
154
|
:param TableColumnMaskingPolicyApplicationArgs args: The arguments to use to populate this resource's properties.
|
|
162
155
|
:param pulumi.ResourceOptions opts: Options for the resource.
|