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.

Files changed (182) hide show
  1. pulumi_snowflake/__init__.py +224 -172
  2. pulumi_snowflake/_inputs.py +52857 -1665
  3. pulumi_snowflake/_utilities.py +41 -5
  4. pulumi_snowflake/account.py +188 -218
  5. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  6. pulumi_snowflake/account_parameter.py +21 -48
  7. pulumi_snowflake/account_password_policy_attachment.py +7 -32
  8. pulumi_snowflake/account_role.py +250 -0
  9. pulumi_snowflake/alert.py +38 -47
  10. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
  11. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
  12. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
  13. pulumi_snowflake/api_integration.py +33 -52
  14. pulumi_snowflake/authentication_policy.py +622 -0
  15. pulumi_snowflake/config/__init__.pyi +76 -99
  16. pulumi_snowflake/config/outputs.py +5 -0
  17. pulumi_snowflake/config/vars.py +93 -124
  18. pulumi_snowflake/cortex_search_service.py +596 -0
  19. pulumi_snowflake/database.py +819 -213
  20. pulumi_snowflake/database_role.py +81 -44
  21. pulumi_snowflake/dynamic_table.py +42 -49
  22. pulumi_snowflake/email_notification_integration.py +33 -28
  23. pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
  24. pulumi_snowflake/external_function.py +54 -75
  25. pulumi_snowflake/external_oauth_integration.py +593 -542
  26. pulumi_snowflake/external_table.py +67 -90
  27. pulumi_snowflake/external_volume.py +382 -0
  28. pulumi_snowflake/failover_group.py +57 -98
  29. pulumi_snowflake/file_format.py +33 -28
  30. pulumi_snowflake/function_java.py +1211 -0
  31. pulumi_snowflake/function_javascript.py +882 -0
  32. pulumi_snowflake/function_python.py +1212 -0
  33. pulumi_snowflake/function_scala.py +1212 -0
  34. pulumi_snowflake/function_sql.py +835 -0
  35. pulumi_snowflake/get_account_roles.py +129 -0
  36. pulumi_snowflake/get_accounts.py +53 -22
  37. pulumi_snowflake/get_alerts.py +22 -9
  38. pulumi_snowflake/get_connections.py +109 -0
  39. pulumi_snowflake/get_cortex_search_services.py +216 -0
  40. pulumi_snowflake/get_current_account.py +24 -13
  41. pulumi_snowflake/get_current_role.py +14 -7
  42. pulumi_snowflake/get_database.py +25 -9
  43. pulumi_snowflake/get_database_role.py +162 -0
  44. pulumi_snowflake/get_database_roles.py +79 -47
  45. pulumi_snowflake/get_databases.py +91 -73
  46. pulumi_snowflake/get_dynamic_tables.py +36 -19
  47. pulumi_snowflake/get_external_functions.py +28 -9
  48. pulumi_snowflake/get_external_tables.py +28 -9
  49. pulumi_snowflake/get_failover_groups.py +18 -7
  50. pulumi_snowflake/get_file_formats.py +28 -9
  51. pulumi_snowflake/get_functions.py +28 -9
  52. pulumi_snowflake/get_grants.py +207 -84
  53. pulumi_snowflake/get_masking_policies.py +91 -51
  54. pulumi_snowflake/get_materialized_views.py +28 -9
  55. pulumi_snowflake/get_network_policies.py +129 -0
  56. pulumi_snowflake/get_parameters.py +38 -15
  57. pulumi_snowflake/get_pipes.py +28 -9
  58. pulumi_snowflake/get_procedures.py +28 -9
  59. pulumi_snowflake/get_resource_monitors.py +37 -24
  60. pulumi_snowflake/get_row_access_policies.py +91 -51
  61. pulumi_snowflake/get_schemas.py +145 -41
  62. pulumi_snowflake/get_secrets.py +200 -0
  63. pulumi_snowflake/get_security_integrations.py +129 -0
  64. pulumi_snowflake/get_sequences.py +28 -9
  65. pulumi_snowflake/get_shares.py +18 -9
  66. pulumi_snowflake/get_stages.py +28 -9
  67. pulumi_snowflake/get_storage_integrations.py +16 -9
  68. pulumi_snowflake/get_streamlits.py +170 -0
  69. pulumi_snowflake/get_streams.py +114 -54
  70. pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
  71. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
  72. pulumi_snowflake/get_system_get_private_link_config.py +120 -5
  73. pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
  74. pulumi_snowflake/get_tables.py +28 -9
  75. pulumi_snowflake/get_tags.py +130 -0
  76. pulumi_snowflake/get_tasks.py +134 -54
  77. pulumi_snowflake/get_users.py +116 -44
  78. pulumi_snowflake/get_views.py +114 -54
  79. pulumi_snowflake/get_warehouses.py +79 -26
  80. pulumi_snowflake/grant_account_role.py +28 -75
  81. pulumi_snowflake/grant_application_role.py +257 -0
  82. pulumi_snowflake/grant_database_role.py +35 -94
  83. pulumi_snowflake/grant_ownership.py +382 -0
  84. pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
  85. pulumi_snowflake/grant_privileges_to_database_role.py +37 -383
  86. pulumi_snowflake/grant_privileges_to_share.py +96 -44
  87. pulumi_snowflake/legacy_service_user.py +3670 -0
  88. pulumi_snowflake/managed_account.py +40 -11
  89. pulumi_snowflake/masking_policy.py +213 -310
  90. pulumi_snowflake/materialized_view.py +62 -71
  91. pulumi_snowflake/network_policy.py +217 -61
  92. pulumi_snowflake/network_policy_attachment.py +5 -34
  93. pulumi_snowflake/network_rule.py +473 -0
  94. pulumi_snowflake/notification_integration.py +49 -84
  95. pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
  96. pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
  97. pulumi_snowflake/object_parameter.py +10 -101
  98. pulumi_snowflake/outputs.py +49200 -2928
  99. pulumi_snowflake/password_policy.py +41 -28
  100. pulumi_snowflake/pipe.py +33 -4
  101. pulumi_snowflake/primary_connection.py +330 -0
  102. pulumi_snowflake/procedure_java.py +1273 -0
  103. pulumi_snowflake/procedure_javascript.py +895 -0
  104. pulumi_snowflake/procedure_python.py +1226 -0
  105. pulumi_snowflake/procedure_scala.py +1273 -0
  106. pulumi_snowflake/procedure_sql.py +895 -0
  107. pulumi_snowflake/provider.py +378 -613
  108. pulumi_snowflake/pulumi-plugin.json +2 -1
  109. pulumi_snowflake/resource_monitor.py +118 -327
  110. pulumi_snowflake/row_access_policy.py +200 -149
  111. pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
  112. pulumi_snowflake/schema.py +949 -178
  113. pulumi_snowflake/scim_integration.py +286 -109
  114. pulumi_snowflake/secondary_connection.py +339 -0
  115. pulumi_snowflake/secondary_database.py +1080 -0
  116. pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
  117. pulumi_snowflake/secret_with_basic_authentication.py +500 -0
  118. pulumi_snowflake/secret_with_client_credentials.py +511 -0
  119. pulumi_snowflake/secret_with_generic_string.py +452 -0
  120. pulumi_snowflake/sequence.py +9 -34
  121. pulumi_snowflake/service_user.py +3585 -0
  122. pulumi_snowflake/share.py +33 -28
  123. pulumi_snowflake/shared_database.py +939 -0
  124. pulumi_snowflake/stage.py +95 -84
  125. pulumi_snowflake/storage_integration.py +46 -4
  126. pulumi_snowflake/stream_on_directory_table.py +517 -0
  127. pulumi_snowflake/stream_on_external_table.py +632 -0
  128. pulumi_snowflake/stream_on_table.py +666 -0
  129. pulumi_snowflake/stream_on_view.py +666 -0
  130. pulumi_snowflake/streamlit.py +671 -0
  131. pulumi_snowflake/table.py +86 -97
  132. pulumi_snowflake/table_column_masking_policy_application.py +7 -14
  133. pulumi_snowflake/table_constraint.py +29 -172
  134. pulumi_snowflake/tag.py +142 -74
  135. pulumi_snowflake/tag_association.py +40 -215
  136. pulumi_snowflake/task.py +3048 -418
  137. pulumi_snowflake/user.py +3351 -384
  138. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  139. pulumi_snowflake/user_password_policy_attachment.py +5 -4
  140. pulumi_snowflake/user_public_keys.py +5 -0
  141. pulumi_snowflake/view.py +466 -215
  142. pulumi_snowflake/warehouse.py +184 -168
  143. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/METADATA +7 -6
  144. pulumi_snowflake-1.2.0a1736835738.dist-info/RECORD +148 -0
  145. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
  146. pulumi_snowflake/account_grant.py +0 -343
  147. pulumi_snowflake/database_grant.py +0 -495
  148. pulumi_snowflake/external_table_grant.py +0 -690
  149. pulumi_snowflake/failover_group_grant.py +0 -388
  150. pulumi_snowflake/file_format_grant.py +0 -635
  151. pulumi_snowflake/function.py +0 -872
  152. pulumi_snowflake/function_grant.py +0 -745
  153. pulumi_snowflake/get_role.py +0 -121
  154. pulumi_snowflake/get_roles.py +0 -120
  155. pulumi_snowflake/grant_privileges_to_role.py +0 -825
  156. pulumi_snowflake/integration_grant.py +0 -440
  157. pulumi_snowflake/masking_policy_grant.py +0 -542
  158. pulumi_snowflake/materialized_view_grant.py +0 -689
  159. pulumi_snowflake/pipe_grant.py +0 -587
  160. pulumi_snowflake/procedure.py +0 -887
  161. pulumi_snowflake/procedure_grant.py +0 -745
  162. pulumi_snowflake/resource_monitor_grant.py +0 -387
  163. pulumi_snowflake/role.py +0 -273
  164. pulumi_snowflake/role_grants.py +0 -352
  165. pulumi_snowflake/role_ownership_grant.py +0 -338
  166. pulumi_snowflake/row_access_policy_grant.py +0 -540
  167. pulumi_snowflake/schema_grant.py +0 -647
  168. pulumi_snowflake/sequence_grant.py +0 -635
  169. pulumi_snowflake/session_parameter.py +0 -332
  170. pulumi_snowflake/stage_grant.py +0 -635
  171. pulumi_snowflake/stream.py +0 -614
  172. pulumi_snowflake/stream_grant.py +0 -635
  173. pulumi_snowflake/table_grant.py +0 -677
  174. pulumi_snowflake/tag_grant.py +0 -532
  175. pulumi_snowflake/tag_masking_policy_association.py +0 -210
  176. pulumi_snowflake/task_grant.py +0 -635
  177. pulumi_snowflake/user_grant.py +0 -394
  178. pulumi_snowflake/user_ownership_grant.py +0 -286
  179. pulumi_snowflake/view_grant.py +0 -705
  180. pulumi_snowflake/warehouse_grant.py +0 -440
  181. pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
  182. {pulumi_snowflake-0.50.3a1710160126.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: Name of the database that the tag was created in.
33
- :param pulumi.Input[str] schema: Name of the schema that the tag was created in.
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: Column 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: Column 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 snowflake_table_constraint instead""", DeprecationWarning)
57
- pulumi.log.warn("""primary_key is deprecated: Use snowflake_table_constraint instead""")
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
- Name of the database that the tag was created in.
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
- Name of the schema that the tag was created in.
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
- Column comment
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
- Column name
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: Column 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: Name of the database that the tag was created in.
216
- :param pulumi.Input[str] name: Column name
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] qualified_name: Qualified name of the table.
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 snowflake_table_constraint instead""", DeprecationWarning)
241
- pulumi.log.warn("""primary_key is deprecated: Use snowflake_table_constraint instead""")
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
- Column comment
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
- Name of the database that the tag was created in.
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
- Column name
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
- Name of the schema that the tag was created in.
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,18 +406,16 @@ 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[pulumi.InputType['TableColumnArgs']]]]] = None,
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[pulumi.InputType['TablePrimaryKeyArgs']]] = None,
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[pulumi.InputType['TableTagArgs']]]]] = None,
416
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableTagArgs', 'TableTagArgsDict']]]]] = None,
420
417
  __props__=None):
