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
@@ -4,62 +4,58 @@
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
- from . import outputs
12
- from ._inputs import *
13
16
 
14
17
  __all__ = ['TagAssociationArgs', 'TagAssociation']
15
18
 
16
19
  @pulumi.input_type
17
20
  class TagAssociationArgs:
18
21
  def __init__(__self__, *,
19
- object_identifiers: pulumi.Input[Sequence[pulumi.Input['TagAssociationObjectIdentifierArgs']]],
22
+ object_identifiers: pulumi.Input[Sequence[pulumi.Input[str]]],
20
23
  object_type: pulumi.Input[str],
21
24
  tag_id: pulumi.Input[str],
22
25
  tag_value: pulumi.Input[str],
23
- object_name: Optional[pulumi.Input[str]] = None,
24
26
  skip_validation: Optional[pulumi.Input[bool]] = None):
25
27
  """
26
28
  The set of arguments for constructing a TagAssociation resource.
27
- :param pulumi.Input[Sequence[pulumi.Input['TagAssociationObjectIdentifierArgs']]] object_identifiers: Specifies the object identifier for the tag association.
28
- :param pulumi.Input[str] object_type: Specifies the type of object to add a tag to. ex: 'ACCOUNT', 'COLUMN', 'DATABASE', etc. For more information: https://docs.snowflake.com/en/user-guide/object-tagging.html#supported-objects
29
- :param pulumi.Input[str] tag_id: Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
29
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] object_identifiers: Specifies the object identifiers for the tag association.
30
+ :param pulumi.Input[str] object_type: Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
31
+ :param pulumi.Input[str] tag_id: Specifies the identifier for the tag.
30
32
  :param pulumi.Input[str] tag_value: Specifies the value of the tag, (e.g. 'finance' or 'engineering')
31
- :param pulumi.Input[str] object_name: Specifies the object identifier for the tag association.
32
33
  :param pulumi.Input[bool] skip_validation: If true, skips validation of the tag association.
33
34
  """
34
35
  pulumi.set(__self__, "object_identifiers", object_identifiers)
35
36
  pulumi.set(__self__, "object_type", object_type)
36
37
  pulumi.set(__self__, "tag_id", tag_id)
37
38
  pulumi.set(__self__, "tag_value", tag_value)
38
- if object_name is not None:
39
- warnings.warn("""Use `object_identifier` instead""", DeprecationWarning)
40
- pulumi.log.warn("""object_name is deprecated: Use `object_identifier` instead""")
41
- if object_name is not None:
42
- pulumi.set(__self__, "object_name", object_name)
43
39
  if skip_validation is not None:
44
40
  pulumi.set(__self__, "skip_validation", skip_validation)
45
41
 
46
42
  @property
47
43
  @pulumi.getter(name="objectIdentifiers")
