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.

Files changed (182) hide show
  1. pulumi_snowflake/__init__.py +224 -172
  2. pulumi_snowflake/_inputs.py +52857 -1665
  3. pulumi_snowflake/_utilities.py +41 -5
  4. pulumi_snowflake/account.py +188 -218
  5. pulumi_snowflake/account_authentication_policy_attachment.py +149 -0
  6. pulumi_snowflake/account_parameter.py +21 -48
  7. pulumi_snowflake/account_password_policy_attachment.py +7 -32
  8. pulumi_snowflake/account_role.py +250 -0
  9. pulumi_snowflake/alert.py +38 -47
  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 +33 -52
  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 -213
  20. pulumi_snowflake/database_role.py +81 -44
  21. pulumi_snowflake/dynamic_table.py +42 -49
  22. pulumi_snowflake/email_notification_integration.py +33 -28
  23. pulumi_snowflake/{unsafe_execute.py → execute.py} +36 -39
  24. pulumi_snowflake/external_function.py +54 -75
  25. pulumi_snowflake/external_oauth_integration.py +593 -542
  26. pulumi_snowflake/external_table.py +67 -90
  27. pulumi_snowflake/external_volume.py +382 -0
  28. pulumi_snowflake/failover_group.py +57 -98
  29. pulumi_snowflake/file_format.py +33 -28
  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 -9
  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 -13
  41. pulumi_snowflake/get_current_role.py +14 -7
  42. pulumi_snowflake/get_database.py +25 -9
  43. pulumi_snowflake/get_database_role.py +162 -0
  44. pulumi_snowflake/get_database_roles.py +79 -47
  45. pulumi_snowflake/get_databases.py +91 -73
  46. pulumi_snowflake/get_dynamic_tables.py +36 -19
  47. pulumi_snowflake/get_external_functions.py +28 -9
  48. pulumi_snowflake/get_external_tables.py +28 -9
  49. pulumi_snowflake/get_failover_groups.py +18 -7
  50. pulumi_snowflake/get_file_formats.py +28 -9
  51. pulumi_snowflake/get_functions.py +28 -9
  52. pulumi_snowflake/get_grants.py +207 -84
  53. pulumi_snowflake/get_masking_policies.py +91 -51
  54. pulumi_snowflake/get_materialized_views.py +28 -9
  55. pulumi_snowflake/get_network_policies.py +129 -0
  56. pulumi_snowflake/get_parameters.py +38 -15
  57. pulumi_snowflake/get_pipes.py +28 -9
  58. pulumi_snowflake/get_procedures.py +28 -9
  59. pulumi_snowflake/get_resource_monitors.py +37 -24
  60. pulumi_snowflake/get_row_access_policies.py +91 -51
  61. pulumi_snowflake/get_schemas.py +145 -41
  62. pulumi_snowflake/get_secrets.py +200 -0
  63. pulumi_snowflake/get_security_integrations.py +129 -0
  64. pulumi_snowflake/get_sequences.py +28 -9
  65. pulumi_snowflake/get_shares.py +18 -9
  66. pulumi_snowflake/get_stages.py +28 -9
  67. pulumi_snowflake/get_storage_integrations.py +16 -9
  68. pulumi_snowflake/get_streamlits.py +170 -0
  69. pulumi_snowflake/get_streams.py +114 -54
  70. pulumi_snowflake/get_system_generate_scim_access_token.py +18 -9
  71. pulumi_snowflake/get_system_get_aws_sns_iam_policy.py +32 -7
  72. pulumi_snowflake/get_system_get_private_link_config.py +120 -5
  73. pulumi_snowflake/get_system_get_snowflake_platform_info.py +15 -7
  74. pulumi_snowflake/get_tables.py +28 -9
  75. pulumi_snowflake/get_tags.py +130 -0
  76. pulumi_snowflake/get_tasks.py +134 -54
  77. pulumi_snowflake/get_users.py +116 -44
  78. pulumi_snowflake/get_views.py +114 -54
  79. pulumi_snowflake/get_warehouses.py +79 -26
  80. pulumi_snowflake/grant_account_role.py +28 -75
  81. pulumi_snowflake/grant_application_role.py +257 -0
  82. pulumi_snowflake/grant_database_role.py +35 -94
  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 -383
  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 +40 -11
  89. pulumi_snowflake/masking_policy.py +213 -310
  90. pulumi_snowflake/materialized_view.py +62 -71
  91. pulumi_snowflake/network_policy.py +217 -61
  92. pulumi_snowflake/network_policy_attachment.py +5 -34
  93. pulumi_snowflake/network_rule.py +473 -0
  94. pulumi_snowflake/notification_integration.py +49 -84
  95. pulumi_snowflake/oauth_integration_for_custom_clients.py +906 -0
  96. pulumi_snowflake/{oauth_integration.py → oauth_integration_for_partner_applications.py} +191 -192
  97. pulumi_snowflake/object_parameter.py +10 -101
  98. pulumi_snowflake/outputs.py +49200 -2928
  99. pulumi_snowflake/password_policy.py +41 -28
  100. pulumi_snowflake/pipe.py +33 -4
  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 -327
  110. pulumi_snowflake/row_access_policy.py +200 -149
  111. pulumi_snowflake/{saml_integration.py → saml2_integration.py} +356 -299
  112. pulumi_snowflake/schema.py +949 -178
  113. pulumi_snowflake/scim_integration.py +286 -109
  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 -34
  121. pulumi_snowflake/service_user.py +3585 -0
  122. pulumi_snowflake/share.py +33 -28
  123. pulumi_snowflake/shared_database.py +939 -0
  124. pulumi_snowflake/stage.py +95 -84
  125. pulumi_snowflake/storage_integration.py +46 -4
  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 -97
  132. pulumi_snowflake/table_column_masking_policy_application.py +7 -14
  133. pulumi_snowflake/table_constraint.py +29 -172
  134. pulumi_snowflake/tag.py +142 -74
  135. pulumi_snowflake/tag_association.py +40 -215
  136. pulumi_snowflake/task.py +3048 -418
  137. pulumi_snowflake/user.py +3351 -384
  138. pulumi_snowflake/user_authentication_policy_attachment.py +197 -0
  139. pulumi_snowflake/user_password_policy_attachment.py +5 -4
  140. pulumi_snowflake/user_public_keys.py +5 -0
  141. pulumi_snowflake/view.py +466 -215
  142. pulumi_snowflake/warehouse.py +184 -168
  143. {pulumi_snowflake-0.50.3a1710160126.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.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/WHEEL +1 -1
  146. pulumi_snowflake/account_grant.py +0 -343
  147. pulumi_snowflake/database_grant.py +0 -495
  148. pulumi_snowflake/external_table_grant.py +0 -690
  149. pulumi_snowflake/failover_group_grant.py +0 -388
  150. pulumi_snowflake/file_format_grant.py +0 -635
  151. pulumi_snowflake/function.py +0 -872
  152. pulumi_snowflake/function_grant.py +0 -745
  153. pulumi_snowflake/get_role.py +0 -121
  154. pulumi_snowflake/get_roles.py +0 -120
  155. pulumi_snowflake/grant_privileges_to_role.py +0 -825
  156. pulumi_snowflake/integration_grant.py +0 -440
  157. pulumi_snowflake/masking_policy_grant.py +0 -542
  158. pulumi_snowflake/materialized_view_grant.py +0 -689
  159. pulumi_snowflake/pipe_grant.py +0 -587
  160. pulumi_snowflake/procedure.py +0 -887
  161. pulumi_snowflake/procedure_grant.py +0 -745
  162. pulumi_snowflake/resource_monitor_grant.py +0 -387
  163. pulumi_snowflake/role.py +0 -273
  164. pulumi_snowflake/role_grants.py +0 -352
  165. pulumi_snowflake/role_ownership_grant.py +0 -338
  166. pulumi_snowflake/row_access_policy_grant.py +0 -540
  167. pulumi_snowflake/schema_grant.py +0 -647
  168. pulumi_snowflake/sequence_grant.py +0 -635
  169. pulumi_snowflake/session_parameter.py +0 -332
  170. pulumi_snowflake/stage_grant.py +0 -635
  171. pulumi_snowflake/stream.py +0 -614
  172. pulumi_snowflake/stream_grant.py +0 -635
  173. pulumi_snowflake/table_grant.py +0 -677
  174. pulumi_snowflake/tag_grant.py +0 -532
  175. pulumi_snowflake/tag_masking_policy_association.py +0 -210
  176. pulumi_snowflake/task_grant.py +0 -635
  177. pulumi_snowflake/user_grant.py +0 -394
  178. pulumi_snowflake/user_ownership_grant.py +0 -286
  179. pulumi_snowflake/view_grant.py +0 -705
  180. pulumi_snowflake/warehouse_grant.py +0 -440
  181. pulumi_snowflake-0.50.3a1710160126.dist-info/RECORD +0 -136
  182. {pulumi_snowflake-0.50.3a1710160126.dist-info → pulumi_snowflake-1.2.0a1736835738.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
  from ._inputs import *
12
17
 
@@ -15,153 +20,130 @@ __all__ = ['ProviderArgs', 'Provider']
15
20
  @pulumi.input_type
16
21
  class ProviderArgs:
17
22
  def __init__(__self__, *,
18
- account: Optional[pulumi.Input[str]] = None,
23
+ account_name: Optional[pulumi.Input[str]] = None,
19
24
  authenticator: Optional[pulumi.Input[str]] = None,
20
- browser_auth: Optional[pulumi.Input[bool]] = None,
21
25
  client_ip: Optional[pulumi.Input[str]] = None,
22
- client_request_mfa_token: Optional[pulumi.Input[bool]] = None,
23
- client_store_temporary_credential: Optional[pulumi.Input[bool]] = None,
26
+ client_request_mfa_token: Optional[pulumi.Input[str]] = None,
27
+ client_store_temporary_credential: Optional[pulumi.Input[str]] = None,
24
28
  client_timeout: Optional[pulumi.Input[int]] = None,
29
+ disable_console_login: Optional[pulumi.Input[str]] = None,
25
30
  disable_query_context_cache: Optional[pulumi.Input[bool]] = None,
26
31
  disable_telemetry: Optional[pulumi.Input[bool]] = None,
32
+ driver_tracing: Optional[pulumi.Input[str]] = None,
27
33
  external_browser_timeout: Optional[pulumi.Input[int]] = None,
28
34
  host: Optional[pulumi.Input[str]] = None,
35
+ include_retry_reason: Optional[pulumi.Input[str]] = None,
29
36
  insecure_mode: Optional[pulumi.Input[bool]] = None,
30
37
  jwt_client_timeout: Optional[pulumi.Input[int]] = None,
31
38
  jwt_expire_timeout: Optional[pulumi.Input[int]] = None,
32
39
  keep_session_alive: Optional[pulumi.Input[bool]] = None,
33
40
  login_timeout: Optional[pulumi.Input[int]] = None,
34
- oauth_access_token: Optional[pulumi.Input[str]] = None,
35
- oauth_client_id: Optional[pulumi.Input[str]] = None,
36
- oauth_client_secret: Optional[pulumi.Input[str]] = None,
37
- oauth_endpoint: Optional[pulumi.Input[str]] = None,
38
- oauth_redirect_url: Optional[pulumi.Input[str]] = None,
39
- oauth_refresh_token: Optional[pulumi.Input[str]] = None,
40
- ocsp_fail_open: Optional[pulumi.Input[bool]] = None,
41
+ max_retry_count: Optional[pulumi.Input[int]] = None,
42
+ ocsp_fail_open: Optional[pulumi.Input[str]] = None,
41
43
  okta_url: Optional[pulumi.Input[str]] = None,
42
- params: Optional[pulumi.Input[Mapping[str, Any]]] = None,
44
+ organization_name: Optional[pulumi.Input[str]] = None,
45
+ params: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
43
46
  passcode: Optional[pulumi.Input[str]] = None,
44
47
  passcode_in_password: Optional[pulumi.Input[bool]] = None,
45
48
  password: Optional[pulumi.Input[str]] = None,
46
49
  port: Optional[pulumi.Input[int]] = None,
50
+ preview_features_enabled: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
47
51
  private_key: Optional[pulumi.Input[str]] = None,
48
52
  private_key_passphrase: Optional[pulumi.Input[str]] = None,
49
- private_key_path: Optional[pulumi.Input[str]] = None,
50
53
  profile: Optional[pulumi.Input[str]] = None,
51
54
  protocol: Optional[pulumi.Input[str]] = None,
52
- region: Optional[pulumi.Input[str]] = None,
53
55
  request_timeout: Optional[pulumi.Input[int]] = None,
54
56
  role: Optional[pulumi.Input[str]] = None,
55
- session_params: Optional[pulumi.Input[Mapping[str, Any]]] = None,
57
+ tmp_directory_path: Optional[pulumi.Input[str]] = None,
56
58
  token: Optional[pulumi.Input[str]] = None,
57
59
  token_accessor: Optional[pulumi.Input['ProviderTokenAccessorArgs']] = None,
58
60
  user: Optional[pulumi.Input[str]] = None,
59
- username: Optional[pulumi.Input[str]] = None,
60
- validate_default_parameters: Optional[pulumi.Input[bool]] = None,
61
+ validate_default_parameters: Optional[pulumi.Input[str]] = None,
61
62
  warehouse: Optional[pulumi.Input[str]] = None):
62
63
  """
63
64
  The set of arguments for constructing a Provider resource.
64
- :param pulumi.Input[str] account: Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
65
- [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Can also be sourced
66
- from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using `profile`.
65
+ :param pulumi.Input[str] account_name: Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
66
+ [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
67
+ unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
67
68
  :param pulumi.Input[str] authenticator: Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
68
- connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
69
- UsernamePasswordMFA. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable. It has to be set
70
- explicitly to JWT for private key authentication.
71
- :param pulumi.Input[bool] browser_auth: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_USE_BROWSER_AUTH` environment variable.
69
+ connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `SNOWFLAKE_JWT` |
70
+ `TOKENACCESSOR` | `USERNAMEPASSWORDMFA`. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
72
71
  :param pulumi.Input[str] client_ip: IP address for network checks. Can also be sourced from the `SNOWFLAKE_CLIENT_IP` environment variable.
73
- :param pulumi.Input[bool] client_request_mfa_token: When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
72
+ :param pulumi.Input[str] client_request_mfa_token: When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
74
73
  be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
75
- :param pulumi.Input[bool] client_store_temporary_credential: When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
74
+ :param pulumi.Input[str] client_store_temporary_credential: When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
76
75
  sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment variable.
77
- :param pulumi.Input[int] client_timeout: The timeout in seconds for the client to complete the authentication. Default is 900 seconds. Can also be sourced from
78
- the `SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
79
- :param pulumi.Input[bool] disable_query_context_cache: Should HTAP query context cache be disabled. Can also be sourced from the `SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE`
76
+ :param pulumi.Input[int] client_timeout: The timeout in seconds for the client to complete the authentication. Can also be sourced from the
77
+ `SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
78
+ :param pulumi.Input[str] disable_console_login: Indicates whether console login should be disabled in the driver. Can also be sourced from the
79
+ `SNOWFLAKE_DISABLE_CONSOLE_LOGIN` environment variable.
80
+ :param pulumi.Input[bool] disable_query_context_cache: Disables HTAP query context cache in the driver. Can also be sourced from the `SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE`
80
81
  environment variable.
81
- :param pulumi.Input[bool] disable_telemetry: Indicates whether to disable telemetry. Can also be sourced from the `SNOWFLAKE_DISABLE_TELEMETRY` environment variable.
82
- :param pulumi.Input[int] external_browser_timeout: The timeout in seconds for the external browser to complete the authentication. Default is 120 seconds. Can also be
83
- sourced from the `SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
84
- :param pulumi.Input[str] host: Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
85
- the `SNOWFLAKE_HOST` environment variable.
82
+ :param pulumi.Input[bool] disable_telemetry: Disables telemetry in the driver. Can also be sourced from the `DISABLE_TELEMETRY` environment variable.
83
+ :param pulumi.Input[str] driver_tracing: Specifies the logging level to be used by the driver. Valid options are: `trace` | `debug` | `info` | `print` |
84
+ `warning` | `error` | `fatal` | `panic`. Can also be sourced from the `SNOWFLAKE_DRIVER_TRACING` environment variable.
85
+ :param pulumi.Input[int] external_browser_timeout: The timeout in seconds for the external browser to complete the authentication. Can also be sourced from the
86
+ `SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
87
+ :param pulumi.Input[str] host: Specifies a custom host value used by the driver for privatelink connections. Can also be sourced from the
88
+ `SNOWFLAKE_HOST` environment variable.
89
+ :param pulumi.Input[str] include_retry_reason: Should retried request contain retry reason. Can also be sourced from the `SNOWFLAKE_INCLUDE_RETRY_REASON` environment
90
+ variable.
86
91
  :param pulumi.Input[bool] insecure_mode: If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the
87
92
  default value for testing or emergency situations only. Can also be sourced from the `SNOWFLAKE_INSECURE_MODE`
88
93
  environment variable.
89
- :param pulumi.Input[int] jwt_client_timeout: The timeout in seconds for the JWT client to complete the authentication. Default is 10 seconds. Can also be sourced
90
- from the `SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
94
+ :param pulumi.Input[int] jwt_client_timeout: The timeout in seconds for the JWT client to complete the authentication. Can also be sourced from the
95
+ `SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
91
96
  :param pulumi.Input[int] jwt_expire_timeout: JWT expire after timeout in seconds. Can also be sourced from the `SNOWFLAKE_JWT_EXPIRE_TIMEOUT` environment variable.
92
97
  :param pulumi.Input[bool] keep_session_alive: Enables the session to persist even after the connection is closed. Can also be sourced from the
93
98
  `SNOWFLAKE_KEEP_SESSION_ALIVE` environment variable.
94
- :param pulumi.Input[int] login_timeout: Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
99
+ :param pulumi.Input[int] login_timeout: Login retry timeout in seconds EXCLUDING network roundtrip and read out http response. Can also be sourced from the
95
100
  `SNOWFLAKE_LOGIN_TIMEOUT` environment variable.
96
- :param pulumi.Input[str] oauth_access_token: Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browser_auth`,
97
- `private_key_path`, `oauth_refresh_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN`
98
- environment variable.
99
- :param pulumi.Input[str] oauth_client_id: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.
100
- :param pulumi.Input[str] oauth_client_secret: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment
101
- variable.
102
- :param pulumi.Input[str] oauth_endpoint: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.
103
- :param pulumi.Input[str] oauth_redirect_url: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment
104
- variable.
105
- :param pulumi.Input[str] oauth_refresh_token: Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
106
- `oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`,
107
- `private_key_path`, `oauth_access_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN`
108
- environment variable.
109
- :param pulumi.Input[bool] ocsp_fail_open: True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
101
+ :param pulumi.Input[int] max_retry_count: Specifies how many times non-periodic HTTP request can be retried by the driver. Can also be sourced from the
102
+ `SNOWFLAKE_MAX_RETRY_COUNT` environment variable.
103
+ :param pulumi.Input[str] ocsp_fail_open: True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
110
104
  sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
111
- :param pulumi.Input[str] okta_url: The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the `SNOWFLAKE_OKTA_URL` environment
112
- variable.
113
- :param pulumi.Input[Mapping[str, Any]] params: Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
105
+ :param pulumi.Input[str] okta_url: 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
106
+ in Snowflake [docs](https://docs.snowflake.com/en/user-guide/oauth-okta). Can also be sourced from the
107
+ `SNOWFLAKE_OKTA_URL` environment variable.
108
+ :param pulumi.Input[str] organization_name: Specifies your Snowflake organization name assigned by Snowflake. For information about account identifiers, see the
109
+ [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#organization-name). Required
110
+ unless using `profile`. Can also be sourced from the `SNOWFLAKE_ORGANIZATION_NAME` environment variable.
111
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] params: Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters).
112
+ This field can not be set with environmental variables.
114
113
  :param pulumi.Input[str] passcode: Specifies the passcode provided by Duo when using multi-factor authentication (MFA) for login. Can also be sourced from
115
114
  the `SNOWFLAKE_PASSCODE` environment variable.
116
- :param pulumi.Input[bool] passcode_in_password: False by default. Set to true if the MFA passcode is embedded in the login password. Appends the MFA passcode to the end
117
- of the password. Can also be sourced from the `SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
118
- :param pulumi.Input[str] password: Password for username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can also be sourced from
119
- the `SNOWFLAKE_PASSWORD` environment variable.
120
- :param pulumi.Input[int] port: Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
115
+ :param pulumi.Input[bool] passcode_in_password: False by default. Set to true if the MFA passcode is embedded to the configured password. Can also be sourced from the
116
+ `SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
117
+ :param pulumi.Input[str] password: Password for user + password auth. Cannot be used with `private_key` and `private_key_passphrase`. Can also be sourced
118
+ from the `SNOWFLAKE_PASSWORD` environment variable.
119
+ :param pulumi.Input[int] port: Specifies a custom port value used by the driver for privatelink connections. Can also be sourced from the
121
120
  `SNOWFLAKE_PORT` environment variable.
122
- :param pulumi.Input[str] private_key: Private Key for username+private-key auth. Cannot be used with `browser_auth` or `password`. Can also be sourced from
121
+ :param pulumi.Input[str] private_key: Private Key for username+private-key auth. Cannot be used with `password`. Can also be sourced from the
123
122
  `SNOWFLAKE_PRIVATE_KEY` environment variable.
124
123
  :param pulumi.Input[str] private_key_passphrase: Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
125
- des-ede3-cbc. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
126
- :param pulumi.Input[str] private_key_path: Path to a private key for using keypair authentication. Cannot be used with `browser_auth`, `oauth_access_token` or
127
- `password`. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
124
+ des-ede3-cbc. Can also be sourced from the `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
128
125
  :param pulumi.Input[str] profile: Sets the profile to read from ~/.snowflake/config file. Can also be sourced from the `SNOWFLAKE_PROFILE` environment
129
126
  variable.
130
- :param pulumi.Input[str] protocol: Either http or https, defaults to https. Can also be sourced from the `SNOWFLAKE_PROTOCOL` environment variable.
131
- :param pulumi.Input[str] region: Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
132
- to specify the region as part of the account parameter. For details, see the description of the account parameter.
133
- [Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy
134
- format for the `account`
135
- identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region)
136
- in the form of `<cloud_region_id>.<cloud>`. Can also be sourced from the `SNOWFLAKE_REGION` environment variable.
137
- :param pulumi.Input[int] request_timeout: request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
127
+ :param pulumi.Input[str] protocol: A protocol used in the connection. Valid options are: `http` | `https`. Can also be sourced from the
128
+ `SNOWFLAKE_PROTOCOL` environment variable.
129
+ :param pulumi.Input[int] request_timeout: request retry timeout in seconds EXCLUDING network roundtrip and read out http response. Can also be sourced from the
138
130
  `SNOWFLAKE_REQUEST_TIMEOUT` environment variable.
139
131
  :param pulumi.Input[str] role: Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
140
- `SNOWFLAKE_ROLE` environment variable. .
141
- :param pulumi.Input[Mapping[str, Any]] session_params: Sets session parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
132
+ `SNOWFLAKE_ROLE` environment variable.
133
+ :param pulumi.Input[str] tmp_directory_path: Sets temporary directory used by the driver for operations like encrypting, compressing etc. Can also be sourced from
134
+ the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
142
135
  :param pulumi.Input[str] token: Token to use for OAuth and other forms of token based auth. Can also be sourced from the `SNOWFLAKE_TOKEN` environment
143
136
  variable.
144
- :param pulumi.Input[str] user: Username. Can also be sourced from the `SNOWFLAKE_USER` environment variable. Required unless using `profile`.
145
- :param pulumi.Input[str] username: Username for username+password authentication. Can also be sourced from the `SNOWFLAKE_USERNAME` environment variable.
146
- Required unless using `profile`.
147
- :param pulumi.Input[bool] validate_default_parameters: True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
137
+ :param pulumi.Input[str] user: Username. Required unless using `profile`. Can also be sourced from the `SNOWFLAKE_USER` environment variable.
138
+ :param pulumi.Input[str] validate_default_parameters: True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
148
139
  connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
149
140
  :param pulumi.Input[str] warehouse: Specifies the virtual warehouse to use by default for queries, loading, etc. in the client session. Can also be sourced
150
141
  from the `SNOWFLAKE_WAREHOUSE` environment variable.
151
142
  """
152
- if account is None:
153
- account = _utilities.get_env('SNOWFLAKE_ACCOUNT')
154
- if account is not None:
155
- pulumi.set(__self__, "account", account)
143
+ if account_name is not None:
144
+ pulumi.set(__self__, "account_name", account_name)
156
145
  if authenticator is not None:
157
146
  pulumi.set(__self__, "authenticator", authenticator)
158
- if browser_auth is not None:
159
- warnings.warn("""Use `authenticator` instead""", DeprecationWarning)
160
- pulumi.log.warn("""browser_auth is deprecated: Use `authenticator` instead""")
161
- if browser_auth is None:
162
- browser_auth = _utilities.get_env_bool('SNOWFLAKE_USE_BROWSER_AUTH')
163
- if browser_auth is not None:
164
- pulumi.set(__self__, "browser_auth", browser_auth)
165
147
  if client_ip is not None:
166
148
  pulumi.set(__self__, "client_ip", client_ip)
167
149
  if client_request_mfa_token is not None:
@@ -170,16 +152,22 @@ class ProviderArgs:
170
152
  pulumi.set(__self__, "client_store_temporary_credential", client_store_temporary_credential)
171
153
  if client_timeout is not None:
172
154
  pulumi.set(__self__, "client_timeout", client_timeout)
155
+ if disable_console_login is not None:
156
+ pulumi.set(__self__, "disable_console_login", disable_console_login)
173
157
  if disable_query_context_cache is not None:
174
158
  pulumi.set(__self__, "disable_query_context_cache", disable_query_context_cache)
175
159
  if disable_telemetry is not None:
176
160
  pulumi.set(__self__, "disable_telemetry", disable_telemetry)
161
+ if driver_tracing is not None:
162
+ pulumi.set(__self__, "driver_tracing", driver_tracing)
177
163
  if external_browser_timeout is not None:
178
164
  pulumi.set(__self__, "external_browser_timeout", external_browser_timeout)
179
165
  if host is None:
180
166
  host = _utilities.get_env('SNOWFLAKE_HOST')
181
167
  if host is not None:
182
168
  pulumi.set(__self__, "host", host)
169
+ if include_retry_reason is not None:
170
+ pulumi.set(__self__, "include_retry_reason", include_retry_reason)
183
171
  if insecure_mode is not None:
184
172
  pulumi.set(__self__, "insecure_mode", insecure_mode)
185
173
  if jwt_client_timeout is not None:
@@ -190,52 +178,14 @@ class ProviderArgs:
190
178
  pulumi.set(__self__, "keep_session_alive", keep_session_alive)
191
179
  if login_timeout is not None:
192
180
  pulumi.set(__self__, "login_timeout", login_timeout)
193
- if oauth_access_token is not None:
194
- warnings.warn("""Use `token` instead""", DeprecationWarning)
195
- pulumi.log.warn("""oauth_access_token is deprecated: Use `token` instead""")
196
- if oauth_access_token is None:
197
- oauth_access_token = _utilities.get_env('SNOWFLAKE_OAUTH_ACCESS_TOKEN')
198
- if oauth_access_token is not None:
199
- pulumi.set(__self__, "oauth_access_token", oauth_access_token)
200
- if oauth_client_id is not None:
201
- warnings.warn("""Use `token_accessor.0.client_id` instead""", DeprecationWarning)
202
- pulumi.log.warn("""oauth_client_id is deprecated: Use `token_accessor.0.client_id` instead""")
203
- if oauth_client_id is None:
204
- oauth_client_id = _utilities.get_env('SNOWFLAKE_OAUTH_CLIENT_ID')
205
- if oauth_client_id is not None:
206
- pulumi.set(__self__, "oauth_client_id", oauth_client_id)
207
- if oauth_client_secret is not None:
208
- warnings.warn("""Use `token_accessor.0.client_secret` instead""", DeprecationWarning)
209
- pulumi.log.warn("""oauth_client_secret is deprecated: Use `token_accessor.0.client_secret` instead""")
210
- if oauth_client_secret is None:
211
- oauth_client_secret = _utilities.get_env('SNOWFLAKE_OAUTH_CLIENT_SECRET')
212
- if oauth_client_secret is not None:
213
- pulumi.set(__self__, "oauth_client_secret", oauth_client_secret)
214
- if oauth_endpoint is not None:
215
- warnings.warn("""Use `token_accessor.0.token_endpoint` instead""", DeprecationWarning)
216
- pulumi.log.warn("""oauth_endpoint is deprecated: Use `token_accessor.0.token_endpoint` instead""")
217
- if oauth_endpoint is None:
218
- oauth_endpoint = _utilities.get_env('SNOWFLAKE_OAUTH_ENDPOINT')
219
- if oauth_endpoint is not None:
220
- pulumi.set(__self__, "oauth_endpoint", oauth_endpoint)
221
- if oauth_redirect_url is not None:
222
- warnings.warn("""Use `token_accessor.0.redirect_uri` instead""", DeprecationWarning)
223
- pulumi.log.warn("""oauth_redirect_url is deprecated: Use `token_accessor.0.redirect_uri` instead""")
224
- if oauth_redirect_url is None:
225
- oauth_redirect_url = _utilities.get_env('SNOWFLAKE_OAUTH_REDIRECT_URL')
226
- if oauth_redirect_url is not None:
227
- pulumi.set(__self__, "oauth_redirect_url", oauth_redirect_url)
228
- if oauth_refresh_token is not None:
229
- warnings.warn("""Use `token_accessor.0.refresh_token` instead""", DeprecationWarning)
230
- pulumi.log.warn("""oauth_refresh_token is deprecated: Use `token_accessor.0.refresh_token` instead""")
231
- if oauth_refresh_token is None:
232
- oauth_refresh_token = _utilities.get_env('SNOWFLAKE_OAUTH_REFRESH_TOKEN')
233
- if oauth_refresh_token is not None:
234
- pulumi.set(__self__, "oauth_refresh_token", oauth_refresh_token)
181
+ if max_retry_count is not None:
182
+ pulumi.set(__self__, "max_retry_count", max_retry_count)
235
183
  if ocsp_fail_open is not None:
236
184
  pulumi.set(__self__, "ocsp_fail_open", ocsp_fail_open)
237
185
  if okta_url is not None:
238
186
  pulumi.set(__self__, "okta_url", okta_url)
187
+ if organization_name is not None:
188
+ pulumi.set(__self__, "organization_name", organization_name)
239
189
  if params is not None:
240
190
  pulumi.set(__self__, "params", params)
241
191
  if passcode is not None:
@@ -250,56 +200,34 @@ class ProviderArgs:
250
200
  port = _utilities.get_env_int('SNOWFLAKE_PORT')
251
201
  if port is not None:
252
202
  pulumi.set(__self__, "port", port)
203
+ if preview_features_enabled is not None:
204
+ pulumi.set(__self__, "preview_features_enabled", preview_features_enabled)
253
205
  if private_key is not None:
254
206
  pulumi.set(__self__, "private_key", private_key)
255
207
  if private_key_passphrase is None:
256
208
  private_key_passphrase = _utilities.get_env('SNOWFLAKE_PRIVATE_KEY_PASSPHRASE')
257
209
  if private_key_passphrase is not None:
258
210
  pulumi.set(__self__, "private_key_passphrase", private_key_passphrase)
259
- if private_key_path is not None:
260
- warnings.warn("""use the [file Function](https://developer.hashicorp.com/terraform/language/functions/file) instead""", DeprecationWarning)
261
- pulumi.log.warn("""private_key_path is deprecated: use the [file Function](https://developer.hashicorp.com/terraform/language/functions/file) instead""")
262
- if private_key_path is None:
263
- private_key_path = _utilities.get_env('SNOWFLAKE_PRIVATE_KEY_PATH')
264
- if private_key_path is not None:
265
- pulumi.set(__self__, "private_key_path", private_key_path)
266
211
  if profile is not None:
267
212
  pulumi.set(__self__, "profile", profile)
268
213
  if protocol is None:
269
214
  protocol = _utilities.get_env('SNOWFLAKE_PROTOCOL')
270
215
  if protocol is not None:
271
216
  pulumi.set(__self__, "protocol", protocol)
272
- if region is not None:
273
- warnings.warn("""Specify the region as part of the account parameter""", DeprecationWarning)
274
- pulumi.log.warn("""region is deprecated: Specify the region as part of the account parameter""")
275
- if region is None:
276
- region = _utilities.get_env('SNOWFLAKE_REGION')
277
- if region is not None:
278
- pulumi.set(__self__, "region", region)
279
217
  if request_timeout is not None:
280
218
  pulumi.set(__self__, "request_timeout", request_timeout)
281
219
  if role is None:
282
220
  role = _utilities.get_env('SNOWFLAKE_ROLE')
283
221
  if role is not None:
284
222
  pulumi.set(__self__, "role", role)
285
- if session_params is not None:
286
- warnings.warn("""Use `params` instead""", DeprecationWarning)
287
- pulumi.log.warn("""session_params is deprecated: Use `params` instead""")
288
- if session_params is not None:
289
- pulumi.set(__self__, "session_params", session_params)
223
+ if tmp_directory_path is not None:
224
+ pulumi.set(__self__, "tmp_directory_path", tmp_directory_path)
290
225
  if token is not None:
291
226
  pulumi.set(__self__, "token", token)
292
227
  if token_accessor is not None:
293
228
  pulumi.set(__self__, "token_accessor", token_accessor)
294
229
  if user is not None:
295
230
  pulumi.set(__self__, "user", user)
296
- if username is not None:
297
- warnings.warn("""Use `user` instead of `username`""", DeprecationWarning)
298
- pulumi.log.warn("""username is deprecated: Use `user` instead of `username`""")
299
- if username is None:
300
- username = _utilities.get_env('SNOWFLAKE_USER')
301
- if username is not None:
302
- pulumi.set(__self__, "username", username)
303
231
  if validate_default_parameters is not None:
304
232
  pulumi.set(__self__, "validate_default_parameters", validate_default_parameters)
305
233
  if warehouse is None:
@@ -308,27 +236,26 @@ class ProviderArgs:
308
236
  pulumi.set(__self__, "warehouse", warehouse)
309
237
 
310
238
  @property
311
- @pulumi.getter
312
- def account(self) -> Optional[pulumi.Input[str]]:
239
+ @pulumi.getter(name="accountName")
240
+ def account_name(self) -> Optional[pulumi.Input[str]]:
313
241
  """
314
- Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
315
- [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Can also be sourced
316
- from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using `profile`.
242
+ Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
243
+ [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
244
+ unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
317
245
  """
318
- return pulumi.get(self, "account")
246
+ return pulumi.get(self, "account_name")
319
247
 
320
- @account.setter
321
- def account(self, value: Optional[pulumi.Input[str]]):
322
- pulumi.set(self, "account", value)
248
+ @account_name.setter
249
+ def account_name(self, value: Optional[pulumi.Input[str]]):
250
+ pulumi.set(self, "account_name", value)
323
251
 
324
252
  @property
325
253
  @pulumi.getter
326
254
  def authenticator(self) -> Optional[pulumi.Input[str]]:
327
255
  """
328
256
  Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
329
- connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
330
- UsernamePasswordMFA. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable. It has to be set
331
- explicitly to JWT for private key authentication.
257
+ connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `SNOWFLAKE_JWT` |
258
+ `TOKENACCESSOR` | `USERNAMEPASSWORDMFA`. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
332
259
  """
333
260
  return pulumi.get(self, "authenticator")
334
261
 
@@ -336,21 +263,6 @@ class ProviderArgs:
336
263
  def authenticator(self, value: Optional[pulumi.Input[str]]):
337
264
  pulumi.set(self, "authenticator", value)
338
265
 
339
- @property
340
- @pulumi.getter(name="browserAuth")
341
- def browser_auth(self) -> Optional[pulumi.Input[bool]]:
342
- """
343
- Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_USE_BROWSER_AUTH` environment variable.
344
- """
345
- warnings.warn("""Use `authenticator` instead""", DeprecationWarning)
346
- pulumi.log.warn("""browser_auth is deprecated: Use `authenticator` instead""")
347
-
348
- return pulumi.get(self, "browser_auth")
349
-
350
- @browser_auth.setter
351
- def browser_auth(self, value: Optional[pulumi.Input[bool]]):
352
- pulumi.set(self, "browser_auth", value)
353
-
354
266
  @property
355
267
  @pulumi.getter(name="clientIp")
356
268
  def client_ip(self) -> Optional[pulumi.Input[str]]:
@@ -365,7 +277,7 @@ class ProviderArgs:
365
277
 
366
278
  @property
367
279
  @pulumi.getter(name="clientRequestMfaToken")
368
- def client_request_mfa_token(self) -> Optional[pulumi.Input[bool]]:
280
+ def client_request_mfa_token(self) -> Optional[pulumi.Input[str]]:
369
281
  """
370
282
  When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
371
283
  be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
@@ -373,12 +285,12 @@ class ProviderArgs:
373
285
  return pulumi.get(self, "client_request_mfa_token")
374
286
 
375
287
  @client_request_mfa_token.setter
376
- def client_request_mfa_token(self, value: Optional[pulumi.Input[bool]]):
288
+ def client_request_mfa_token(self, value: Optional[pulumi.Input[str]]):
377
289
  pulumi.set(self, "client_request_mfa_token", value)
378
290
 
379
291
  @property
380
292
  @pulumi.getter(name="clientStoreTemporaryCredential")
381
- def client_store_temporary_credential(self) -> Optional[pulumi.Input[bool]]:
293
+ def client_store_temporary_credential(self) -> Optional[pulumi.Input[str]]:
382
294
  """
383
295
  When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
384
296
  sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment variable.
@@ -386,15 +298,15 @@ class ProviderArgs:
386
298
  return pulumi.get(self, "client_store_temporary_credential")
387
299
 
388
300
  @client_store_temporary_credential.setter
389
- def client_store_temporary_credential(self, value: Optional[pulumi.Input[bool]]):
301
+ def client_store_temporary_credential(self, value: Optional[pulumi.Input[str]]):
390
302
  pulumi.set(self, "client_store_temporary_credential", value)
391
303
 
392
304
  @property
393
305
  @pulumi.getter(name="clientTimeout")
394
306
  def client_timeout(self) -> Optional[pulumi.Input[int]]:
395
307
  """
396
- The timeout in seconds for the client to complete the authentication. Default is 900 seconds. Can also be sourced from
397
- the `SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
308
+ The timeout in seconds for the client to complete the authentication. Can also be sourced from the
309
+ `SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
398
310
  """
399
311
  return pulumi.get(self, "client_timeout")
400
312
 
@@ -402,11 +314,24 @@ class ProviderArgs:
402
314
  def client_timeout(self, value: Optional[pulumi.Input[int]]):
403
315
  pulumi.set(self, "client_timeout", value)
404
316
 
317
+ @property
318
+ @pulumi.getter(name="disableConsoleLogin")
319
+ def disable_console_login(self) -> Optional[pulumi.Input[str]]:
320
+ """
321
+ Indicates whether console login should be disabled in the driver. Can also be sourced from the
322
+ `SNOWFLAKE_DISABLE_CONSOLE_LOGIN` environment variable.
323
+ """
324
+ return pulumi.get(self, "disable_console_login")
325
+
326
+ @disable_console_login.setter
327
+ def disable_console_login(self, value: Optional[pulumi.Input[str]]):
328
+ pulumi.set(self, "disable_console_login", value)
329
+
405
330
  @property
406
331
  @pulumi.getter(name="disableQueryContextCache")
407
332
  def disable_query_context_cache(self) -> Optional[pulumi.Input[bool]]:
408
333
  """
409
- Should HTAP query context cache be disabled. Can also be sourced from the `SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE`
334
+ Disables HTAP query context cache in the driver. Can also be sourced from the `SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE`
410
335
  environment variable.
411
336
  """
412
337
  return pulumi.get(self, "disable_query_context_cache")
@@ -419,7 +344,7 @@ class ProviderArgs:
419
344
  @pulumi.getter(name="disableTelemetry")
420
345
  def disable_telemetry(self) -> Optional[pulumi.Input[bool]]:
421
346
  """
422
- Indicates whether to disable telemetry. Can also be sourced from the `SNOWFLAKE_DISABLE_TELEMETRY` environment variable.
347
+ Disables telemetry in the driver. Can also be sourced from the `DISABLE_TELEMETRY` environment variable.
423
348
  """
424
349
  return pulumi.get(self, "disable_telemetry")
425
350
 
@@ -427,12 +352,25 @@ class ProviderArgs:
427
352
  def disable_telemetry(self, value: Optional[pulumi.Input[bool]]):
428
353
  pulumi.set(self, "disable_telemetry", value)
429
354
 
355
+ @property
356
+ @pulumi.getter(name="driverTracing")
357
+ def driver_tracing(self) -> Optional[pulumi.Input[str]]:
358
+ """
359
+ Specifies the logging level to be used by the driver. Valid options are: `trace` | `debug` | `info` | `print` |
360
+ `warning` | `error` | `fatal` | `panic`. Can also be sourced from the `SNOWFLAKE_DRIVER_TRACING` environment variable.
361
+ """
362
+ return pulumi.get(self, "driver_tracing")
363
+
364
+ @driver_tracing.setter
365
+ def driver_tracing(self, value: Optional[pulumi.Input[str]]):
366
+ pulumi.set(self, "driver_tracing", value)
367
+
430
368
  @property
431
369
  @pulumi.getter(name="externalBrowserTimeout")
432
370
  def external_browser_timeout(self) -> Optional[pulumi.Input[int]]:
433
371
  """
434
- The timeout in seconds for the external browser to complete the authentication. Default is 120 seconds. Can also be
435
- sourced from the `SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
372
+ The timeout in seconds for the external browser to complete the authentication. Can also be sourced from the
373
+ `SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
436
374
  """
437
375
  return pulumi.get(self, "external_browser_timeout")
438
376
 
@@ -444,8 +382,8 @@ class ProviderArgs:
444
382
  @pulumi.getter
445
383
  def host(self) -> Optional[pulumi.Input[str]]:
446
384
  """
447
- Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
448
- the `SNOWFLAKE_HOST` environment variable.
385
+ Specifies a custom host value used by the driver for privatelink connections. Can also be sourced from the
386
+ `SNOWFLAKE_HOST` environment variable.
449
387
  """
450
388
  return pulumi.get(self, "host")
451
389
 
@@ -453,6 +391,19 @@ class ProviderArgs:
453
391
  def host(self, value: Optional[pulumi.Input[str]]):
454
392
  pulumi.set(self, "host", value)
455
393
 
394
+ @property
395
+ @pulumi.getter(name="includeRetryReason")
396
+ def include_retry_reason(self) -> Optional[pulumi.Input[str]]:
397
+ """
398
+ Should retried request contain retry reason. Can also be sourced from the `SNOWFLAKE_INCLUDE_RETRY_REASON` environment
399
+ variable.
400
+ """
401
+ return pulumi.get(self, "include_retry_reason")
402
+
403
+ @include_retry_reason.setter
404
+ def include_retry_reason(self, value: Optional[pulumi.Input[str]]):
405
+ pulumi.set(self, "include_retry_reason", value)
406
+
456
407
  @property
457
408
  @pulumi.getter(name="insecureMode")
458
409
  def insecure_mode(self) -> Optional[pulumi.Input[bool]]:
@@ -471,8 +422,8 @@ class ProviderArgs:
471
422
  @pulumi.getter(name="jwtClientTimeout")
472
423
  def jwt_client_timeout(self) -> Optional[pulumi.Input[int]]:
473
424
  """
474
- The timeout in seconds for the JWT client to complete the authentication. Default is 10 seconds. Can also be sourced
475
- from the `SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
425
+ The timeout in seconds for the JWT client to complete the authentication. Can also be sourced from the
426
+ `SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
476
427
  """
477
428
  return pulumi.get(self, "jwt_client_timeout")
478
429
 
@@ -509,7 +460,7 @@ class ProviderArgs:
509
460
  @pulumi.getter(name="loginTimeout")
510
461
  def login_timeout(self) -> Optional[pulumi.Input[int]]:
511
462
  """
512
- Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
463
+ Login retry timeout in seconds EXCLUDING network roundtrip and read out http response. Can also be sourced from the
513
464
  `SNOWFLAKE_LOGIN_TIMEOUT` environment variable.
514
465
  """
515
466
  return pulumi.get(self, "login_timeout")
@@ -519,105 +470,21 @@ class ProviderArgs:
519
470
  pulumi.set(self, "login_timeout", value)
520
471
 
521
472
  @property
522
- @pulumi.getter(name="oauthAccessToken")
523
- def oauth_access_token(self) -> Optional[pulumi.Input[str]]:
524
- """
525
- Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browser_auth`,
526
- `private_key_path`, `oauth_refresh_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN`
527
- environment variable.
528
- """
529
- warnings.warn("""Use `token` instead""", DeprecationWarning)
530
- pulumi.log.warn("""oauth_access_token is deprecated: Use `token` instead""")
531
-
532
- return pulumi.get(self, "oauth_access_token")
533
-
534
- @oauth_access_token.setter
535
- def oauth_access_token(self, value: Optional[pulumi.Input[str]]):
536
- pulumi.set(self, "oauth_access_token", value)
537
-
538
- @property
539
- @pulumi.getter(name="oauthClientId")
540
- def oauth_client_id(self) -> Optional[pulumi.Input[str]]:
541
- """
542
- Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.
543
- """
544
- warnings.warn("""Use `token_accessor.0.client_id` instead""", DeprecationWarning)
545
- pulumi.log.warn("""oauth_client_id is deprecated: Use `token_accessor.0.client_id` instead""")
546
-
547
- return pulumi.get(self, "oauth_client_id")
548
-
549
- @oauth_client_id.setter
550
- def oauth_client_id(self, value: Optional[pulumi.Input[str]]):
551
- pulumi.set(self, "oauth_client_id", value)
552
-
553
- @property
554
- @pulumi.getter(name="oauthClientSecret")
555
- def oauth_client_secret(self) -> Optional[pulumi.Input[str]]:
556
- """
557
- Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment
558
- variable.
559
- """
560
- warnings.warn("""Use `token_accessor.0.client_secret` instead""", DeprecationWarning)
561
- pulumi.log.warn("""oauth_client_secret is deprecated: Use `token_accessor.0.client_secret` instead""")
562
-
563
- return pulumi.get(self, "oauth_client_secret")
564
-
565
- @oauth_client_secret.setter
566
- def oauth_client_secret(self, value: Optional[pulumi.Input[str]]):
567
- pulumi.set(self, "oauth_client_secret", value)
568
-
569
- @property
570
- @pulumi.getter(name="oauthEndpoint")
571
- def oauth_endpoint(self) -> Optional[pulumi.Input[str]]:
572
- """
573
- Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.
574
- """
575
- warnings.warn("""Use `token_accessor.0.token_endpoint` instead""", DeprecationWarning)
576
- pulumi.log.warn("""oauth_endpoint is deprecated: Use `token_accessor.0.token_endpoint` instead""")
577
-
578
- return pulumi.get(self, "oauth_endpoint")
579
-
580
- @oauth_endpoint.setter
581
- def oauth_endpoint(self, value: Optional[pulumi.Input[str]]):
582
- pulumi.set(self, "oauth_endpoint", value)
583
-
584
- @property
585
- @pulumi.getter(name="oauthRedirectUrl")
586
- def oauth_redirect_url(self) -> Optional[pulumi.Input[str]]:
587
- """
588
- Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment
589
- variable.
590
- """
591
- warnings.warn("""Use `token_accessor.0.redirect_uri` instead""", DeprecationWarning)
592
- pulumi.log.warn("""oauth_redirect_url is deprecated: Use `token_accessor.0.redirect_uri` instead""")
593
-
594
- return pulumi.get(self, "oauth_redirect_url")
595
-
596
- @oauth_redirect_url.setter
597
- def oauth_redirect_url(self, value: Optional[pulumi.Input[str]]):
598
- pulumi.set(self, "oauth_redirect_url", value)
599
-
600
- @property
601
- @pulumi.getter(name="oauthRefreshToken")
602
- def oauth_refresh_token(self) -> Optional[pulumi.Input[str]]:
473
+ @pulumi.getter(name="maxRetryCount")
474
+ def max_retry_count(self) -> Optional[pulumi.Input[int]]:
603
475
  """
604
- Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
605
- `oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`,
606
- `private_key_path`, `oauth_access_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN`
607
- environment variable.
476
+ Specifies how many times non-periodic HTTP request can be retried by the driver. Can also be sourced from the
477
+ `SNOWFLAKE_MAX_RETRY_COUNT` environment variable.
608
478
  """
609
- warnings.warn("""Use `token_accessor.0.refresh_token` instead""", DeprecationWarning)
610
- pulumi.log.warn("""oauth_refresh_token is deprecated: Use `token_accessor.0.refresh_token` instead""")
611
-
612
- return pulumi.get(self, "oauth_refresh_token")
479
+ return pulumi.get(self, "max_retry_count")
613
480
 
614
- @oauth_refresh_token.setter
615
- def oauth_refresh_token(self, value: Optional[pulumi.Input[str]]):
616
- pulumi.set(self, "oauth_refresh_token", value)
481
+ @max_retry_count.setter
482
+ def max_retry_count(self, value: Optional[pulumi.Input[int]]):
483
+ pulumi.set(self, "max_retry_count", value)
617
484
 
618
485
  @property
619
486
  @pulumi.getter(name="ocspFailOpen")
620
- def ocsp_fail_open(self) -> Optional[pulumi.Input[bool]]:
487
+ def ocsp_fail_open(self) -> Optional[pulumi.Input[str]]:
621
488
  """
622
489
  True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
623
490
  sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
@@ -625,15 +492,16 @@ class ProviderArgs:
625
492
  return pulumi.get(self, "ocsp_fail_open")
626
493
 
627
494
  @ocsp_fail_open.setter
628
- def ocsp_fail_open(self, value: Optional[pulumi.Input[bool]]):
495
+ def ocsp_fail_open(self, value: Optional[pulumi.Input[str]]):
629
496
  pulumi.set(self, "ocsp_fail_open", value)
630
497
 
631
498
  @property
632
499
  @pulumi.getter(name="oktaUrl")
633
500
  def okta_url(self) -> Optional[pulumi.Input[str]]:
634
501
  """
635
- The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the `SNOWFLAKE_OKTA_URL` environment
636
- variable.
502
+ 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
503
+ in Snowflake [docs](https://docs.snowflake.com/en/user-guide/oauth-okta). Can also be sourced from the
504
+ `SNOWFLAKE_OKTA_URL` environment variable.
637
505
  """
638
506
  return pulumi.get(self, "okta_url")
639
507
 
@@ -641,16 +509,31 @@ class ProviderArgs:
641
509
  def okta_url(self, value: Optional[pulumi.Input[str]]):
642
510
  pulumi.set(self, "okta_url", value)
643
511
 
512
+ @property
513
+ @pulumi.getter(name="organizationName")
514
+ def organization_name(self) -> Optional[pulumi.Input[str]]:
515
+ """
516
+ Specifies your Snowflake organization name assigned by Snowflake. For information about account identifiers, see the
517
+ [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#organization-name). Required
518
+ unless using `profile`. Can also be sourced from the `SNOWFLAKE_ORGANIZATION_NAME` environment variable.
519
+ """
520
+ return pulumi.get(self, "organization_name")
521
+
522
+ @organization_name.setter
523
+ def organization_name(self, value: Optional[pulumi.Input[str]]):
524
+ pulumi.set(self, "organization_name", value)
525
+
644
526
  @property
645
527
  @pulumi.getter
646
- def params(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
528
+ def params(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
647
529
  """
648
- Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
530
+ Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters).
531
+ This field can not be set with environmental variables.
649
532
  """
650
533
  return pulumi.get(self, "params")
651
534
 
652
535
  @params.setter
653
- def params(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
536
+ def params(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
654
537
  pulumi.set(self, "params", value)
655
538
 
656
539
  @property
@@ -670,8 +553,8 @@ class ProviderArgs:
670
553
  @pulumi.getter(name="passcodeInPassword")
671
554
  def passcode_in_password(self) -> Optional[pulumi.Input[bool]]:
672
555
  """
673
- False by default. Set to true if the MFA passcode is embedded in the login password. Appends the MFA passcode to the end
674
- of the password. Can also be sourced from the `SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
556
+ False by default. Set to true if the MFA passcode is embedded to the configured password. Can also be sourced from the
557
+ `SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
675
558
  """
676
559
  return pulumi.get(self, "passcode_in_password")
677
560
 
@@ -683,8 +566,8 @@ class ProviderArgs:
683
566
  @pulumi.getter
684
567
  def password(self) -> Optional[pulumi.Input[str]]:
685
568
  """
686
- Password for username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can also be sourced from
687
- the `SNOWFLAKE_PASSWORD` environment variable.
569
+ Password for user + password auth. Cannot be used with `private_key` and `private_key_passphrase`. Can also be sourced
570
+ from the `SNOWFLAKE_PASSWORD` environment variable.
688
571
  """
689
572
  return pulumi.get(self, "password")
690
573
 
@@ -696,7 +579,7 @@ class ProviderArgs:
696
579
  @pulumi.getter
697
580
  def port(self) -> Optional[pulumi.Input[int]]:
698
581
  """
699
- Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
582
+ Specifies a custom port value used by the driver for privatelink connections. Can also be sourced from the
700
583
  `SNOWFLAKE_PORT` environment variable.
701
584
  """
702
585
  return pulumi.get(self, "port")
@@ -705,11 +588,20 @@ class ProviderArgs:
705
588
  def port(self, value: Optional[pulumi.Input[int]]):
706
589
  pulumi.set(self, "port", value)
707
590
 
591
+ @property
592
+ @pulumi.getter(name="previewFeaturesEnabled")
593
+ def preview_features_enabled(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
594
+ return pulumi.get(self, "preview_features_enabled")
595
+
596
+ @preview_features_enabled.setter
597
+ def preview_features_enabled(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
598
+ pulumi.set(self, "preview_features_enabled", value)
599
+
708
600
  @property
709
601
  @pulumi.getter(name="privateKey")
710
602
  def private_key(self) -> Optional[pulumi.Input[str]]:
711
603
  """
712
- Private Key for username+private-key auth. Cannot be used with `browser_auth` or `password`. Can also be sourced from
604
+ Private Key for username+private-key auth. Cannot be used with `password`. Can also be sourced from the
713
605
  `SNOWFLAKE_PRIVATE_KEY` environment variable.
714
606
  """
715
607
  return pulumi.get(self, "private_key")
@@ -723,7 +615,7 @@ class ProviderArgs:
723
615
  def private_key_passphrase(self) -> Optional[pulumi.Input[str]]:
724
616
  """
725
617
  Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
726
- des-ede3-cbc. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
618
+ des-ede3-cbc. Can also be sourced from the `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
727
619
  """
728
620
  return pulumi.get(self, "private_key_passphrase")
729
621
 
@@ -731,22 +623,6 @@ class ProviderArgs:
731
623
  def private_key_passphrase(self, value: Optional[pulumi.Input[str]]):
732
624
  pulumi.set(self, "private_key_passphrase", value)
733
625
 
734
- @property
735
- @pulumi.getter(name="privateKeyPath")
736
- def private_key_path(self) -> Optional[pulumi.Input[str]]:
737
- """
738
- Path to a private key for using keypair authentication. Cannot be used with `browser_auth`, `oauth_access_token` or
739
- `password`. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
740
- """
741
- warnings.warn("""use the [file Function](https://developer.hashicorp.com/terraform/language/functions/file) instead""", DeprecationWarning)
742
- pulumi.log.warn("""private_key_path is deprecated: use the [file Function](https://developer.hashicorp.com/terraform/language/functions/file) instead""")
743
-
744
- return pulumi.get(self, "private_key_path")
745
-
746
- @private_key_path.setter
747
- def private_key_path(self, value: Optional[pulumi.Input[str]]):
748
- pulumi.set(self, "private_key_path", value)
749
-
750
626
  @property
751
627
  @pulumi.getter
752
628
  def profile(self) -> Optional[pulumi.Input[str]]:
@@ -764,7 +640,8 @@ class ProviderArgs:
764
640
  @pulumi.getter
765
641
  def protocol(self) -> Optional[pulumi.Input[str]]:
766
642
  """
767
- Either http or https, defaults to https. Can also be sourced from the `SNOWFLAKE_PROTOCOL` environment variable.
643
+ A protocol used in the connection. Valid options are: `http` | `https`. Can also be sourced from the
644
+ `SNOWFLAKE_PROTOCOL` environment variable.
768
645
  """
769
646
  return pulumi.get(self, "protocol")
770
647
 
@@ -772,31 +649,11 @@ class ProviderArgs:
772
649
  def protocol(self, value: Optional[pulumi.Input[str]]):
773
650
  pulumi.set(self, "protocol", value)
774
651
 
775
- @property
776
- @pulumi.getter
777
- def region(self) -> Optional[pulumi.Input[str]]:
778
- """
779
- Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
780
- to specify the region as part of the account parameter. For details, see the description of the account parameter.
781
- [Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy
782
- format for the `account`
783
- identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region)
784
- in the form of `<cloud_region_id>.<cloud>`. Can also be sourced from the `SNOWFLAKE_REGION` environment variable.
785
- """
786
- warnings.warn("""Specify the region as part of the account parameter""", DeprecationWarning)
787
- pulumi.log.warn("""region is deprecated: Specify the region as part of the account parameter""")
788
-
789
- return pulumi.get(self, "region")
790
-
791
- @region.setter
792
- def region(self, value: Optional[pulumi.Input[str]]):
793
- pulumi.set(self, "region", value)
794
-
795
652
  @property
796
653
  @pulumi.getter(name="requestTimeout")
797
654
  def request_timeout(self) -> Optional[pulumi.Input[int]]:
798
655
  """
799
- request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
656
+ request retry timeout in seconds EXCLUDING network roundtrip and read out http response. Can also be sourced from the
800
657
  `SNOWFLAKE_REQUEST_TIMEOUT` environment variable.
801
658
  """
802
659
  return pulumi.get(self, "request_timeout")
@@ -810,7 +667,7 @@ class ProviderArgs:
810
667
  def role(self) -> Optional[pulumi.Input[str]]:
811
668
  """
812
669
  Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
813
- `SNOWFLAKE_ROLE` environment variable. .
670
+ `SNOWFLAKE_ROLE` environment variable.
814
671
  """
815
672
  return pulumi.get(self, "role")
816
673
 
@@ -819,19 +676,17 @@ class ProviderArgs:
819
676
  pulumi.set(self, "role", value)
820
677
 
821
678
  @property
822
- @pulumi.getter(name="sessionParams")
823
- def session_params(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
679
+ @pulumi.getter(name="tmpDirectoryPath")
680
+ def tmp_directory_path(self) -> Optional[pulumi.Input[str]]:
824
681
  """
825
- Sets session parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
682
+ Sets temporary directory used by the driver for operations like encrypting, compressing etc. Can also be sourced from
683
+ the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
826
684
  """
827
- warnings.warn("""Use `params` instead""", DeprecationWarning)
828
- pulumi.log.warn("""session_params is deprecated: Use `params` instead""")
685
+ return pulumi.get(self, "tmp_directory_path")
829
686
 
830
- return pulumi.get(self, "session_params")
831
-
832
- @session_params.setter
833
- def session_params(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
834
- pulumi.set(self, "session_params", value)
687
+ @tmp_directory_path.setter
688
+ def tmp_directory_path(self, value: Optional[pulumi.Input[str]]):
689
+ pulumi.set(self, "tmp_directory_path", value)
835
690
 
836
691
  @property
837
692
  @pulumi.getter
@@ -859,7 +714,7 @@ class ProviderArgs:
859
714
  @pulumi.getter
860
715
  def user(self) -> Optional[pulumi.Input[str]]:
861
716
  """
862
- Username. Can also be sourced from the `SNOWFLAKE_USER` environment variable. Required unless using `profile`.
717
+ Username. Required unless using `profile`. Can also be sourced from the `SNOWFLAKE_USER` environment variable.
863
718
  """
864
719
  return pulumi.get(self, "user")
865
720
 
@@ -867,25 +722,9 @@ class ProviderArgs:
867
722
  def user(self, value: Optional[pulumi.Input[str]]):
868
723
  pulumi.set(self, "user", value)
869
724
 
870
- @property
871
- @pulumi.getter
872
- def username(self) -> Optional[pulumi.Input[str]]:
873
- """
874
- Username for username+password authentication. Can also be sourced from the `SNOWFLAKE_USERNAME` environment variable.
875
- Required unless using `profile`.
876
- """
877
- warnings.warn("""Use `user` instead of `username`""", DeprecationWarning)
878
- pulumi.log.warn("""username is deprecated: Use `user` instead of `username`""")
879
-
880
- return pulumi.get(self, "username")
881
-
882
- @username.setter
883
- def username(self, value: Optional[pulumi.Input[str]]):
884
- pulumi.set(self, "username", value)
885
-
886
725
  @property
887
726
  @pulumi.getter(name="validateDefaultParameters")
888
- def validate_default_parameters(self) -> Optional[pulumi.Input[bool]]:
727
+ def validate_default_parameters(self) -> Optional[pulumi.Input[str]]:
889
728
  """
890
729
  True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
891
730
  connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
@@ -893,7 +732,7 @@ class ProviderArgs:
893
732
  return pulumi.get(self, "validate_default_parameters")
894
733
 
895
734
  @validate_default_parameters.setter
896
- def validate_default_parameters(self, value: Optional[pulumi.Input[bool]]):
735
+ def validate_default_parameters(self, value: Optional[pulumi.Input[str]]):
897
736
  pulumi.set(self, "validate_default_parameters", value)
898
737
 
899
738
  @property
@@ -915,49 +754,45 @@ class Provider(pulumi.ProviderResource):
915
754
  def __init__(__self__,
916
755
  resource_name: str,
917
756
  opts: Optional[pulumi.ResourceOptions] = None,
918
- account: Optional[pulumi.Input[str]] = None,
757
+ account_name: Optional[pulumi.Input[str]] = None,
919
758
  authenticator: Optional[pulumi.Input[str]] = None,
920
- browser_auth: Optional[pulumi.Input[bool]] = None,
921
759
  client_ip: Optional[pulumi.Input[str]] = None,
922
- client_request_mfa_token: Optional[pulumi.Input[bool]] = None,
923
- client_store_temporary_credential: Optional[pulumi.Input[bool]] = None,
760
+ client_request_mfa_token: Optional[pulumi.Input[str]] = None,
761
+ client_store_temporary_credential: Optional[pulumi.Input[str]] = None,
924
762
  client_timeout: Optional[pulumi.Input[int]] = None,
763
+ disable_console_login: Optional[pulumi.Input[str]] = None,
925
764
  disable_query_context_cache: Optional[pulumi.Input[bool]] = None,
926
765
  disable_telemetry: Optional[pulumi.Input[bool]] = None,
766
+ driver_tracing: Optional[pulumi.Input[str]] = None,
927
767
  external_browser_timeout: Optional[pulumi.Input[int]] = None,
928
768
  host: Optional[pulumi.Input[str]] = None,
769
+ include_retry_reason: Optional[pulumi.Input[str]] = None,
929
770
  insecure_mode: Optional[pulumi.Input[bool]] = None,
930
771
  jwt_client_timeout: Optional[pulumi.Input[int]] = None,
931
772
  jwt_expire_timeout: Optional[pulumi.Input[int]] = None,
932
773
  keep_session_alive: Optional[pulumi.Input[bool]] = None,
933
774
  login_timeout: Optional[pulumi.Input[int]] = None,
934
- oauth_access_token: Optional[pulumi.Input[str]] = None,
935
- oauth_client_id: Optional[pulumi.Input[str]] = None,
936
- oauth_client_secret: Optional[pulumi.Input[str]] = None,
937
- oauth_endpoint: Optional[pulumi.Input[str]] = None,
938
- oauth_redirect_url: Optional[pulumi.Input[str]] = None,
939
- oauth_refresh_token: Optional[pulumi.Input[str]] = None,
940
- ocsp_fail_open: Optional[pulumi.Input[bool]] = None,
775
+ max_retry_count: Optional[pulumi.Input[int]] = None,
776
+ ocsp_fail_open: Optional[pulumi.Input[str]] = None,
941
777
  okta_url: Optional[pulumi.Input[str]] = None,
942
- params: Optional[pulumi.Input[Mapping[str, Any]]] = None,
778
+ organization_name: Optional[pulumi.Input[str]] = None,
779
+ params: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
943
780
  passcode: Optional[pulumi.Input[str]] = None,
944
781
  passcode_in_password: Optional[pulumi.Input[bool]] = None,
945
782
  password: Optional[pulumi.Input[str]] = None,
946
783
  port: Optional[pulumi.Input[int]] = None,
784
+ preview_features_enabled: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
947
785
  private_key: Optional[pulumi.Input[str]] = None,
948
786
  private_key_passphrase: Optional[pulumi.Input[str]] = None,
949
- private_key_path: Optional[pulumi.Input[str]] = None,
950
787
  profile: Optional[pulumi.Input[str]] = None,
951
788
  protocol: Optional[pulumi.Input[str]] = None,
952
- region: Optional[pulumi.Input[str]] = None,
953
789
  request_timeout: Optional[pulumi.Input[int]] = None,
954
790
  role: Optional[pulumi.Input[str]] = None,
955
- session_params: Optional[pulumi.Input[Mapping[str, Any]]] = None,
791
+ tmp_directory_path: Optional[pulumi.Input[str]] = None,
956
792
  token: Optional[pulumi.Input[str]] = None,
957
- token_accessor: Optional[pulumi.Input[pulumi.InputType['ProviderTokenAccessorArgs']]] = None,
793
+ token_accessor: Optional[pulumi.Input[Union['ProviderTokenAccessorArgs', 'ProviderTokenAccessorArgsDict']]] = None,
958
794
  user: Optional[pulumi.Input[str]] = None,
959
- username: Optional[pulumi.Input[str]] = None,
960
- validate_default_parameters: Optional[pulumi.Input[bool]] = None,
795
+ validate_default_parameters: Optional[pulumi.Input[str]] = None,
961
796
  warehouse: Optional[pulumi.Input[str]] = None,
962
797
  __props__=None):
963
798
  """
@@ -968,90 +803,80 @@ class Provider(pulumi.ProviderResource):
968
803
 
969
804
  :param str resource_name: The name of the resource.
970
805
  :param pulumi.ResourceOptions opts: Options for the resource.
971
- :param pulumi.Input[str] account: Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
972
- [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Can also be sourced
973
- from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using `profile`.
806
+ :param pulumi.Input[str] account_name: Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
807
+ [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
808
+ unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
974
809
  :param pulumi.Input[str] authenticator: Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
975
- connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
976
- UsernamePasswordMFA. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable. It has to be set
977
- explicitly to JWT for private key authentication.
978
- :param pulumi.Input[bool] browser_auth: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_USE_BROWSER_AUTH` environment variable.
810
+ connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `SNOWFLAKE_JWT` |
811
+ `TOKENACCESSOR` | `USERNAMEPASSWORDMFA`. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
979
812
  :param pulumi.Input[str] client_ip: IP address for network checks. Can also be sourced from the `SNOWFLAKE_CLIENT_IP` environment variable.
980
- :param pulumi.Input[bool] client_request_mfa_token: When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
813
+ :param pulumi.Input[str] client_request_mfa_token: When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
981
814
  be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
982
- :param pulumi.Input[bool] client_store_temporary_credential: When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
815
+ :param pulumi.Input[str] client_store_temporary_credential: When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
983
816
  sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment variable.
984
- :param pulumi.Input[int] client_timeout: The timeout in seconds for the client to complete the authentication. Default is 900 seconds. Can also be sourced from
985
- the `SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
986
- :param pulumi.Input[bool] disable_query_context_cache: Should HTAP query context cache be disabled. Can also be sourced from the `SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE`
817
+ :param pulumi.Input[int] client_timeout: The timeout in seconds for the client to complete the authentication. Can also be sourced from the
818
+ `SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
819
+ :param pulumi.Input[str] disable_console_login: Indicates whether console login should be disabled in the driver. Can also be sourced from the
820
+ `SNOWFLAKE_DISABLE_CONSOLE_LOGIN` environment variable.
821
+ :param pulumi.Input[bool] disable_query_context_cache: Disables HTAP query context cache in the driver. Can also be sourced from the `SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE`
987
822
  environment variable.
988
- :param pulumi.Input[bool] disable_telemetry: Indicates whether to disable telemetry. Can also be sourced from the `SNOWFLAKE_DISABLE_TELEMETRY` environment variable.
989
- :param pulumi.Input[int] external_browser_timeout: The timeout in seconds for the external browser to complete the authentication. Default is 120 seconds. Can also be
990
- sourced from the `SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
991
- :param pulumi.Input[str] host: Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
992
- the `SNOWFLAKE_HOST` environment variable.
823
+ :param pulumi.Input[bool] disable_telemetry: Disables telemetry in the driver. Can also be sourced from the `DISABLE_TELEMETRY` environment variable.
824
+ :param pulumi.Input[str] driver_tracing: Specifies the logging level to be used by the driver. Valid options are: `trace` | `debug` | `info` | `print` |
825
+ `warning` | `error` | `fatal` | `panic`. Can also be sourced from the `SNOWFLAKE_DRIVER_TRACING` environment variable.
826
+ :param pulumi.Input[int] external_browser_timeout: The timeout in seconds for the external browser to complete the authentication. Can also be sourced from the
827
+ `SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
828
+ :param pulumi.Input[str] host: Specifies a custom host value used by the driver for privatelink connections. Can also be sourced from the
829
+ `SNOWFLAKE_HOST` environment variable.
830
+ :param pulumi.Input[str] include_retry_reason: Should retried request contain retry reason. Can also be sourced from the `SNOWFLAKE_INCLUDE_RETRY_REASON` environment
831
+ variable.
993
832
  :param pulumi.Input[bool] insecure_mode: If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the
994
833
  default value for testing or emergency situations only. Can also be sourced from the `SNOWFLAKE_INSECURE_MODE`
995
834
  environment variable.
996
- :param pulumi.Input[int] jwt_client_timeout: The timeout in seconds for the JWT client to complete the authentication. Default is 10 seconds. Can also be sourced
997
- from the `SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
835
+ :param pulumi.Input[int] jwt_client_timeout: The timeout in seconds for the JWT client to complete the authentication. Can also be sourced from the
836
+ `SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
998
837
  :param pulumi.Input[int] jwt_expire_timeout: JWT expire after timeout in seconds. Can also be sourced from the `SNOWFLAKE_JWT_EXPIRE_TIMEOUT` environment variable.
999
838
  :param pulumi.Input[bool] keep_session_alive: Enables the session to persist even after the connection is closed. Can also be sourced from the
1000
839
  `SNOWFLAKE_KEEP_SESSION_ALIVE` environment variable.
1001
- :param pulumi.Input[int] login_timeout: Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
840
+ :param pulumi.Input[int] login_timeout: Login retry timeout in seconds EXCLUDING network roundtrip and read out http response. Can also be sourced from the
1002
841
  `SNOWFLAKE_LOGIN_TIMEOUT` environment variable.
1003
- :param pulumi.Input[str] oauth_access_token: Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browser_auth`,
1004
- `private_key_path`, `oauth_refresh_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN`
1005
- environment variable.
1006
- :param pulumi.Input[str] oauth_client_id: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.
1007
- :param pulumi.Input[str] oauth_client_secret: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment
1008
- variable.
1009
- :param pulumi.Input[str] oauth_endpoint: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.
1010
- :param pulumi.Input[str] oauth_redirect_url: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment
1011
- variable.
1012
- :param pulumi.Input[str] oauth_refresh_token: Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
1013
- `oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`,
1014
- `private_key_path`, `oauth_access_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN`
1015
- environment variable.
1016
- :param pulumi.Input[bool] ocsp_fail_open: True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
842
+ :param pulumi.Input[int] max_retry_count: Specifies how many times non-periodic HTTP request can be retried by the driver. Can also be sourced from the
843
+ `SNOWFLAKE_MAX_RETRY_COUNT` environment variable.
844
+ :param pulumi.Input[str] ocsp_fail_open: True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
1017
845
  sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
1018
- :param pulumi.Input[str] okta_url: The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the `SNOWFLAKE_OKTA_URL` environment
1019
- variable.
1020
- :param pulumi.Input[Mapping[str, Any]] params: Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
846
+ :param pulumi.Input[str] okta_url: 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
847
+ in Snowflake [docs](https://docs.snowflake.com/en/user-guide/oauth-okta). Can also be sourced from the
848
+ `SNOWFLAKE_OKTA_URL` environment variable.
849
+ :param pulumi.Input[str] organization_name: Specifies your Snowflake organization name assigned by Snowflake. For information about account identifiers, see the
850
+ [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#organization-name). Required
851
+ unless using `profile`. Can also be sourced from the `SNOWFLAKE_ORGANIZATION_NAME` environment variable.
852
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] params: Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters).
853
+ This field can not be set with environmental variables.
1021
854
  :param pulumi.Input[str] passcode: Specifies the passcode provided by Duo when using multi-factor authentication (MFA) for login. Can also be sourced from
1022
855
  the `SNOWFLAKE_PASSCODE` environment variable.
1023
- :param pulumi.Input[bool] passcode_in_password: False by default. Set to true if the MFA passcode is embedded in the login password. Appends the MFA passcode to the end
1024
- of the password. Can also be sourced from the `SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
1025
- :param pulumi.Input[str] password: Password for username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can also be sourced from
1026
- the `SNOWFLAKE_PASSWORD` environment variable.
1027
- :param pulumi.Input[int] port: Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
856
+ :param pulumi.Input[bool] passcode_in_password: False by default. Set to true if the MFA passcode is embedded to the configured password. Can also be sourced from the
857
+ `SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
858
+ :param pulumi.Input[str] password: Password for user + password auth. Cannot be used with `private_key` and `private_key_passphrase`. Can also be sourced
859
+ from the `SNOWFLAKE_PASSWORD` environment variable.
860
+ :param pulumi.Input[int] port: Specifies a custom port value used by the driver for privatelink connections. Can also be sourced from the
1028
861
  `SNOWFLAKE_PORT` environment variable.
1029
- :param pulumi.Input[str] private_key: Private Key for username+private-key auth. Cannot be used with `browser_auth` or `password`. Can also be sourced from
862
+ :param pulumi.Input[str] private_key: Private Key for username+private-key auth. Cannot be used with `password`. Can also be sourced from the
1030
863
  `SNOWFLAKE_PRIVATE_KEY` environment variable.
1031
864
  :param pulumi.Input[str] private_key_passphrase: Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
1032
- des-ede3-cbc. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
1033
- :param pulumi.Input[str] private_key_path: Path to a private key for using keypair authentication. Cannot be used with `browser_auth`, `oauth_access_token` or
1034
- `password`. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
865
+ des-ede3-cbc. Can also be sourced from the `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
1035
866
  :param pulumi.Input[str] profile: Sets the profile to read from ~/.snowflake/config file. Can also be sourced from the `SNOWFLAKE_PROFILE` environment
1036
867
  variable.
1037
- :param pulumi.Input[str] protocol: Either http or https, defaults to https. Can also be sourced from the `SNOWFLAKE_PROTOCOL` environment variable.
1038
- :param pulumi.Input[str] region: Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
1039
- to specify the region as part of the account parameter. For details, see the description of the account parameter.
1040
- [Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy
1041
- format for the `account`
1042
- identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region)
1043
- in the form of `<cloud_region_id>.<cloud>`. Can also be sourced from the `SNOWFLAKE_REGION` environment variable.
1044
- :param pulumi.Input[int] request_timeout: request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
868
+ :param pulumi.Input[str] protocol: A protocol used in the connection. Valid options are: `http` | `https`. Can also be sourced from the
869
+ `SNOWFLAKE_PROTOCOL` environment variable.
870
+ :param pulumi.Input[int] request_timeout: request retry timeout in seconds EXCLUDING network roundtrip and read out http response. Can also be sourced from the
1045
871
  `SNOWFLAKE_REQUEST_TIMEOUT` environment variable.
1046
872
  :param pulumi.Input[str] role: Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
1047
- `SNOWFLAKE_ROLE` environment variable. .
1048
- :param pulumi.Input[Mapping[str, Any]] session_params: Sets session parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
873
+ `SNOWFLAKE_ROLE` environment variable.
874
+ :param pulumi.Input[str] tmp_directory_path: Sets temporary directory used by the driver for operations like encrypting, compressing etc. Can also be sourced from
875
+ the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
1049
876
  :param pulumi.Input[str] token: Token to use for OAuth and other forms of token based auth. Can also be sourced from the `SNOWFLAKE_TOKEN` environment
1050
877
  variable.
1051
- :param pulumi.Input[str] user: Username. Can also be sourced from the `SNOWFLAKE_USER` environment variable. Required unless using `profile`.
1052
- :param pulumi.Input[str] username: Username for username+password authentication. Can also be sourced from the `SNOWFLAKE_USERNAME` environment variable.
1053
- Required unless using `profile`.
1054
- :param pulumi.Input[bool] validate_default_parameters: True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
878
+ :param pulumi.Input[str] user: Username. Required unless using `profile`. Can also be sourced from the `SNOWFLAKE_USER` environment variable.
879
+ :param pulumi.Input[str] validate_default_parameters: True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
1055
880
  connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
1056
881
  :param pulumi.Input[str] warehouse: Specifies the virtual warehouse to use by default for queries, loading, etc. in the client session. Can also be sourced
1057
882
  from the `SNOWFLAKE_WAREHOUSE` environment variable.
@@ -1083,49 +908,45 @@ class Provider(pulumi.ProviderResource):
1083
908
  def _internal_init(__self__,
1084
909
  resource_name: str,
1085
910
  opts: Optional[pulumi.ResourceOptions] = None,
1086
- account: Optional[pulumi.Input[str]] = None,
911
+ account_name: Optional[pulumi.Input[str]] = None,
1087
912
  authenticator: Optional[pulumi.Input[str]] = None,
1088
- browser_auth: Optional[pulumi.Input[bool]] = None,
1089
913
  client_ip: Optional[pulumi.Input[str]] = None,
1090
- client_request_mfa_token: Optional[pulumi.Input[bool]] = None,
1091
- client_store_temporary_credential: Optional[pulumi.Input[bool]] = None,
914
+ client_request_mfa_token: Optional[pulumi.Input[str]] = None,
915
+ client_store_temporary_credential: Optional[pulumi.Input[str]] = None,
1092
916
  client_timeout: Optional[pulumi.Input[int]] = None,
917
+ disable_console_login: Optional[pulumi.Input[str]] = None,
1093
918
  disable_query_context_cache: Optional[pulumi.Input[bool]] = None,
1094
919
  disable_telemetry: Optional[pulumi.Input[bool]] = None,
920
+ driver_tracing: Optional[pulumi.Input[str]] = None,
1095
921
  external_browser_timeout: Optional[pulumi.Input[int]] = None,
1096
922
  host: Optional[pulumi.Input[str]] = None,
923
+ include_retry_reason: Optional[pulumi.Input[str]] = None,
1097
924
  insecure_mode: Optional[pulumi.Input[bool]] = None,
1098
925
  jwt_client_timeout: Optional[pulumi.Input[int]] = None,
1099
926
  jwt_expire_timeout: Optional[pulumi.Input[int]] = None,
1100
927
  keep_session_alive: Optional[pulumi.Input[bool]] = None,
1101
928
  login_timeout: Optional[pulumi.Input[int]] = None,
1102
- oauth_access_token: Optional[pulumi.Input[str]] = None,
1103
- oauth_client_id: Optional[pulumi.Input[str]] = None,
1104
- oauth_client_secret: Optional[pulumi.Input[str]] = None,
1105
- oauth_endpoint: Optional[pulumi.Input[str]] = None,
1106
- oauth_redirect_url: Optional[pulumi.Input[str]] = None,
1107
- oauth_refresh_token: Optional[pulumi.Input[str]] = None,
1108
- ocsp_fail_open: Optional[pulumi.Input[bool]] = None,
929
+ max_retry_count: Optional[pulumi.Input[int]] = None,
930
+ ocsp_fail_open: Optional[pulumi.Input[str]] = None,
1109
931
  okta_url: Optional[pulumi.Input[str]] = None,
1110
- params: Optional[pulumi.Input[Mapping[str, Any]]] = None,
932
+ organization_name: Optional[pulumi.Input[str]] = None,
933
+ params: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
1111
934
  passcode: Optional[pulumi.Input[str]] = None,
1112
935
  passcode_in_password: Optional[pulumi.Input[bool]] = None,
1113
936
  password: Optional[pulumi.Input[str]] = None,
1114
937
  port: Optional[pulumi.Input[int]] = None,
938
+ preview_features_enabled: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1115
939
  private_key: Optional[pulumi.Input[str]] = None,
1116
940
  private_key_passphrase: Optional[pulumi.Input[str]] = None,
1117
- private_key_path: Optional[pulumi.Input[str]] = None,
1118
941
  profile: Optional[pulumi.Input[str]] = None,
1119
942
  protocol: Optional[pulumi.Input[str]] = None,
1120
- region: Optional[pulumi.Input[str]] = None,
1121
943
  request_timeout: Optional[pulumi.Input[int]] = None,
1122
944
  role: Optional[pulumi.Input[str]] = None,
1123
- session_params: Optional[pulumi.Input[Mapping[str, Any]]] = None,
945
+ tmp_directory_path: Optional[pulumi.Input[str]] = None,
1124
946
  token: Optional[pulumi.Input[str]] = None,
1125
- token_accessor: Optional[pulumi.Input[pulumi.InputType['ProviderTokenAccessorArgs']]] = None,
947
+ token_accessor: Optional[pulumi.Input[Union['ProviderTokenAccessorArgs', 'ProviderTokenAccessorArgsDict']]] = None,
1126
948
  user: Optional[pulumi.Input[str]] = None,
1127
- username: Optional[pulumi.Input[str]] = None,
1128
- validate_default_parameters: Optional[pulumi.Input[bool]] = None,
949
+ validate_default_parameters: Optional[pulumi.Input[str]] = None,
1129
950
  warehouse: Optional[pulumi.Input[str]] = None,
1130
951
  __props__=None):
1131
952
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
@@ -1136,48 +957,30 @@ class Provider(pulumi.ProviderResource):
1136
957
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
1137
958
  __props__ = ProviderArgs.__new__(ProviderArgs)
1138
959
 
1139
- if account is None:
1140
- account = _utilities.get_env('SNOWFLAKE_ACCOUNT')
1141
- __props__.__dict__["account"] = account
960
+ __props__.__dict__["account_name"] = account_name
1142
961
  __props__.__dict__["authenticator"] = authenticator
1143
- if browser_auth is None:
1144
- browser_auth = _utilities.get_env_bool('SNOWFLAKE_USE_BROWSER_AUTH')
1145
- __props__.__dict__["browser_auth"] = pulumi.Output.from_input(browser_auth).apply(pulumi.runtime.to_json) if browser_auth is not None else None
1146
962
  __props__.__dict__["client_ip"] = client_ip
1147
- __props__.__dict__["client_request_mfa_token"] = pulumi.Output.from_input(client_request_mfa_token).apply(pulumi.runtime.to_json) if client_request_mfa_token is not None else None
1148
- __props__.__dict__["client_store_temporary_credential"] = pulumi.Output.from_input(client_store_temporary_credential).apply(pulumi.runtime.to_json) if client_store_temporary_credential is not None else None
963
+ __props__.__dict__["client_request_mfa_token"] = client_request_mfa_token
964
+ __props__.__dict__["client_store_temporary_credential"] = client_store_temporary_credential
1149
965
  __props__.__dict__["client_timeout"] = pulumi.Output.from_input(client_timeout).apply(pulumi.runtime.to_json) if client_timeout is not None else None
966
+ __props__.__dict__["disable_console_login"] = disable_console_login
1150
967
  __props__.__dict__["disable_query_context_cache"] = pulumi.Output.from_input(disable_query_context_cache).apply(pulumi.runtime.to_json) if disable_query_context_cache is not None else None
1151
968
  __props__.__dict__["disable_telemetry"] = pulumi.Output.from_input(disable_telemetry).apply(pulumi.runtime.to_json) if disable_telemetry is not None else None
969
+ __props__.__dict__["driver_tracing"] = driver_tracing
1152
970
  __props__.__dict__["external_browser_timeout"] = pulumi.Output.from_input(external_browser_timeout).apply(pulumi.runtime.to_json) if external_browser_timeout is not None else None
1153
971
  if host is None:
1154
972
  host = _utilities.get_env('SNOWFLAKE_HOST')
1155
973
  __props__.__dict__["host"] = host
974
+ __props__.__dict__["include_retry_reason"] = include_retry_reason
1156
975
  __props__.__dict__["insecure_mode"] = pulumi.Output.from_input(insecure_mode).apply(pulumi.runtime.to_json) if insecure_mode is not None else None
1157
976
  __props__.__dict__["jwt_client_timeout"] = pulumi.Output.from_input(jwt_client_timeout).apply(pulumi.runtime.to_json) if jwt_client_timeout is not None else None
1158
977
  __props__.__dict__["jwt_expire_timeout"] = pulumi.Output.from_input(jwt_expire_timeout).apply(pulumi.runtime.to_json) if jwt_expire_timeout is not None else None
1159
978
  __props__.__dict__["keep_session_alive"] = pulumi.Output.from_input(keep_session_alive).apply(pulumi.runtime.to_json) if keep_session_alive is not None else None
1160
979
  __props__.__dict__["login_timeout"] = pulumi.Output.from_input(login_timeout).apply(pulumi.runtime.to_json) if login_timeout is not None else None
1161
- if oauth_access_token is None:
1162
- oauth_access_token = _utilities.get_env('SNOWFLAKE_OAUTH_ACCESS_TOKEN')
1163
- __props__.__dict__["oauth_access_token"] = None if oauth_access_token is None else pulumi.Output.secret(oauth_access_token)
1164
- if oauth_client_id is None:
1165
- oauth_client_id = _utilities.get_env('SNOWFLAKE_OAUTH_CLIENT_ID')
1166
- __props__.__dict__["oauth_client_id"] = None if oauth_client_id is None else pulumi.Output.secret(oauth_client_id)
1167
- if oauth_client_secret is None:
1168
- oauth_client_secret = _utilities.get_env('SNOWFLAKE_OAUTH_CLIENT_SECRET')
1169
- __props__.__dict__["oauth_client_secret"] = None if oauth_client_secret is None else pulumi.Output.secret(oauth_client_secret)
1170
- if oauth_endpoint is None:
1171
- oauth_endpoint = _utilities.get_env('SNOWFLAKE_OAUTH_ENDPOINT')
1172
- __props__.__dict__["oauth_endpoint"] = None if oauth_endpoint is None else pulumi.Output.secret(oauth_endpoint)
1173
- if oauth_redirect_url is None:
1174
- oauth_redirect_url = _utilities.get_env('SNOWFLAKE_OAUTH_REDIRECT_URL')
1175
- __props__.__dict__["oauth_redirect_url"] = None if oauth_redirect_url is None else pulumi.Output.secret(oauth_redirect_url)
1176
- if oauth_refresh_token is None:
1177
- oauth_refresh_token = _utilities.get_env('SNOWFLAKE_OAUTH_REFRESH_TOKEN')
1178
- __props__.__dict__["oauth_refresh_token"] = None if oauth_refresh_token is None else pulumi.Output.secret(oauth_refresh_token)
1179
- __props__.__dict__["ocsp_fail_open"] = pulumi.Output.from_input(ocsp_fail_open).apply(pulumi.runtime.to_json) if ocsp_fail_open is not None else None
980
+ __props__.__dict__["max_retry_count"] = pulumi.Output.from_input(max_retry_count).apply(pulumi.runtime.to_json) if max_retry_count is not None else None
981
+ __props__.__dict__["ocsp_fail_open"] = ocsp_fail_open
1180
982
  __props__.__dict__["okta_url"] = okta_url
983
+ __props__.__dict__["organization_name"] = organization_name
1181
984
  __props__.__dict__["params"] = pulumi.Output.from_input(params).apply(pulumi.runtime.to_json) if params is not None else None
1182
985
  __props__.__dict__["passcode"] = passcode
1183
986
  __props__.__dict__["passcode_in_password"] = pulumi.Output.from_input(passcode_in_password).apply(pulumi.runtime.to_json) if passcode_in_password is not None else None
@@ -1187,36 +990,28 @@ class Provider(pulumi.ProviderResource):
1187
990
  if port is None:
1188
991
  port = _utilities.get_env_int('SNOWFLAKE_PORT')
1189
992
  __props__.__dict__["port"] = pulumi.Output.from_input(port).apply(pulumi.runtime.to_json) if port is not None else None
993
+ __props__.__dict__["preview_features_enabled"] = pulumi.Output.from_input(preview_features_enabled).apply(pulumi.runtime.to_json) if preview_features_enabled is not None else None
1190
994
  __props__.__dict__["private_key"] = None if private_key is None else pulumi.Output.secret(private_key)
1191
995
  if private_key_passphrase is None:
1192
996
  private_key_passphrase = _utilities.get_env('SNOWFLAKE_PRIVATE_KEY_PASSPHRASE')
1193
997
  __props__.__dict__["private_key_passphrase"] = None if private_key_passphrase is None else pulumi.Output.secret(private_key_passphrase)
1194
- if private_key_path is None:
1195
- private_key_path = _utilities.get_env('SNOWFLAKE_PRIVATE_KEY_PATH')
1196
- __props__.__dict__["private_key_path"] = None if private_key_path is None else pulumi.Output.secret(private_key_path)
1197
998
  __props__.__dict__["profile"] = profile
1198
999
  if protocol is None:
1199
1000
  protocol = _utilities.get_env('SNOWFLAKE_PROTOCOL')
1200
1001
  __props__.__dict__["protocol"] = protocol
1201
- if region is None:
1202
- region = _utilities.get_env('SNOWFLAKE_REGION')
1203
- __props__.__dict__["region"] = region
1204
1002
  __props__.__dict__["request_timeout"] = pulumi.Output.from_input(request_timeout).apply(pulumi.runtime.to_json) if request_timeout is not None else None
1205
1003
  if role is None:
1206
1004
  role = _utilities.get_env('SNOWFLAKE_ROLE')
1207
1005
  __props__.__dict__["role"] = role
1208
- __props__.__dict__["session_params"] = pulumi.Output.from_input(session_params).apply(pulumi.runtime.to_json) if session_params is not None else None
1006
+ __props__.__dict__["tmp_directory_path"] = tmp_directory_path
1209
1007
  __props__.__dict__["token"] = None if token is None else pulumi.Output.secret(token)
1210
1008
  __props__.__dict__["token_accessor"] = pulumi.Output.from_input(token_accessor).apply(pulumi.runtime.to_json) if token_accessor is not None else None
1211
1009
  __props__.__dict__["user"] = user
1212
- if username is None:
1213
- username = _utilities.get_env('SNOWFLAKE_USER')
1214
- __props__.__dict__["username"] = username
1215
- __props__.__dict__["validate_default_parameters"] = pulumi.Output.from_input(validate_default_parameters).apply(pulumi.runtime.to_json) if validate_default_parameters is not None else None
1010
+ __props__.__dict__["validate_default_parameters"] = validate_default_parameters
1216
1011
  if warehouse is None:
1217
1012
  warehouse = _utilities.get_env('SNOWFLAKE_WAREHOUSE')
1218
1013
  __props__.__dict__["warehouse"] = warehouse
1219
- secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["oauthAccessToken", "oauthClientId", "oauthClientSecret", "oauthEndpoint", "oauthRedirectUrl", "oauthRefreshToken", "password", "privateKey", "privateKeyPassphrase", "privateKeyPath", "token"])
1014
+ secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["password", "privateKey", "privateKeyPassphrase", "token"])
1220
1015
  opts = pulumi.ResourceOptions.merge(opts, secret_opts)
1221
1016
  super(Provider, __self__).__init__(
1222
1017
  'snowflake',
@@ -1225,23 +1020,22 @@ class Provider(pulumi.ProviderResource):
1225
1020
  opts)
1226
1021
 
1227
1022
  @property
1228
- @pulumi.getter
1229
- def account(self) -> pulumi.Output[Optional[str]]:
1023
+ @pulumi.getter(name="accountName")
1024
+ def account_name(self) -> pulumi.Output[Optional[str]]:
1230
1025
  """
1231
- Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
1232
- [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Can also be sourced
1233
- from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using `profile`.
1026
+ Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
1027
+ [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
1028
+ unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
1234
1029
  """
1235
- return pulumi.get(self, "account")
1030
+ return pulumi.get(self, "account_name")
1236
1031
 
1237
1032
  @property
1238
1033
  @pulumi.getter
1239
1034
  def authenticator(self) -> pulumi.Output[Optional[str]]:
1240
1035
  """
1241
1036
  Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
1242
- connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
1243
- UsernamePasswordMFA. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable. It has to be set
1244
- explicitly to JWT for private key authentication.
1037
+ connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `SNOWFLAKE_JWT` |
1038
+ `TOKENACCESSOR` | `USERNAMEPASSWORDMFA`. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
1245
1039
  """
1246
1040
  return pulumi.get(self, "authenticator")
1247
1041
 
@@ -1254,96 +1048,88 @@ class Provider(pulumi.ProviderResource):
1254
1048
  return pulumi.get(self, "client_ip")
1255
1049
 
1256
1050
  @property
1257
- @pulumi.getter
1258
- def host(self) -> pulumi.Output[Optional[str]]:
1051
+ @pulumi.getter(name="clientRequestMfaToken")
1052
+ def client_request_mfa_token(self) -> pulumi.Output[Optional[str]]:
1259
1053
  """
1260
- Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
1261
- the `SNOWFLAKE_HOST` environment variable.
1054
+ When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
1055
+ be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
1262
1056
  """
1263
- return pulumi.get(self, "host")
1057
+ return pulumi.get(self, "client_request_mfa_token")
1264
1058
 
1265
1059
  @property
1266
- @pulumi.getter(name="oauthAccessToken")
1267
- def oauth_access_token(self) -> pulumi.Output[Optional[str]]:
1060
+ @pulumi.getter(name="clientStoreTemporaryCredential")
1061
+ def client_store_temporary_credential(self) -> pulumi.Output[Optional[str]]:
1268
1062
  """
1269
- Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browser_auth`,
1270
- `private_key_path`, `oauth_refresh_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN`
1271
- environment variable.
1063
+ When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
1064
+ sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment variable.
1272
1065
  """
1273
- warnings.warn("""Use `token` instead""", DeprecationWarning)
1274
- pulumi.log.warn("""oauth_access_token is deprecated: Use `token` instead""")
1275
-
1276
- return pulumi.get(self, "oauth_access_token")
1066
+ return pulumi.get(self, "client_store_temporary_credential")
1277
1067
 
1278
1068
  @property
1279
- @pulumi.getter(name="oauthClientId")
1280
- def oauth_client_id(self) -> pulumi.Output[Optional[str]]:
1069
+ @pulumi.getter(name="disableConsoleLogin")
1070
+ def disable_console_login(self) -> pulumi.Output[Optional[str]]:
1281
1071
  """
1282
- Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.
1072
+ Indicates whether console login should be disabled in the driver. Can also be sourced from the
1073
+ `SNOWFLAKE_DISABLE_CONSOLE_LOGIN` environment variable.
1283
1074
  """
1284
- warnings.warn("""Use `token_accessor.0.client_id` instead""", DeprecationWarning)
1285
- pulumi.log.warn("""oauth_client_id is deprecated: Use `token_accessor.0.client_id` instead""")
1286
-
1287
- return pulumi.get(self, "oauth_client_id")
1075
+ return pulumi.get(self, "disable_console_login")
1288
1076
 
1289
1077
  @property
1290
- @pulumi.getter(name="oauthClientSecret")
1291
- def oauth_client_secret(self) -> pulumi.Output[Optional[str]]:
1078
+ @pulumi.getter(name="driverTracing")
1079
+ def driver_tracing(self) -> pulumi.Output[Optional[str]]:
1292
1080
  """
1293
- Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment
1294
- variable.
1081
+ Specifies the logging level to be used by the driver. Valid options are: `trace` | `debug` | `info` | `print` |
1082
+ `warning` | `error` | `fatal` | `panic`. Can also be sourced from the `SNOWFLAKE_DRIVER_TRACING` environment variable.
1295
1083
  """
1296
- warnings.warn("""Use `token_accessor.0.client_secret` instead""", DeprecationWarning)
1297
- pulumi.log.warn("""oauth_client_secret is deprecated: Use `token_accessor.0.client_secret` instead""")
1298
-
1299
- return pulumi.get(self, "oauth_client_secret")
1084
+ return pulumi.get(self, "driver_tracing")
1300
1085
 
1301
1086
  @property
1302
- @pulumi.getter(name="oauthEndpoint")
1303
- def oauth_endpoint(self) -> pulumi.Output[Optional[str]]:
1087
+ @pulumi.getter
1088
+ def host(self) -> pulumi.Output[Optional[str]]:
1304
1089
  """
1305
- Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.
1090
+ Specifies a custom host value used by the driver for privatelink connections. Can also be sourced from the
1091
+ `SNOWFLAKE_HOST` environment variable.
1306
1092
  """
1307
- warnings.warn("""Use `token_accessor.0.token_endpoint` instead""", DeprecationWarning)
1308
- pulumi.log.warn("""oauth_endpoint is deprecated: Use `token_accessor.0.token_endpoint` instead""")
1309
-
1310
- return pulumi.get(self, "oauth_endpoint")
1093
+ return pulumi.get(self, "host")
1311
1094
 
1312
1095
  @property
1313
- @pulumi.getter(name="oauthRedirectUrl")
1314
- def oauth_redirect_url(self) -> pulumi.Output[Optional[str]]:
1096
+ @pulumi.getter(name="includeRetryReason")
1097
+ def include_retry_reason(self) -> pulumi.Output[Optional[str]]:
1315
1098
  """
1316
- Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment
1099
+ Should retried request contain retry reason. Can also be sourced from the `SNOWFLAKE_INCLUDE_RETRY_REASON` environment
1317
1100
  variable.
1318
1101
  """
1319
- warnings.warn("""Use `token_accessor.0.redirect_uri` instead""", DeprecationWarning)
1320
- pulumi.log.warn("""oauth_redirect_url is deprecated: Use `token_accessor.0.redirect_uri` instead""")
1321
-
1322
- return pulumi.get(self, "oauth_redirect_url")
1102
+ return pulumi.get(self, "include_retry_reason")
1323
1103
 
1324
1104
  @property
1325
- @pulumi.getter(name="oauthRefreshToken")
1326
- def oauth_refresh_token(self) -> pulumi.Output[Optional[str]]:
1105
+ @pulumi.getter(name="ocspFailOpen")
1106
+ def ocsp_fail_open(self) -> pulumi.Output[Optional[str]]:
1327
1107
  """
1328
- Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
1329
- `oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`,
1330
- `private_key_path`, `oauth_access_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN`
1331
- environment variable.
1108
+ True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
1109
+ sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
1332
1110
  """
1333
- warnings.warn("""Use `token_accessor.0.refresh_token` instead""", DeprecationWarning)
1334
- pulumi.log.warn("""oauth_refresh_token is deprecated: Use `token_accessor.0.refresh_token` instead""")
1335
-
1336
- return pulumi.get(self, "oauth_refresh_token")
1111
+ return pulumi.get(self, "ocsp_fail_open")
1337
1112
 
1338
1113
  @property
1339
1114
  @pulumi.getter(name="oktaUrl")
1340
1115
  def okta_url(self) -> pulumi.Output[Optional[str]]:
1341
1116
  """
1342
- The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the `SNOWFLAKE_OKTA_URL` environment
1343
- variable.
1117
+ 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
1118
+ in Snowflake [docs](https://docs.snowflake.com/en/user-guide/oauth-okta). Can also be sourced from the
1119
+ `SNOWFLAKE_OKTA_URL` environment variable.
1344
1120
  """
1345
1121
  return pulumi.get(self, "okta_url")
1346
1122
 
1123
+ @property
1124
+ @pulumi.getter(name="organizationName")
1125
+ def organization_name(self) -> pulumi.Output[Optional[str]]:
1126
+ """
1127
+ Specifies your Snowflake organization name assigned by Snowflake. For information about account identifiers, see the
1128
+ [Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#organization-name). Required
1129
+ unless using `profile`. Can also be sourced from the `SNOWFLAKE_ORGANIZATION_NAME` environment variable.
1130
+ """
1131
+ return pulumi.get(self, "organization_name")
1132
+
1347
1133
  @property
1348
1134
  @pulumi.getter
1349
1135
  def passcode(self) -> pulumi.Output[Optional[str]]:
@@ -1357,8 +1143,8 @@ class Provider(pulumi.ProviderResource):
1357
1143
  @pulumi.getter
1358
1144
  def password(self) -> pulumi.Output[Optional[str]]:
1359
1145
  """
1360
- Password for username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can also be sourced from
1361
- the `SNOWFLAKE_PASSWORD` environment variable.
1146
+ Password for user + password auth. Cannot be used with `private_key` and `private_key_passphrase`. Can also be sourced
1147
+ from the `SNOWFLAKE_PASSWORD` environment variable.
1362
1148
  """
1363
1149
  return pulumi.get(self, "password")
1364
1150
 
@@ -1366,7 +1152,7 @@ class Provider(pulumi.ProviderResource):
1366
1152
  @pulumi.getter(name="privateKey")
1367
1153
  def private_key(self) -> pulumi.Output[Optional[str]]:
1368
1154
  """
1369
- Private Key for username+private-key auth. Cannot be used with `browser_auth` or `password`. Can also be sourced from
1155
+ Private Key for username+private-key auth. Cannot be used with `password`. Can also be sourced from the
1370
1156
  `SNOWFLAKE_PRIVATE_KEY` environment variable.
1371
1157
  """
1372
1158
  return pulumi.get(self, "private_key")
@@ -1376,22 +1162,10 @@ class Provider(pulumi.ProviderResource):
1376
1162
  def private_key_passphrase(self) -> pulumi.Output[Optional[str]]:
1377
1163
  """
1378
1164
  Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
1379
- des-ede3-cbc. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
1165
+ des-ede3-cbc. Can also be sourced from the `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
1380
1166
  """
1381
1167
  return pulumi.get(self, "private_key_passphrase")
1382
1168
 
1383
- @property
1384
- @pulumi.getter(name="privateKeyPath")
1385
- def private_key_path(self) -> pulumi.Output[Optional[str]]:
1386
- """
1387
- Path to a private key for using keypair authentication. Cannot be used with `browser_auth`, `oauth_access_token` or
1388
- `password`. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
1389
- """
1390
- warnings.warn("""use the [file Function](https://developer.hashicorp.com/terraform/language/functions/file) instead""", DeprecationWarning)
1391
- pulumi.log.warn("""private_key_path is deprecated: use the [file Function](https://developer.hashicorp.com/terraform/language/functions/file) instead""")
1392
-
1393
- return pulumi.get(self, "private_key_path")
1394
-
1395
1169
  @property
1396
1170
  @pulumi.getter
1397
1171
  def profile(self) -> pulumi.Output[Optional[str]]:
@@ -1405,34 +1179,28 @@ class Provider(pulumi.ProviderResource):
1405
1179
  @pulumi.getter
1406
1180
  def protocol(self) -> pulumi.Output[Optional[str]]:
1407
1181
  """
1408
- Either http or https, defaults to https. Can also be sourced from the `SNOWFLAKE_PROTOCOL` environment variable.
1182
+ A protocol used in the connection. Valid options are: `http` | `https`. Can also be sourced from the
1183
+ `SNOWFLAKE_PROTOCOL` environment variable.
1409
1184
  """
1410
1185
  return pulumi.get(self, "protocol")
1411
1186
 
1412
1187
  @property
1413
1188
  @pulumi.getter
1414
- def region(self) -> pulumi.Output[Optional[str]]:
1189
+ def role(self) -> pulumi.Output[Optional[str]]:
1415
1190
  """
1416
- Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
1417
- to specify the region as part of the account parameter. For details, see the description of the account parameter.
1418
- [Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy
1419
- format for the `account`
1420
- identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region)
1421
- in the form of `<cloud_region_id>.<cloud>`. Can also be sourced from the `SNOWFLAKE_REGION` environment variable.
1191
+ Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
1192
+ `SNOWFLAKE_ROLE` environment variable.
1422
1193
  """
1423
- warnings.warn("""Specify the region as part of the account parameter""", DeprecationWarning)
1424
- pulumi.log.warn("""region is deprecated: Specify the region as part of the account parameter""")
1425
-
1426
- return pulumi.get(self, "region")
1194
+ return pulumi.get(self, "role")
1427
1195
 
1428
1196
  @property
1429
- @pulumi.getter
1430
- def role(self) -> pulumi.Output[Optional[str]]:
1197
+ @pulumi.getter(name="tmpDirectoryPath")
1198
+ def tmp_directory_path(self) -> pulumi.Output[Optional[str]]:
1431
1199
  """
1432
- Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
1433
- `SNOWFLAKE_ROLE` environment variable. .
1200
+ Sets temporary directory used by the driver for operations like encrypting, compressing etc. Can also be sourced from
1201
+ the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
1434
1202
  """
1435
- return pulumi.get(self, "role")
1203
+ return pulumi.get(self, "tmp_directory_path")
1436
1204
 
1437
1205
  @property
1438
1206
  @pulumi.getter
@@ -1447,21 +1215,18 @@ class Provider(pulumi.ProviderResource):
1447
1215
  @pulumi.getter
1448
1216
  def user(self) -> pulumi.Output[Optional[str]]:
1449
1217
  """
1450
- Username. Can also be sourced from the `SNOWFLAKE_USER` environment variable. Required unless using `profile`.
1218
+ Username. Required unless using `profile`. Can also be sourced from the `SNOWFLAKE_USER` environment variable.
1451
1219
  """
1452
1220
  return pulumi.get(self, "user")
1453
1221
 
1454
1222
  @property
1455
- @pulumi.getter
1456
- def username(self) -> pulumi.Output[Optional[str]]:
1223
+ @pulumi.getter(name="validateDefaultParameters")
1224
+ def validate_default_parameters(self) -> pulumi.Output[Optional[str]]:
1457
1225
  """
1458
- Username for username+password authentication. Can also be sourced from the `SNOWFLAKE_USERNAME` environment variable.
1459
- Required unless using `profile`.
1226
+ True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
1227
+ connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
1460
1228
  """
1461
- warnings.warn("""Use `user` instead of `username`""", DeprecationWarning)
1462
- pulumi.log.warn("""username is deprecated: Use `user` instead of `username`""")
1463
-
1464
- return pulumi.get(self, "username")
1229
+ return pulumi.get(self, "validate_default_parameters")
1465
1230
 
1466
1231
  @property
1467
1232
  @pulumi.getter