421
418
  """
422
- ## Example Usage
423
-
424
419
  ## Import
425
420
 
426
421
  format is database name | schema name | table name
@@ -433,14 +428,14 @@ class Table(pulumi.CustomResource):
433
428
  :param pulumi.ResourceOptions opts: Options for the resource.
434
429
  :param pulumi.Input[bool] change_tracking: Specifies whether to enable change tracking on the table. Default false.
435
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
436
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableColumnArgs']]]] columns: Definitions of a column to create in the table. Minimum one required.
437
- :param pulumi.Input[str] comment: Column 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.
438
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
439
- :param pulumi.Input[str] database: Name of the database that the tag was created in.
440
- :param pulumi.Input[str] name: Column name
441
- :param pulumi.Input[pulumi.InputType['TablePrimaryKeyArgs']] primary_key: Definitions of primary key constraint to create on table
442
- :param pulumi.Input[str] schema: Name of the schema that the tag was created in.
443
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableTagArgs']]]] tags: Definitions of a tag to associate with the resource.
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.
444
439
  """
445
440
  ...
446
441
  @overload
@@ -449,8 +444,6 @@ class Table(pulumi.CustomResource):
449
444
  args: TableArgs,
450
445
  opts: Optional[pulumi.ResourceOptions] = None):