48
- def object_identifiers(self) -> pulumi.Input[Sequence[pulumi.Input['TagAssociationObjectIdentifierArgs']]]:
44
+ def object_identifiers(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
49
45
  """
50
- Specifies the object identifier for the tag association.
46
+ Specifies the object identifiers for the tag association.
51
47
  """
52
48
  return pulumi.get(self, "object_identifiers")
53
49
 
54
50
  @object_identifiers.setter
55
- def object_identifiers(self, value: pulumi.Input[Sequence[pulumi.Input['TagAssociationObjectIdentifierArgs']]]):
51
+ def object_identifiers(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
56
52
  pulumi.set(self, "object_identifiers", value)
57
53
 
58
54
  @property
59
55
  @pulumi.getter(name="objectType")
60
56
  def object_type(self) -> pulumi.Input[str]:
61
57
  """
62
- Specifies the type of object to add a tag to. ex: 'ACCOUNT', 'COLUMN', 'DATABASE', etc. For more information: https://docs.snowflake.com/en/user-guide/object-tagging.html#supported-objects
58
+ Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
63
59
  """
64
60
  return pulumi.get(self, "object_type")
65
61
 
@@ -71,7 +67,7 @@ class TagAssociationArgs:
71
67
  @pulumi.getter(name="tagId")
72
68
  def tag_id(self) -> pulumi.Input[str]:
73
69
  """
74
- Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
70
+ Specifies the identifier for the tag.
75
71
  """
76
72
  return pulumi.get(self, "tag_id")
77
73
 
@@ -91,21 +87,6 @@ class TagAssociationArgs:
91
87
  def tag_value(self, value: pulumi.Input[str]):
92
88
  pulumi.set(self, "tag_value", value)
93
89
 
94
- @property
95
- @pulumi.getter(name="objectName")
96
- def object_name(self) -> Optional[pulumi.Input[str]]:
97
- """
98
- Specifies the object identifier for the tag association.
99
- """
100
- warnings.warn("""Use `object_identifier` instead""", DeprecationWarning)
101
- pulumi.log.warn("""object_name is deprecated: Use `object_identifier` instead""")
102
-
103
- return pulumi.get(self, "object_name")
104
-
105
- @object_name.setter
106
- def object_name(self, value: Optional[pulumi.Input[str]]):
107
- pulumi.set(self, "object_name", value)
108
-
109
90
  @property
110
91
  @pulumi.getter(name="skipValidation")
111
92
  def skip_validation(self) -> Optional[pulumi.Input[bool]]:
@@ -122,28 +103,21 @@ class TagAssociationArgs:
122
103
  @pulumi.input_type
123
104
  class _TagAssociationState:
124
105
  def __init__(__self__, *,
125
- object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input['TagAssociationObjectIdentifierArgs']]]] = None,
126
- object_name: Optional[pulumi.Input[str]] = None,
106
+ object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
127
107
  object_type: Optional[pulumi.Input[str]] = None,
128
108
  skip_validation: Optional[pulumi.Input[bool]] = None,
129
109
  tag_id: Optional[pulumi.Input[str]] = None,
130
110
  tag_value: Optional[pulumi.Input[str]] = None):
131
111
  """
132
112
  Input properties used for looking up and filtering TagAssociation resources.
133
- :param pulumi.Input[Sequence[pulumi.Input['TagAssociationObjectIdentifierArgs']]] object_identifiers: Specifies the object identifier for the tag association.
134
- :param pulumi.Input[str] object_name: Specifies the object identifier for the tag association.
135
- :param pulumi.Input[str] object_type: Specifies the type of object to add a tag to. ex: 'ACCOUNT', 'COLUMN', 'DATABASE', etc. For more information: https://docs.snowflake.com/en/user-guide/object-tagging.html#supported-objects
113
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] object_identifiers: Specifies the object identifiers for the tag association.
114
+ :param pulumi.Input[str] object_type: Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
136
115
  :param pulumi.Input[bool] skip_validation: If true, skips validation of the tag association.
137
- :param pulumi.Input[str] tag_id: Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
116
+ :param pulumi.Input[str] tag_id: Specifies the identifier for the tag.
138
117
  :param pulumi.Input[str] tag_value: Specifies the value of the tag, (e.g. 'finance' or 'engineering')
139
118
  """
140
119
  if object_identifiers is not None:
141
120
  pulumi.set(__self__, "object_identifiers", object_identifiers)
142
- if object_name is not None:
143
- warnings.warn("""Use `object_identifier` instead""", DeprecationWarning)
144
- pulumi.log.warn("""object_name is deprecated: Use `object_identifier` instead""")
145
- if object_name is not None:
146
- pulumi.set(__self__, "object_name", object_name)
147
121
  if object_type is not None:
148
122
  pulumi.set(__self__, "object_type", object_type)
149
123
  if skip_validation is not None:
@@ -155,36 +129,21 @@ class _TagAssociationState:
155
129
 
156
130
  @property
157
131
  @pulumi.getter(name="objectIdentifiers")
158
- def object_identifiers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['TagAssociationObjectIdentifierArgs']]]]:
132
+ def object_identifiers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
159
133
  """
160
- Specifies the object identifier for the tag association.
134
+ Specifies the object identifiers for the tag association.
161
135
  """
