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.
- pulumi_snowflake/__init__.py +224 -172
- pulumi_snowflake/_inputs.py +52857 -1665
- pulumi_snowflake/_utilities.py +41 -5
- pulumi_snowflake/account.py +188 -218
- pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
- pulumi_snowflake/account_parameter.py +21 -48
- pulumi_snowflake/account_password_policy_attachment.py +7 -32
- pulumi_snowflake/account_role.py +250 -0
- pulumi_snowflake/alert.py +38 -47
- 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 +33 -52
- 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 -213
- pulumi_snowflake/database_role.py +81 -44
- pulumi_snowflake/dynamic_table.py +42 -49
- pulumi_snowflake/email_notification_integration.py +33 -28
- pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
- pulumi_snowflake/external_function.py +54 -75
- pulumi_snowflake/external_oauth_integration.py +593 -542
- pulumi_snowflake/external_table.py +67 -90
- pulumi_snowflake/external_volume.py +382 -0
- pulumi_snowflake/failover_group.py +57 -98
- pulumi_snowflake/file_format.py +33 -28
- 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 -9
- pulumi_snowflake/get_connections.py +109 -0
- pulumi_snowflake/get_cortex_search_services.py +216 -0
- pulumi_snowflake/get_current_account.py +24 -13
- pulumi_snowflake/get_current_role.py +14 -7
- pulumi_snowflake/get_database.py +25 -9
- pulumi_snowflake/get_database_role.py +162 -0
- pulumi_snowflake/get_database_roles.py +79 -47
- pulumi_snowflake/get_databases.py +91 -73
- pulumi_snowflake/get_dynamic_tables.py +36 -19
- pulumi_snowflake/get_external_functions.py +28 -9
- pulumi_snowflake/get_external_tables.py +28 -9
- pulumi_snowflake/get_failover_groups.py +18 -7
- pulumi_snowflake/get_file_formats.py +28 -9
- pulumi_snowflake/get_functions.py +28 -9
- pulumi_snowflake/get_grants.py +207 -84
- pulumi_snowflake/get_masking_policies.py +91 -51
- pulumi_snowflake/get_materialized_views.py +28 -9
- pulumi_snowflake/get_network_policies.py +129 -0
- pulumi_snowflake/get_parameters.py +38 -15
- pulumi_snowflake/get_pipes.py +28 -9
- pulumi_snowflake/get_procedures.py +28 -9
- pulumi_snowflake/get_resource_monitors.py +37 -24
- pulumi_snowflake/get_row_access_policies.py +91 -51
- pulumi_snowflake/get_schemas.py +145 -41
- pulumi_snowflake/get_secrets.py +200 -0
- pulumi_snowflake/get_security_integrations.py +129 -0
- pulumi_snowflake/get_sequences.py +28 -9
- pulumi_snowflake/get_shares.py +18 -9
- pulumi_snowflake/get_stages.py +28 -9
- pulumi_snowflake/get_storage_integrations.py +16 -9
- pulumi_snowflake/get_streamlits.py +170 -0
- pulumi_snowflake/get_streams.py +114 -54
- pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
- pulumi_snowflake/get_system_get_private_link_config.py +120 -5
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
- pulumi_snowflake/get_tables.py +28 -9
- pulumi_snowflake/get_tags.py +130 -0
- pulumi_snowflake/get_tasks.py +134 -54
- pulumi_snowflake/get_users.py +116 -44
- pulumi_snowflake/get_views.py +114 -54
- pulumi_snowflake/get_warehouses.py +79 -26
- pulumi_snowflake/grant_account_role.py +28 -75
- pulumi_snowflake/grant_application_role.py +257 -0
- pulumi_snowflake/grant_database_role.py +35 -94
- 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 -383
- pulumi_snowflake/grant_privileges_to_share.py +96 -44
- pulumi_snowflake/legacy_service_user.py +3670 -0
- pulumi_snowflake/managed_account.py +40 -11
- pulumi_snowflake/masking_policy.py +213 -310
- pulumi_snowflake/materialized_view.py +62 -71
- pulumi_snowflake/network_policy.py +217 -61
- pulumi_snowflake/network_policy_attachment.py +5 -34
- pulumi_snowflake/network_rule.py +473 -0
- pulumi_snowflake/notification_integration.py +49 -84
- pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
- pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
- pulumi_snowflake/object_parameter.py +10 -101
- pulumi_snowflake/outputs.py +49200 -2928
- pulumi_snowflake/password_policy.py +41 -28
- pulumi_snowflake/pipe.py +33 -4
- 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 -327
- pulumi_snowflake/row_access_policy.py +200 -149
- pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
- pulumi_snowflake/schema.py +949 -178
- pulumi_snowflake/scim_integration.py +286 -109
- 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 -34
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/share.py +33 -28
- pulumi_snowflake/shared_database.py +939 -0
- pulumi_snowflake/stage.py +95 -84
- pulumi_snowflake/storage_integration.py +46 -4
- 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 -97
- pulumi_snowflake/table_column_masking_policy_application.py +7 -14
- pulumi_snowflake/table_constraint.py +29 -172
- pulumi_snowflake/tag.py +142 -74
- pulumi_snowflake/tag_association.py +40 -215
- pulumi_snowflake/task.py +3048 -418
- pulumi_snowflake/user.py +3351 -384
- pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
- pulumi_snowflake/user_password_policy_attachment.py +5 -4
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +466 -215
- pulumi_snowflake/warehouse.py +184 -168
- {pulumi_snowflake-0.50.3a1710160126.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.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -343
- pulumi_snowflake/database_grant.py +0 -495
- pulumi_snowflake/external_table_grant.py +0 -690
- pulumi_snowflake/failover_group_grant.py +0 -388
- pulumi_snowflake/file_format_grant.py +0 -635
- pulumi_snowflake/function.py +0 -872
- pulumi_snowflake/function_grant.py +0 -745
- pulumi_snowflake/get_role.py +0 -121
- pulumi_snowflake/get_roles.py +0 -120
- pulumi_snowflake/grant_privileges_to_role.py +0 -825
- pulumi_snowflake/integration_grant.py +0 -440
- pulumi_snowflake/masking_policy_grant.py +0 -542
- pulumi_snowflake/materialized_view_grant.py +0 -689
- pulumi_snowflake/pipe_grant.py +0 -587
- pulumi_snowflake/procedure.py +0 -887
- pulumi_snowflake/procedure_grant.py +0 -745
- pulumi_snowflake/resource_monitor_grant.py +0 -387
- pulumi_snowflake/role.py +0 -273
- pulumi_snowflake/role_grants.py +0 -352
- pulumi_snowflake/role_ownership_grant.py +0 -338
- pulumi_snowflake/row_access_policy_grant.py +0 -540
- pulumi_snowflake/schema_grant.py +0 -647
- pulumi_snowflake/sequence_grant.py +0 -635
- pulumi_snowflake/session_parameter.py +0 -332
- pulumi_snowflake/stage_grant.py +0 -635
- pulumi_snowflake/stream.py +0 -614
- pulumi_snowflake/stream_grant.py +0 -635
- pulumi_snowflake/table_grant.py +0 -677
- pulumi_snowflake/tag_grant.py +0 -532
- pulumi_snowflake/tag_masking_policy_association.py +0 -210
- pulumi_snowflake/task_grant.py +0 -635
- pulumi_snowflake/user_grant.py +0 -394
- pulumi_snowflake/user_ownership_grant.py +0 -286
- pulumi_snowflake/view_grant.py +0 -705
- pulumi_snowflake/warehouse_grant.py +0 -440
- pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
- {pulumi_snowflake-0.50.3a1710160126.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,34 +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
|
-
<!--Start PulumiCodeChooser -->
|
|
560
|
-
```python
|
|
561
|
-
import pulumi
|
|
562
|
-
import pulumi_snowflake as snowflake
|
|
563
|
-
|
|
564
|
-
external_table = snowflake.ExternalTable("externalTable",
|
|
565
|
-
columns=[
|
|
566
|
-
snowflake.ExternalTableColumnArgs(
|
|
567
|
-
name="id",
|
|
568
|
-
type="int",
|
|
569
|
-
),
|
|
570
|
-
snowflake.ExternalTableColumnArgs(
|
|
571
|
-
name="data",
|
|
572
|
-
type="text",
|
|
573
|
-
),
|
|
574
|
-
],
|
|
575
|
-
comment="External table",
|
|
576
|
-
database="db",
|
|
577
|
-
file_format="TYPE = CSV FIELD_DELIMITER = '|'",
|
|
578
|
-
schema="schema")
|
|
579
|
-
```
|
|
580
|
-
<!--End PulumiCodeChooser -->
|
|
581
|
-
|
|
582
574
|
## Import
|
|
583
575
|
|
|
584
576
|
format is database name | schema name | external table name
|
|
@@ -591,19 +583,19 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
591
583
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
592
584
|
:param pulumi.Input[bool] auto_refresh: Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.
|
|
593
585
|
:param pulumi.Input[str] aws_sns_topic: Specifies the aws sns topic for the external table.
|
|
594
|
-
: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.
|
|
595
587
|
:param pulumi.Input[str] comment: Specifies a comment for the external table.
|
|
596
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
|
|
597
|
-
:param pulumi.Input[str] database:
|
|
589
|
+
:param pulumi.Input[str] database: The database in which to create the external table.
|
|
598
590
|
:param pulumi.Input[str] file_format: Specifies the file format for the external table.
|
|
599
591
|
:param pulumi.Input[str] location: Specifies a location for the external table.
|
|
600
|
-
: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.
|
|
601
593
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_bies: Specifies any partition columns to evaluate for the external table.
|
|
602
594
|
:param pulumi.Input[str] pattern: Specifies the file names and/or paths on the external stage to match.
|
|
603
595
|
:param pulumi.Input[bool] refresh_on_create: Specifies weather to refresh when an external table is created.
|
|
604
|
-
:param pulumi.Input[str] schema:
|
|
596
|
+
:param pulumi.Input[str] schema: The schema in which to create the external table.
|
|
605
597
|
:param pulumi.Input[str] table_format: Identifies the external table table type. For now, only "delta" for Delta Lake table format is supported.
|
|
606
|
-
: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.
|
|
607
599
|
"""
|
|
608
600
|
...
|
|
609
601
|
@overload
|
|
@@ -612,31 +604,6 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
612
604
|
args: ExternalTableArgs,
|
|
613
605
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
614
606
|
"""
|
|
615
|
-
## Example Usage
|
|
616
|
-
|
|
617
|
-
<!--Start PulumiCodeChooser -->
|
|
618
|
-
```python
|
|
619
|
-
import pulumi
|
|
620
|
-
import pulumi_snowflake as snowflake
|
|
621
|
-
|
|
622
|
-
external_table = snowflake.ExternalTable("externalTable",
|
|
623
|
-
columns=[
|
|
624
|
-
snowflake.ExternalTableColumnArgs(
|
|
625
|
-
name="id",
|
|
626
|
-
type="int",
|
|
627
|
-
),
|
|
628
|
-
snowflake.ExternalTableColumnArgs(
|
|
629
|
-
name="data",
|
|
630
|
-
type="text",
|
|
631
|
-
),
|
|
632
|
-
],
|
|
633
|
-
comment="External table",
|
|
634
|
-
database="db",
|
|
635
|
-
file_format="TYPE = CSV FIELD_DELIMITER = '|'",
|
|
636
|
-
schema="schema")
|
|
637
|
-
```
|
|
638
|
-
<!--End PulumiCodeChooser -->
|
|
639
|
-
|
|
640
607
|
## Import
|
|
641
608
|
|
|
642
609
|
format is database name | schema name | external table name
|
|
@@ -662,7 +629,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
662
629
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
663
630
|
auto_refresh: Optional[pulumi.Input[bool]] = None,
|
|
664
631
|
aws_sns_topic: Optional[pulumi.Input[str]] = None,
|
|
665
|
-
columns: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
632
|
+
columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableColumnArgs', 'ExternalTableColumnArgsDict']]]]] = None,
|
|
666
633
|
comment: Optional[pulumi.Input[str]] = None,
|
|
667
634
|
copy_grants: Optional[pulumi.Input[bool]] = None,
|
|
668
635
|
database: Optional[pulumi.Input[str]] = None,
|
|
@@ -674,7 +641,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
674
641
|
refresh_on_create: Optional[pulumi.Input[bool]] = None,
|
|
675
642
|
schema: Optional[pulumi.Input[str]] = None,
|
|
676
643
|
table_format: Optional[pulumi.Input[str]] = None,
|
|
677
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
644
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableTagArgs', 'ExternalTableTagArgsDict']]]]] = None,
|
|
678
645
|
__props__=None):
|
|
679
646
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
680
647
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -709,6 +676,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
709
676
|
__props__.__dict__["schema"] = schema
|
|
710
677
|
__props__.__dict__["table_format"] = table_format
|
|
711
678
|
__props__.__dict__["tags"] = tags
|
|
679
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
712
680
|
__props__.__dict__["owner"] = None
|
|
713
681
|
super(ExternalTable, __self__).__init__(
|
|
714
682
|
'snowflake:index/externalTable:ExternalTable',
|
|
@@ -722,11 +690,12 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
722
690
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
723
691
|
auto_refresh: Optional[pulumi.Input[bool]] = None,
|
|
724
692
|
aws_sns_topic: Optional[pulumi.Input[str]] = None,
|
|
725
|
-
columns: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
693
|
+
columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableColumnArgs', 'ExternalTableColumnArgsDict']]]]] = None,
|
|
726
694
|
comment: Optional[pulumi.Input[str]] = None,
|
|
727
695
|
copy_grants: Optional[pulumi.Input[bool]] = None,
|
|
728
696
|
database: Optional[pulumi.Input[str]] = None,
|
|
729
697
|
file_format: Optional[pulumi.Input[str]] = None,
|
|
698
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
730
699
|
location: Optional[pulumi.Input[str]] = None,
|
|
731
700
|
name: Optional[pulumi.Input[str]] = None,
|
|
732
701
|
owner: Optional[pulumi.Input[str]] = None,
|
|
@@ -735,7 +704,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
735
704
|
refresh_on_create: Optional[pulumi.Input[bool]] = None,
|
|
736
705
|
schema: Optional[pulumi.Input[str]] = None,
|
|
737
706
|
table_format: Optional[pulumi.Input[str]] = None,
|
|
738
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
707
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableTagArgs', 'ExternalTableTagArgsDict']]]]] = None) -> 'ExternalTable':
|
|
739
708
|
"""
|
|
740
709
|
Get an existing ExternalTable resource's state with the given name, id, and optional extra
|
|
741
710
|
properties used to qualify the lookup.
|
|
@@ -745,20 +714,21 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
745
714
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
746
715
|
:param pulumi.Input[bool] auto_refresh: Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.
|
|
747
716
|
:param pulumi.Input[str] aws_sns_topic: Specifies the aws sns topic for the external table.
|
|
748
|
-
: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.
|
|
749
718
|
:param pulumi.Input[str] comment: Specifies a comment for the external table.
|
|
750
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
|
|
751
|
-
:param pulumi.Input[str] database:
|
|
720
|
+
:param pulumi.Input[str] database: The database in which to create the external table.
|
|
752
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).
|
|
753
723
|
:param pulumi.Input[str] location: Specifies a location for the external table.
|
|
754
|
-
: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.
|
|
755
725
|
:param pulumi.Input[str] owner: Name of the role that owns the external table.
|
|
756
726
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] partition_bies: Specifies any partition columns to evaluate for the external table.
|
|
757
727
|
:param pulumi.Input[str] pattern: Specifies the file names and/or paths on the external stage to match.
|
|
758
728
|
:param pulumi.Input[bool] refresh_on_create: Specifies weather to refresh when an external table is created.
|
|
759
|
-
:param pulumi.Input[str] schema:
|
|
729
|
+
:param pulumi.Input[str] schema: The schema in which to create the external table.
|
|
760
730
|
:param pulumi.Input[str] table_format: Identifies the external table table type. For now, only "delta" for Delta Lake table format is supported.
|
|
761
|
-
: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.
|
|
762
732
|
"""
|
|
763
733
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
764
734
|
|
|
@@ -771,6 +741,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
771
741
|
__props__.__dict__["copy_grants"] = copy_grants
|
|
772
742
|
__props__.__dict__["database"] = database
|
|
773
743
|
__props__.__dict__["file_format"] = file_format
|
|
744
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
774
745
|
__props__.__dict__["location"] = location
|
|
775
746
|
__props__.__dict__["name"] = name
|
|
776
747
|
__props__.__dict__["owner"] = owner
|
|
@@ -826,7 +797,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
826
797
|
@pulumi.getter
|
|
827
798
|
def database(self) -> pulumi.Output[str]:
|
|
828
799
|
"""
|
|
829
|
-
|
|
800
|
+
The database in which to create the external table.
|
|
830
801
|
"""
|
|
831
802
|
return pulumi.get(self, "database")
|
|
832
803
|
|
|
@@ -838,6 +809,14 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
838
809
|
"""
|
|
839
810
|
return pulumi.get(self, "file_format")
|
|
840
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
|
+
|
|
841
820
|
@property
|
|
842
821
|
@pulumi.getter
|
|
843
822
|
def location(self) -> pulumi.Output[str]:
|
|
@@ -850,7 +829,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
850
829
|
@pulumi.getter
|
|
851
830
|
def name(self) -> pulumi.Output[str]:
|
|
852
831
|
"""
|
|
853
|
-
|
|
832
|
+
Specifies the identifier for the external table; must be unique for the database and schema in which the externalTable is created.
|
|
854
833
|
"""
|
|
855
834
|
return pulumi.get(self, "name")
|
|
856
835
|
|
|
@@ -890,7 +869,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
890
869
|
@pulumi.getter
|
|
891
870
|
def schema(self) -> pulumi.Output[str]:
|
|
892
871
|
"""
|
|
893
|
-
|
|
872
|
+
The schema in which to create the external table.
|
|
894
873
|
"""
|
|
895
874
|
return pulumi.get(self, "schema")
|
|
896
875
|
|
|
@@ -904,12 +883,10 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
904
883
|
|
|
905
884
|
@property
|
|
906
885
|
@pulumi.getter
|
|
886
|
+
@_utilities.deprecated("""Use the 'snowflake_tag_association' resource instead.""")
|
|
907
887
|
def tags(self) -> pulumi.Output[Optional[Sequence['outputs.ExternalTableTag']]]:
|
|
908
888
|
"""
|
|
909
889
|
Definitions of a tag to associate with the resource.
|
|
910
890
|
"""
|
|
911
|
-
warnings.warn("""Use the 'snowflake_tag_association' resource instead.""", DeprecationWarning)
|
|
912
|
-
pulumi.log.warn("""tags is deprecated: Use the 'snowflake_tag_association' resource instead.""")
|
|
913
|
-
|
|
914
891
|
return pulumi.get(self, "tags")
|
|
915
892
|
|