451
446
  """
452
- ## Example Usage
453
-
454
447
  ## Import
455
448
 
456
449
  format is database name | schema name | table name
@@ -476,14 +469,14 @@ class Table(pulumi.CustomResource):
476
469
  opts: Optional[pulumi.ResourceOptions] = None,
477
470
  change_tracking: Optional[pulumi.Input[bool]] = None,
478
471
  cluster_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
479
- columns: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableColumnArgs']]]]] = None,
472
+ columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableColumnArgs', 'TableColumnArgsDict']]]]] = None,
480
473
  comment: Optional[pulumi.Input[str]] = None,
481
474
  data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
482
475
  database: Optional[pulumi.Input[str]] = None,
483
476
  name: Optional[pulumi.Input[str]] = None,
484
- primary_key: Optional[pulumi.Input[pulumi.InputType['TablePrimaryKeyArgs']]] = None,
477
+ primary_key: Optional[pulumi.Input[Union['TablePrimaryKeyArgs', 'TablePrimaryKeyArgsDict']]] = None,
485
478
  schema: Optional[pulumi.Input[str]] = None,
486
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableTagArgs']]]]] = None,
479
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableTagArgs', 'TableTagArgsDict']]]]] = None,
487
480
  __props__=None):
488
481
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
489
482
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -509,8 +502,8 @@ class Table(pulumi.CustomResource):
509
502
  raise TypeError("Missing required property 'schema'")
510
503
  __props__.__dict__["schema"] = schema
511
504
  __props__.__dict__["tags"] = tags
505
+ __props__.__dict__["fully_qualified_name"] = None
512
506
  __props__.__dict__["owner"] = None
513
- __props__.__dict__["qualified_name"] = None
514
507
  super(Table, __self__).__init__(
515
508
  'snowflake:index/table:Table',
516
509
  resource_name,
@@ -523,16 +516,16 @@ class Table(pulumi.CustomResource):
523
516
  opts: Optional[pulumi.ResourceOptions] = None,
524
517
  change_tracking: Optional[pulumi.Input[bool]] = None,
525
518
  cluster_bies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
526
- columns: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableColumnArgs']]]]] = None,
519
+ columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableColumnArgs', 'TableColumnArgsDict']]]]] = None,
527
520
  comment: Optional[pulumi.Input[str]] = None,
528
521
  data_retention_time_in_days: Optional[pulumi.Input[int]] = None,
529
522
  database: Optional[pulumi.Input[str]] = None,
523
+ fully_qualified_name: Optional[pulumi.Input[str]] = None,
530
524
  name: Optional[pulumi.Input[str]] = None,
531
525
  owner: Optional[pulumi.Input[str]] = None,
532
- primary_key: Optional[pulumi.Input[pulumi.InputType['TablePrimaryKeyArgs']]] = None,
533
- qualified_name: Optional[pulumi.Input[str]] = None,
526
+ primary_key: Optional[pulumi.Input[Union['TablePrimaryKeyArgs', 'TablePrimaryKeyArgsDict']]] = None,
534
527
  schema: Optional[pulumi.Input[str]] = None,
535
- tags: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableTagArgs']]]]] = None) -> 'Table':
528
+ tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['TableTagArgs', 'TableTagArgsDict']]]]] = None) -> 'Table':
536
529
  """