162
136
  return pulumi.get(self, "object_identifiers")
163
137
 
164
138
  @object_identifiers.setter
165
- def object_identifiers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['TagAssociationObjectIdentifierArgs']]]]):
139
+ def object_identifiers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
166
140
  pulumi.set(self, "object_identifiers", value)
167
141
 
168
- @property
169
- @pulumi.getter(name="objectName")
170
- def object_name(self) -> Optional[pulumi.Input[str]]:
171
- """
172
- Specifies the object identifier for the tag association.
173
- """
174
- warnings.warn("""Use `object_identifier` instead""", DeprecationWarning)
175
- pulumi.log.warn("""object_name is deprecated: Use `object_identifier` instead""")
176
-
177
- return pulumi.get(self, "object_name")
178
-
179
- @object_name.setter
180
- def object_name(self, value: Optional[pulumi.Input[str]]):
181
- pulumi.set(self, "object_name", value)
182
-
183
142
  @property
184
143
  @pulumi.getter(name="objectType")
185
144
  def object_type(self) -> Optional[pulumi.Input[str]]:
186
145
  """
187
- Specifies the type of object to add a tag to. ex: 'ACCOUNT', 'COLUMN', 'DATABASE', etc. For more information: https://docs.snowflake.com/en/user-guide/object-tagging.html#supported-objects
146
+ Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
188
147
  """
189
148
  return pulumi.get(self, "object_type")
190
149
 
@@ -208,7 +167,7 @@ class _TagAssociationState:
208
167
  @pulumi.getter(name="tagId")
209
168
  def tag_id(self) -> Optional[pulumi.Input[str]]:
210
169
  """
211
- Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
170
+ Specifies the identifier for the tag.
212
171
  """
213
172
  return pulumi.get(self, "tag_id")
214
173
 
@@ -234,87 +193,27 @@ class TagAssociation(pulumi.CustomResource):
234
193
  def __init__(__self__,
235
194
  resource_name: str,
236
195
  opts: Optional[pulumi.ResourceOptions] = None,
237
- object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TagAssociationObjectIdentifierArgs']]]]] = None,
238
- object_name: Optional[pulumi.Input[str]] = None,
196
+ object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
239
197
  object_type: Optional[pulumi.Input[str]] = None,
240
198
  skip_validation: Optional[pulumi.Input[bool]] = None,
241
199
  tag_id: Optional[pulumi.Input[str]] = None,
242
200
  tag_value: Optional[pulumi.Input[str]] = None,
243
201
  __props__=None):
