pulumi-snowflake 0.58.0__py3-none-any.whl → 0.58.0a1722527984__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/_inputs.py +125 -5857
- pulumi_snowflake/account.py +50 -28
- pulumi_snowflake/account_parameter.py +28 -0
- pulumi_snowflake/account_password_policy_attachment.py +30 -2
- pulumi_snowflake/account_role.py +32 -51
- pulumi_snowflake/alert.py +45 -33
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +19 -39
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +19 -39
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +19 -39
- pulumi_snowflake/api_integration.py +54 -28
- pulumi_snowflake/cortex_search_service.py +0 -28
- pulumi_snowflake/database.py +148 -97
- pulumi_snowflake/database_old.py +77 -5
- pulumi_snowflake/database_role.py +42 -76
- pulumi_snowflake/dynamic_table.py +43 -33
- pulumi_snowflake/email_notification_integration.py +26 -28
- pulumi_snowflake/external_function.py +62 -38
- pulumi_snowflake/external_oauth_integration.py +21 -41
- pulumi_snowflake/external_table.py +58 -38
- pulumi_snowflake/failover_group.py +82 -38
- pulumi_snowflake/file_format.py +26 -28
- pulumi_snowflake/function.py +9 -33
- pulumi_snowflake/get_cortex_search_services.py +16 -16
- pulumi_snowflake/get_database_roles.py +38 -61
- pulumi_snowflake/get_databases.py +6 -6
- pulumi_snowflake/get_dynamic_tables.py +12 -12
- pulumi_snowflake/get_grants.py +138 -138
- pulumi_snowflake/get_network_policies.py +2 -2
- pulumi_snowflake/get_roles.py +2 -2
- pulumi_snowflake/get_schemas.py +8 -12
- pulumi_snowflake/get_security_integrations.py +2 -2
- pulumi_snowflake/get_streamlits.py +10 -10
- pulumi_snowflake/get_users.py +33 -96
- pulumi_snowflake/get_views.py +53 -92
- pulumi_snowflake/get_warehouses.py +2 -2
- pulumi_snowflake/grant_account_role.py +4 -0
- pulumi_snowflake/grant_application_role.py +4 -0
- pulumi_snowflake/grant_database_role.py +4 -0
- 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 +12 -16
- pulumi_snowflake/grant_privileges_to_share.py +0 -47
- pulumi_snowflake/managed_account.py +4 -28
- pulumi_snowflake/masking_policy.py +89 -33
- pulumi_snowflake/materialized_view.py +39 -33
- pulumi_snowflake/network_policy.py +49 -47
- pulumi_snowflake/network_policy_attachment.py +30 -0
- pulumi_snowflake/network_rule.py +66 -28
- pulumi_snowflake/notification_integration.py +34 -28
- pulumi_snowflake/oauth_integration.py +34 -0
- pulumi_snowflake/oauth_integration_for_custom_clients.py +105 -39
- pulumi_snowflake/oauth_integration_for_partner_applications.py +19 -39
- pulumi_snowflake/object_parameter.py +103 -5
- pulumi_snowflake/outputs.py +4207 -12013
- pulumi_snowflake/password_policy.py +28 -28
- pulumi_snowflake/pipe.py +4 -28
- pulumi_snowflake/procedure.py +9 -33
- pulumi_snowflake/provider.py +16 -16
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +48 -28
- pulumi_snowflake/role.py +32 -51
- pulumi_snowflake/row_access_policy.py +34 -28
- pulumi_snowflake/saml2_integration.py +19 -39
- pulumi_snowflake/saml_integration.py +34 -0
- pulumi_snowflake/schema.py +28 -52
- pulumi_snowflake/scim_integration.py +19 -39
- pulumi_snowflake/secondary_database.py +19 -35
- pulumi_snowflake/sequence.py +36 -4
- pulumi_snowflake/session_parameter.py +32 -0
- pulumi_snowflake/share.py +28 -28
- pulumi_snowflake/shared_database.py +15 -35
- pulumi_snowflake/stage.py +33 -33
- pulumi_snowflake/storage_integration.py +4 -28
- pulumi_snowflake/stream.py +4 -28
- pulumi_snowflake/streamlit.py +19 -39
- pulumi_snowflake/table.py +47 -43
- pulumi_snowflake/table_column_masking_policy_application.py +14 -2
- pulumi_snowflake/table_constraint.py +157 -5
- pulumi_snowflake/tag.py +40 -28
- pulumi_snowflake/tag_association.py +125 -5
- pulumi_snowflake/tag_masking_policy_association.py +4 -0
- pulumi_snowflake/task.py +92 -28
- pulumi_snowflake/unsafe_execute.py +20 -2
- pulumi_snowflake/user.py +373 -3346
- pulumi_snowflake/user_password_policy_attachment.py +36 -0
- pulumi_snowflake/view.py +185 -465
- pulumi_snowflake/warehouse.py +43 -39
- {pulumi_snowflake-0.58.0.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/METADATA +1 -1
- pulumi_snowflake-0.58.0a1722527984.dist-info/RECORD +129 -0
- {pulumi_snowflake-0.58.0.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/WHEEL +1 -1
- pulumi_snowflake-0.58.0.dist-info/RECORD +0 -129
- {pulumi_snowflake-0.58.0.dist-info → pulumi_snowflake-0.58.0a1722527984.dist-info}/top_level.txt +0 -0
|
@@ -38,7 +38,7 @@ class OauthIntegrationForCustomClientsArgs:
|
|
|
38
38
|
:param pulumi.Input[str] oauth_redirect_uri: Specifies the client URI. After a user is authenticated, the web browser is redirected to this URI.
|
|
39
39
|
:param pulumi.Input[str] comment: Specifies a comment for the OAuth integration.
|
|
40
40
|
:param pulumi.Input[str] enabled: Specifies whether this OAuth integration is enabled or disabled. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
41
|
-
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
41
|
+
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
42
42
|
:param pulumi.Input[str] network_policy: Specifies an existing network policy. This network policy controls network traffic that is attempting to exchange an authorization code for an access or refresh token or to use a refresh token to obtain a new access token.
|
|
43
43
|
:param pulumi.Input[str] oauth_allow_non_tls_redirect_uri: If true, allows setting oauth*redirect*uri to a URI not protected by TLS. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
44
44
|
:param pulumi.Input[str] oauth_enforce_pkce: Boolean that specifies whether Proof Key for Code Exchange (PKCE) should be required for the integration. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
@@ -139,7 +139,7 @@ class OauthIntegrationForCustomClientsArgs:
|
|
|
139
139
|
@pulumi.getter
|
|
140
140
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
141
141
|
"""
|
|
142
|
-
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
142
|
+
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
143
143
|
"""
|
|
144
144
|
return pulumi.get(self, "name")
|
|
145
145
|
|
|
@@ -257,7 +257,6 @@ class _OauthIntegrationForCustomClientsState:
|
|
|
257
257
|
comment: Optional[pulumi.Input[str]] = None,
|
|
258
258
|
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['OauthIntegrationForCustomClientsDescribeOutputArgs']]]] = None,
|
|
259
259
|
enabled: Optional[pulumi.Input[str]] = None,
|
|
260
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
261
260
|
name: Optional[pulumi.Input[str]] = None,
|
|
262
261
|
network_policy: Optional[pulumi.Input[str]] = None,
|
|
263
262
|
oauth_allow_non_tls_redirect_uri: Optional[pulumi.Input[str]] = None,
|
|
@@ -277,8 +276,7 @@ class _OauthIntegrationForCustomClientsState:
|
|
|
277
276
|
:param pulumi.Input[str] comment: Specifies a comment for the OAuth integration.
|
|
278
277
|
:param pulumi.Input[Sequence[pulumi.Input['OauthIntegrationForCustomClientsDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE SECURITY INTEGRATION` for the given integration.
|
|
279
278
|
:param pulumi.Input[str] enabled: Specifies whether this OAuth integration is enabled or disabled. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
280
|
-
:param pulumi.Input[str]
|
|
281
|
-
:param pulumi.Input[str] name: Specifies the name of the OAuth 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: `|`, `.`, `(`, `)`, `"`
|
|
279
|
+
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
282
280
|
:param pulumi.Input[str] network_policy: Specifies an existing network policy. This network policy controls network traffic that is attempting to exchange an authorization code for an access or refresh token or to use a refresh token to obtain a new access token.
|
|
283
281
|
:param pulumi.Input[str] oauth_allow_non_tls_redirect_uri: If true, allows setting oauth*redirect*uri to a URI not protected by TLS. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
284
282
|
:param pulumi.Input[str] oauth_client_type: Specifies the type of client being registered. Snowflake supports both confidential and public clients. Valid options are: `PUBLIC` | `CONFIDENTIAL`.
|
|
@@ -298,8 +296,6 @@ class _OauthIntegrationForCustomClientsState:
|
|
|
298
296
|
pulumi.set(__self__, "describe_outputs", describe_outputs)
|
|
299
297
|
if enabled is not None:
|
|
300
298
|
pulumi.set(__self__, "enabled", enabled)
|
|
301
|
-
if fully_qualified_name is not None:
|
|
302
|
-
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
303
299
|
if name is not None:
|
|
304
300
|
pulumi.set(__self__, "name", name)
|
|
305
301
|
if network_policy is not None:
|
|
@@ -375,23 +371,11 @@ class _OauthIntegrationForCustomClientsState:
|
|
|
375
371
|
def enabled(self, value: Optional[pulumi.Input[str]]):
|
|
376
372
|
pulumi.set(self, "enabled", value)
|
|
377
373
|
|
|
378
|
-
@property
|
|
379
|
-
@pulumi.getter(name="fullyQualifiedName")
|
|
380
|
-
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
381
|
-
"""
|
|
382
|
-
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
383
|
-
"""
|
|
384
|
-
return pulumi.get(self, "fully_qualified_name")
|
|
385
|
-
|
|
386
|
-
@fully_qualified_name.setter
|
|
387
|
-
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
388
|
-
pulumi.set(self, "fully_qualified_name", value)
|
|
389
|
-
|
|
390
374
|
@property
|
|
391
375
|
@pulumi.getter
|
|
392
376
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
393
377
|
"""
|
|
394
|
-
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
378
|
+
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
395
379
|
"""
|
|
396
380
|
return pulumi.get(self, "name")
|
|
397
381
|
|
|
@@ -560,6 +544,53 @@ class OauthIntegrationForCustomClients(pulumi.CustomResource):
|
|
|
560
544
|
pre_authorized_roles_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
561
545
|
__props__=None):
|
|
562
546
|
"""
|
|
547
|
+
!> **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.
|
|
548
|
+
|
|
549
|
+
Resource used to manage oauth security integration for custom clients objects. For more information, check [security integrations documentation](https://docs.snowflake.com/en/sql-reference/sql/create-security-integration-oauth-snowflake).
|
|
550
|
+
|
|
551
|
+
## Example Usage
|
|
552
|
+
|
|
553
|
+
```python
|
|
554
|
+
import pulumi
|
|
555
|
+
import pulumi_snowflake as snowflake
|
|
556
|
+
import pulumi_std as std
|
|
557
|
+
|
|
558
|
+
# basic resource
|
|
559
|
+
basic = snowflake.OauthIntegrationForCustomClients("basic",
|
|
560
|
+
name="saml_integration",
|
|
561
|
+
oauth_client_type="CONFIDENTIAL",
|
|
562
|
+
oauth_redirect_uri="https://example.com",
|
|
563
|
+
blocked_roles_lists=[
|
|
564
|
+
"ACCOUNTADMIN",
|
|
565
|
+
"SECURITYADMIN",
|
|
566
|
+
])
|
|
567
|
+
# resource with all fields set
|
|
568
|
+
complete = snowflake.OauthIntegrationForCustomClients("complete",
|
|
569
|
+
name="saml_integration",
|
|
570
|
+
oauth_client_type="CONFIDENTIAL",
|
|
571
|
+
oauth_redirect_uri="https://example.com",
|
|
572
|
+
enabled="true",
|
|
573
|
+
oauth_allow_non_tls_redirect_uri="true",
|
|
574
|
+
oauth_enforce_pkce="true",
|
|
575
|
+
oauth_use_secondary_roles="NONE",
|
|
576
|
+
pre_authorized_roles_lists=[
|
|
577
|
+
"role_id1",
|
|
578
|
+
"role_id2",
|
|
579
|
+
],
|
|
580
|
+
blocked_roles_lists=[
|
|
581
|
+
"ACCOUNTADMIN",
|
|
582
|
+
"SECURITYADMIN",
|
|
583
|
+
"role_id1",
|
|
584
|
+
"role_id2",
|
|
585
|
+
],
|
|
586
|
+
oauth_issue_refresh_tokens="true",
|
|
587
|
+
oauth_refresh_token_validity=87600,
|
|
588
|
+
network_policy="network_policy_id",
|
|
589
|
+
oauth_client_rsa_public_key=std.file(input="rsa.pub").result,
|
|
590
|
+
oauth_client_rsa_public_key2=std.file(input="rsa2.pub").result,
|
|
591
|
+
comment="my oauth integration")
|
|
592
|
+
```
|
|
593
|
+
|
|
563
594
|
## Import
|
|
564
595
|
|
|
565
596
|
```sh
|
|
@@ -571,7 +602,7 @@ class OauthIntegrationForCustomClients(pulumi.CustomResource):
|
|
|
571
602
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_roles_lists: A set of Snowflake roles that a user cannot explicitly consent to using after authenticating.
|
|
572
603
|
:param pulumi.Input[str] comment: Specifies a comment for the OAuth integration.
|
|
573
604
|
:param pulumi.Input[str] enabled: Specifies whether this OAuth integration is enabled or disabled. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
574
|
-
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
605
|
+
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
575
606
|
:param pulumi.Input[str] network_policy: Specifies an existing network policy. This network policy controls network traffic that is attempting to exchange an authorization code for an access or refresh token or to use a refresh token to obtain a new access token.
|
|
576
607
|
:param pulumi.Input[str] oauth_allow_non_tls_redirect_uri: If true, allows setting oauth*redirect*uri to a URI not protected by TLS. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
577
608
|
:param pulumi.Input[str] oauth_client_type: Specifies the type of client being registered. Snowflake supports both confidential and public clients. Valid options are: `PUBLIC` | `CONFIDENTIAL`.
|
|
@@ -589,6 +620,53 @@ class OauthIntegrationForCustomClients(pulumi.CustomResource):
|
|
|
589
620
|
args: OauthIntegrationForCustomClientsArgs,
|
|
590
621
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
591
622
|
"""
|
|
623
|
+
!> **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.
|
|
624
|
+
|
|
625
|
+
Resource used to manage oauth security integration for custom clients objects. For more information, check [security integrations documentation](https://docs.snowflake.com/en/sql-reference/sql/create-security-integration-oauth-snowflake).
|
|
626
|
+
|
|
627
|
+
## Example Usage
|
|
628
|
+
|
|
629
|
+
```python
|
|
630
|
+
import pulumi
|
|
631
|
+
import pulumi_snowflake as snowflake
|
|
632
|
+
import pulumi_std as std
|
|
633
|
+
|
|
634
|
+
# basic resource
|
|
635
|
+
basic = snowflake.OauthIntegrationForCustomClients("basic",
|
|
636
|
+
name="saml_integration",
|
|
637
|
+
oauth_client_type="CONFIDENTIAL",
|
|
638
|
+
oauth_redirect_uri="https://example.com",
|
|
639
|
+
blocked_roles_lists=[
|
|
640
|
+
"ACCOUNTADMIN",
|
|
641
|
+
"SECURITYADMIN",
|
|
642
|
+
])
|
|
643
|
+
# resource with all fields set
|
|
644
|
+
complete = snowflake.OauthIntegrationForCustomClients("complete",
|
|
645
|
+
name="saml_integration",
|
|
646
|
+
oauth_client_type="CONFIDENTIAL",
|
|
647
|
+
oauth_redirect_uri="https://example.com",
|
|
648
|
+
enabled="true",
|
|
649
|
+
oauth_allow_non_tls_redirect_uri="true",
|
|
650
|
+
oauth_enforce_pkce="true",
|
|
651
|
+
oauth_use_secondary_roles="NONE",
|
|
652
|
+
pre_authorized_roles_lists=[
|
|
653
|
+
"role_id1",
|
|
654
|
+
"role_id2",
|
|
655
|
+
],
|
|
656
|
+
blocked_roles_lists=[
|
|
657
|
+
"ACCOUNTADMIN",
|
|
658
|
+
"SECURITYADMIN",
|
|
659
|
+
"role_id1",
|
|
660
|
+
"role_id2",
|
|
661
|
+
],
|
|
662
|
+
oauth_issue_refresh_tokens="true",
|
|
663
|
+
oauth_refresh_token_validity=87600,
|
|
664
|
+
network_policy="network_policy_id",
|
|
665
|
+
oauth_client_rsa_public_key=std.file(input="rsa.pub").result,
|
|
666
|
+
oauth_client_rsa_public_key2=std.file(input="rsa2.pub").result,
|
|
667
|
+
comment="my oauth integration")
|
|
668
|
+
```
|
|
669
|
+
|
|
592
670
|
## Import
|
|
593
671
|
|
|
594
672
|
```sh
|
|
@@ -656,7 +734,6 @@ class OauthIntegrationForCustomClients(pulumi.CustomResource):
|
|
|
656
734
|
__props__.__dict__["oauth_use_secondary_roles"] = oauth_use_secondary_roles
|
|
657
735
|
__props__.__dict__["pre_authorized_roles_lists"] = pre_authorized_roles_lists
|
|
658
736
|
__props__.__dict__["describe_outputs"] = None
|
|
659
|
-
__props__.__dict__["fully_qualified_name"] = None
|
|
660
737
|
__props__.__dict__["show_outputs"] = None
|
|
661
738
|
super(OauthIntegrationForCustomClients, __self__).__init__(
|
|
662
739
|
'snowflake:index/oauthIntegrationForCustomClients:OauthIntegrationForCustomClients',
|
|
@@ -670,9 +747,8 @@ class OauthIntegrationForCustomClients(pulumi.CustomResource):
|
|
|
670
747
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
671
748
|
blocked_roles_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
672
749
|
comment: Optional[pulumi.Input[str]] = None,
|
|
673
|
-
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
750
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OauthIntegrationForCustomClientsDescribeOutputArgs']]]]] = None,
|
|
674
751
|
enabled: Optional[pulumi.Input[str]] = None,
|
|
675
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
676
752
|
name: Optional[pulumi.Input[str]] = None,
|
|
677
753
|
network_policy: Optional[pulumi.Input[str]] = None,
|
|
678
754
|
oauth_allow_non_tls_redirect_uri: Optional[pulumi.Input[str]] = None,
|
|
@@ -685,7 +761,7 @@ class OauthIntegrationForCustomClients(pulumi.CustomResource):
|
|
|
685
761
|
oauth_refresh_token_validity: Optional[pulumi.Input[int]] = None,
|
|
686
762
|
oauth_use_secondary_roles: Optional[pulumi.Input[str]] = None,
|
|
687
763
|
pre_authorized_roles_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
688
|
-
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
764
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OauthIntegrationForCustomClientsShowOutputArgs']]]]] = None) -> 'OauthIntegrationForCustomClients':
|
|
689
765
|
"""
|
|
690
766
|
Get an existing OauthIntegrationForCustomClients resource's state with the given name, id, and optional extra
|
|
691
767
|
properties used to qualify the lookup.
|
|
@@ -695,10 +771,9 @@ class OauthIntegrationForCustomClients(pulumi.CustomResource):
|
|
|
695
771
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
696
772
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_roles_lists: A set of Snowflake roles that a user cannot explicitly consent to using after authenticating.
|
|
697
773
|
:param pulumi.Input[str] comment: Specifies a comment for the OAuth integration.
|
|
698
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
774
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OauthIntegrationForCustomClientsDescribeOutputArgs']]]] describe_outputs: Outputs the result of `DESCRIBE SECURITY INTEGRATION` for the given integration.
|
|
699
775
|
:param pulumi.Input[str] enabled: Specifies whether this OAuth integration is enabled or disabled. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
700
|
-
:param pulumi.Input[str]
|
|
701
|
-
:param pulumi.Input[str] name: Specifies the name of the OAuth 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: `|`, `.`, `(`, `)`, `"`
|
|
776
|
+
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
702
777
|
:param pulumi.Input[str] network_policy: Specifies an existing network policy. This network policy controls network traffic that is attempting to exchange an authorization code for an access or refresh token or to use a refresh token to obtain a new access token.
|
|
703
778
|
:param pulumi.Input[str] oauth_allow_non_tls_redirect_uri: If true, allows setting oauth*redirect*uri to a URI not protected by TLS. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
704
779
|
:param pulumi.Input[str] oauth_client_type: Specifies the type of client being registered. Snowflake supports both confidential and public clients. Valid options are: `PUBLIC` | `CONFIDENTIAL`.
|
|
@@ -708,7 +783,7 @@ class OauthIntegrationForCustomClients(pulumi.CustomResource):
|
|
|
708
783
|
:param pulumi.Input[int] oauth_refresh_token_validity: Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
|
|
709
784
|
:param pulumi.Input[str] oauth_use_secondary_roles: Specifies whether default secondary roles set in the user properties are activated by default in the session being opened. Valid options are: `IMPLICIT` | `NONE`.
|
|
710
785
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] pre_authorized_roles_lists: A set of Snowflake roles that a user does not need to explicitly consent to using after authenticating.
|
|
711
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
786
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OauthIntegrationForCustomClientsShowOutputArgs']]]] show_outputs: Outputs the result of `SHOW SECURITY INTEGRATION` for the given integration.
|
|
712
787
|
"""
|
|
713
788
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
714
789
|
|
|
@@ -718,7 +793,6 @@ class OauthIntegrationForCustomClients(pulumi.CustomResource):
|
|
|
718
793
|
__props__.__dict__["comment"] = comment
|
|
719
794
|
__props__.__dict__["describe_outputs"] = describe_outputs
|
|
720
795
|
__props__.__dict__["enabled"] = enabled
|
|
721
|
-
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
722
796
|
__props__.__dict__["name"] = name
|
|
723
797
|
__props__.__dict__["network_policy"] = network_policy
|
|
724
798
|
__props__.__dict__["oauth_allow_non_tls_redirect_uri"] = oauth_allow_non_tls_redirect_uri
|
|
@@ -766,19 +840,11 @@ class OauthIntegrationForCustomClients(pulumi.CustomResource):
|
|
|
766
840
|
"""
|
|
767
841
|
return pulumi.get(self, "enabled")
|
|
768
842
|
|
|
769
|
-
@property
|
|
770
|
-
@pulumi.getter(name="fullyQualifiedName")
|
|
771
|
-
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
772
|
-
"""
|
|
773
|
-
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
774
|
-
"""
|
|
775
|
-
return pulumi.get(self, "fully_qualified_name")
|
|
776
|
-
|
|
777
843
|
@property
|
|
778
844
|
@pulumi.getter
|
|
779
845
|
def name(self) -> pulumi.Output[str]:
|
|
780
846
|
"""
|
|
781
|
-
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
847
|
+
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
782
848
|
"""
|
|
783
849
|
return pulumi.get(self, "name")
|
|
784
850
|
|
|
@@ -31,7 +31,7 @@ class OauthIntegrationForPartnerApplicationsArgs:
|
|
|
31
31
|
:param pulumi.Input[str] oauth_client: Creates an OAuth interface between Snowflake and a partner application. Valid options are: `LOOKER` | `TABLEAU_DESKTOP` | `TABLEAU_SERVER`.
|
|
32
32
|
:param pulumi.Input[str] comment: Specifies a comment for the OAuth integration.
|
|
33
33
|
:param pulumi.Input[str] enabled: Specifies whether this OAuth integration is enabled or disabled. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
34
|
-
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
34
|
+
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
35
35
|
:param pulumi.Input[str] oauth_issue_refresh_tokens: Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
36
36
|
:param pulumi.Input[int] oauth_refresh_token_validity: Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
|
|
37
37
|
:param pulumi.Input[str] oauth_use_secondary_roles: Specifies whether default secondary roles set in the user properties are activated by default in the session being opened. Valid options are: `IMPLICIT` | `NONE`.
|
|
@@ -105,7 +105,7 @@ class OauthIntegrationForPartnerApplicationsArgs:
|
|
|
105
105
|
@pulumi.getter
|
|
106
106
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
107
107
|
"""
|
|
108
|
-
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
108
|
+
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
109
109
|
"""
|
|
110
110
|
return pulumi.get(self, "name")
|
|
111
111
|
|
|
@@ -166,7 +166,6 @@ class _OauthIntegrationForPartnerApplicationsState:
|
|
|
166
166
|
comment: Optional[pulumi.Input[str]] = None,
|
|
167
167
|
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input['OauthIntegrationForPartnerApplicationsDescribeOutputArgs']]]] = None,
|
|
168
168
|
enabled: Optional[pulumi.Input[str]] = None,
|
|
169
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
170
169
|
name: Optional[pulumi.Input[str]] = None,
|
|
171
170
|
oauth_client: Optional[pulumi.Input[str]] = None,
|
|
172
171
|
oauth_issue_refresh_tokens: Optional[pulumi.Input[str]] = None,
|
|
@@ -180,8 +179,7 @@ class _OauthIntegrationForPartnerApplicationsState:
|
|
|
180
179
|
:param pulumi.Input[str] comment: Specifies a comment for the OAuth integration.
|
|
181
180
|
:param pulumi.Input[Sequence[pulumi.Input['OauthIntegrationForPartnerApplicationsDescribeOutputArgs']]] describe_outputs: Outputs the result of `DESCRIBE SECURITY INTEGRATION` for the given integration.
|
|
182
181
|
:param pulumi.Input[str] enabled: Specifies whether this OAuth integration is enabled or disabled. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
183
|
-
:param pulumi.Input[str]
|
|
184
|
-
:param pulumi.Input[str] name: Specifies the name of the OAuth 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: `|`, `.`, `(`, `)`, `"`
|
|
182
|
+
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
185
183
|
:param pulumi.Input[str] oauth_client: Creates an OAuth interface between Snowflake and a partner application. Valid options are: `LOOKER` | `TABLEAU_DESKTOP` | `TABLEAU_SERVER`.
|
|
186
184
|
:param pulumi.Input[str] oauth_issue_refresh_tokens: Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
187
185
|
:param pulumi.Input[int] oauth_refresh_token_validity: Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
|
|
@@ -196,8 +194,6 @@ class _OauthIntegrationForPartnerApplicationsState:
|
|
|
196
194
|
pulumi.set(__self__, "describe_outputs", describe_outputs)
|
|
197
195
|
if enabled is not None:
|
|
198
196
|
pulumi.set(__self__, "enabled", enabled)
|
|
199
|
-
if fully_qualified_name is not None:
|
|
200
|
-
pulumi.set(__self__, "fully_qualified_name", fully_qualified_name)
|
|
201
197
|
if name is not None:
|
|
202
198
|
pulumi.set(__self__, "name", name)
|
|
203
199
|
if oauth_client is not None:
|
|
@@ -261,23 +257,11 @@ class _OauthIntegrationForPartnerApplicationsState:
|
|
|
261
257
|
def enabled(self, value: Optional[pulumi.Input[str]]):
|
|
262
258
|
pulumi.set(self, "enabled", value)
|
|
263
259
|
|
|
264
|
-
@property
|
|
265
|
-
@pulumi.getter(name="fullyQualifiedName")
|
|
266
|
-
def fully_qualified_name(self) -> Optional[pulumi.Input[str]]:
|
|
267
|
-
"""
|
|
268
|
-
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
269
|
-
"""
|
|
270
|
-
return pulumi.get(self, "fully_qualified_name")
|
|
271
|
-
|
|
272
|
-
@fully_qualified_name.setter
|
|
273
|
-
def fully_qualified_name(self, value: Optional[pulumi.Input[str]]):
|
|
274
|
-
pulumi.set(self, "fully_qualified_name", value)
|
|
275
|
-
|
|
276
260
|
@property
|
|
277
261
|
@pulumi.getter
|
|
278
262
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
279
263
|
"""
|
|
280
|
-
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
264
|
+
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
281
265
|
"""
|
|
282
266
|
return pulumi.get(self, "name")
|
|
283
267
|
|
|
@@ -371,6 +355,10 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
371
355
|
oauth_use_secondary_roles: Optional[pulumi.Input[str]] = None,
|
|
372
356
|
__props__=None):
|
|
373
357
|
"""
|
|
358
|
+
!> **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.
|
|
359
|
+
|
|
360
|
+
Resource used to manage oauth security integration for partner applications objects. For more information, check [security integrations documentation](https://docs.snowflake.com/en/sql-reference/sql/create-security-integration-oauth-snowflake).
|
|
361
|
+
|
|
374
362
|
## Import
|
|
375
363
|
|
|
376
364
|
```sh
|
|
@@ -382,7 +370,7 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
382
370
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_roles_lists: A set of Snowflake roles that a user cannot explicitly consent to using after authenticating.
|
|
383
371
|
:param pulumi.Input[str] comment: Specifies a comment for the OAuth integration.
|
|
384
372
|
:param pulumi.Input[str] enabled: Specifies whether this OAuth integration is enabled or disabled. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
385
|
-
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
373
|
+
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
386
374
|
:param pulumi.Input[str] oauth_client: Creates an OAuth interface between Snowflake and a partner application. Valid options are: `LOOKER` | `TABLEAU_DESKTOP` | `TABLEAU_SERVER`.
|
|
387
375
|
:param pulumi.Input[str] oauth_issue_refresh_tokens: Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
388
376
|
:param pulumi.Input[int] oauth_refresh_token_validity: Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
|
|
@@ -395,6 +383,10 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
395
383
|
args: OauthIntegrationForPartnerApplicationsArgs,
|
|
396
384
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
397
385
|
"""
|
|
386
|
+
!> **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.
|
|
387
|
+
|
|
388
|
+
Resource used to manage oauth security integration for partner applications objects. For more information, check [security integrations documentation](https://docs.snowflake.com/en/sql-reference/sql/create-security-integration-oauth-snowflake).
|
|
389
|
+
|
|
398
390
|
## Import
|
|
399
391
|
|
|
400
392
|
```sh
|
|
@@ -448,7 +440,6 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
448
440
|
__props__.__dict__["oauth_refresh_token_validity"] = oauth_refresh_token_validity
|
|
449
441
|
__props__.__dict__["oauth_use_secondary_roles"] = oauth_use_secondary_roles
|
|
450
442
|
__props__.__dict__["describe_outputs"] = None
|
|
451
|
-
__props__.__dict__["fully_qualified_name"] = None
|
|
452
443
|
__props__.__dict__["show_outputs"] = None
|
|
453
444
|
super(OauthIntegrationForPartnerApplications, __self__).__init__(
|
|
454
445
|
'snowflake:index/oauthIntegrationForPartnerApplications:OauthIntegrationForPartnerApplications',
|
|
@@ -462,16 +453,15 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
462
453
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
463
454
|
blocked_roles_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
464
455
|
comment: Optional[pulumi.Input[str]] = None,
|
|
465
|
-
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
456
|
+
describe_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OauthIntegrationForPartnerApplicationsDescribeOutputArgs']]]]] = None,
|
|
466
457
|
enabled: Optional[pulumi.Input[str]] = None,
|
|
467
|
-
fully_qualified_name: Optional[pulumi.Input[str]] = None,
|
|
468
458
|
name: Optional[pulumi.Input[str]] = None,
|
|
469
459
|
oauth_client: Optional[pulumi.Input[str]] = None,
|
|
470
460
|
oauth_issue_refresh_tokens: Optional[pulumi.Input[str]] = None,
|
|
471
461
|
oauth_redirect_uri: Optional[pulumi.Input[str]] = None,
|
|
472
462
|
oauth_refresh_token_validity: Optional[pulumi.Input[int]] = None,
|
|
473
463
|
oauth_use_secondary_roles: Optional[pulumi.Input[str]] = None,
|
|
474
|
-
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
464
|
+
show_outputs: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OauthIntegrationForPartnerApplicationsShowOutputArgs']]]]] = None) -> 'OauthIntegrationForPartnerApplications':
|
|
475
465
|
"""
|
|
476
466
|
Get an existing OauthIntegrationForPartnerApplications resource's state with the given name, id, and optional extra
|
|
477
467
|
properties used to qualify the lookup.
|
|
@@ -481,15 +471,14 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
481
471
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
482
472
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] blocked_roles_lists: A set of Snowflake roles that a user cannot explicitly consent to using after authenticating.
|
|
483
473
|
:param pulumi.Input[str] comment: Specifies a comment for the OAuth integration.
|
|
484
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
474
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OauthIntegrationForPartnerApplicationsDescribeOutputArgs']]]] describe_outputs: Outputs the result of `DESCRIBE SECURITY INTEGRATION` for the given integration.
|
|
485
475
|
:param pulumi.Input[str] enabled: Specifies whether this OAuth integration is enabled or disabled. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
486
|
-
:param pulumi.Input[str]
|
|
487
|
-
:param pulumi.Input[str] name: Specifies the name of the OAuth 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: `|`, `.`, `(`, `)`, `"`
|
|
476
|
+
:param pulumi.Input[str] name: Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
488
477
|
:param pulumi.Input[str] oauth_client: Creates an OAuth interface between Snowflake and a partner application. Valid options are: `LOOKER` | `TABLEAU_DESKTOP` | `TABLEAU_SERVER`.
|
|
489
478
|
:param pulumi.Input[str] oauth_issue_refresh_tokens: Specifies whether to allow the client to exchange a refresh token for an access token when the current access token has expired. Available options are: "true" or "false". When the value is not set in the configuration the provider will put "default" there which means to use the Snowflake default for this value.
|
|
490
479
|
:param pulumi.Input[int] oauth_refresh_token_validity: Specifies how long refresh tokens should be valid (in seconds). OAUTH*ISSUE*REFRESH_TOKENS must be set to TRUE.
|
|
491
480
|
:param pulumi.Input[str] oauth_use_secondary_roles: Specifies whether default secondary roles set in the user properties are activated by default in the session being opened. Valid options are: `IMPLICIT` | `NONE`.
|
|
492
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
481
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OauthIntegrationForPartnerApplicationsShowOutputArgs']]]] show_outputs: Outputs the result of `SHOW SECURITY INTEGRATION` for the given integration.
|
|
493
482
|
"""
|
|
494
483
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
495
484
|
|
|
@@ -499,7 +488,6 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
499
488
|
__props__.__dict__["comment"] = comment
|
|
500
489
|
__props__.__dict__["describe_outputs"] = describe_outputs
|
|
501
490
|
__props__.__dict__["enabled"] = enabled
|
|
502
|
-
__props__.__dict__["fully_qualified_name"] = fully_qualified_name
|
|
503
491
|
__props__.__dict__["name"] = name
|
|
504
492
|
__props__.__dict__["oauth_client"] = oauth_client
|
|
505
493
|
__props__.__dict__["oauth_issue_refresh_tokens"] = oauth_issue_refresh_tokens
|
|
@@ -541,19 +529,11 @@ class OauthIntegrationForPartnerApplications(pulumi.CustomResource):
|
|
|
541
529
|
"""
|
|
542
530
|
return pulumi.get(self, "enabled")
|
|
543
531
|
|
|
544
|
-
@property
|
|
545
|
-
@pulumi.getter(name="fullyQualifiedName")
|
|
546
|
-
def fully_qualified_name(self) -> pulumi.Output[str]:
|
|
547
|
-
"""
|
|
548
|
-
Fully qualified name of the resource. For more information, see [object name resolution](https://docs.snowflake.com/en/sql-reference/name-resolution).
|
|
549
|
-
"""
|
|
550
|
-
return pulumi.get(self, "fully_qualified_name")
|
|
551
|
-
|
|
552
532
|
@property
|
|
553
533
|
@pulumi.getter
|
|
554
534
|
def name(self) -> pulumi.Output[str]:
|
|
555
535
|
"""
|
|
556
|
-
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
536
|
+
Specifies the name of the OAuth integration. This name follows the rules for Object Identifiers. The name should be unique among security integrations in your account.
|
|
557
537
|
"""
|
|
558
538
|
return pulumi.get(self, "name")
|
|
559
539
|
|
|
@@ -193,12 +193,61 @@ class ObjectParameter(pulumi.CustomResource):
|
|
|
193
193
|
resource_name: str,
|
|
194
194
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
195
195
|
key: Optional[pulumi.Input[str]] = None,
|
|
196
|
-
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
196
|
+
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObjectParameterObjectIdentifierArgs']]]]] = None,
|
|
197
197
|
object_type: Optional[pulumi.Input[str]] = None,
|
|
198
198
|
on_account: Optional[pulumi.Input[bool]] = None,
|
|
199
199
|
value: Optional[pulumi.Input[str]] = None,
|
|
200
200
|
__props__=None):
|
|
201
201
|
"""
|
|
202
|
+
## Example Usage
|
|
203
|
+
|
|
204
|
+
```python
|
|
205
|
+
import pulumi
|
|
206
|
+
import pulumi_snowflake as snowflake
|
|
207
|
+
|
|
208
|
+
d = snowflake.Database("d", name="TEST_DB")
|
|
209
|
+
o = snowflake.ObjectParameter("o",
|
|
210
|
+
key="SUSPEND_TASK_AFTER_NUM_FAILURES",
|
|
211
|
+
value="33",
|
|
212
|
+
object_type="DATABASE",
|
|
213
|
+
object_identifiers=[snowflake.ObjectParameterObjectIdentifierArgs(
|
|
214
|
+
name=d.name,
|
|
215
|
+
)])
|
|
216
|
+
s = snowflake.Schema("s",
|
|
217
|
+
name="TEST_SCHEMA",
|
|
218
|
+
database=d.name)
|
|
219
|
+
o2 = snowflake.ObjectParameter("o2",
|
|
220
|
+
key="USER_TASK_TIMEOUT_MS",
|
|
221
|
+
value="500",
|
|
222
|
+
object_type="SCHEMA",
|
|
223
|
+
object_identifiers=[snowflake.ObjectParameterObjectIdentifierArgs(
|
|
224
|
+
database=d.name,
|
|
225
|
+
name=s.name,
|
|
226
|
+
)])
|
|
227
|
+
t = snowflake.Table("t",
|
|
228
|
+
name="TEST_TABLE",
|
|
229
|
+
database=d.name,
|
|
230
|
+
schema=s.name,
|
|
231
|
+
columns=[snowflake.TableColumnArgs(
|
|
232
|
+
name="id",
|
|
233
|
+
type="NUMBER",
|
|
234
|
+
)])
|
|
235
|
+
o3 = snowflake.ObjectParameter("o3",
|
|
236
|
+
key="DATA_RETENTION_TIME_IN_DAYS",
|
|
237
|
+
value="89",
|
|
238
|
+
object_type="TABLE",
|
|
239
|
+
object_identifiers=[snowflake.ObjectParameterObjectIdentifierArgs(
|
|
240
|
+
database=d.name,
|
|
241
|
+
schema=s.name,
|
|
242
|
+
name=t.name,
|
|
243
|
+
)])
|
|
244
|
+
# Setting object parameter at account level
|
|
245
|
+
o4 = snowflake.ObjectParameter("o4",
|
|
246
|
+
key="DATA_RETENTION_TIME_IN_DAYS",
|
|
247
|
+
value="89",
|
|
248
|
+
on_account=True)
|
|
249
|
+
```
|
|
250
|
+
|
|
202
251
|
## Import
|
|
203
252
|
|
|
204
253
|
```sh
|
|
@@ -208,7 +257,7 @@ class ObjectParameter(pulumi.CustomResource):
|
|
|
208
257
|
:param str resource_name: The name of the resource.
|
|
209
258
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
210
259
|
:param pulumi.Input[str] key: Name of object parameter. Valid values are those in [object parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#object-parameters).
|
|
211
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
260
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObjectParameterObjectIdentifierArgs']]]] object_identifiers: Specifies the object identifier for the object parameter. If no value is provided, then the resource will default to setting the object parameter at account level.
|
|
212
261
|
:param pulumi.Input[str] object_type: Type of object to which the parameter applies. Valid values are those in [object types](https://docs.snowflake.com/en/sql-reference/parameters.html#object-types). If no value is provided, then the resource will default to setting the object parameter at account level.
|
|
213
262
|
:param pulumi.Input[bool] on_account: If true, the object parameter will be set on the account level.
|
|
214
263
|
:param pulumi.Input[str] value: Value of object parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
|
|
@@ -220,6 +269,55 @@ class ObjectParameter(pulumi.CustomResource):
|
|
|
220
269
|
args: ObjectParameterArgs,
|
|
221
270
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
222
271
|
"""
|
|
272
|
+
## Example Usage
|
|
273
|
+
|
|
274
|
+
```python
|
|
275
|
+
import pulumi
|
|
276
|
+
import pulumi_snowflake as snowflake
|
|
277
|
+
|
|
278
|
+
d = snowflake.Database("d", name="TEST_DB")
|
|
279
|
+
o = snowflake.ObjectParameter("o",
|
|
280
|
+
key="SUSPEND_TASK_AFTER_NUM_FAILURES",
|
|
281
|
+
value="33",
|
|
282
|
+
object_type="DATABASE",
|
|
283
|
+
object_identifiers=[snowflake.ObjectParameterObjectIdentifierArgs(
|
|
284
|
+
name=d.name,
|
|
285
|
+
)])
|
|
286
|
+
s = snowflake.Schema("s",
|
|
287
|
+
name="TEST_SCHEMA",
|
|
288
|
+
database=d.name)
|
|
289
|
+
o2 = snowflake.ObjectParameter("o2",
|
|
290
|
+
key="USER_TASK_TIMEOUT_MS",
|
|
291
|
+
value="500",
|
|
292
|
+
object_type="SCHEMA",
|
|
293
|
+
object_identifiers=[snowflake.ObjectParameterObjectIdentifierArgs(
|
|
294
|
+
database=d.name,
|
|
295
|
+
name=s.name,
|
|
296
|
+
)])
|
|
297
|
+
t = snowflake.Table("t",
|
|
298
|
+
name="TEST_TABLE",
|
|
299
|
+
database=d.name,
|
|
300
|
+
schema=s.name,
|
|
301
|
+
columns=[snowflake.TableColumnArgs(
|
|
302
|
+
name="id",
|
|
303
|
+
type="NUMBER",
|
|
304
|
+
)])
|
|
305
|
+
o3 = snowflake.ObjectParameter("o3",
|
|
306
|
+
key="DATA_RETENTION_TIME_IN_DAYS",
|
|
307
|
+
value="89",
|
|
308
|
+
object_type="TABLE",
|
|
309
|
+
object_identifiers=[snowflake.ObjectParameterObjectIdentifierArgs(
|
|
310
|
+
database=d.name,
|
|
311
|
+
schema=s.name,
|
|
312
|
+
name=t.name,
|
|
313
|
+
)])
|
|
314
|
+
# Setting object parameter at account level
|
|
315
|
+
o4 = snowflake.ObjectParameter("o4",
|
|
316
|
+
key="DATA_RETENTION_TIME_IN_DAYS",
|
|
317
|
+
value="89",
|
|
318
|
+
on_account=True)
|
|
319
|
+
```
|
|
320
|
+
|
|
223
321
|
## Import
|
|
224
322
|
|
|
225
323
|
```sh
|
|
@@ -242,7 +340,7 @@ class ObjectParameter(pulumi.CustomResource):
|
|
|
242
340
|
resource_name: str,
|
|
243
341
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
244
342
|
key: Optional[pulumi.Input[str]] = None,
|
|
245
|
-
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
343
|
+
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObjectParameterObjectIdentifierArgs']]]]] = None,
|
|
246
344
|
object_type: Optional[pulumi.Input[str]] = None,
|
|
247
345
|
on_account: Optional[pulumi.Input[bool]] = None,
|
|
248
346
|
value: Optional[pulumi.Input[str]] = None,
|
|
@@ -275,7 +373,7 @@ class ObjectParameter(pulumi.CustomResource):
|
|
|
275
373
|
id: pulumi.Input[str],
|
|
276
374
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
277
375
|
key: Optional[pulumi.Input[str]] = None,
|
|
278
|
-
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
376
|
+
object_identifiers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObjectParameterObjectIdentifierArgs']]]]] = None,
|
|
279
377
|
object_type: Optional[pulumi.Input[str]] = None,
|
|
280
378
|
on_account: Optional[pulumi.Input[bool]] = None,
|
|
281
379
|
value: Optional[pulumi.Input[str]] = None) -> 'ObjectParameter':
|
|
@@ -287,7 +385,7 @@ class ObjectParameter(pulumi.CustomResource):
|
|
|
287
385
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
288
386
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
289
387
|
:param pulumi.Input[str] key: Name of object parameter. Valid values are those in [object parameters](https://docs.snowflake.com/en/sql-reference/parameters.html#object-parameters).
|
|
290
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
388
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ObjectParameterObjectIdentifierArgs']]]] object_identifiers: Specifies the object identifier for the object parameter. If no value is provided, then the resource will default to setting the object parameter at account level.
|
|
291
389
|
:param pulumi.Input[str] object_type: Type of object to which the parameter applies. Valid values are those in [object types](https://docs.snowflake.com/en/sql-reference/parameters.html#object-types). If no value is provided, then the resource will default to setting the object parameter at account level.
|
|
292
390
|
:param pulumi.Input[bool] on_account: If true, the object parameter will be set on the account level.
|
|
293
391
|
:param pulumi.Input[str] value: Value of object parameter, as a string. Constraints are the same as those for the parameters in Snowflake documentation.
|