537
530
  Get an existing Table resource's state with the given name, id, and optional extra
538
531
  properties used to qualify the lookup.
@@ -542,16 +535,16 @@ class Table(pulumi.CustomResource):
542
535
  :param pulumi.ResourceOptions opts: Options for the resource.
543
536
  :param pulumi.Input[bool] change_tracking: Specifies whether to enable change tracking on the table. Default false.
544
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
545
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TableColumnArgs']]]] columns: Definitions of a column to create in the table. Minimum one required.
546
- :param pulumi.Input[str] comment: Column 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.
547
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
548
- :param pulumi.Input[str] database: Name of the database that the tag was created in.
549
- :param pulumi.Input[str] name: Column name
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.
550
544
  :param pulumi.Input[str] owner: Name of the role that owns the table.
551
- :param pulumi.Input[pulumi.InputType['TablePrimaryKeyArgs']] primary_key: Definitions of primary key constraint to create on table
552
- :param pulumi.Input[str] qualified_name: Qualified name of the table.
553
- :param pulumi.Input[str] schema: Name of the schema that the tag was created in.
554
- :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.
555
548
  """
556
549
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
557
550
 
@@ -563,10 +556,10 @@ class Table(pulumi.CustomResource):
563
556
  __props__.__dict__["comment"] = comment
564
557
  __props__.__dict__["data_retention_time_in_days"] = data_retention_time_in_days
565
558
  __props__.__dict__["database"] = database
559
+ __props__.__dict__["fully_qualified_name"] = fully_qualified_name
566
560
  __props__.__dict__["name"] = name
567
561
  __props__.__dict__["owner"] = owner
568
562
  __props__.__dict__["primary_key"] = primary_key
569
- __props__.__dict__["qualified_name"] = qualified_name
570
563
  __props__.__dict__["schema"] = schema
571
564
  __props__.__dict__["tags"] = tags
572
565
  return Table(resource_name, opts=opts, __props__=__props__)
@@ -599,7 +592,7 @@ class Table(pulumi.CustomResource):
599
592
  @pulumi.getter
600
593
  def comment(self) -> pulumi.Output[Optional[str]]:
601
594
  """