244
202
  """
245
- ## Example Usage
246
-
247
- <!--Start PulumiCodeChooser -->
248
- ```python
249
- import pulumi
250
- import pulumi_snowflake as snowflake
251
-
252
- database = snowflake.Database("database")
253
- schema = snowflake.Schema("schema", database=database.name)
254
- tag = snowflake.Tag("tag",
255
- database=database.name,
256
- schema=schema.name,
257
- allowed_values=[
258
- "finance",
259
- "engineering",
260
- ])
261
- db_association = snowflake.TagAssociation("dbAssociation",
262
- object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
263
- name=database.name,
264
- )],
265
- object_type="DATABASE",
266
- tag_id=tag.id,
267
- tag_value="finance")
268
- test = snowflake.Table("test",
269
- database=snowflake_database["test"]["name"],
270
- schema=snowflake_schema["test"]["name"],
271
- comment="Terraform example table",
272
- columns=[
273
- snowflake.TableColumnArgs(
274
- name="column1",
275
- type="VARIANT",
276
- ),
277
- snowflake.TableColumnArgs(
278
- name="column2",
279
- type="VARCHAR(16)",
280
- ),
281
- ])
282
- table_association = snowflake.TagAssociation("tableAssociation",
283
- object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
284
- name=test.name,
285
- database=snowflake_database["test"]["name"],
286
- schema=snowflake_schema["test"]["name"],
287
- )],
288
- object_type="TABLE",
289
- tag_id=snowflake_tag["test"]["id"],
290
- tag_value="engineering")
291
- column_association = snowflake.TagAssociation("columnAssociation",
292
- object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
293
- name=test.name.apply(lambda name: f"{name}.column_name"),
294
- database=snowflake_database["test"]["name"],
295
- schema=snowflake_schema["test"]["name"],
296
- )],
297
- object_type="COLUMN",
298
- tag_id=snowflake_tag["test"]["id"],
299
- tag_value="engineering")
300
- ```
301
- <!--End PulumiCodeChooser -->
302
-
303
203
  ## Import
304
204
 
305
- format is dbName.schemaName.tagName or dbName.schemaName.tagName
205
+ ~> **Note** Due to technical limitations of Terraform SDK, `object_identifiers` are not set during import state. Please run `terraform refresh` after importing to get this field populated.
306
206
 
307
207
  ```sh
308
- $ pulumi import snowflake:index/tagAssociation:TagAssociation example 'dbName.schemaName.tagName'
208
+ $ pulumi import snowflake:index/tagAssociation:TagAssociation example '"TAG_DATABASE"."TAG_SCHEMA"."TAG_NAME"|TAG_VALUE|OBJECT_TYPE'
309
209
  ```
310
210
 
311
211
  :param str resource_name: The name of the resource.
312
212
  :param pulumi.ResourceOptions opts: Options for the resource.
313
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TagAssociationObjectIdentifierArgs']]]] object_identifiers: Specifies the object identifier for the tag association.
314
- :param pulumi.Input[str] object_name: Specifies the object identifier for the tag association.
315
- :param pulumi.Input[str] object_type: Specifies the type of object to add a tag to. ex: 'ACCOUNT', 'COLUMN', 'DATABASE', etc. For more information: https://docs.snowflake.com/en/user-guide/object-tagging.html#supported-objects
213
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] object_identifiers: Specifies the object identifiers for the tag association.
214
+ :param pulumi.Input[str] object_type: Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
316
215
  :param pulumi.Input[bool] skip_validation: If true, skips validation of the tag association.
317
- :param pulumi.Input[str] tag_id: Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
216
+ :param pulumi.Input[str] tag_id: Specifies the identifier for the tag.
318
217
  :param pulumi.Input[str] tag_value: Specifies the value of the tag, (e.g. 'finance' or 'engineering')
319
218
  """
320
219
  ...
@@ -324,70 +223,12 @@ class TagAssociation(pulumi.CustomResource):
324
223
  args: TagAssociationArgs,
325
224
  opts: Optional[pulumi.ResourceOptions] = None):
