pulumi-snowflake 0.50.2a1709892015__py3-none-any.whl → 1.2.0a1736835738__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-snowflake might be problematic. Click here for more details.

Files changed (182) hide show
  1. pulumi_snowflake/__init__.py +224 -172
  2. pulumi_snowflake/_inputs.py +52854 -1662
  3. pulumi_snowflake/_utilities.py +41 -5
  4. pulumi_snowflake/account.py +188 -214
  5. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  6. pulumi_snowflake/account_parameter.py +21 -44
  7. pulumi_snowflake/account_password_policy_attachment.py +7 -28
  8. pulumi_snowflake/account_role.py +250 -0
  9. pulumi_snowflake/alert.py +38 -43
  10. pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +704 -0
  11. pulumi_snowflake/api_authentication_integration_with_client_credentials.py +657 -0
  12. pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +692 -0
  13. pulumi_snowflake/api_integration.py +35 -50
  14. pulumi_snowflake/authentication_policy.py +622 -0
  15. pulumi_snowflake/config/__init__.pyi +76 -99
  16. pulumi_snowflake/config/outputs.py +5 -0
  17. pulumi_snowflake/config/vars.py +93 -124
  18. pulumi_snowflake/cortex_search_service.py +596 -0
  19. pulumi_snowflake/database.py +819 -209
  20. pulumi_snowflake/database_role.py +81 -40
  21. pulumi_snowflake/dynamic_table.py +44 -47
  22. pulumi_snowflake/email_notification_integration.py +35 -26
  23. pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -139
  24. pulumi_snowflake/external_function.py +54 -71
  25. pulumi_snowflake/external_oauth_integration.py +593 -538
  26. pulumi_snowflake/external_table.py +67 -86
  27. pulumi_snowflake/external_volume.py +382 -0
  28. pulumi_snowflake/failover_group.py +59 -96
  29. pulumi_snowflake/file_format.py +33 -24
  30. pulumi_snowflake/function_java.py +1211 -0
  31. pulumi_snowflake/function_javascript.py +882 -0
  32. pulumi_snowflake/function_python.py +1212 -0
  33. pulumi_snowflake/function_scala.py +1212 -0
  34. pulumi_snowflake/function_sql.py +835 -0
  35. pulumi_snowflake/get_account_roles.py +129 -0
  36. pulumi_snowflake/get_accounts.py +53 -22
  37. pulumi_snowflake/get_alerts.py +22 -5
  38. pulumi_snowflake/get_connections.py +109 -0
  39. pulumi_snowflake/get_cortex_search_services.py +216 -0
  40. pulumi_snowflake/get_current_account.py +24 -9
  41. pulumi_snowflake/get_current_role.py +14 -7
  42. pulumi_snowflake/get_database.py +25 -5
  43. pulumi_snowflake/get_database_role.py +162 -0
  44. pulumi_snowflake/get_database_roles.py +79 -43
  45. pulumi_snowflake/get_databases.py +91 -69
  46. pulumi_snowflake/get_dynamic_tables.py +36 -19
  47. pulumi_snowflake/get_external_functions.py +28 -5
  48. pulumi_snowflake/get_external_tables.py +28 -5
  49. pulumi_snowflake/get_failover_groups.py +18 -7
  50. pulumi_snowflake/get_file_formats.py +28 -5
  51. pulumi_snowflake/get_functions.py +28 -5
  52. pulumi_snowflake/get_grants.py +207 -80
  53. pulumi_snowflake/get_masking_policies.py +91 -47
  54. pulumi_snowflake/get_materialized_views.py +28 -5
  55. pulumi_snowflake/get_network_policies.py +129 -0
  56. pulumi_snowflake/get_parameters.py +38 -11
  57. pulumi_snowflake/get_pipes.py +28 -5
  58. pulumi_snowflake/get_procedures.py +28 -5
  59. pulumi_snowflake/get_resource_monitors.py +37 -20
  60. pulumi_snowflake/get_row_access_policies.py +91 -47
  61. pulumi_snowflake/get_schemas.py +145 -37
  62. pulumi_snowflake/get_secrets.py +200 -0
  63. pulumi_snowflake/get_security_integrations.py +129 -0
  64. pulumi_snowflake/get_sequences.py +28 -5
  65. pulumi_snowflake/get_shares.py +18 -5
  66. pulumi_snowflake/get_stages.py +28 -5
  67. pulumi_snowflake/get_storage_integrations.py +16 -5
  68. pulumi_snowflake/get_streamlits.py +170 -0
  69. pulumi_snowflake/get_streams.py +114 -50
  70. pulumi_snowflake/get_system_generate_scim_access_token.py +18 -5
  71. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
  72. pulumi_snowflake/get_system_get_private_link_config.py +121 -6
  73. pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
  74. pulumi_snowflake/get_tables.py +28 -5
  75. pulumi_snowflake/get_tags.py +130 -0
  76. pulumi_snowflake/get_tasks.py +134 -50
  77. pulumi_snowflake/get_users.py +116 -40
  78. pulumi_snowflake/get_views.py +114 -50
  79. pulumi_snowflake/get_warehouses.py +79 -22
  80. pulumi_snowflake/grant_account_role.py +28 -61
  81. pulumi_snowflake/grant_application_role.py +257 -0
  82. pulumi_snowflake/grant_database_role.py +35 -108
  83. pulumi_snowflake/grant_ownership.py +382 -0
  84. pulumi_snowflake/grant_privileges_to_account_role.py +42 -78
  85. pulumi_snowflake/grant_privileges_to_database_role.py +37 -223
  86. pulumi_snowflake/grant_privileges_to_share.py +96 -44
  87. pulumi_snowflake/legacy_service_user.py +3670 -0
  88. pulumi_snowflake/managed_account.py +42 -9
  89. pulumi_snowflake/masking_policy.py +213 -306
  90. pulumi_snowflake/materialized_view.py +62 -67
  91. pulumi_snowflake/network_policy.py +217 -57
  92. pulumi_snowflake/network_policy_attachment.py +7 -32
  93. pulumi_snowflake/network_rule.py +473 -0
  94. pulumi_snowflake/notification_integration.py +51 -82
  95. pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
  96. pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -188
  97. pulumi_snowflake/object_parameter.py +12 -99
  98. pulumi_snowflake/outputs.py +49200 -2928
  99. pulumi_snowflake/password_policy.py +41 -28
  100. pulumi_snowflake/pipe.py +33 -0
  101. pulumi_snowflake/primary_connection.py +330 -0
  102. pulumi_snowflake/procedure_java.py +1273 -0
  103. pulumi_snowflake/procedure_javascript.py +895 -0
  104. pulumi_snowflake/procedure_python.py +1226 -0
  105. pulumi_snowflake/procedure_scala.py +1273 -0
  106. pulumi_snowflake/procedure_sql.py +895 -0
  107. pulumi_snowflake/provider.py +378 -613
  108. pulumi_snowflake/pulumi-plugin.json +2 -1
  109. pulumi_snowflake/resource_monitor.py +118 -323
  110. pulumi_snowflake/row_access_policy.py +200 -145
  111. pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -295
  112. pulumi_snowflake/schema.py +949 -174
  113. pulumi_snowflake/scim_integration.py +286 -105
  114. pulumi_snowflake/secondary_connection.py +339 -0
  115. pulumi_snowflake/secondary_database.py +1080 -0
  116. pulumi_snowflake/secret_with_authorization_code_grant.py +548 -0
  117. pulumi_snowflake/secret_with_basic_authentication.py +500 -0
  118. pulumi_snowflake/secret_with_client_credentials.py +511 -0
  119. pulumi_snowflake/secret_with_generic_string.py +452 -0
  120. pulumi_snowflake/sequence.py +9 -30
  121. pulumi_snowflake/service_user.py +3585 -0
  122. pulumi_snowflake/share.py +35 -26
  123. pulumi_snowflake/shared_database.py +939 -0
  124. pulumi_snowflake/stage.py +95 -80
  125. pulumi_snowflake/storage_integration.py +48 -2
  126. pulumi_snowflake/stream_on_directory_table.py +517 -0
  127. pulumi_snowflake/stream_on_external_table.py +632 -0
  128. pulumi_snowflake/stream_on_table.py +666 -0
  129. pulumi_snowflake/stream_on_view.py +666 -0
  130. pulumi_snowflake/streamlit.py +671 -0
  131. pulumi_snowflake/table.py +86 -93
  132. pulumi_snowflake/table_column_masking_policy_application.py +7 -14
  133. pulumi_snowflake/table_constraint.py +29 -168
  134. pulumi_snowflake/tag.py +142 -70
  135. pulumi_snowflake/tag_association.py +40 -211
  136. pulumi_snowflake/task.py +3048 -414
  137. pulumi_snowflake/user.py +3351 -380
  138. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  139. pulumi_snowflake/user_password_policy_attachment.py +7 -6
  140. pulumi_snowflake/user_public_keys.py +5 -0
  141. pulumi_snowflake/view.py +466 -211
  142. pulumi_snowflake/warehouse.py +184 -164
  143. {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/METADATA +7 -6
  144. pulumi_snowflake-1.2.0a1736835738.dist-info/RECORD +148 -0
  145. {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
  146. pulumi_snowflake/account_grant.py +0 -339
  147. pulumi_snowflake/database_grant.py +0 -491
  148. pulumi_snowflake/external_table_grant.py +0 -686
  149. pulumi_snowflake/failover_group_grant.py +0 -388
  150. pulumi_snowflake/file_format_grant.py +0 -631
  151. pulumi_snowflake/function.py +0 -868
  152. pulumi_snowflake/function_grant.py +0 -741
  153. pulumi_snowflake/get_role.py +0 -117
  154. pulumi_snowflake/get_roles.py +0 -116
  155. pulumi_snowflake/grant_privileges_to_role.py +0 -667
  156. pulumi_snowflake/integration_grant.py +0 -436
  157. pulumi_snowflake/masking_policy_grant.py +0 -538
  158. pulumi_snowflake/materialized_view_grant.py +0 -685
  159. pulumi_snowflake/pipe_grant.py +0 -583
  160. pulumi_snowflake/procedure.py +0 -883
  161. pulumi_snowflake/procedure_grant.py +0 -741
  162. pulumi_snowflake/resource_monitor_grant.py +0 -383
  163. pulumi_snowflake/role.py +0 -269
  164. pulumi_snowflake/role_grants.py +0 -348
  165. pulumi_snowflake/role_ownership_grant.py +0 -334
  166. pulumi_snowflake/row_access_policy_grant.py +0 -536
  167. pulumi_snowflake/schema_grant.py +0 -643
  168. pulumi_snowflake/sequence_grant.py +0 -631
  169. pulumi_snowflake/session_parameter.py +0 -328
  170. pulumi_snowflake/stage_grant.py +0 -631
  171. pulumi_snowflake/stream.py +0 -610
  172. pulumi_snowflake/stream_grant.py +0 -631
  173. pulumi_snowflake/table_grant.py +0 -673
  174. pulumi_snowflake/tag_grant.py +0 -528
  175. pulumi_snowflake/tag_masking_policy_association.py +0 -210
  176. pulumi_snowflake/task_grant.py +0 -631
  177. pulumi_snowflake/user_grant.py +0 -390
  178. pulumi_snowflake/user_ownership_grant.py +0 -286
  179. pulumi_snowflake/view_grant.py +0 -701
  180. pulumi_snowflake/warehouse_grant.py +0 -436
  181. pulumi_snowflake-0.50.2a1709892015.dist-info/RECORD +0 -136
  182. {pulumi_snowflake-0.50.2a1709892015.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from .. import _utilities
11
16
  from . import outputs
12
17
 
@@ -17,31 +22,23 @@ __config__ = pulumi.Config('snowflake')
17
22
 
18
23
  class _ExportableConfig(types.ModuleType):
19
24
  @property
20
- def account(self) -> Optional[str]:
25
+ def account_name(self) -> Optional[str]:
21
26
  """
22
- Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
23
- [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Can also be sourced
24
- from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using `profile`.
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('account') or _utilities.get_env('SNOWFLAKE_ACCOUNT')
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 values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
33
- UsernamePasswordMFA. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable. It has to be set
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[bool]:
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__.get_bool('clientRequestMfaToken')
55
+ return __config__.get('clientRequestMfaToken')
59
56
 
60
57
  @property
61
- def client_store_temporary_credential(self) -> Optional[bool]:
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__.get_bool('clientStoreTemporaryCredential')
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. Default is 900 seconds. Can also be sourced from
72
- the `SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
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
- Should HTAP query context cache be disabled. Can also be sourced from the `SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE`
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
- Indicates whether to disable telemetry. Can also be sourced from the `SNOWFLAKE_DISABLE_TELEMETRY` environment variable.
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. Default is 120 seconds. Can also be
95
- sourced from the `SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
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
- Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
103
- the `SNOWFLAKE_HOST` environment variable.
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. Default is 10 seconds. Can also be sourced
120
- from the `SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
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 oauth_access_token(self) -> Optional[str]:
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
- Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment
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__.get('oauthRedirectUrl') or _utilities.get_env('SNOWFLAKE_OAUTH_REDIRECT_URL')
174
+ return __config__.get_int('maxRetryCount')
185
175
 
186
176
  @property
187
- def oauth_refresh_token(self) -> Optional[str]:
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__.get_bool('ocspFailOpen')
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. Can also be sourced from the `SNOWFLAKE_OKTA_URL` environment
208
- variable.
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 in the login password. Appends the MFA passcode to the end
231
- of the password. Can also be sourced from the `SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
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 username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can also be sourced from
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
- Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
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 `browser_auth` or `password`. Can also be sourced from
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
- Either http or https, defaults to https. Can also be sourced from the `SNOWFLAKE_PROTOCOL` environment variable.
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 session_params(self) -> Optional[str]:
295
+ def tmp_directory_path(self) -> Optional[str]:
320
296
  """
321
- Sets session parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
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('sessionParams')
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. Required unless using `profile`.
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 username(self) -> Optional[str]:
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__.get_bool('validateDefaultParameters')
327
+ return __config__.get('validateDefaultParameters')
359
328
 
360
329
  @property
361
330
  def warehouse(self) -> Optional[str]: