pulumi-snowflake 0.50.3a1710160126__py3-none-any.whl → 1.2.0a1736835738__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-snowflake might be problematic. Click here for more details.
- pulumi_snowflake/__init__.py +224 -172
- pulumi_snowflake/_inputs.py +52857 -1665
- pulumi_snowflake/_utilities.py +41 -5
- pulumi_snowflake/account.py +188 -218
- pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
- pulumi_snowflake/account_parameter.py +21 -48
- pulumi_snowflake/account_password_policy_attachment.py +7 -32
- pulumi_snowflake/account_role.py +250 -0
- pulumi_snowflake/alert.py +38 -47
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
- pulumi_snowflake/api_integration.py +33 -52
- pulumi_snowflake/authentication_policy.py +622 -0
- pulumi_snowflake/config/__init__.pyi +76 -99
- pulumi_snowflake/config/outputs.py +5 -0
- pulumi_snowflake/config/vars.py +93 -124
- pulumi_snowflake/cortex_search_service.py +596 -0
- pulumi_snowflake/database.py +819 -213
- pulumi_snowflake/database_role.py +81 -44
- pulumi_snowflake/dynamic_table.py +42 -49
- pulumi_snowflake/email_notification_integration.py +33 -28
- pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
- pulumi_snowflake/external_function.py +54 -75
- pulumi_snowflake/external_oauth_integration.py +593 -542
- pulumi_snowflake/external_table.py +67 -90
- pulumi_snowflake/external_volume.py +382 -0
- pulumi_snowflake/failover_group.py +57 -98
- pulumi_snowflake/file_format.py +33 -28
- pulumi_snowflake/function_java.py +1211 -0
- pulumi_snowflake/function_javascript.py +882 -0
- pulumi_snowflake/function_python.py +1212 -0
- pulumi_snowflake/function_scala.py +1212 -0
- pulumi_snowflake/function_sql.py +835 -0
- pulumi_snowflake/get_account_roles.py +129 -0
- pulumi_snowflake/get_accounts.py +53 -22
- pulumi_snowflake/get_alerts.py +22 -9
- pulumi_snowflake/get_connections.py +109 -0
- pulumi_snowflake/get_cortex_search_services.py +216 -0
- pulumi_snowflake/get_current_account.py +24 -13
- pulumi_snowflake/get_current_role.py +14 -7
- pulumi_snowflake/get_database.py +25 -9
- pulumi_snowflake/get_database_role.py +162 -0
- pulumi_snowflake/get_database_roles.py +79 -47
- pulumi_snowflake/get_databases.py +91 -73
- pulumi_snowflake/get_dynamic_tables.py +36 -19
- pulumi_snowflake/get_external_functions.py +28 -9
- pulumi_snowflake/get_external_tables.py +28 -9
- pulumi_snowflake/get_failover_groups.py +18 -7
- pulumi_snowflake/get_file_formats.py +28 -9
- pulumi_snowflake/get_functions.py +28 -9
- pulumi_snowflake/get_grants.py +207 -84
- pulumi_snowflake/get_masking_policies.py +91 -51
- pulumi_snowflake/get_materialized_views.py +28 -9
- pulumi_snowflake/get_network_policies.py +129 -0
- pulumi_snowflake/get_parameters.py +38 -15
- pulumi_snowflake/get_pipes.py +28 -9
- pulumi_snowflake/get_procedures.py +28 -9
- pulumi_snowflake/get_resource_monitors.py +37 -24
- pulumi_snowflake/get_row_access_policies.py +91 -51
- pulumi_snowflake/get_schemas.py +145 -41
- pulumi_snowflake/get_secrets.py +200 -0
- pulumi_snowflake/get_security_integrations.py +129 -0
- pulumi_snowflake/get_sequences.py +28 -9
- pulumi_snowflake/get_shares.py +18 -9
- pulumi_snowflake/get_stages.py +28 -9
- pulumi_snowflake/get_storage_integrations.py +16 -9
- pulumi_snowflake/get_streamlits.py +170 -0
- pulumi_snowflake/get_streams.py +114 -54
- pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
- pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
- pulumi_snowflake/get_system_get_private_link_config.py +120 -5
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
- pulumi_snowflake/get_tables.py +28 -9
- pulumi_snowflake/get_tags.py +130 -0
- pulumi_snowflake/get_tasks.py +134 -54
- pulumi_snowflake/get_users.py +116 -44
- pulumi_snowflake/get_views.py +114 -54
- pulumi_snowflake/get_warehouses.py +79 -26
- pulumi_snowflake/grant_account_role.py +28 -75
- pulumi_snowflake/grant_application_role.py +257 -0
- pulumi_snowflake/grant_database_role.py +35 -94
- pulumi_snowflake/grant_ownership.py +382 -0
- pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
- pulumi_snowflake/grant_privileges_to_database_role.py +37 -383
- pulumi_snowflake/grant_privileges_to_share.py +96 -44
- pulumi_snowflake/legacy_service_user.py +3670 -0
- pulumi_snowflake/managed_account.py +40 -11
- pulumi_snowflake/masking_policy.py +213 -310
- pulumi_snowflake/materialized_view.py +62 -71
- pulumi_snowflake/network_policy.py +217 -61
- pulumi_snowflake/network_policy_attachment.py +5 -34
- pulumi_snowflake/network_rule.py +473 -0
- pulumi_snowflake/notification_integration.py +49 -84
- pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
- pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
- pulumi_snowflake/object_parameter.py +10 -101
- pulumi_snowflake/outputs.py +49200 -2928
- pulumi_snowflake/password_policy.py +41 -28
- pulumi_snowflake/pipe.py +33 -4
- pulumi_snowflake/primary_connection.py +330 -0
- pulumi_snowflake/procedure_java.py +1273 -0
- pulumi_snowflake/procedure_javascript.py +895 -0
- pulumi_snowflake/procedure_python.py +1226 -0
- pulumi_snowflake/procedure_scala.py +1273 -0
- pulumi_snowflake/procedure_sql.py +895 -0
- pulumi_snowflake/provider.py +378 -613
- pulumi_snowflake/pulumi-plugin.json +2 -1
- pulumi_snowflake/resource_monitor.py +118 -327
- pulumi_snowflake/row_access_policy.py +200 -149
- pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
- pulumi_snowflake/schema.py +949 -178
- pulumi_snowflake/scim_integration.py +286 -109
- pulumi_snowflake/secondary_connection.py +339 -0
- pulumi_snowflake/secondary_database.py +1080 -0
- pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
- pulumi_snowflake/secret_with_basic_authentication.py +500 -0
- pulumi_snowflake/secret_with_client_credentials.py +511 -0
- pulumi_snowflake/secret_with_generic_string.py +452 -0
- pulumi_snowflake/sequence.py +9 -34
- pulumi_snowflake/service_user.py +3585 -0
- pulumi_snowflake/share.py +33 -28
- pulumi_snowflake/shared_database.py +939 -0
- pulumi_snowflake/stage.py +95 -84
- pulumi_snowflake/storage_integration.py +46 -4
- pulumi_snowflake/stream_on_directory_table.py +517 -0
- pulumi_snowflake/stream_on_external_table.py +632 -0
- pulumi_snowflake/stream_on_table.py +666 -0
- pulumi_snowflake/stream_on_view.py +666 -0
- pulumi_snowflake/streamlit.py +671 -0
- pulumi_snowflake/table.py +86 -97
- pulumi_snowflake/table_column_masking_policy_application.py +7 -14
- pulumi_snowflake/table_constraint.py +29 -172
- pulumi_snowflake/tag.py +142 -74
- pulumi_snowflake/tag_association.py +40 -215
- pulumi_snowflake/task.py +3048 -418
- pulumi_snowflake/user.py +3351 -384
- pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
- pulumi_snowflake/user_password_policy_attachment.py +5 -4
- pulumi_snowflake/user_public_keys.py +5 -0
- pulumi_snowflake/view.py +466 -215
- pulumi_snowflake/warehouse.py +184 -168
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/METADATA +7 -6
- pulumi_snowflake-1.2.0a1736835738.dist-info/RECORD +148 -0
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_grant.py +0 -343
- pulumi_snowflake/database_grant.py +0 -495
- pulumi_snowflake/external_table_grant.py +0 -690
- pulumi_snowflake/failover_group_grant.py +0 -388
- pulumi_snowflake/file_format_grant.py +0 -635
- pulumi_snowflake/function.py +0 -872
- pulumi_snowflake/function_grant.py +0 -745
- pulumi_snowflake/get_role.py +0 -121
- pulumi_snowflake/get_roles.py +0 -120
- pulumi_snowflake/grant_privileges_to_role.py +0 -825
- pulumi_snowflake/integration_grant.py +0 -440
- pulumi_snowflake/masking_policy_grant.py +0 -542
- pulumi_snowflake/materialized_view_grant.py +0 -689
- pulumi_snowflake/pipe_grant.py +0 -587
- pulumi_snowflake/procedure.py +0 -887
- pulumi_snowflake/procedure_grant.py +0 -745
- pulumi_snowflake/resource_monitor_grant.py +0 -387
- pulumi_snowflake/role.py +0 -273
- pulumi_snowflake/role_grants.py +0 -352
- pulumi_snowflake/role_ownership_grant.py +0 -338
- pulumi_snowflake/row_access_policy_grant.py +0 -540
- pulumi_snowflake/schema_grant.py +0 -647
- pulumi_snowflake/sequence_grant.py +0 -635
- pulumi_snowflake/session_parameter.py +0 -332
- pulumi_snowflake/stage_grant.py +0 -635
- pulumi_snowflake/stream.py +0 -614
- pulumi_snowflake/stream_grant.py +0 -635
- pulumi_snowflake/table_grant.py +0 -677
- pulumi_snowflake/tag_grant.py +0 -532
- pulumi_snowflake/tag_masking_policy_association.py +0 -210
- pulumi_snowflake/task_grant.py +0 -635
- pulumi_snowflake/user_grant.py +0 -394
- pulumi_snowflake/user_ownership_grant.py +0 -286
- pulumi_snowflake/view_grant.py +0 -705
- pulumi_snowflake/warehouse_grant.py +0 -440
- pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
- {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
pulumi_snowflake/config/vars.py
CHANGED
|
@@ -4,9 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import copy
|
|
6
6
|
import warnings
|
|
7
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from .. import _utilities
|
|
11
16
|
from . import outputs
|
|
12
17
|
|
|
@@ -17,31 +22,23 @@ __config__ = pulumi.Config('snowflake')
|
|
|
17
22
|
|
|
18
23
|
class _ExportableConfig(types.ModuleType):
|
|
19
24
|
@property
|
|
20
|
-
def
|
|
25
|
+
def account_name(self) -> Optional[str]:
|
|
21
26
|
"""
|
|
22
|
-
Specifies your Snowflake account
|
|
23
|
-
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier
|
|
24
|
-
from the `
|
|
27
|
+
Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
|
|
28
|
+
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
|
|
29
|
+
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
|
|
25
30
|
"""
|
|
26
|
-
return __config__.get('
|
|
31
|
+
return __config__.get('accountName')
|
|
27
32
|
|
|
28
33
|
@property
|
|
29
34
|
def authenticator(self) -> Optional[str]:
|
|
30
35
|
"""
|
|
31
36
|
Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
|
|
32
|
-
connecting to Snowflake. Valid
|
|
33
|
-
|
|
34
|
-
explicitly to JWT for private key authentication.
|
|
37
|
+
connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `SNOWFLAKE_JWT` |
|
|
38
|
+
`TOKENACCESSOR` | `USERNAMEPASSWORDMFA`. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
|
|
35
39
|
"""
|
|
36
40
|
return __config__.get('authenticator')
|
|
37
41
|
|
|
38
|
-
@property
|
|
39
|
-
def browser_auth(self) -> Optional[bool]:
|
|
40
|
-
"""
|
|
41
|
-
Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_USE_BROWSER_AUTH` environment variable.
|
|
42
|
-
"""
|
|
43
|
-
return __config__.get_bool('browserAuth') or _utilities.get_env_bool('SNOWFLAKE_USE_BROWSER_AUTH')
|
|
44
|
-
|
|
45
42
|
@property
|
|
46
43
|
def client_ip(self) -> Optional[str]:
|
|
47
44
|
"""
|
|
@@ -50,33 +47,41 @@ class _ExportableConfig(types.ModuleType):
|
|
|
50
47
|
return __config__.get('clientIp')
|
|
51
48
|
|
|
52
49
|
@property
|
|
53
|
-
def client_request_mfa_token(self) -> Optional[
|
|
50
|
+
def client_request_mfa_token(self) -> Optional[str]:
|
|
54
51
|
"""
|
|
55
52
|
When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
|
|
56
53
|
be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
|
|
57
54
|
"""
|
|
58
|
-
return __config__.
|
|
55
|
+
return __config__.get('clientRequestMfaToken')
|
|
59
56
|
|
|
60
57
|
@property
|
|
61
|
-
def client_store_temporary_credential(self) -> Optional[
|
|
58
|
+
def client_store_temporary_credential(self) -> Optional[str]:
|
|
62
59
|
"""
|
|
63
60
|
When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
|
|
64
61
|
sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment variable.
|
|
65
62
|
"""
|
|
66
|
-
return __config__.
|
|
63
|
+
return __config__.get('clientStoreTemporaryCredential')
|
|
67
64
|
|
|
68
65
|
@property
|
|
69
66
|
def client_timeout(self) -> Optional[int]:
|
|
70
67
|
"""
|
|
71
|
-
The timeout in seconds for the client to complete the authentication.
|
|
72
|
-
|
|
68
|
+
The timeout in seconds for the client to complete the authentication. Can also be sourced from the
|
|
69
|
+
`SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
|
|
73
70
|
"""
|
|
74
71
|
return __config__.get_int('clientTimeout')
|
|
75
72
|
|
|
73
|
+
@property
|
|
74
|
+
def disable_console_login(self) -> Optional[str]:
|
|
75
|
+
"""
|
|
76
|
+
Indicates whether console login should be disabled in the driver. Can also be sourced from the
|
|
77
|
+
`SNOWFLAKE_DISABLE_CONSOLE_LOGIN` environment variable.
|
|
78
|
+
"""
|
|
79
|
+
return __config__.get('disableConsoleLogin')
|
|
80
|
+
|
|
76
81
|
@property
|
|
77
82
|
def disable_query_context_cache(self) -> Optional[bool]:
|
|
78
83
|
"""
|
|
79
|
-
|
|
84
|
+
Disables HTAP query context cache in the driver. Can also be sourced from the `SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE`
|
|
80
85
|
environment variable.
|
|
81
86
|
"""
|
|
82
87
|
return __config__.get_bool('disableQueryContextCache')
|
|
@@ -84,26 +89,42 @@ class _ExportableConfig(types.ModuleType):
|
|
|
84
89
|
@property
|
|
85
90
|
def disable_telemetry(self) -> Optional[bool]:
|
|
86
91
|
"""
|
|
87
|
-
|
|
92
|
+
Disables telemetry in the driver. Can also be sourced from the `DISABLE_TELEMETRY` environment variable.
|
|
88
93
|
"""
|
|
89
94
|
return __config__.get_bool('disableTelemetry')
|
|
90
95
|
|
|
96
|
+
@property
|
|
97
|
+
def driver_tracing(self) -> Optional[str]:
|
|
98
|
+
"""
|
|
99
|
+
Specifies the logging level to be used by the driver. Valid options are: `trace` | `debug` | `info` | `print` |
|
|
100
|
+
`warning` | `error` | `fatal` | `panic`. Can also be sourced from the `SNOWFLAKE_DRIVER_TRACING` environment variable.
|
|
101
|
+
"""
|
|
102
|
+
return __config__.get('driverTracing')
|
|
103
|
+
|
|
91
104
|
@property
|
|
92
105
|
def external_browser_timeout(self) -> Optional[int]:
|
|
93
106
|
"""
|
|
94
|
-
The timeout in seconds for the external browser to complete the authentication.
|
|
95
|
-
|
|
107
|
+
The timeout in seconds for the external browser to complete the authentication. Can also be sourced from the
|
|
108
|
+
`SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
|
|
96
109
|
"""
|
|
97
110
|
return __config__.get_int('externalBrowserTimeout')
|
|
98
111
|
|
|
99
112
|
@property
|
|
100
113
|
def host(self) -> Optional[str]:
|
|
101
114
|
"""
|
|
102
|
-
|
|
103
|
-
|
|
115
|
+
Specifies a custom host value used by the driver for privatelink connections. Can also be sourced from the
|
|
116
|
+
`SNOWFLAKE_HOST` environment variable.
|
|
104
117
|
"""
|
|
105
118
|
return __config__.get('host') or _utilities.get_env('SNOWFLAKE_HOST')
|
|
106
119
|
|
|
120
|
+
@property
|
|
121
|
+
def include_retry_reason(self) -> Optional[str]:
|
|
122
|
+
"""
|
|
123
|
+
Should retried request contain retry reason. Can also be sourced from the `SNOWFLAKE_INCLUDE_RETRY_REASON` environment
|
|
124
|
+
variable.
|
|
125
|
+
"""
|
|
126
|
+
return __config__.get('includeRetryReason')
|
|
127
|
+
|
|
107
128
|
@property
|
|
108
129
|
def insecure_mode(self) -> Optional[bool]:
|
|
109
130
|
"""
|
|
@@ -116,8 +137,8 @@ class _ExportableConfig(types.ModuleType):
|
|
|
116
137
|
@property
|
|
117
138
|
def jwt_client_timeout(self) -> Optional[int]:
|
|
118
139
|
"""
|
|
119
|
-
The timeout in seconds for the JWT client to complete the authentication.
|
|
120
|
-
|
|
140
|
+
The timeout in seconds for the JWT client to complete the authentication. Can also be sourced from the
|
|
141
|
+
`SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
|
|
121
142
|
"""
|
|
122
143
|
return __config__.get_int('jwtClientTimeout')
|
|
123
144
|
|
|
@@ -139,80 +160,50 @@ class _ExportableConfig(types.ModuleType):
|
|
|
139
160
|
@property
|
|
140
161
|
def login_timeout(self) -> Optional[int]:
|
|
141
162
|
"""
|
|
142
|
-
Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
163
|
+
Login retry timeout in seconds EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
143
164
|
`SNOWFLAKE_LOGIN_TIMEOUT` environment variable.
|
|
144
165
|
"""
|
|
145
166
|
return __config__.get_int('loginTimeout')
|
|
146
167
|
|
|
147
168
|
@property
|
|
148
|
-
def
|
|
149
|
-
"""
|
|
150
|
-
Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browser_auth`,
|
|
151
|
-
`private_key_path`, `oauth_refresh_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN`
|
|
152
|
-
environment variable.
|
|
153
|
-
"""
|
|
154
|
-
return __config__.get('oauthAccessToken') or _utilities.get_env('SNOWFLAKE_OAUTH_ACCESS_TOKEN')
|
|
155
|
-
|
|
156
|
-
@property
|
|
157
|
-
def oauth_client_id(self) -> Optional[str]:
|
|
158
|
-
"""
|
|
159
|
-
Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.
|
|
160
|
-
"""
|
|
161
|
-
return __config__.get('oauthClientId') or _utilities.get_env('SNOWFLAKE_OAUTH_CLIENT_ID')
|
|
162
|
-
|
|
163
|
-
@property
|
|
164
|
-
def oauth_client_secret(self) -> Optional[str]:
|
|
165
|
-
"""
|
|
166
|
-
Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment
|
|
167
|
-
variable.
|
|
168
|
-
"""
|
|
169
|
-
return __config__.get('oauthClientSecret') or _utilities.get_env('SNOWFLAKE_OAUTH_CLIENT_SECRET')
|
|
170
|
-
|
|
171
|
-
@property
|
|
172
|
-
def oauth_endpoint(self) -> Optional[str]:
|
|
173
|
-
"""
|
|
174
|
-
Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.
|
|
175
|
-
"""
|
|
176
|
-
return __config__.get('oauthEndpoint') or _utilities.get_env('SNOWFLAKE_OAUTH_ENDPOINT')
|
|
177
|
-
|
|
178
|
-
@property
|
|
179
|
-
def oauth_redirect_url(self) -> Optional[str]:
|
|
169
|
+
def max_retry_count(self) -> Optional[int]:
|
|
180
170
|
"""
|
|
181
|
-
|
|
182
|
-
variable.
|
|
171
|
+
Specifies how many times non-periodic HTTP request can be retried by the driver. Can also be sourced from the
|
|
172
|
+
`SNOWFLAKE_MAX_RETRY_COUNT` environment variable.
|
|
183
173
|
"""
|
|
184
|
-
return __config__.
|
|
174
|
+
return __config__.get_int('maxRetryCount')
|
|
185
175
|
|
|
186
176
|
@property
|
|
187
|
-
def
|
|
188
|
-
"""
|
|
189
|
-
Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
|
|
190
|
-
`oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`,
|
|
191
|
-
`private_key_path`, `oauth_access_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN`
|
|
192
|
-
environment variable.
|
|
193
|
-
"""
|
|
194
|
-
return __config__.get('oauthRefreshToken') or _utilities.get_env('SNOWFLAKE_OAUTH_REFRESH_TOKEN')
|
|
195
|
-
|
|
196
|
-
@property
|
|
197
|
-
def ocsp_fail_open(self) -> Optional[bool]:
|
|
177
|
+
def ocsp_fail_open(self) -> Optional[str]:
|
|
198
178
|
"""
|
|
199
179
|
True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
|
|
200
180
|
sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
|
|
201
181
|
"""
|
|
202
|
-
return __config__.
|
|
182
|
+
return __config__.get('ocspFailOpen')
|
|
203
183
|
|
|
204
184
|
@property
|
|
205
185
|
def okta_url(self) -> Optional[str]:
|
|
206
186
|
"""
|
|
207
|
-
The URL of the Okta server. e.g. https://example.okta.com.
|
|
208
|
-
|
|
187
|
+
The URL of the Okta server. e.g. https://example.okta.com. Okta URL host needs to to have a suffix `okta.com`. Read more
|
|
188
|
+
in Snowflake [docs](https://docs.snowflake.com/en/user-guide/oauth-okta). Can also be sourced from the
|
|
189
|
+
`SNOWFLAKE_OKTA_URL` environment variable.
|
|
209
190
|
"""
|
|
210
191
|
return __config__.get('oktaUrl')
|
|
211
192
|
|
|
193
|
+
@property
|
|
194
|
+
def organization_name(self) -> Optional[str]:
|
|
195
|
+
"""
|
|
196
|
+
Specifies your Snowflake organization name assigned by Snowflake. For information about account identifiers, see the
|
|
197
|
+
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#organization-name). Required
|
|
198
|
+
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ORGANIZATION_NAME` environment variable.
|
|
199
|
+
"""
|
|
200
|
+
return __config__.get('organizationName')
|
|
201
|
+
|
|
212
202
|
@property
|
|
213
203
|
def params(self) -> Optional[str]:
|
|
214
204
|
"""
|
|
215
|
-
Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
|
|
205
|
+
Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters).
|
|
206
|
+
This field can not be set with environmental variables.
|
|
216
207
|
"""
|
|
217
208
|
return __config__.get('params')
|
|
218
209
|
|
|
@@ -227,31 +218,35 @@ class _ExportableConfig(types.ModuleType):
|
|
|
227
218
|
@property
|
|
228
219
|
def passcode_in_password(self) -> Optional[bool]:
|
|
229
220
|
"""
|
|
230
|
-
False by default. Set to true if the MFA passcode is embedded
|
|
231
|
-
|
|
221
|
+
False by default. Set to true if the MFA passcode is embedded to the configured password. Can also be sourced from the
|
|
222
|
+
`SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
232
223
|
"""
|
|
233
224
|
return __config__.get_bool('passcodeInPassword')
|
|
234
225
|
|
|
235
226
|
@property
|
|
236
227
|
def password(self) -> Optional[str]:
|
|
237
228
|
"""
|
|
238
|
-
Password for
|
|
239
|
-
the `SNOWFLAKE_PASSWORD` environment variable.
|
|
229
|
+
Password for user + password auth. Cannot be used with `private_key` and `private_key_passphrase`. Can also be sourced
|
|
230
|
+
from the `SNOWFLAKE_PASSWORD` environment variable.
|
|
240
231
|
"""
|
|
241
232
|
return __config__.get('password') or _utilities.get_env('SNOWFLAKE_PASSWORD')
|
|
242
233
|
|
|
243
234
|
@property
|
|
244
235
|
def port(self) -> Optional[int]:
|
|
245
236
|
"""
|
|
246
|
-
|
|
237
|
+
Specifies a custom port value used by the driver for privatelink connections. Can also be sourced from the
|
|
247
238
|
`SNOWFLAKE_PORT` environment variable.
|
|
248
239
|
"""
|
|
249
240
|
return __config__.get_int('port') or _utilities.get_env_int('SNOWFLAKE_PORT')
|
|
250
241
|
|
|
242
|
+
@property
|
|
243
|
+
def preview_features_enabled(self) -> Optional[str]:
|
|
244
|
+
return __config__.get('previewFeaturesEnabled')
|
|
245
|
+
|
|
251
246
|
@property
|
|
252
247
|
def private_key(self) -> Optional[str]:
|
|
253
248
|
"""
|
|
254
|
-
Private Key for username+private-key auth. Cannot be used with `
|
|
249
|
+
Private Key for username+private-key auth. Cannot be used with `password`. Can also be sourced from the
|
|
255
250
|
`SNOWFLAKE_PRIVATE_KEY` environment variable.
|
|
256
251
|
"""
|
|
257
252
|
return __config__.get('privateKey')
|
|
@@ -260,18 +255,10 @@ class _ExportableConfig(types.ModuleType):
|
|
|
260
255
|
def private_key_passphrase(self) -> Optional[str]:
|
|
261
256
|
"""
|
|
262
257
|
Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
|
|
263
|
-
des-ede3-cbc. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
258
|
+
des-ede3-cbc. Can also be sourced from the `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
264
259
|
"""
|
|
265
260
|
return __config__.get('privateKeyPassphrase') or _utilities.get_env('SNOWFLAKE_PRIVATE_KEY_PASSPHRASE')
|
|
266
261
|
|
|
267
|
-
@property
|
|
268
|
-
def private_key_path(self) -> Optional[str]:
|
|
269
|
-
"""
|
|
270
|
-
Path to a private key for using keypair authentication. Cannot be used with `browser_auth`, `oauth_access_token` or
|
|
271
|
-
`password`. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
|
|
272
|
-
"""
|
|
273
|
-
return __config__.get('privateKeyPath') or _utilities.get_env('SNOWFLAKE_PRIVATE_KEY_PATH')
|
|
274
|
-
|
|
275
262
|
@property
|
|
276
263
|
def profile(self) -> Optional[str]:
|
|
277
264
|
"""
|
|
@@ -283,26 +270,15 @@ class _ExportableConfig(types.ModuleType):
|
|
|
283
270
|
@property
|
|
284
271
|
def protocol(self) -> Optional[str]:
|
|
285
272
|
"""
|
|
286
|
-
|
|
273
|
+
A protocol used in the connection. Valid options are: `http` | `https`. Can also be sourced from the
|
|
274
|
+
`SNOWFLAKE_PROTOCOL` environment variable.
|
|
287
275
|
"""
|
|
288
276
|
return __config__.get('protocol') or _utilities.get_env('SNOWFLAKE_PROTOCOL')
|
|
289
277
|
|
|
290
|
-
@property
|
|
291
|
-
def region(self) -> Optional[str]:
|
|
292
|
-
"""
|
|
293
|
-
Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
|
|
294
|
-
to specify the region as part of the account parameter. For details, see the description of the account parameter.
|
|
295
|
-
[Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy
|
|
296
|
-
format for the `account`
|
|
297
|
-
identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region)
|
|
298
|
-
in the form of `<cloud_region_id>.<cloud>`. Can also be sourced from the `SNOWFLAKE_REGION` environment variable.
|
|
299
|
-
"""
|
|
300
|
-
return __config__.get('region') or _utilities.get_env('SNOWFLAKE_REGION')
|
|
301
|
-
|
|
302
278
|
@property
|
|
303
279
|
def request_timeout(self) -> Optional[int]:
|
|
304
280
|
"""
|
|
305
|
-
request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
281
|
+
request retry timeout in seconds EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
306
282
|
`SNOWFLAKE_REQUEST_TIMEOUT` environment variable.
|
|
307
283
|
"""
|
|
308
284
|
return __config__.get_int('requestTimeout')
|
|
@@ -311,16 +287,17 @@ class _ExportableConfig(types.ModuleType):
|
|
|
311
287
|
def role(self) -> Optional[str]:
|
|
312
288
|
"""
|
|
313
289
|
Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
|
|
314
|
-
`SNOWFLAKE_ROLE` environment variable.
|
|
290
|
+
`SNOWFLAKE_ROLE` environment variable.
|
|
315
291
|
"""
|
|
316
292
|
return __config__.get('role') or _utilities.get_env('SNOWFLAKE_ROLE')
|
|
317
293
|
|
|
318
294
|
@property
|
|
319
|
-
def
|
|
295
|
+
def tmp_directory_path(self) -> Optional[str]:
|
|
320
296
|
"""
|
|
321
|
-
Sets
|
|
297
|
+
Sets temporary directory used by the driver for operations like encrypting, compressing etc. Can also be sourced from
|
|
298
|
+
the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
|
|
322
299
|
"""
|
|
323
|
-
return __config__.get('
|
|
300
|
+
return __config__.get('tmpDirectoryPath')
|
|
324
301
|
|
|
325
302
|
@property
|
|
326
303
|
def token(self) -> Optional[str]:
|
|
@@ -337,25 +314,17 @@ class _ExportableConfig(types.ModuleType):
|
|
|
337
314
|
@property
|
|
338
315
|
def user(self) -> Optional[str]:
|
|
339
316
|
"""
|
|
340
|
-
Username. Can also be sourced from the `SNOWFLAKE_USER` environment variable.
|
|
317
|
+
Username. Required unless using `profile`. Can also be sourced from the `SNOWFLAKE_USER` environment variable.
|
|
341
318
|
"""
|
|
342
319
|
return __config__.get('user')
|
|
343
320
|
|
|
344
321
|
@property
|
|
345
|
-
def
|
|
346
|
-
"""
|
|
347
|
-
Username for username+password authentication. Can also be sourced from the `SNOWFLAKE_USERNAME` environment variable.
|
|
348
|
-
Required unless using `profile`.
|
|
349
|
-
"""
|
|
350
|
-
return __config__.get('username') or _utilities.get_env('SNOWFLAKE_USER')
|
|
351
|
-
|
|
352
|
-
@property
|
|
353
|
-
def validate_default_parameters(self) -> Optional[bool]:
|
|
322
|
+
def validate_default_parameters(self) -> Optional[str]:
|
|
354
323
|
"""
|
|
355
324
|
True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
|
|
356
325
|
connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
|
|
357
326
|
"""
|
|
358
|
-
return __config__.
|
|
327
|
+
return __config__.get('validateDefaultParameters')
|
|
359
328
|
|
|
360
329
|
@property
|
|
361
330
|
def warehouse(self) -> Optional[str]:
|