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
|
@@ -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[
|
|
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[
|
|
28
|
-
:param pulumi.Input[str] object_type: Specifies the type of object to add a tag
|
|
29
|
-
:param pulumi.Input[str] tag_id: Specifies the identifier for the tag.
|
|
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[
|
|
44
|
+
def object_identifiers(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
49
45
|
"""
|
|
50
|
-
Specifies the object
|
|
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[
|
|
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
|
|
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.
|
|
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[
|
|
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[
|
|
134
|
-
:param pulumi.Input[str]
|
|
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.
|
|
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[
|
|
132
|
+
def object_identifiers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
159
133
|
"""
|
|
160
|
-
Specifies the object
|
|
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[
|
|
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
|
|
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.
|
|
170
|
+
Specifies the identifier for the tag.
|
|
212
171
|
"""
|
|
213
172
|
return pulumi.get(self, "tag_id")
|
|
214
173
|
|
|
@@ -234,85 +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[
|
|
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
|
-
```python
|
|
248
|
-
import pulumi
|
|
249
|
-
import pulumi_snowflake as snowflake
|
|
250
|
-
|
|
251
|
-
database = snowflake.Database("database")
|
|
252
|
-
schema = snowflake.Schema("schema", database=database.name)
|
|
253
|
-
tag = snowflake.Tag("tag",
|
|
254
|
-
database=database.name,
|
|
255
|
-
schema=schema.name,
|
|
256
|
-
allowed_values=[
|
|
257
|
-
"finance",
|
|
258
|
-
"engineering",
|
|
259
|
-
])
|
|
260
|
-
db_association = snowflake.TagAssociation("dbAssociation",
|
|
261
|
-
object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
|
|
262
|
-
name=database.name,
|
|
263
|
-
)],
|
|
264
|
-
object_type="DATABASE",
|
|
265
|
-
tag_id=tag.id,
|
|
266
|
-
tag_value="finance")
|
|
267
|
-
test = snowflake.Table("test",
|
|
268
|
-
database=snowflake_database["test"]["name"],
|
|
269
|
-
schema=snowflake_schema["test"]["name"],
|
|
270
|
-
comment="Terraform example table",
|
|
271
|
-
columns=[
|
|
272
|
-
snowflake.TableColumnArgs(
|
|
273
|
-
name="column1",
|
|
274
|
-
type="VARIANT",
|
|
275
|
-
),
|
|
276
|
-
snowflake.TableColumnArgs(
|
|
277
|
-
name="column2",
|
|
278
|
-
type="VARCHAR(16)",
|
|
279
|
-
),
|
|
280
|
-
])
|
|
281
|
-
table_association = snowflake.TagAssociation("tableAssociation",
|
|
282
|
-
object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
|
|
283
|
-
name=test.name,
|
|
284
|
-
database=snowflake_database["test"]["name"],
|
|
285
|
-
schema=snowflake_schema["test"]["name"],
|
|
286
|
-
)],
|
|
287
|
-
object_type="TABLE",
|
|
288
|
-
tag_id=snowflake_tag["test"]["id"],
|
|
289
|
-
tag_value="engineering")
|
|
290
|
-
column_association = snowflake.TagAssociation("columnAssociation",
|
|
291
|
-
object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
|
|
292
|
-
name=test.name.apply(lambda name: f"{name}.column_name"),
|
|
293
|
-
database=snowflake_database["test"]["name"],
|
|
294
|
-
schema=snowflake_schema["test"]["name"],
|
|
295
|
-
)],
|
|
296
|
-
object_type="COLUMN",
|
|
297
|
-
tag_id=snowflake_tag["test"]["id"],
|
|
298
|
-
tag_value="engineering")
|
|
299
|
-
```
|
|
300
|
-
|
|
301
203
|
## Import
|
|
302
204
|
|
|
303
|
-
|
|
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.
|
|
304
206
|
|
|
305
207
|
```sh
|
|
306
|
-
$ pulumi import snowflake:index/tagAssociation:TagAssociation example '
|
|
208
|
+
$ pulumi import snowflake:index/tagAssociation:TagAssociation example '"TAG_DATABASE"."TAG_SCHEMA"."TAG_NAME"|TAG_VALUE|OBJECT_TYPE'
|
|
307
209
|
```
|
|
308
210
|
|
|
309
211
|
:param str resource_name: The name of the resource.
|
|
310
212
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
311
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
312
|
-
:param pulumi.Input[str]
|
|
313
|
-
: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].
|
|
314
215
|
:param pulumi.Input[bool] skip_validation: If true, skips validation of the tag association.
|
|
315
|
-
:param pulumi.Input[str] tag_id: Specifies the identifier for the tag.
|
|
216
|
+
:param pulumi.Input[str] tag_id: Specifies the identifier for the tag.
|
|
316
217
|
:param pulumi.Input[str] tag_value: Specifies the value of the tag, (e.g. 'finance' or 'engineering')
|
|
317
218
|
"""
|
|
318
219
|
...
|
|
@@ -322,68 +223,12 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
322
223
|
args: TagAssociationArgs,
|
|
323
224
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
324
225
|
"""
|
|
325
|
-
## Example Usage
|
|
326
|
-
|
|
327
|
-
```python
|
|
328
|
-
import pulumi
|
|
329
|
-
import pulumi_snowflake as snowflake
|
|
330
|
-
|
|
331
|
-
database = snowflake.Database("database")
|
|
332
|
-
schema = snowflake.Schema("schema", database=database.name)
|
|
333
|
-
tag = snowflake.Tag("tag",
|
|
334
|
-
database=database.name,
|
|
335
|
-
schema=schema.name,
|
|
336
|
-
allowed_values=[
|
|
337
|
-
"finance",
|
|
338
|
-
"engineering",
|
|
339
|
-
])
|
|
340
|
-
db_association = snowflake.TagAssociation("dbAssociation",
|
|
341
|
-
object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
|
|
342
|
-
name=database.name,
|
|
343
|
-
)],
|
|
344
|
-
object_type="DATABASE",
|
|
345
|
-
tag_id=tag.id,
|
|
346
|
-
tag_value="finance")
|
|
347
|
-
test = snowflake.Table("test",
|
|
348
|
-
database=snowflake_database["test"]["name"],
|
|
349
|
-
schema=snowflake_schema["test"]["name"],
|
|
350
|
-
comment="Terraform example table",
|
|
351
|
-
columns=[
|
|
352
|
-
snowflake.TableColumnArgs(
|
|
353
|
-
name="column1",
|
|
354
|
-
type="VARIANT",
|
|
355
|
-
),
|
|
356
|
-
snowflake.TableColumnArgs(
|
|
357
|
-
name="column2",
|
|
358
|
-
type="VARCHAR(16)",
|
|
359
|
-
),
|
|
360
|
-
])
|
|
361
|
-
table_association = snowflake.TagAssociation("tableAssociation",
|
|
362
|
-
object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
|
|
363
|
-
name=test.name,
|
|
364
|
-
database=snowflake_database["test"]["name"],
|
|
365
|
-
schema=snowflake_schema["test"]["name"],
|
|
366
|
-
)],
|
|
367
|
-
object_type="TABLE",
|
|
368
|
-
tag_id=snowflake_tag["test"]["id"],
|
|
369
|
-
tag_value="engineering")
|
|
370
|
-
column_association = snowflake.TagAssociation("columnAssociation",
|
|
371
|
-
object_identifiers=[snowflake.TagAssociationObjectIdentifierArgs(
|
|
372
|
-
name=test.name.apply(lambda name: f"{name}.column_name"),
|
|
373
|
-
database=snowflake_database["test"]["name"],
|
|
374
|
-
schema=snowflake_schema["test"]["name"],
|
|
375
|
-
)],
|
|
376
|
-
object_type="COLUMN",
|
|
377
|
-
tag_id=snowflake_tag["test"]["id"],
|
|
378
|
-
tag_value="engineering")
|
|
379
|
-
```
|
|
380
|
-
|
|
381
226
|
## Import
|
|
382
227
|
|
|
383
|
-
|
|
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.
|
|
384
229
|
|
|
385
230
|
```sh
|
|
386
|
-
$ pulumi import snowflake:index/tagAssociation:TagAssociation example '
|
|
231
|
+
$ pulumi import snowflake:index/tagAssociation:TagAssociation example '"TAG_DATABASE"."TAG_SCHEMA"."TAG_NAME"|TAG_VALUE|OBJECT_TYPE'
|
|
387
232
|
```
|
|
388
233
|
|
|
389
234
|
:param str resource_name: The name of the resource.
|
|
@@ -401,8 +246,7 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
401
246
|
def _internal_init(__self__,
|
|
402
247
|
resource_name: str,
|
|
403
248
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
404
|
-
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
405
|
-
object_name: Optional[pulumi.Input[str]] = None,
|
|
249
|
+
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
406
250
|
object_type: Optional[pulumi.Input[str]] = None,
|
|
407
251
|
skip_validation: Optional[pulumi.Input[bool]] = None,
|
|
408
252
|
tag_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -419,7 +263,6 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
419
263
|
if object_identifiers is None and not opts.urn:
|
|
420
264
|
raise TypeError("Missing required property 'object_identifiers'")
|
|
421
265
|
__props__.__dict__["object_identifiers"] = object_identifiers
|
|
422
|
-
__props__.__dict__["object_name"] = object_name
|
|
423
266
|
if object_type is None and not opts.urn:
|
|
424
267
|
raise TypeError("Missing required property 'object_type'")
|
|
425
268
|
__props__.__dict__["object_type"] = object_type
|
|
@@ -440,8 +283,7 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
440
283
|
def get(resource_name: str,
|
|
441
284
|
id: pulumi.Input[str],
|
|
442
285
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
443
|
-
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
444
|
-
object_name: Optional[pulumi.Input[str]] = None,
|
|
286
|
+
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
445
287
|
object_type: Optional[pulumi.Input[str]] = None,
|
|
446
288
|
skip_validation: Optional[pulumi.Input[bool]] = None,
|
|
447
289
|
tag_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -453,11 +295,10 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
453
295
|
:param str resource_name: The unique name of the resulting resource.
|
|
454
296
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
455
297
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
456
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
457
|
-
:param pulumi.Input[str]
|
|
458
|
-
: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].
|
|
459
300
|
:param pulumi.Input[bool] skip_validation: If true, skips validation of the tag association.
|
|
460
|
-
:param pulumi.Input[str] tag_id: Specifies the identifier for the tag.
|
|
301
|
+
:param pulumi.Input[str] tag_id: Specifies the identifier for the tag.
|
|
461
302
|
:param pulumi.Input[str] tag_value: Specifies the value of the tag, (e.g. 'finance' or 'engineering')
|
|
462
303
|
"""
|
|
463
304
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -465,7 +306,6 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
465
306
|
__props__ = _TagAssociationState.__new__(_TagAssociationState)
|
|
466
307
|
|
|
467
308
|
__props__.__dict__["object_identifiers"] = object_identifiers
|
|
468
|
-
__props__.__dict__["object_name"] = object_name
|
|
469
309
|
__props__.__dict__["object_type"] = object_type
|
|
470
310
|
__props__.__dict__["skip_validation"] = skip_validation
|
|
471
311
|
__props__.__dict__["tag_id"] = tag_id
|
|
@@ -474,28 +314,17 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
474
314
|
|
|
475
315
|
@property
|
|
476
316
|
@pulumi.getter(name="objectIdentifiers")
|
|
477
|
-
def object_identifiers(self) -> pulumi.Output[Sequence[
|
|
317
|
+
def object_identifiers(self) -> pulumi.Output[Sequence[str]]:
|
|
478
318
|
"""
|
|
479
|
-
Specifies the object
|
|
319
|
+
Specifies the object identifiers for the tag association.
|
|
480
320
|
"""
|
|
481
321
|
return pulumi.get(self, "object_identifiers")
|
|
482
322
|
|
|
483
|
-
@property
|
|
484
|
-
@pulumi.getter(name="objectName")
|
|
485
|
-
def object_name(self) -> pulumi.Output[Optional[str]]:
|
|
486
|
-
"""
|
|
487
|
-
Specifies the object identifier for the tag association.
|
|
488
|
-
"""
|
|
489
|
-
warnings.warn("""Use `object_identifier` instead""", DeprecationWarning)
|
|
490
|
-
pulumi.log.warn("""object_name is deprecated: Use `object_identifier` instead""")
|
|
491
|
-
|
|
492
|
-
return pulumi.get(self, "object_name")
|
|
493
|
-
|
|
494
323
|
@property
|
|
495
324
|
@pulumi.getter(name="objectType")
|
|
496
325
|
def object_type(self) -> pulumi.Output[str]:
|
|
497
326
|
"""
|
|
498
|
-
Specifies the type of object to add a tag
|
|
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].
|
|
499
328
|
"""
|
|
500
329
|
return pulumi.get(self, "object_type")
|
|
501
330
|
|
|
@@ -511,7 +340,7 @@ class TagAssociation(pulumi.CustomResource):
|
|
|
511
340
|
@pulumi.getter(name="tagId")
|
|
512
341
|
def tag_id(self) -> pulumi.Output[str]:
|
|
513
342
|
"""
|
|
514
|
-
Specifies the identifier for the tag.
|
|
343
|
+
Specifies the identifier for the tag.
|
|
515
344
|
"""
|
|
516
345
|
return pulumi.get(self, "tag_id")
|
|
517
346
|
|