326
225
  """
327
- ## Example Usage
328
-
329
- <!--Start PulumiCodeChooser -->
330
- ```python
331
- import pulumi
332
- import pulumi_snowflake as snowflake
333
-
334
- database = snowflake.Database("database")
335
- schema = snowflake.Schema("schema", database=database.name)
336
- tag = snowflake.Tag("tag",
337
- database=database.name,
338
- schema=schema.name,
339
- allowed_values=[
340
- "finance",
341
- "engineering",
342
- ])
343
- db_association = snowflake.TagAssociation("dbAssociation",
344
- object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
345
- name=database.name,
346
- )],
347
- object_type="DATABASE",
348
- tag_id=tag.id,
349
- tag_value="finance")
350
- test = snowflake.Table("test",
351
- database=snowflake_database["test"]["name"],
352
- schema=snowflake_schema["test"]["name"],
353
- comment="Terraform example table",
354
- columns=[
355
- snowflake.TableColumnArgs(
356
- name="column1",
357
- type="VARIANT",
358
- ),
359
- snowflake.TableColumnArgs(
360
- name="column2",
361
- type="VARCHAR(16)",
362
- ),
363
- ])
364
- table_association = snowflake.TagAssociation("tableAssociation",
365
- object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
366
- name=test.name,
367
- database=snowflake_database["test"]["name"],
368
- schema=snowflake_schema["test"]["name"],
369
- )],
370
- object_type="TABLE",
371
- tag_id=snowflake_tag["test"]["id"],
372
- tag_value="engineering")
373
- column_association = snowflake.TagAssociation("columnAssociation",
374
- object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
375
- name=test.name.apply(lambda name: f"{name}.column_name"),
376
- database=snowflake_database["test"]["name"],
377
- schema=snowflake_schema["test"]["name"],
378
- )],
379
- object_type="COLUMN",
380
- tag_id=snowflake_tag["test"]["id"],
381
- tag_value="engineering")
382
- ```
383
- <!--End PulumiCodeChooser -->
384
-
385
226
  ## Import
386
227
 
387
- format is dbName.schemaName.tagName or dbName.schemaName.tagName
228
+ ~> **Note** Due to technical limitations of Terraform SDK, `object_identifiers` are not set during import state. Please run `terraform refresh` after importing to get this field populated.
388
229
 
389
230
  ```sh
390
- $ pulumi import snowflake:index/tagAssociation:TagAssociation example 'dbName.schemaName.tagName'
231
+ $ pulumi import snowflake:index/tagAssociation:TagAssociation example '"TAG_DATABASE"."TAG_SCHEMA"."TAG_NAME"|TAG_VALUE|OBJECT_TYPE'
391
232
  ```
392
233
 
393
234
  :param str resource_name: The name of the resource.
@@ -405,8 +246,7 @@ class TagAssociation(pulumi.CustomResource):
405
246
  def _internal_init(__self__,
406
247
  resource_name: str,
407
248
  opts: Optional[pulumi.ResourceOptions] = None,
408
- object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TagAssociationObjectIdentifierArgs']]]]] = None,
409
- object_name: Optional[pulumi.Input[str]] = None,
249
+ object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
410
250
  object_type: Optional[pulumi.Input[str]] = None,
411
251
  skip_validation: Optional[pulumi.Input[bool]] = None,
412
252
  tag_id: Optional[pulumi.Input[str]] = None,
@@ -423,7 +263,6 @@ class TagAssociation(pulumi.CustomResource):
423
263
  if object_identifiers is None and not opts.urn:
424
264
  raise TypeError("Missing required property 'object_identifiers'")
425
265
  __props__.__dict__["object_identifiers"] = object_identifiers
426
- __props__.__dict__["object_name"] = object_name
427
266
  if object_type is None and not opts.urn:
428
267
  raise TypeError("Missing required property 'object_type'")
429
268
  __props__.__dict__["object_type"] = object_type
@@ -444,8 +283,7 @@ class TagAssociation(pulumi.CustomResource):
444
283
  def get(resource_name: str,
445
284
  id: pulumi.Input[str],
446
285
  opts: Optional[pulumi.ResourceOptions] = None,
447
- object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TagAssociationObjectIdentifierArgs']]]]] = None,
448
- object_name: Optional[pulumi.Input[str]] = None,
286
+ object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
449
287
  object_type: Optional[pulumi.Input[str]] = None,
450
288
  skip_validation: Optional[pulumi.Input[bool]] = None,
451
289
  tag_id: Optional[pulumi.Input[str]] = None,
@@ -457,11 +295,10 @@ class TagAssociation(pulumi.CustomResource):
457
295
  :param str resource_name: The unique name of the resulting resource.
458
296
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
459
297
  :param pulumi.ResourceOptions opts: Options for the resource.
460
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['TagAssociationObjectIdentifierArgs']]]] object_identifiers: Specifies the object identifier for the tag association.
461
- :param pulumi.Input[str] object_name: Specifies the object identifier for the tag association.
462
- :param pulumi.Input[str] object_type: Specifies the type of object to add a tag to. ex: 'ACCOUNT', 'COLUMN', 'DATABASE', etc. For more information: https://docs.snowflake.com/en/user-guide/object-tagging.html#supported-objects
298
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] object_identifiers: Specifies the object identifiers for the tag association.
299
+ :param pulumi.Input[str] object_type: Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
463
300
  :param pulumi.Input[bool] skip_validation: If true, skips validation of the tag association.
464
- :param pulumi.Input[str] tag_id: Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
301
+ :param pulumi.Input[str] tag_id: Specifies the identifier for the tag.
465
302
  :param pulumi.Input[str] tag_value: Specifies the value of the tag, (e.g. 'finance' or 'engineering')
466
303
  """
