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,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 *
|
|
@@ -34,15 +39,15 @@ class ExternalTableArgs:
|
|
|
34
39
|
"""
|
|
35
40
|
The set of arguments for constructing a ExternalTable resource.
|
|
36
41
|
:param pulumi.Input[Sequence[pulumi.Input['ExternalTableColumnArgs']]] columns: Definitions of a column to create in the external table. Minimum one required.
|
|
37
|
-
:param pulumi.Input[str] database:
|
|
42
|
+
:param pulumi.Input[str] database: The database in which to create the external table.
|
|
38
43
|
:param pulumi.Input[str] file_format: Specifies the file format for the external table.
|
|
39
44
|
:param pulumi.Input[str] location: Specifies a location for the external table.
|
|
40
|
-
:param pulumi.Input[str] schema:
|
|
45
|
+
:param pulumi.Input[str] schema: The schema in which to create the external table.
|
|
41
46
|
:param pulumi.Input[bool] auto_refresh: Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.
|
|
42
47
|
:param pulumi.Input[str] aws_sns_topic: Specifies the aws sns topic for the external table.
|
|
43
48
|
:param pulumi.Input[str] comment: Specifies a comment for the external table.
|
|
44
49
|
:param pulumi.Input[bool] copy_grants: Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant
|
|
45
|
-
:param pulumi.Input[str] name:
|
|
50
|
+
:param pulumi.Input[str] name: Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
|
|
46
51
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_bies: Specifies any partition columns to evaluate for the external table.
|
|
47
52
|
:param pulumi.Input[str] pattern: Specifies the file names and/or paths on the external stage to match.
|
|
48
53
|
:param pulumi.Input[bool] refresh_on_create: Specifies weather to refresh when an external table is created.
|
|
@@ -94,7 +99,7 @@ class ExternalTableArgs:
|
|
|
94
99
|
@pulumi.getter
|
|
95
100
|
def database(self) -> pulumi.Input[str]:
|
|
96
101
|
"""
|
|
97
|
-
|
|
102
|
+
The database in which to create the external table.
|
|
98
103
|
"""
|
|
99
104
|
return pulumi.get(self, "database")
|
|
100
105
|
|
|
@@ -130,7 +135,7 @@ class ExternalTableArgs:
|
|
|
130
135
|
@pulumi.getter
|
|
131
136
|
def schema(self) -> pulumi.Input[str]:
|
|
132
137
|
"""
|
|
133
|
-
|
|
138
|
+
The schema in which to create the external table.
|
|
134
139
|
"""
|
|
135
140
|
return pulumi.get(self, "schema")
|
|
136
141
|
|
|
@@ -190,7 +195,7 @@ class ExternalTableArgs:
|
|
|
190
195
|
@pulumi.getter
|
|
191
196
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
192
197
|
"""
|
|
193
|
-
|
|
198
|
+
Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
|
|
194
199
|
"""
|
|
195
200
|
return pulumi.get(self, "name")
|
|
196
201
|
|
|
@@ -248,13 +253,11 @@ class ExternalTableArgs:
|
|
|
248
253
|
|
|
249
254
|
@property
|
|
250
255
|
@pulumi.getter
|
|
256
|
+
@_utilities.deprecated("""Use the 'snowflake_tag_association' resource instead.""")
|
|
251
257
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ExternalTableTagArgs']]]]:
|
|
252
258
|
"""
|
|
253
259
|
Definitions of a tag to associate with the resource.
|
|
254
260
|
"""
|
|
255
|
-
warnings.warn("""Use the 'snowflake_tag_association' resource instead.""", DeprecationWarning)
|
|
256
|
-
pulumi.log.warn("""tags is deprecated: Use the 'snowflake_tag_association' resource instead.""")
|
|
257
|
-
|
|
258
261
|
return pulumi.get(self, "tags")
|
|
259
262
|
|
|
260
263
|
@tags.setter
|
|
@@ -272,6 +275,7 @@ class _ExternalTableState:
|
|
|
272
275
|
copy_grants: Optional[pulumi.Input[bool]] = None,
|
|
273
276
|
database: Optional[pulumi.Input[str]] = None,
|
|
274
277
|
file_format: Optional[pulumi.Input[str]] = None,
|
|
278
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
275
279
|
location: Optional[pulumi.Input[str]] = None,
|
|
276
280
|
name: Optional[pulumi.Input[str]] = None,
|
|
277
281
|
owner: Optional[pulumi.Input[str]] = None,
|
|
@@ -288,15 +292,16 @@ class _ExternalTableState:
|
|
|
288
292
|
:param pulumi.Input[Sequence[pulumi.Input['ExternalTableColumnArgs']]] columns: Definitions of a column to create in the external table. Minimum one required.
|
|
289
293
|
:param pulumi.Input[str] comment: Specifies a comment for the external table.
|
|
290
294
|
:param pulumi.Input[bool] copy_grants: Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant
|
|
291
|
-
:param pulumi.Input[str] database:
|
|
295
|
+
:param pulumi.Input[str] database: The database in which to create the external table.
|
|
292
296
|
:param pulumi.Input[str] file_format: Specifies the file format for the external table.
|
|
297
|
+
: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).
|
|
293
298
|
:param pulumi.Input[str] location: Specifies a location for the external table.
|
|
294
|
-
:param pulumi.Input[str] name:
|
|
299
|
+
:param pulumi.Input[str] name: Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
|
|
295
300
|
:param pulumi.Input[str] owner: Name of the role that owns the external table.
|
|
296
301
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_bies: Specifies any partition columns to evaluate for the external table.
|
|
297
302
|
:param pulumi.Input[str] pattern: Specifies the file names and/or paths on the external stage to match.
|
|
298
303
|
:param pulumi.Input[bool] refresh_on_create: Specifies weather to refresh when an external table is created.
|
|
299
|
-
:param pulumi.Input[str] schema:
|
|
304
|
+
:param pulumi.Input[str] schema: The schema in which to create the external table.
|
|
300
305
|
:param pulumi.Input[str] table_format: Identifies the external table table type. For now, only "delta" for Delta Lake table format is supported.
|
|
301
306
|
:param pulumi.Input[Sequence[pulumi.Input['ExternalTableTagArgs']]] tags: Definitions of a tag to associate with the resource.
|
|
302
307
|
"""
|
|
@@ -314,6 +319,8 @@ class _ExternalTableState:
|
|
|
314
319
|
pulumi.set(__self__, "database", database)
|
|
315
320
|
if file_format is not None:
|
|
316
321
|
pulumi.set(__self__, "file_format", file_format)
|
|
322
|
+
if fully_qualified_name is not None:
|
|
323
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
317
324
|
if location is not None:
|
|
318
325
|
pulumi.set(__self__, "location", location)
|
|
319
326
|
if name is not None:
|
|
@@ -400,7 +407,7 @@ class _ExternalTableState:
|
|
|
400
407
|
@pulumi.getter
|
|
401
408
|
def database(self) -> Optional[pulumi.Input[str]]:
|
|
402
409
|
"""
|
|
403
|
-
|
|
410
|
+
The database in which to create the external table.
|
|
404
411
|
"""
|
|
405
412
|
return pulumi.get(self, "database")
|
|
406
413
|
|
|
@@ -420,6 +427,18 @@ class _ExternalTableState:
|
|
|
420
427
|
def file_format(self, value: Optional[pulumi.Input[str]]):
|
|
421
428
|
pulumi.set(self, "file_format", value)
|
|
422
429
|
|
|
430
|
+
@property
|
|
431
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
432
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
433
|
+
"""
|
|
434
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
435
|
+
"""
|
|
436
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
437
|
+
|
|
438
|
+
@fully_qualified_name.setter
|
|
439
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
440
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
441
|
+
|
|
423
442
|
@property
|
|
424
443
|
@pulumi.getter
|
|
425
444
|
def location(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -436,7 +455,7 @@ class _ExternalTableState:
|
|
|
436
455
|
@pulumi.getter
|
|
437
456
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
438
457
|
"""
|
|
439
|
-
|
|
458
|
+
Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
|
|
440
459
|
"""
|
|
441
460
|
return pulumi.get(self, "name")
|
|
442
461
|
|
|
@@ -496,7 +515,7 @@ class _ExternalTableState:
|
|
|
496
515
|
@pulumi.getter
|
|
497
516
|
def schema(self) -> Optional[pulumi.Input[str]]:
|
|
498
517
|
"""
|
|
499
|
-
|
|
518
|
+
The schema in which to create the external table.
|
|
500
519
|
"""
|
|
501
520
|
return pulumi.get(self, "schema")
|
|
502
521
|
|
|
@@ -518,13 +537,11 @@ class _ExternalTableState:
|
|
|
518
537
|
|
|
519
538
|
@property
|
|
520
539
|
@pulumi.getter
|
|
540
|
+
@_utilities.deprecated("""Use the 'snowflake_tag_association' resource instead.""")
|
|
521
541
|
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ExternalTableTagArgs']]]]:
|
|
522
542
|
"""
|
|
523
543
|
Definitions of a tag to associate with the resource.
|
|
524
544
|
"""
|
|
525
|
-
warnings.warn("""Use the 'snowflake_tag_association' resource instead.""", DeprecationWarning)
|
|
526
|
-
pulumi.log.warn("""tags is deprecated: Use the 'snowflake_tag_association' resource instead.""")
|
|
527
|
-
|
|
528
545
|
return pulumi.get(self, "tags")
|
|
529
546
|
|
|
530
547
|
@tags.setter
|
|
@@ -539,7 +556,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
539
556
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
540
557
|
auto_refresh: Optional[pulumi.Input[bool]] = None,
|
|
541
558
|
aws_sns_topic: Optional[pulumi.Input[str]] = None,
|
|
542
|
-
columns: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
559
|
+
columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableColumnArgs', 'ExternalTableColumnArgsDict']]]]] = None,
|
|
543
560
|
comment: Optional[pulumi.Input[str]] = None,
|
|
544
561
|
copy_grants: Optional[pulumi.Input[bool]] = None,
|
|
545
562
|
database: Optional[pulumi.Input[str]] = None,
|
|
@@ -551,32 +568,9 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
551
568
|
refresh_on_create: Optional[pulumi.Input[bool]] = None,
|
|
552
569
|
schema: Optional[pulumi.Input[str]] = None,
|
|
553
570
|
table_format: Optional[pulumi.Input[str]] = None,
|
|
554
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
571
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableTagArgs', 'ExternalTableTagArgsDict']]]]] = None,
|
|
555
572
|
__props__=None):
|
|
556
573
|
"""
|
|
557
|
-
## Example Usage
|
|
558
|
-
|
|
559
|
-
```python
|
|
560
|
-
import pulumi
|
|
561
|
-
import pulumi_snowflake as snowflake
|
|
562
|
-
|
|
563
|
-
external_table = snowflake.ExternalTable("externalTable",
|
|
564
|
-
columns=[
|
|
565
|
-
snowflake.ExternalTableColumnArgs(
|
|
566
|
-
name="id",
|
|
567
|
-
type="int",
|
|
568
|
-
),
|
|
569
|
-
snowflake.ExternalTableColumnArgs(
|
|
570
|
-
name="data",
|
|
571
|
-
type="text",
|
|
572
|
-
),
|
|
573
|
-
],
|
|
574
|
-
comment="External table",
|
|
575
|
-
database="db",
|
|
576
|
-
file_format="TYPE = CSV FIELD_DELIMITER = '|'",
|
|
577
|
-
schema="schema")
|
|
578
|
-
```
|
|
579
|
-
|
|
580
574
|
## Import
|
|
581
575
|
|
|
582
576
|
format is database name | schema name | external table name
|
|
@@ -589,19 +583,19 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
589
583
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
590
584
|
:param pulumi.Input[bool] auto_refresh: Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.
|
|
591
585
|
:param pulumi.Input[str] aws_sns_topic: Specifies the aws sns topic for the external table.
|
|
592
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
586
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableColumnArgs', 'ExternalTableColumnArgsDict']]]] columns: Definitions of a column to create in the external table. Minimum one required.
|
|
593
587
|
:param pulumi.Input[str] comment: Specifies a comment for the external table.
|
|
594
588
|
:param pulumi.Input[bool] copy_grants: Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant
|
|
595
|
-
:param pulumi.Input[str] database:
|
|
589
|
+
:param pulumi.Input[str] database: The database in which to create the external table.
|
|
596
590
|
:param pulumi.Input[str] file_format: Specifies the file format for the external table.
|
|
597
591
|
:param pulumi.Input[str] location: Specifies a location for the external table.
|
|
598
|
-
:param pulumi.Input[str] name:
|
|
592
|
+
:param pulumi.Input[str] name: Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
|
|
599
593
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_bies: Specifies any partition columns to evaluate for the external table.
|
|
600
594
|
:param pulumi.Input[str] pattern: Specifies the file names and/or paths on the external stage to match.
|
|
601
595
|
:param pulumi.Input[bool] refresh_on_create: Specifies weather to refresh when an external table is created.
|
|
602
|
-
:param pulumi.Input[str] schema:
|
|
596
|
+
:param pulumi.Input[str] schema: The schema in which to create the external table.
|
|
603
597
|
:param pulumi.Input[str] table_format: Identifies the external table table type. For now, only "delta" for Delta Lake table format is supported.
|
|
604
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
598
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableTagArgs', 'ExternalTableTagArgsDict']]]] tags: Definitions of a tag to associate with the resource.
|
|
605
599
|
"""
|
|
606
600
|
...
|
|
607
601
|
@overload
|
|
@@ -610,29 +604,6 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
610
604
|
args: ExternalTableArgs,
|
|
611
605
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
612
606
|
"""
|
|
613
|
-
## Example Usage
|
|
614
|
-
|
|
615
|
-
```python
|
|
616
|
-
import pulumi
|
|
617
|
-
import pulumi_snowflake as snowflake
|
|
618
|
-
|
|
619
|
-
external_table = snowflake.ExternalTable("externalTable",
|
|
620
|
-
columns=[
|
|
621
|
-
snowflake.ExternalTableColumnArgs(
|
|
622
|
-
name="id",
|
|
623
|
-
type="int",
|
|
624
|
-
),
|
|
625
|
-
snowflake.ExternalTableColumnArgs(
|
|
626
|
-
name="data",
|
|
627
|
-
type="text",
|
|
628
|
-
),
|
|
629
|
-
],
|
|
630
|
-
comment="External table",
|
|
631
|
-
database="db",
|
|
632
|
-
file_format="TYPE = CSV FIELD_DELIMITER = '|'",
|
|
633
|
-
schema="schema")
|
|
634
|
-
```
|
|
635
|
-
|
|
636
607
|
## Import
|
|
637
608
|
|
|
638
609
|
format is database name | schema name | external table name
|
|
@@ -658,7 +629,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
658
629
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
659
630
|
auto_refresh: Optional[pulumi.Input[bool]] = None,
|
|
660
631
|
aws_sns_topic: Optional[pulumi.Input[str]] = None,
|
|
661
|
-
columns: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
632
|
+
columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableColumnArgs', 'ExternalTableColumnArgsDict']]]]] = None,
|
|
662
633
|
comment: Optional[pulumi.Input[str]] = None,
|
|
663
634
|
copy_grants: Optional[pulumi.Input[bool]] = None,
|
|
664
635
|
database: Optional[pulumi.Input[str]] = None,
|
|
@@ -670,7 +641,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
670
641
|
refresh_on_create: Optional[pulumi.Input[bool]] = None,
|
|
671
642
|
schema: Optional[pulumi.Input[str]] = None,
|
|
672
643
|
table_format: Optional[pulumi.Input[str]] = None,
|
|
673
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
644
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableTagArgs', 'ExternalTableTagArgsDict']]]]] = None,
|
|
674
645
|
__props__=None):
|
|
675
646
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
676
647
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -705,6 +676,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
705
676
|
__props__.__dict__["schema"] = schema
|
|
706
677
|
__props__.__dict__["table_format"] = table_format
|
|
707
678
|
__props__.__dict__["tags"] = tags
|
|
679
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
708
680
|
__props__.__dict__["owner"] = None
|
|
709
681
|
super(ExternalTable, __self__).__init__(
|
|
710
682
|
'snowflake:index/externalTable:ExternalTable',
|
|
@@ -718,11 +690,12 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
718
690
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
719
691
|
auto_refresh: Optional[pulumi.Input[bool]] = None,
|
|
720
692
|
aws_sns_topic: Optional[pulumi.Input[str]] = None,
|
|
721
|
-
columns: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
693
|
+
columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableColumnArgs', 'ExternalTableColumnArgsDict']]]]] = None,
|
|
722
694
|
comment: Optional[pulumi.Input[str]] = None,
|
|
723
695
|
copy_grants: Optional[pulumi.Input[bool]] = None,
|
|
724
696
|
database: Optional[pulumi.Input[str]] = None,
|
|
725
697
|
file_format: Optional[pulumi.Input[str]] = None,
|
|
698
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
726
699
|
location: Optional[pulumi.Input[str]] = None,
|
|
727
700
|
name: Optional[pulumi.Input[str]] = None,
|
|
728
701
|
owner: Optional[pulumi.Input[str]] = None,
|
|
@@ -731,7 +704,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
731
704
|
refresh_on_create: Optional[pulumi.Input[bool]] = None,
|
|
732
705
|
schema: Optional[pulumi.Input[str]] = None,
|
|
733
706
|
table_format: Optional[pulumi.Input[str]] = None,
|
|
734
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
707
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableTagArgs', 'ExternalTableTagArgsDict']]]]] = None) -> 'ExternalTable':
|
|
735
708
|
"""
|
|
736
709
|
Get an existing ExternalTable resource's state with the given name, id, and optional extra
|
|
737
710
|
properties used to qualify the lookup.
|
|
@@ -741,20 +714,21 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
741
714
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
742
715
|
:param pulumi.Input[bool] auto_refresh: Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.
|
|
743
716
|
:param pulumi.Input[str] aws_sns_topic: Specifies the aws sns topic for the external table.
|
|
744
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
717
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableColumnArgs', 'ExternalTableColumnArgsDict']]]] columns: Definitions of a column to create in the external table. Minimum one required.
|
|
745
718
|
:param pulumi.Input[str] comment: Specifies a comment for the external table.
|
|
746
719
|
:param pulumi.Input[bool] copy_grants: Specifies to retain the access permissions from the original table when an external table is recreated using the CREATE OR REPLACE TABLE variant
|
|
747
|
-
:param pulumi.Input[str] database:
|
|
720
|
+
:param pulumi.Input[str] database: The database in which to create the external table.
|
|
748
721
|
:param pulumi.Input[str] file_format: Specifies the file format for the external table.
|
|
722
|
+
: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).
|
|
749
723
|
:param pulumi.Input[str] location: Specifies a location for the external table.
|
|
750
|
-
:param pulumi.Input[str] name:
|
|
724
|
+
:param pulumi.Input[str] name: Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
|
|
751
725
|
:param pulumi.Input[str] owner: Name of the role that owns the external table.
|
|
752
726
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_bies: Specifies any partition columns to evaluate for the external table.
|
|
753
727
|
:param pulumi.Input[str] pattern: Specifies the file names and/or paths on the external stage to match.
|
|
754
728
|
:param pulumi.Input[bool] refresh_on_create: Specifies weather to refresh when an external table is created.
|
|
755
|
-
:param pulumi.Input[str] schema:
|
|
729
|
+
:param pulumi.Input[str] schema: The schema in which to create the external table.
|
|
756
730
|
:param pulumi.Input[str] table_format: Identifies the external table table type. For now, only "delta" for Delta Lake table format is supported.
|
|
757
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
731
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableTagArgs', 'ExternalTableTagArgsDict']]]] tags: Definitions of a tag to associate with the resource.
|
|
758
732
|
"""
|
|
759
733
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
760
734
|
|
|
@@ -767,6 +741,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
767
741
|
__props__.__dict__["copy_grants"] = copy_grants
|
|
768
742
|
__props__.__dict__["database"] = database
|
|
769
743
|
__props__.__dict__["file_format"] = file_format
|
|
744
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
770
745
|
__props__.__dict__["location"] = location
|
|
771
746
|
__props__.__dict__["name"] = name
|
|
772
747
|
__props__.__dict__["owner"] = owner
|
|
@@ -822,7 +797,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
822
797
|
@pulumi.getter
|
|
823
798
|
def database(self) -> pulumi.Output[str]:
|
|
824
799
|
"""
|
|
825
|
-
|
|
800
|
+
The database in which to create the external table.
|
|
826
801
|
"""
|
|
827
802
|
return pulumi.get(self, "database")
|
|
828
803
|
|
|
@@ -834,6 +809,14 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
834
809
|
"""
|
|
835
810
|
return pulumi.get(self, "file_format")
|
|
836
811
|
|
|
812
|
+
@property
|
|
813
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
814
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
815
|
+
"""
|
|
816
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
817
|
+
"""
|
|
818
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
819
|
+
|
|
837
820
|
@property
|
|
838
821
|
@pulumi.getter
|
|
839
822
|
def location(self) -> pulumi.Output[str]:
|
|
@@ -846,7 +829,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
846
829
|
@pulumi.getter
|
|
847
830
|
def name(self) -> pulumi.Output[str]:
|
|
848
831
|
"""
|
|
849
|
-
|
|
832
|
+
Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
|
|
850
833
|
"""
|
|
851
834
|
return pulumi.get(self, "name")
|
|
852
835
|
|
|
@@ -886,7 +869,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
886
869
|
@pulumi.getter
|
|
887
870
|
def schema(self) -> pulumi.Output[str]:
|
|
888
871
|
"""
|
|
889
|
-
|
|
872
|
+
The schema in which to create the external table.
|
|
890
873
|
"""
|
|
891
874
|
return pulumi.get(self, "schema")
|
|
892
875
|
|
|
@@ -900,12 +883,10 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
900
883
|
|
|
901
884
|
@property
|
|
902
885
|
@pulumi.getter
|
|
886
|
+
@_utilities.deprecated("""Use the 'snowflake_tag_association' resource instead.""")
|
|
903
887
|
def tags(self) -> pulumi.Output[Optional[Sequence['outputs.ExternalTableTag']]]:
|
|
904
888
|
"""
|
|
905
889
|
Definitions of a tag to associate with the resource.
|
|
906
890
|
"""
|
|
907
|
-
warnings.warn("""Use the 'snowflake_tag_association' resource instead.""", DeprecationWarning)
|
|
908
|
-
pulumi.log.warn("""tags is deprecated: Use the 'snowflake_tag_association' resource instead.""")
|
|
909
|
-
|
|
910
891
|
return pulumi.get(self, "tags")
|
|
911
892
|
|