pulumi-snowflake 0.57.1a1722856643__py3-none-any.whl → 0.58.0__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.
- pulumi_snowflake/_inputs.py +5859 -127
- pulumi_snowflake/account.py +28 -50
- pulumi_snowflake/account_parameter.py +0 -28
- pulumi_snowflake/account_password_policy_attachment.py +2 -30
- pulumi_snowflake/account_role.py +51 -32
- pulumi_snowflake/alert.py +33 -45
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +39 -19
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +39 -19
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +39 -19
- pulumi_snowflake/api_integration.py +28 -54
- pulumi_snowflake/cortex_search_service.py +28 -0
- pulumi_snowflake/database.py +97 -148
- pulumi_snowflake/database_old.py +5 -77
- pulumi_snowflake/database_role.py +76 -42
- pulumi_snowflake/dynamic_table.py +33 -43
- pulumi_snowflake/email_notification_integration.py +28 -26
- pulumi_snowflake/external_function.py +38 -62
- pulumi_snowflake/external_oauth_integration.py +41 -21
- pulumi_snowflake/external_table.py +38 -58
- pulumi_snowflake/failover_group.py +38 -82
- pulumi_snowflake/file_format.py +28 -26
- pulumi_snowflake/function.py +33 -9
- pulumi_snowflake/get_cortex_search_services.py +16 -16
- pulumi_snowflake/get_database_roles.py +61 -38
- pulumi_snowflake/get_databases.py +4 -4
- pulumi_snowflake/get_dynamic_tables.py +12 -12
- pulumi_snowflake/get_grants.py +138 -138
- pulumi_snowflake/get_schemas.py +8 -8
- pulumi_snowflake/get_streamlits.py +8 -8
- pulumi_snowflake/get_users.py +96 -33
- pulumi_snowflake/get_views.py +92 -53
- pulumi_snowflake/grant_account_role.py +0 -4
- pulumi_snowflake/grant_application_role.py +0 -4
- pulumi_snowflake/grant_database_role.py +0 -4
- pulumi_snowflake/grant_ownership.py +5 -5
- pulumi_snowflake/grant_privileges_to_account_role.py +15 -15
- pulumi_snowflake/grant_privileges_to_database_role.py +16 -12
- pulumi_snowflake/grant_privileges_to_share.py +47 -0
- pulumi_snowflake/managed_account.py +28 -4
- pulumi_snowflake/masking_policy.py +33 -89
- pulumi_snowflake/materialized_view.py +33 -39
- pulumi_snowflake/network_policy.py +47 -49
- pulumi_snowflake/network_policy_attachment.py +0 -30
- pulumi_snowflake/network_rule.py +28 -66
- pulumi_snowflake/notification_integration.py +28 -34
- pulumi_snowflake/oauth_integration.py +0 -34
- pulumi_snowflake/oauth_integration_for_custom_clients.py +39 -105
- pulumi_snowflake/oauth_integration_for_partner_applications.py +39 -19
- pulumi_snowflake/object_parameter.py +5 -103
- pulumi_snowflake/outputs.py +11648 -3842
- pulumi_snowflake/password_policy.py +28 -28
- pulumi_snowflake/pipe.py +28 -4
- pulumi_snowflake/procedure.py +33 -9
- pulumi_snowflake/provider.py +16 -16
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +28 -48
- pulumi_snowflake/role.py +51 -32
- pulumi_snowflake/row_access_policy.py +28 -34
- pulumi_snowflake/saml2_integration.py +39 -19
- pulumi_snowflake/saml_integration.py +0 -34
- pulumi_snowflake/schema.py +45 -25
- pulumi_snowflake/scim_integration.py +39 -19
- pulumi_snowflake/secondary_database.py +35 -19
- pulumi_snowflake/sequence.py +4 -36
- pulumi_snowflake/session_parameter.py +0 -32
- pulumi_snowflake/share.py +28 -28
- pulumi_snowflake/shared_database.py +35 -15
- pulumi_snowflake/stage.py +33 -33
- pulumi_snowflake/storage_integration.py +28 -4
- pulumi_snowflake/stream.py +28 -4
- pulumi_snowflake/streamlit.py +39 -19
- pulumi_snowflake/table.py +43 -47
- pulumi_snowflake/table_column_masking_policy_application.py +2 -14
- pulumi_snowflake/table_constraint.py +5 -157
- pulumi_snowflake/tag.py +28 -40
- pulumi_snowflake/tag_association.py +5 -125
- pulumi_snowflake/tag_masking_policy_association.py +0 -4
- pulumi_snowflake/task.py +28 -92
- pulumi_snowflake/unsafe_execute.py +2 -20
- pulumi_snowflake/user.py +3341 -368
- pulumi_snowflake/user_password_policy_attachment.py +0 -36
- pulumi_snowflake/view.py +465 -185
- pulumi_snowflake/warehouse.py +39 -43
- {pulumi_snowflake-0.57.1a1722856643.dist-info → pulumi_snowflake-0.58.0.dist-info}/METADATA +1 -1
- pulumi_snowflake-0.58.0.dist-info/RECORD +129 -0
- {pulumi_snowflake-0.57.1a1722856643.dist-info → pulumi_snowflake-0.58.0.dist-info}/WHEEL +1 -1
- pulumi_snowflake-0.57.1a1722856643.dist-info/RECORD +0 -129
- {pulumi_snowflake-0.57.1a1722856643.dist-info → pulumi_snowflake-0.58.0.dist-info}/top_level.txt +0 -0
|
@@ -297,6 +297,7 @@ class _ExternalFunctionState:
|
|
|
297
297
|
context_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
298
298
|
created_on: Optional[pulumi.Input[str]] = None,
|
|
299
299
|
database: Optional[pulumi.Input[str]] = None,
|
|
300
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
300
301
|
headers: Optional[pulumi.Input[Sequence[pulumi.Input['ExternalFunctionHeaderArgs']]]] = None,
|
|
301
302
|
max_batch_rows: Optional[pulumi.Input[int]] = None,
|
|
302
303
|
name: Optional[pulumi.Input[str]] = None,
|
|
@@ -317,6 +318,7 @@ class _ExternalFunctionState:
|
|
|
317
318
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] context_headers: Binds Snowflake context function results to HTTP headers.
|
|
318
319
|
:param pulumi.Input[str] created_on: Date and time when the external function was created.
|
|
319
320
|
:param pulumi.Input[str] database: The database in which to create the external function.
|
|
321
|
+
: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).
|
|
320
322
|
:param pulumi.Input[Sequence[pulumi.Input['ExternalFunctionHeaderArgs']]] headers: Allows users to specify key-value metadata that is sent with every request as HTTP headers.
|
|
321
323
|
:param pulumi.Input[int] max_batch_rows: This specifies the maximum number of rows in each batch sent to the proxy service.
|
|
322
324
|
:param pulumi.Input[str] name: Specifies the identifier for the external function. The identifier can contain the schema name and database name, as well as the function name. The function's signature (name and argument data types) must be unique within the schema.
|
|
@@ -343,6 +345,8 @@ class _ExternalFunctionState:
|
|
|
343
345
|
pulumi.set(__self__, "created_on", created_on)
|
|
344
346
|
if database is not None:
|
|
345
347
|
pulumi.set(__self__, "database", database)
|
|
348
|
+
if fully_qualified_name is not None:
|
|
349
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
346
350
|
if headers is not None:
|
|
347
351
|
pulumi.set(__self__, "headers", headers)
|
|
348
352
|
if max_batch_rows is not None:
|
|
@@ -450,6 +454,18 @@ class _ExternalFunctionState:
|
|
|
450
454
|
def database(self, value: Optional[pulumi.Input[str]]):
|
|
451
455
|
pulumi.set(self, "database", value)
|
|
452
456
|
|
|
457
|
+
@property
|
|
458
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
459
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
460
|
+
"""
|
|
461
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
462
|
+
"""
|
|
463
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
464
|
+
|
|
465
|
+
@fully_qualified_name.setter
|
|
466
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
467
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
468
|
+
|
|
453
469
|
@property
|
|
454
470
|
@pulumi.getter
|
|
455
471
|
def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ExternalFunctionHeaderArgs']]]]:
|
|
@@ -589,12 +605,12 @@ class ExternalFunction(pulumi.CustomResource):
|
|
|
589
605
|
resource_name: str,
|
|
590
606
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
591
607
|
api_integration: Optional[pulumi.Input[str]] = None,
|
|
592
|
-
args: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
608
|
+
args: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalFunctionArgArgs', 'ExternalFunctionArgArgsDict']]]]] = None,
|
|
593
609
|
comment: Optional[pulumi.Input[str]] = None,
|
|
594
610
|
compression: Optional[pulumi.Input[str]] = None,
|
|
595
611
|
context_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
596
612
|
database: Optional[pulumi.Input[str]] = None,
|
|
597
|
-
headers: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
613
|
+
headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalFunctionHeaderArgs', 'ExternalFunctionHeaderArgsDict']]]]] = None,
|
|
598
614
|
max_batch_rows: Optional[pulumi.Input[int]] = None,
|
|
599
615
|
name: Optional[pulumi.Input[str]] = None,
|
|
600
616
|
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
@@ -607,32 +623,6 @@ class ExternalFunction(pulumi.CustomResource):
|
|
|
607
623
|
url_of_proxy_and_resource: Optional[pulumi.Input[str]] = None,
|
|
608
624
|
__props__=None):
|
|
609
625
|
"""
|
|
610
|
-
## Example Usage
|
|
611
|
-
|
|
612
|
-
```python
|
|
613
|
-
import pulumi
|
|
614
|
-
import pulumi_snowflake as snowflake
|
|
615
|
-
|
|
616
|
-
test_ext_func = snowflake.ExternalFunction("test_ext_func",
|
|
617
|
-
name="my_function",
|
|
618
|
-
database="my_test_db",
|
|
619
|
-
schema="my_test_schema",
|
|
620
|
-
args=[
|
|
621
|
-
snowflake.ExternalFunctionArgArgs(
|
|
622
|
-
name="arg1",
|
|
623
|
-
type="varchar",
|
|
624
|
-
),
|
|
625
|
-
snowflake.ExternalFunctionArgArgs(
|
|
626
|
-
name="arg2",
|
|
627
|
-
type="varchar",
|
|
628
|
-
),
|
|
629
|
-
],
|
|
630
|
-
return_type="variant",
|
|
631
|
-
return_behavior="IMMUTABLE",
|
|
632
|
-
api_integration="api_integration_name",
|
|
633
|
-
url_of_proxy_and_resource="https://123456.execute-api.us-west-2.amazonaws.com/prod/test_func")
|
|
634
|
-
```
|
|
635
|
-
|
|
636
626
|
## Import
|
|
637
627
|
|
|
638
628
|
format is <database_name>.<schema_name>.<external_function_name>(<arg types, separated with ','>)
|
|
@@ -644,12 +634,12 @@ class ExternalFunction(pulumi.CustomResource):
|
|
|
644
634
|
:param str resource_name: The name of the resource.
|
|
645
635
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
646
636
|
:param pulumi.Input[str] api_integration: The name of the API integration object that should be used to authenticate the call to the proxy service.
|
|
647
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
637
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalFunctionArgArgs', 'ExternalFunctionArgArgsDict']]]] args: Specifies the arguments/inputs for the external function. These should correspond to the arguments that the remote service expects.
|
|
648
638
|
:param pulumi.Input[str] comment: A description of the external function.
|
|
649
639
|
:param pulumi.Input[str] compression: If specified, the JSON payload is compressed when sent from Snowflake to the proxy service, and when sent back from the proxy service to Snowflake.
|
|
650
640
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] context_headers: Binds Snowflake context function results to HTTP headers.
|
|
651
641
|
:param pulumi.Input[str] database: The database in which to create the external function.
|
|
652
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
642
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalFunctionHeaderArgs', 'ExternalFunctionHeaderArgsDict']]]] headers: Allows users to specify key-value metadata that is sent with every request as HTTP headers.
|
|
653
643
|
:param pulumi.Input[int] max_batch_rows: This specifies the maximum number of rows in each batch sent to the proxy service.
|
|
654
644
|
:param pulumi.Input[str] name: Specifies the identifier for the external function. The identifier can contain the schema name and database name, as well as the function name. The function's signature (name and argument data types) must be unique within the schema.
|
|
655
645
|
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the external function when called with null inputs.
|
|
@@ -668,32 +658,6 @@ class ExternalFunction(pulumi.CustomResource):
|
|
|
668
658
|
args: ExternalFunctionArgs,
|
|
669
659
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
670
660
|
"""
|
|
671
|
-
## Example Usage
|
|
672
|
-
|
|
673
|
-
```python
|
|
674
|
-
import pulumi
|
|
675
|
-
import pulumi_snowflake as snowflake
|
|
676
|
-
|
|
677
|
-
test_ext_func = snowflake.ExternalFunction("test_ext_func",
|
|
678
|
-
name="my_function",
|
|
679
|
-
database="my_test_db",
|
|
680
|
-
schema="my_test_schema",
|
|
681
|
-
args=[
|
|
682
|
-
snowflake.ExternalFunctionArgArgs(
|
|
683
|
-
name="arg1",
|
|
684
|
-
type="varchar",
|
|
685
|
-
),
|
|
686
|
-
snowflake.ExternalFunctionArgArgs(
|
|
687
|
-
name="arg2",
|
|
688
|
-
type="varchar",
|
|
689
|
-
),
|
|
690
|
-
],
|
|
691
|
-
return_type="variant",
|
|
692
|
-
return_behavior="IMMUTABLE",
|
|
693
|
-
api_integration="api_integration_name",
|
|
694
|
-
url_of_proxy_and_resource="https://123456.execute-api.us-west-2.amazonaws.com/prod/test_func")
|
|
695
|
-
```
|
|
696
|
-
|
|
697
661
|
## Import
|
|
698
662
|
|
|
699
663
|
format is <database_name>.<schema_name>.<external_function_name>(<arg types, separated with ','>)
|
|
@@ -718,12 +682,12 @@ class ExternalFunction(pulumi.CustomResource):
|
|
|
718
682
|
resource_name: str,
|
|
719
683
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
720
684
|
api_integration: Optional[pulumi.Input[str]] = None,
|
|
721
|
-
args: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
685
|
+
args: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalFunctionArgArgs', 'ExternalFunctionArgArgsDict']]]]] = None,
|
|
722
686
|
comment: Optional[pulumi.Input[str]] = None,
|
|
723
687
|
compression: Optional[pulumi.Input[str]] = None,
|
|
724
688
|
context_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
725
689
|
database: Optional[pulumi.Input[str]] = None,
|
|
726
|
-
headers: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
690
|
+
headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalFunctionHeaderArgs', 'ExternalFunctionHeaderArgsDict']]]]] = None,
|
|
727
691
|
max_batch_rows: Optional[pulumi.Input[int]] = None,
|
|
728
692
|
name: Optional[pulumi.Input[str]] = None,
|
|
729
693
|
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
@@ -773,6 +737,7 @@ class ExternalFunction(pulumi.CustomResource):
|
|
|
773
737
|
raise TypeError("Missing required property 'url_of_proxy_and_resource'")
|
|
774
738
|
__props__.__dict__["url_of_proxy_and_resource"] = url_of_proxy_and_resource
|
|
775
739
|
__props__.__dict__["created_on"] = None
|
|
740
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
776
741
|
super(ExternalFunction, __self__).__init__(
|
|
777
742
|
'snowflake:index/externalFunction:ExternalFunction',
|
|
778
743
|
resource_name,
|
|
@@ -784,13 +749,14 @@ class ExternalFunction(pulumi.CustomResource):
|
|
|
784
749
|
id: pulumi.Input[str],
|
|
785
750
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
786
751
|
api_integration: Optional[pulumi.Input[str]] = None,
|
|
787
|
-
args: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
752
|
+
args: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalFunctionArgArgs', 'ExternalFunctionArgArgsDict']]]]] = None,
|
|
788
753
|
comment: Optional[pulumi.Input[str]] = None,
|
|
789
754
|
compression: Optional[pulumi.Input[str]] = None,
|
|
790
755
|
context_headers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
791
756
|
created_on: Optional[pulumi.Input[str]] = None,
|
|
792
757
|
database: Optional[pulumi.Input[str]] = None,
|
|
793
|
-
|
|
758
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
759
|
+
headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalFunctionHeaderArgs', 'ExternalFunctionHeaderArgsDict']]]]] = None,
|
|
794
760
|
max_batch_rows: Optional[pulumi.Input[int]] = None,
|
|
795
761
|
name: Optional[pulumi.Input[str]] = None,
|
|
796
762
|
null_input_behavior: Optional[pulumi.Input[str]] = None,
|
|
@@ -809,13 +775,14 @@ class ExternalFunction(pulumi.CustomResource):
|
|
|
809
775
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
810
776
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
811
777
|
:param pulumi.Input[str] api_integration: The name of the API integration object that should be used to authenticate the call to the proxy service.
|
|
812
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
778
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalFunctionArgArgs', 'ExternalFunctionArgArgsDict']]]] args: Specifies the arguments/inputs for the external function. These should correspond to the arguments that the remote service expects.
|
|
813
779
|
:param pulumi.Input[str] comment: A description of the external function.
|
|
814
780
|
:param pulumi.Input[str] compression: If specified, the JSON payload is compressed when sent from Snowflake to the proxy service, and when sent back from the proxy service to Snowflake.
|
|
815
781
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] context_headers: Binds Snowflake context function results to HTTP headers.
|
|
816
782
|
:param pulumi.Input[str] created_on: Date and time when the external function was created.
|
|
817
783
|
:param pulumi.Input[str] database: The database in which to create the external function.
|
|
818
|
-
:param pulumi.Input[
|
|
784
|
+
: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).
|
|
785
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalFunctionHeaderArgs', 'ExternalFunctionHeaderArgsDict']]]] headers: Allows users to specify key-value metadata that is sent with every request as HTTP headers.
|
|
819
786
|
:param pulumi.Input[int] max_batch_rows: This specifies the maximum number of rows in each batch sent to the proxy service.
|
|
820
787
|
:param pulumi.Input[str] name: Specifies the identifier for the external function. The identifier can contain the schema name and database name, as well as the function name. The function's signature (name and argument data types) must be unique within the schema.
|
|
821
788
|
:param pulumi.Input[str] null_input_behavior: Specifies the behavior of the external function when called with null inputs.
|
|
@@ -838,6 +805,7 @@ class ExternalFunction(pulumi.CustomResource):
|
|
|
838
805
|
__props__.__dict__["context_headers"] = context_headers
|
|
839
806
|
__props__.__dict__["created_on"] = created_on
|
|
840
807
|
__props__.__dict__["database"] = database
|
|
808
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
841
809
|
__props__.__dict__["headers"] = headers
|
|
842
810
|
__props__.__dict__["max_batch_rows"] = max_batch_rows
|
|
843
811
|
__props__.__dict__["name"] = name
|
|
@@ -907,6 +875,14 @@ class ExternalFunction(pulumi.CustomResource):
|
|
|
907
875
|
"""
|
|
908
876
|
return pulumi.get(self, "database")
|
|
909
877
|
|
|
878
|
+
@property
|
|
879
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
880
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
881
|
+
"""
|
|
882
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
883
|
+
"""
|
|
884
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
885
|
+
|
|
910
886
|
@property
|
|
911
887
|
@pulumi.getter
|
|
912
888
|
def headers(self) -> pulumi.Output[Optional[Sequence['outputs.ExternalFunctionHeader']]]:
|
|
@@ -49,7 +49,7 @@ class ExternalOauthIntegrationArgs:
|
|
|
49
49
|
:param pulumi.Input[str] external_oauth_rsa_public_key2: Specifies a second RSA public key, without the -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY----- headers. Used for key rotation. If removed from the config, the resource is recreated.
|
|
50
50
|
:param pulumi.Input[str] external_oauth_scope_delimiter: Specifies the scope delimiter in the authorization token.
|
|
51
51
|
:param pulumi.Input[str] external_oauth_scope_mapping_attribute: Specifies the access token claim to map the access token to an account role. If removed from the config, the resource is recreated.
|
|
52
|
-
:param pulumi.Input[str] name: Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
52
|
+
:param pulumi.Input[str] name: Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
53
53
|
"""
|
|
54
54
|
pulumi.set(__self__, "enabled", enabled)
|
|
55
55
|
pulumi.set(__self__, "external_oauth_issuer", external_oauth_issuer)
|
|
@@ -263,7 +263,7 @@ class ExternalOauthIntegrationArgs:
|
|
|
263
263
|
@pulumi.getter
|
|
264
264
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
265
265
|
"""
|
|
266
|
-
Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
266
|
+
Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
267
267
|
"""
|
|
268
268
|
return pulumi.get(self, "name")
|
|
269
269
|
|
|
@@ -291,6 +291,7 @@ class _ExternalOauthIntegrationState:
|
|
|
291
291
|
external_oauth_snowflake_user_mapping_attribute: Optional[pulumi.Input[str]] = None,
|
|
292
292
|
external_oauth_token_user_mapping_claims: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
293
293
|
external_oauth_type: Optional[pulumi.Input[str]] = None,
|
|
294
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
294
295
|
name: Optional[pulumi.Input[str]] = None,
|
|
295
296
|
related_parameters: Optional[pulumi.Input[Sequence[pulumi.Input['ExternalOauthIntegrationRelatedParameterArgs']]]] = None,
|
|
296
297
|
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['ExternalOauthIntegrationShowOutputArgs']]]] = None):
|
|
@@ -312,7 +313,8 @@ class _ExternalOauthIntegrationState:
|
|
|
312
313
|
:param pulumi.Input[str] external_oauth_snowflake_user_mapping_attribute: Indicates which Snowflake user record attribute should be used to map the access token to a Snowflake user record. Valid values are (case-insensitive): `LOGIN_NAME` | `EMAIL_ADDRESS`.
|
|
313
314
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] external_oauth_token_user_mapping_claims: Specifies the access token claim or claims that can be used to map the access token to a Snowflake user record. If removed from the config, the resource is recreated.
|
|
314
315
|
:param pulumi.Input[str] external_oauth_type: Specifies the OAuth 2.0 authorization server to be Okta, Microsoft Azure AD, Ping Identity PingFederate, or a Custom OAuth 2.0 authorization server. Valid values are (case-insensitive): `OKTA` | `AZURE` | `PING_FEDERATE` | `CUSTOM`.
|
|
315
|
-
:param pulumi.Input[str]
|
|
316
|
+
: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).
|
|
317
|
+
:param pulumi.Input[str] name: Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
316
318
|
:param pulumi.Input[Sequence[pulumi.Input['ExternalOauthIntegrationRelatedParameterArgs']]] related_parameters: Paramteres related to this security integration.
|
|
317
319
|
:param pulumi.Input[Sequence[pulumi.Input['ExternalOauthIntegrationShowOutputArgs']]] show_outputs: Outputs the result of `SHOW SECURITY INTEGRATIONS` for the given security integration.
|
|
318
320
|
"""
|
|
@@ -348,6 +350,8 @@ class _ExternalOauthIntegrationState:
|
|
|
348
350
|
pulumi.set(__self__, "external_oauth_token_user_mapping_claims", external_oauth_token_user_mapping_claims)
|
|
349
351
|
if external_oauth_type is not None:
|
|
350
352
|
pulumi.set(__self__, "external_oauth_type", external_oauth_type)
|
|
353
|
+
if fully_qualified_name is not None:
|
|
354
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
351
355
|
if name is not None:
|
|
352
356
|
pulumi.set(__self__, "name", name)
|
|
353
357
|
if related_parameters is not None:
|
|
@@ -547,11 +551,23 @@ class _ExternalOauthIntegrationState:
|
|
|
547
551
|
def external_oauth_type(self, value: Optional[pulumi.Input[str]]):
|
|
548
552
|
pulumi.set(self, "external_oauth_type", value)
|
|
549
553
|
|
|
554
|
+
@property
|
|
555
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
556
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
557
|
+
"""
|
|
558
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
559
|
+
"""
|
|
560
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
561
|
+
|
|
562
|
+
@fully_qualified_name.setter
|
|
563
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
564
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
565
|
+
|
|
550
566
|
@property
|
|
551
567
|
@pulumi.getter
|
|
552
568
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
553
569
|
"""
|
|
554
|
-
Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
570
|
+
Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
555
571
|
"""
|
|
556
572
|
return pulumi.get(self, "name")
|
|
557
573
|
|
|
@@ -607,10 +623,6 @@ class ExternalOauthIntegration(pulumi.CustomResource):
|
|
|
607
623
|
name: Optional[pulumi.Input[str]] = None,
|
|
608
624
|
__props__=None):
|
|
609
625
|
"""
|
|
610
|
-
!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
|
|
611
|
-
|
|
612
|
-
Resource used to manage external oauth security integration objects. For more information, check [security integrations documentation](https://docs.snowflake.com/en/sql-reference/sql/create-security-integration-oauth-external).
|
|
613
|
-
|
|
614
626
|
## Import
|
|
615
627
|
|
|
616
628
|
```sh
|
|
@@ -634,7 +646,7 @@ class ExternalOauthIntegration(pulumi.CustomResource):
|
|
|
634
646
|
:param pulumi.Input[str] external_oauth_snowflake_user_mapping_attribute: Indicates which Snowflake user record attribute should be used to map the access token to a Snowflake user record. Valid values are (case-insensitive): `LOGIN_NAME` | `EMAIL_ADDRESS`.
|
|
635
647
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] external_oauth_token_user_mapping_claims: Specifies the access token claim or claims that can be used to map the access token to a Snowflake user record. If removed from the config, the resource is recreated.
|
|
636
648
|
:param pulumi.Input[str] external_oauth_type: Specifies the OAuth 2.0 authorization server to be Okta, Microsoft Azure AD, Ping Identity PingFederate, or a Custom OAuth 2.0 authorization server. Valid values are (case-insensitive): `OKTA` | `AZURE` | `PING_FEDERATE` | `CUSTOM`.
|
|
637
|
-
:param pulumi.Input[str] name: Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
649
|
+
:param pulumi.Input[str] name: Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
638
650
|
"""
|
|
639
651
|
...
|
|
640
652
|
@overload
|
|
@@ -643,10 +655,6 @@ class ExternalOauthIntegration(pulumi.CustomResource):
|
|
|
643
655
|
args: ExternalOauthIntegrationArgs,
|
|
644
656
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
645
657
|
"""
|
|
646
|
-
!> **V1 release candidate** This resource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. Please follow the migration guide to use it.
|
|
647
|
-
|
|
648
|
-
Resource used to manage external oauth security integration objects. For more information, check [security integrations documentation](https://docs.snowflake.com/en/sql-reference/sql/create-security-integration-oauth-external).
|
|
649
|
-
|
|
650
658
|
## Import
|
|
651
659
|
|
|
652
660
|
```sh
|
|
@@ -720,6 +728,7 @@ class ExternalOauthIntegration(pulumi.CustomResource):
|
|
|
720
728
|
__props__.__dict__["external_oauth_type"] = external_oauth_type
|
|
721
729
|
__props__.__dict__["name"] = name
|
|
722
730
|
__props__.__dict__["describe_outputs"] = None
|
|
731
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
723
732
|
__props__.__dict__["related_parameters"] = None
|
|
724
733
|
__props__.__dict__["show_outputs"] = None
|
|
725
734
|
super(ExternalOauthIntegration, __self__).__init__(
|
|
@@ -733,7 +742,7 @@ class ExternalOauthIntegration(pulumi.CustomResource):
|
|
|
733
742
|
id: pulumi.Input[str],
|
|
734
743
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
735
744
|
comment: Optional[pulumi.Input[str]] = None,
|
|
736
|
-
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
745
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalOauthIntegrationDescribeOutputArgs', 'ExternalOauthIntegrationDescribeOutputArgsDict']]]]] = None,
|
|
737
746
|
enabled: Optional[pulumi.Input[bool]] = None,
|
|
738
747
|
external_oauth_allowed_roles_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
739
748
|
external_oauth_any_role_mode: Optional[pulumi.Input[str]] = None,
|
|
@@ -748,9 +757,10 @@ class ExternalOauthIntegration(pulumi.CustomResource):
|
|
|
748
757
|
external_oauth_snowflake_user_mapping_attribute: Optional[pulumi.Input[str]] = None,
|
|
749
758
|
external_oauth_token_user_mapping_claims: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
750
759
|
external_oauth_type: Optional[pulumi.Input[str]] = None,
|
|
760
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
751
761
|
name: Optional[pulumi.Input[str]] = None,
|
|
752
|
-
related_parameters: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
753
|
-
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
762
|
+
related_parameters: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalOauthIntegrationRelatedParameterArgs', 'ExternalOauthIntegrationRelatedParameterArgsDict']]]]] = None,
|
|
763
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalOauthIntegrationShowOutputArgs', 'ExternalOauthIntegrationShowOutputArgsDict']]]]] = None) -> 'ExternalOauthIntegration':
|
|
754
764
|
"""
|
|
755
765
|
Get an existing ExternalOauthIntegration resource's state with the given name, id, and optional extra
|
|
756
766
|
properties used to qualify the lookup.
|
|
@@ -759,7 +769,7 @@ class ExternalOauthIntegration(pulumi.CustomResource):
|
|
|
759
769
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
760
770
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
761
771
|
:param pulumi.Input[str] comment: Specifies a comment for the OAuth integration.
|
|
762
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
772
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalOauthIntegrationDescribeOutputArgs', 'ExternalOauthIntegrationDescribeOutputArgsDict']]]] describe_outputs: Outputs the result of `DESCRIBE SECURITY INTEGRATIONS` for the given security integration.
|
|
763
773
|
:param pulumi.Input[bool] enabled: Specifies whether to initiate operation of the integration or suspend it.
|
|
764
774
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] external_oauth_allowed_roles_lists: Specifies the list of roles that the client can set as the primary role.
|
|
765
775
|
:param pulumi.Input[str] external_oauth_any_role_mode: Specifies whether the OAuth client or user can use a role that is not defined in the OAuth access token. Valid values are (case-insensitive): `DISABLE` | `ENABLE` | `ENABLE_FOR_PRIVILEGE`.
|
|
@@ -774,9 +784,10 @@ class ExternalOauthIntegration(pulumi.CustomResource):
|
|
|
774
784
|
:param pulumi.Input[str] external_oauth_snowflake_user_mapping_attribute: Indicates which Snowflake user record attribute should be used to map the access token to a Snowflake user record. Valid values are (case-insensitive): `LOGIN_NAME` | `EMAIL_ADDRESS`.
|
|
775
785
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] external_oauth_token_user_mapping_claims: Specifies the access token claim or claims that can be used to map the access token to a Snowflake user record. If removed from the config, the resource is recreated.
|
|
776
786
|
:param pulumi.Input[str] external_oauth_type: Specifies the OAuth 2.0 authorization server to be Okta, Microsoft Azure AD, Ping Identity PingFederate, or a Custom OAuth 2.0 authorization server. Valid values are (case-insensitive): `OKTA` | `AZURE` | `PING_FEDERATE` | `CUSTOM`.
|
|
777
|
-
:param pulumi.Input[str]
|
|
778
|
-
:param pulumi.Input[
|
|
779
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
787
|
+
: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).
|
|
788
|
+
:param pulumi.Input[str] name: Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
789
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalOauthIntegrationRelatedParameterArgs', 'ExternalOauthIntegrationRelatedParameterArgsDict']]]] related_parameters: Paramteres related to this security integration.
|
|
790
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalOauthIntegrationShowOutputArgs', 'ExternalOauthIntegrationShowOutputArgsDict']]]] show_outputs: Outputs the result of `SHOW SECURITY INTEGRATIONS` for the given security integration.
|
|
780
791
|
"""
|
|
781
792
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
782
793
|
|
|
@@ -798,6 +809,7 @@ class ExternalOauthIntegration(pulumi.CustomResource):
|
|
|
798
809
|
__props__.__dict__["external_oauth_snowflake_user_mapping_attribute"] = external_oauth_snowflake_user_mapping_attribute
|
|
799
810
|
__props__.__dict__["external_oauth_token_user_mapping_claims"] = external_oauth_token_user_mapping_claims
|
|
800
811
|
__props__.__dict__["external_oauth_type"] = external_oauth_type
|
|
812
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
801
813
|
__props__.__dict__["name"] = name
|
|
802
814
|
__props__.__dict__["related_parameters"] = related_parameters
|
|
803
815
|
__props__.__dict__["show_outputs"] = show_outputs
|
|
@@ -931,11 +943,19 @@ class ExternalOauthIntegration(pulumi.CustomResource):
|
|
|
931
943
|
"""
|
|
932
944
|
return pulumi.get(self, "external_oauth_type")
|
|
933
945
|
|
|
946
|
+
@property
|
|
947
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
948
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
949
|
+
"""
|
|
950
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
951
|
+
"""
|
|
952
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
953
|
+
|
|
934
954
|
@property
|
|
935
955
|
@pulumi.getter
|
|
936
956
|
def name(self) -> pulumi.Output[str]:
|
|
937
957
|
"""
|
|
938
|
-
Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
958
|
+
Specifies the name of the External Oath integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account. Due to technical limitations (read more here), avoid using the following characters: `|`, `.`, `(`, `)`, `"`
|
|
939
959
|
"""
|
|
940
960
|
return pulumi.get(self, "name")
|
|
941
961
|
|
|
@@ -270,6 +270,7 @@ class _ExternalTableState:
|
|
|
270
270
|
copy_grants: Optional[pulumi.Input[bool]] = None,
|
|
271
271
|
database: Optional[pulumi.Input[str]] = None,
|
|
272
272
|
file_format: Optional[pulumi.Input[str]] = None,
|
|
273
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
273
274
|
location: Optional[pulumi.Input[str]] = None,
|
|
274
275
|
name: Optional[pulumi.Input[str]] = None,
|
|
275
276
|
owner: Optional[pulumi.Input[str]] = None,
|
|
@@ -288,6 +289,7 @@ class _ExternalTableState:
|
|
|
288
289
|
: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
|
|
289
290
|
:param pulumi.Input[str] database: The database in which to create the external table.
|
|
290
291
|
:param pulumi.Input[str] file_format: Specifies the file format for the external table.
|
|
292
|
+
: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).
|
|
291
293
|
:param pulumi.Input[str] location: Specifies a location for the external table.
|
|
292
294
|
: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.
|
|
293
295
|
:param pulumi.Input[str] owner: Name of the role that owns the external table.
|
|
@@ -312,6 +314,8 @@ class _ExternalTableState:
|
|
|
312
314
|
pulumi.set(__self__, "database", database)
|
|
313
315
|
if file_format is not None:
|
|
314
316
|
pulumi.set(__self__, "file_format", file_format)
|
|
317
|
+
if fully_qualified_name is not None:
|
|
318
|
+
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
315
319
|
if location is not None:
|
|
316
320
|
pulumi.set(__self__, "location", location)
|
|
317
321
|
if name is not None:
|
|
@@ -418,6 +422,18 @@ class _ExternalTableState:
|
|
|
418
422
|
def file_format(self, value: Optional[pulumi.Input[str]]):
|
|
419
423
|
pulumi.set(self, "file_format", value)
|
|
420
424
|
|
|
425
|
+
@property
|
|
426
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
427
|
+
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
428
|
+
"""
|
|
429
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
430
|
+
"""
|
|
431
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
432
|
+
|
|
433
|
+
@fully_qualified_name.setter
|
|
434
|
+
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
435
|
+
pulumi.set(self, "fully_qualified_name", value)
|
|
436
|
+
|
|
421
437
|
@property
|
|
422
438
|
@pulumi.getter
|
|
423
439
|
def location(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -535,7 +551,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
535
551
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
536
552
|
auto_refresh: Optional[pulumi.Input[bool]] = None,
|
|
537
553
|
aws_sns_topic: Optional[pulumi.Input[str]] = None,
|
|
538
|
-
columns: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
554
|
+
columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableColumnArgs', 'ExternalTableColumnArgsDict']]]]] = None,
|
|
539
555
|
comment: Optional[pulumi.Input[str]] = None,
|
|
540
556
|
copy_grants: Optional[pulumi.Input[bool]] = None,
|
|
541
557
|
database: Optional[pulumi.Input[str]] = None,
|
|
@@ -547,33 +563,9 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
547
563
|
refresh_on_create: Optional[pulumi.Input[bool]] = None,
|
|
548
564
|
schema: Optional[pulumi.Input[str]] = None,
|
|
549
565
|
table_format: Optional[pulumi.Input[str]] = None,
|
|
550
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
566
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableTagArgs', 'ExternalTableTagArgsDict']]]]] = None,
|
|
551
567
|
__props__=None):
|
|
552
568
|
"""
|
|
553
|
-
## Example Usage
|
|
554
|
-
|
|
555
|
-
```python
|
|
556
|
-
import pulumi
|
|
557
|
-
import pulumi_snowflake as snowflake
|
|
558
|
-
|
|
559
|
-
external_table = snowflake.ExternalTable("external_table",
|
|
560
|
-
database="db",
|
|
561
|
-
schema="schema",
|
|
562
|
-
name="external_table",
|
|
563
|
-
comment="External table",
|
|
564
|
-
file_format="TYPE = CSV FIELD_DELIMITER = '|'",
|
|
565
|
-
columns=[
|
|
566
|
-
snowflake.ExternalTableColumnArgs(
|
|
567
|
-
name="id",
|
|
568
|
-
type="int",
|
|
569
|
-
),
|
|
570
|
-
snowflake.ExternalTableColumnArgs(
|
|
571
|
-
name="data",
|
|
572
|
-
type="text",
|
|
573
|
-
),
|
|
574
|
-
])
|
|
575
|
-
```
|
|
576
|
-
|
|
577
569
|
## Import
|
|
578
570
|
|
|
579
571
|
format is database name | schema name | external table name
|
|
@@ -586,7 +578,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
586
578
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
587
579
|
:param pulumi.Input[bool] auto_refresh: Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.
|
|
588
580
|
:param pulumi.Input[str] aws_sns_topic: Specifies the aws sns topic for the external table.
|
|
589
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
581
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableColumnArgs', 'ExternalTableColumnArgsDict']]]] columns: Definitions of a column to create in the external table. Minimum one required.
|
|
590
582
|
:param pulumi.Input[str] comment: Specifies a comment for the external table.
|
|
591
583
|
: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
|
|
592
584
|
:param pulumi.Input[str] database: The database in which to create the external table.
|
|
@@ -598,7 +590,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
598
590
|
:param pulumi.Input[bool] refresh_on_create: Specifies weather to refresh when an external table is created.
|
|
599
591
|
:param pulumi.Input[str] schema: The schema in which to create the external table.
|
|
600
592
|
:param pulumi.Input[str] table_format: Identifies the external table table type. For now, only "delta" for Delta Lake table format is supported.
|
|
601
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
593
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableTagArgs', 'ExternalTableTagArgsDict']]]] tags: Definitions of a tag to associate with the resource.
|
|
602
594
|
"""
|
|
603
595
|
...
|
|
604
596
|
@overload
|
|
@@ -607,30 +599,6 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
607
599
|
args: ExternalTableArgs,
|
|
608
600
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
609
601
|
"""
|
|
610
|
-
## Example Usage
|
|
611
|
-
|
|
612
|
-
```python
|
|
613
|
-
import pulumi
|
|
614
|
-
import pulumi_snowflake as snowflake
|
|
615
|
-
|
|
616
|
-
external_table = snowflake.ExternalTable("external_table",
|
|
617
|
-
database="db",
|
|
618
|
-
schema="schema",
|
|
619
|
-
name="external_table",
|
|
620
|
-
comment="External table",
|
|
621
|
-
file_format="TYPE = CSV FIELD_DELIMITER = '|'",
|
|
622
|
-
columns=[
|
|
623
|
-
snowflake.ExternalTableColumnArgs(
|
|
624
|
-
name="id",
|
|
625
|
-
type="int",
|
|
626
|
-
),
|
|
627
|
-
snowflake.ExternalTableColumnArgs(
|
|
628
|
-
name="data",
|
|
629
|
-
type="text",
|
|
630
|
-
),
|
|
631
|
-
])
|
|
632
|
-
```
|
|
633
|
-
|
|
634
602
|
## Import
|
|
635
603
|
|
|
636
604
|
format is database name | schema name | external table name
|
|
@@ -656,7 +624,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
656
624
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
657
625
|
auto_refresh: Optional[pulumi.Input[bool]] = None,
|
|
658
626
|
aws_sns_topic: Optional[pulumi.Input[str]] = None,
|
|
659
|
-
columns: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
627
|
+
columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableColumnArgs', 'ExternalTableColumnArgsDict']]]]] = None,
|
|
660
628
|
comment: Optional[pulumi.Input[str]] = None,
|
|
661
629
|
copy_grants: Optional[pulumi.Input[bool]] = None,
|
|
662
630
|
database: Optional[pulumi.Input[str]] = None,
|
|
@@ -668,7 +636,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
668
636
|
refresh_on_create: Optional[pulumi.Input[bool]] = None,
|
|
669
637
|
schema: Optional[pulumi.Input[str]] = None,
|
|
670
638
|
table_format: Optional[pulumi.Input[str]] = None,
|
|
671
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
639
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableTagArgs', 'ExternalTableTagArgsDict']]]]] = None,
|
|
672
640
|
__props__=None):
|
|
673
641
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
674
642
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -703,6 +671,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
703
671
|
__props__.__dict__["schema"] = schema
|
|
704
672
|
__props__.__dict__["table_format"] = table_format
|
|
705
673
|
__props__.__dict__["tags"] = tags
|
|
674
|
+
__props__.__dict__["fully_qualified_name"] = None
|
|
706
675
|
__props__.__dict__["owner"] = None
|
|
707
676
|
super(ExternalTable, __self__).__init__(
|
|
708
677
|
'snowflake:index/externalTable:ExternalTable',
|
|
@@ -716,11 +685,12 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
716
685
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
717
686
|
auto_refresh: Optional[pulumi.Input[bool]] = None,
|
|
718
687
|
aws_sns_topic: Optional[pulumi.Input[str]] = None,
|
|
719
|
-
columns: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
688
|
+
columns: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableColumnArgs', 'ExternalTableColumnArgsDict']]]]] = None,
|
|
720
689
|
comment: Optional[pulumi.Input[str]] = None,
|
|
721
690
|
copy_grants: Optional[pulumi.Input[bool]] = None,
|
|
722
691
|
database: Optional[pulumi.Input[str]] = None,
|
|
723
692
|
file_format: Optional[pulumi.Input[str]] = None,
|
|
693
|
+
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
724
694
|
location: Optional[pulumi.Input[str]] = None,
|
|
725
695
|
name: Optional[pulumi.Input[str]] = None,
|
|
726
696
|
owner: Optional[pulumi.Input[str]] = None,
|
|
@@ -729,7 +699,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
729
699
|
refresh_on_create: Optional[pulumi.Input[bool]] = None,
|
|
730
700
|
schema: Optional[pulumi.Input[str]] = None,
|
|
731
701
|
table_format: Optional[pulumi.Input[str]] = None,
|
|
732
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
702
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableTagArgs', 'ExternalTableTagArgsDict']]]]] = None) -> 'ExternalTable':
|
|
733
703
|
"""
|
|
734
704
|
Get an existing ExternalTable resource's state with the given name, id, and optional extra
|
|
735
705
|
properties used to qualify the lookup.
|
|
@@ -739,11 +709,12 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
739
709
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
740
710
|
:param pulumi.Input[bool] auto_refresh: Specifies whether to automatically refresh the external table metadata once, immediately after the external table is created.
|
|
741
711
|
:param pulumi.Input[str] aws_sns_topic: Specifies the aws sns topic for the external table.
|
|
742
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
712
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableColumnArgs', 'ExternalTableColumnArgsDict']]]] columns: Definitions of a column to create in the external table. Minimum one required.
|
|
743
713
|
:param pulumi.Input[str] comment: Specifies a comment for the external table.
|
|
744
714
|
: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
|
|
745
715
|
:param pulumi.Input[str] database: The database in which to create the external table.
|
|
746
716
|
:param pulumi.Input[str] file_format: Specifies the file format for the external table.
|
|
717
|
+
: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).
|
|
747
718
|
:param pulumi.Input[str] location: Specifies a location for the external table.
|
|
748
719
|
: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.
|
|
749
720
|
:param pulumi.Input[str] owner: Name of the role that owns the external table.
|
|
@@ -752,7 +723,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
752
723
|
:param pulumi.Input[bool] refresh_on_create: Specifies weather to refresh when an external table is created.
|
|
753
724
|
:param pulumi.Input[str] schema: The schema in which to create the external table.
|
|
754
725
|
:param pulumi.Input[str] table_format: Identifies the external table table type. For now, only "delta" for Delta Lake table format is supported.
|
|
755
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
726
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ExternalTableTagArgs', 'ExternalTableTagArgsDict']]]] tags: Definitions of a tag to associate with the resource.
|
|
756
727
|
"""
|
|
757
728
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
758
729
|
|
|
@@ -765,6 +736,7 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
765
736
|
__props__.__dict__["copy_grants"] = copy_grants
|
|
766
737
|
__props__.__dict__["database"] = database
|
|
767
738
|
__props__.__dict__["file_format"] = file_format
|
|
739
|
+
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
768
740
|
__props__.__dict__["location"] = location
|
|
769
741
|
__props__.__dict__["name"] = name
|
|
770
742
|
__props__.__dict__["owner"] = owner
|
|
@@ -832,6 +804,14 @@ class ExternalTable(pulumi.CustomResource):
|
|
|
832
804
|
"""
|
|
833
805
|
return pulumi.get(self, "file_format")
|
|
834
806
|
|
|
807
|
+
@property
|
|
808
|
+
@pulumi.getter(name="fullyQualifiedName")
|
|
809
|
+
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
810
|
+
"""
|
|
811
|
+
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
812
|
+
"""
|
|
813
|
+
return pulumi.get(self, "fully_qualified_name")
|
|
814
|
+
|
|
835
815
|
@property
|
|
836
816
|
@pulumi.getter
|
|
837
817
|
def location(self) -> pulumi.Output[str]:
|