467
304
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -469,7 +306,6 @@ class TagAssociation(pulumi.CustomResource):
469
306
  __props__ = _TagAssociationState.__new__(_TagAssociationState)
470
307
 
471
308
  __props__.__dict__["object_identifiers"] = object_identifiers
472
- __props__.__dict__["object_name"] = object_name
473
309
  __props__.__dict__["object_type"] = object_type
474
310
  __props__.__dict__["skip_validation"] = skip_validation
475
311
  __props__.__dict__["tag_id"] = tag_id
@@ -478,28 +314,17 @@ class TagAssociation(pulumi.CustomResource):
478
314
 
479
315
  @property
480
316
  @pulumi.getter(name="objectIdentifiers")
481
- def object_identifiers(self) -> pulumi.Output[Sequence['outputs.TagAssociationObjectIdentifier']]:
317
+ def object_identifiers(self) -> pulumi.Output[Sequence[str]]:
482
318
  """
483
- Specifies the object identifier for the tag association.
319
+ Specifies the object identifiers for the tag association.
484
320
  """
485
321
  return pulumi.get(self, "object_identifiers")
486
322
 
487
- @property
488
- @pulumi.getter(name="objectName")
489
- def object_name(self) -> pulumi.Output[Optional[str]]:
490
- """
491
- Specifies the object identifier for the tag association.
492
- """
493
- warnings.warn("""Use `object_identifier` instead""", DeprecationWarning)
494
- pulumi.log.warn("""object_name is deprecated: Use `object_identifier` instead""")
495
-
496
- return pulumi.get(self, "object_name")
497
-
498
323
  @property
499
324
  @pulumi.getter(name="objectType")
500
325
  def object_type(self) -> pulumi.Output[str]:
501
326
  """
502
- Specifies the type of object to add a tag to. ex: 'ACCOUNT', 'COLUMN', 'DATABASE', etc. For more information: https://docs.snowflake.com/en/user-guide/object-tagging.html#supported-objects
327
+ Specifies the type of object to add a tag. Allowed object types: [ACCOUNT APPLICATION APPLICATION PACKAGE DATABASE FAILOVER GROUP INTEGRATION NETWORK POLICY REPLICATION GROUP ROLE SHARE USER WAREHOUSE DATABASE ROLE SCHEMA ALERT SNOWFLAKE.CORE.BUDGET SNOWFLAKE.ML.CLASSIFICATION EXTERNAL FUNCTION EXTERNAL TABLE FUNCTION GIT REPOSITORY ICEBERG TABLE MATERIALIZED VIEW PIPE MASKING POLICY PASSWORD POLICY ROW ACCESS POLICY SESSION POLICY PRIVACY POLICY PROCEDURE STAGE STREAM TABLE TASK VIEW COLUMN EVENT TABLE].
503
328
  """
504
329
  return pulumi.get(self, "object_type")
505
330
 
@@ -515,7 +340,7 @@ class TagAssociation(pulumi.CustomResource):
515
340
  @pulumi.getter(name="tagId")
516
341
  def tag_id(self) -> pulumi.Output[str]:
517
342
  """
518
- Specifies the identifier for the tag. Note: format must follow: "databaseName"."schemaName"."tagName" or "databaseName.schemaName.tagName" or "databaseName|schemaName.tagName" (snowflake_tag.tag.id)
343
+ Specifies the identifier for the tag.
519
344
  """
520
345
  return pulumi.get(self, "tag_id")
521
346