602
- Column comment
595
+ Specifies a comment for the table.
603
596
  """
604
597
  return pulumi.get(self, "comment")
605
598
 
@@ -615,15 +608,23 @@ class Table(pulumi.CustomResource):
615
608
  @pulumi.getter
616
609
  def database(self) -> pulumi.Output[str]:
617
610
  """
618
- Name of the database that the tag was created in.
611
+ The database in which to create the table.
619
612
  """
620
613
  return pulumi.get(self, "database")
621
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
+
622
623
  @property
623
624
  @pulumi.getter
624
625
  def name(self) -> pulumi.Output[str]:
625
626
  """
626
- Column name
627
+ Specifies the identifier for the table; must be unique for the database and schema in which the table is created.
627
628
  """
628
629
  return pulumi.get(self, "name")
629
630
 
@@ -637,39 +638,27 @@ class Table(pulumi.CustomResource):
637
638
 
638
639
  @property
639
640
  @pulumi.getter(name="primaryKey")
641
+ @_utilities.deprecated("""Use TableConstraint instead""")
640
642
  def primary_key(self) -> pulumi.Output[Optional['outputs.TablePrimaryKey']]:
641
643
  """
642
644
  Definitions of primary key constraint to create on table
643
645
  """
644
- warnings.warn("""Use snowflake_table_constraint instead""", DeprecationWarning)
645
- pulumi.log.warn("""primary_key is deprecated: Use snowflake_table_constraint instead""")
646
-
647
646
  return pulumi.get(self, "primary_key")
648
647
 
649
- @property
650
- @pulumi.getter(name="qualifiedName")
651
- def qualified_name(self) -> pulumi.Output[str]:
652
- """
653
- Qualified name of the table.
654
- """
655
- return pulumi.get(self, "qualified_name")
656
-
657
648
  @property
658
649
  @pulumi.getter
659
650
  def schema(self) -> pulumi.Output[str]:
660
651
  """
661
- Name of the schema that the tag was created in.
652
+ The schema in which to create the table.
662
653
  """
663
654
  return pulumi.get(self, "schema")
664
655
 
665
656
  @property
666
657
  @pulumi.getter
658
+ @_utilities.deprecated("""Use the 'snowflake_tag_association' resource instead.""")
667
659
  def tags(self) -> pulumi.Output[Optional[Sequence['outputs.TableTag']]]:
668
660
  """
669
661
  Definitions of a tag to associate with the resource.
670
662
  """
671
- warnings.warn("""Use the 'snowflake_tag_association' resource instead.""", DeprecationWarning)
672
- pulumi.log.warn("""tags is deprecated: Use the 'snowflake_tag_association' resource instead.""")
673
-
674
663
  return pulumi.get(self, "tags")
675
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
- Applies a masking policy to a table column.
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
- Applies a masking policy to a table column.
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.