pulumi-snowflake 0.61.0__py3-none-any.whl → 0.61.0a1729059116__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-snowflake might be problematic. Click here for more details.
- pulumi_snowflake/__init__.py +0 -110
- pulumi_snowflake/_inputs.py +1823 -5168
- pulumi_snowflake/config/__init__.pyi +36 -86
- pulumi_snowflake/config/vars.py +40 -104
- pulumi_snowflake/get_grants.py +0 -4
- pulumi_snowflake/get_streams.py +56 -105
- pulumi_snowflake/grant_account_role.py +2 -2
- pulumi_snowflake/grant_application_role.py +2 -2
- pulumi_snowflake/grant_database_role.py +2 -2
- pulumi_snowflake/grant_ownership.py +14 -14
- pulumi_snowflake/grant_privileges_to_account_role.py +8 -8
- pulumi_snowflake/grant_privileges_to_database_role.py +8 -8
- pulumi_snowflake/grant_privileges_to_share.py +2 -2
- pulumi_snowflake/legacy_service_user.py +0 -4
- pulumi_snowflake/outputs.py +1346 -4401
- pulumi_snowflake/provider.py +146 -433
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/stream_on_external_table.py +2 -50
- pulumi_snowflake/stream_on_table.py +0 -48
- pulumi_snowflake/tag_association.py +7 -7
- pulumi_snowflake/user.py +0 -4
- {pulumi_snowflake-0.61.0.dist-info → pulumi_snowflake-0.61.0a1729059116.dist-info}/METADATA +1 -1
- {pulumi_snowflake-0.61.0.dist-info → pulumi_snowflake-0.61.0a1729059116.dist-info}/RECORD +25 -39
- {pulumi_snowflake-0.61.0.dist-info → pulumi_snowflake-0.61.0a1729059116.dist-info}/WHEEL +1 -1
- pulumi_snowflake/account_authentication_policy_attachment.py +0 -149
- pulumi_snowflake/authentication_policy.py +0 -622
- pulumi_snowflake/external_volume.py +0 -378
- pulumi_snowflake/get_connections.py +0 -147
- pulumi_snowflake/get_secrets.py +0 -204
- pulumi_snowflake/primary_connection.py +0 -330
- pulumi_snowflake/secondary_connection.py +0 -339
- pulumi_snowflake/secret_with_authorization_code_grant.py +0 -548
- pulumi_snowflake/secret_with_basic_authentication.py +0 -500
- pulumi_snowflake/secret_with_client_credentials.py +0 -511
- pulumi_snowflake/secret_with_generic_string.py +0 -452
- pulumi_snowflake/stream_on_directory_table.py +0 -530
- pulumi_snowflake/stream_on_view.py +0 -679
- pulumi_snowflake/user_authentication_policy_attachment.py +0 -197
- {pulumi_snowflake-0.61.0.dist-info → pulumi_snowflake-0.61.0a1729059116.dist-info}/top_level.txt +0 -0
pulumi_snowflake/provider.py
CHANGED
|
@@ -21,35 +21,29 @@ __all__ = ['ProviderArgs', 'Provider']
|
|
|
21
21
|
class ProviderArgs:
|
|
22
22
|
def __init__(__self__, *,
|
|
23
23
|
account: Optional[pulumi.Input[str]] = None,
|
|
24
|
-
account_name: Optional[pulumi.Input[str]] = None,
|
|
25
24
|
authenticator: Optional[pulumi.Input[str]] = None,
|
|
26
25
|
browser_auth: Optional[pulumi.Input[bool]] = None,
|
|
27
26
|
client_ip: Optional[pulumi.Input[str]] = None,
|
|
28
|
-
client_request_mfa_token: Optional[pulumi.Input[
|
|
29
|
-
client_store_temporary_credential: Optional[pulumi.Input[
|
|
27
|
+
client_request_mfa_token: Optional[pulumi.Input[bool]] = None,
|
|
28
|
+
client_store_temporary_credential: Optional[pulumi.Input[bool]] = None,
|
|
30
29
|
client_timeout: Optional[pulumi.Input[int]] = None,
|
|
31
|
-
disable_console_login: Optional[pulumi.Input[str]] = None,
|
|
32
30
|
disable_query_context_cache: Optional[pulumi.Input[bool]] = None,
|
|
33
31
|
disable_telemetry: Optional[pulumi.Input[bool]] = None,
|
|
34
|
-
driver_tracing: Optional[pulumi.Input[str]] = None,
|
|
35
32
|
external_browser_timeout: Optional[pulumi.Input[int]] = None,
|
|
36
33
|
host: Optional[pulumi.Input[str]] = None,
|
|
37
|
-
include_retry_reason: Optional[pulumi.Input[str]] = None,
|
|
38
34
|
insecure_mode: Optional[pulumi.Input[bool]] = None,
|
|
39
35
|
jwt_client_timeout: Optional[pulumi.Input[int]] = None,
|
|
40
36
|
jwt_expire_timeout: Optional[pulumi.Input[int]] = None,
|
|
41
37
|
keep_session_alive: Optional[pulumi.Input[bool]] = None,
|
|
42
38
|
login_timeout: Optional[pulumi.Input[int]] = None,
|
|
43
|
-
max_retry_count: Optional[pulumi.Input[int]] = None,
|
|
44
39
|
oauth_access_token: Optional[pulumi.Input[str]] = None,
|
|
45
40
|
oauth_client_id: Optional[pulumi.Input[str]] = None,
|
|
46
41
|
oauth_client_secret: Optional[pulumi.Input[str]] = None,
|
|
47
42
|
oauth_endpoint: Optional[pulumi.Input[str]] = None,
|
|
48
43
|
oauth_redirect_url: Optional[pulumi.Input[str]] = None,
|
|
49
44
|
oauth_refresh_token: Optional[pulumi.Input[str]] = None,
|
|
50
|
-
ocsp_fail_open: Optional[pulumi.Input[
|
|
45
|
+
ocsp_fail_open: Optional[pulumi.Input[bool]] = None,
|
|
51
46
|
okta_url: Optional[pulumi.Input[str]] = None,
|
|
52
|
-
organization_name: Optional[pulumi.Input[str]] = None,
|
|
53
47
|
params: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
54
48
|
passcode: Optional[pulumi.Input[str]] = None,
|
|
55
49
|
passcode_in_password: Optional[pulumi.Input[bool]] = None,
|
|
@@ -64,61 +58,46 @@ class ProviderArgs:
|
|
|
64
58
|
request_timeout: Optional[pulumi.Input[int]] = None,
|
|
65
59
|
role: Optional[pulumi.Input[str]] = None,
|
|
66
60
|
session_params: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
67
|
-
tmp_directory_path: Optional[pulumi.Input[str]] = None,
|
|
68
61
|
token: Optional[pulumi.Input[str]] = None,
|
|
69
62
|
token_accessor: Optional[pulumi.Input['ProviderTokenAccessorArgs']] = None,
|
|
70
63
|
user: Optional[pulumi.Input[str]] = None,
|
|
71
64
|
username: Optional[pulumi.Input[str]] = None,
|
|
72
|
-
validate_default_parameters: Optional[pulumi.Input[
|
|
65
|
+
validate_default_parameters: Optional[pulumi.Input[bool]] = None,
|
|
73
66
|
warehouse: Optional[pulumi.Input[str]] = None):
|
|
74
67
|
"""
|
|
75
68
|
The set of arguments for constructing a Provider resource.
|
|
76
|
-
:param pulumi.Input[str] account:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
is not supported. For information about account identifiers, see the [Snowflake
|
|
80
|
-
documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Required unless using `profile`.
|
|
81
|
-
Can also be sourced from the `SNOWFLAKE_ACCOUNT` environment variable.
|
|
82
|
-
:param pulumi.Input[str] account_name: Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
|
|
83
|
-
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
|
|
84
|
-
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
|
|
69
|
+
:param pulumi.Input[str] account: Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
|
|
70
|
+
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Can also be sourced
|
|
71
|
+
from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using `profile`.
|
|
85
72
|
:param pulumi.Input[str] authenticator: Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
|
|
86
|
-
connecting to Snowflake. Valid
|
|
87
|
-
|
|
88
|
-
|
|
73
|
+
connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
|
|
74
|
+
UsernamePasswordMFA. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable. It has to be set
|
|
75
|
+
explicitly to JWT for private key authentication.
|
|
89
76
|
:param pulumi.Input[bool] browser_auth: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_USE_BROWSER_AUTH` environment variable.
|
|
90
77
|
:param pulumi.Input[str] client_ip: IP address for network checks. Can also be sourced from the `SNOWFLAKE_CLIENT_IP` environment variable.
|
|
91
|
-
:param pulumi.Input[
|
|
78
|
+
: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
|
|
92
79
|
be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
|
|
93
|
-
:param pulumi.Input[
|
|
80
|
+
: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
|
|
94
81
|
sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment variable.
|
|
95
|
-
:param pulumi.Input[int] client_timeout: The timeout in seconds for the client to complete the authentication. Can also be sourced from
|
|
96
|
-
`SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
|
|
97
|
-
:param pulumi.Input[
|
|
98
|
-
`SNOWFLAKE_DISABLE_CONSOLE_LOGIN` environment variable.
|
|
99
|
-
: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`
|
|
82
|
+
: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
|
|
83
|
+
the `SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
|
|
84
|
+
: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`
|
|
100
85
|
environment variable.
|
|
101
|
-
:param pulumi.Input[bool] disable_telemetry:
|
|
102
|
-
:param pulumi.Input[
|
|
103
|
-
|
|
104
|
-
:param pulumi.Input[
|
|
105
|
-
`
|
|
106
|
-
:param pulumi.Input[str] host: Specifies a custom host value used by the driver for privatelink connections. Can also be sourced from the
|
|
107
|
-
`SNOWFLAKE_HOST` environment variable.
|
|
108
|
-
:param pulumi.Input[str] include_retry_reason: Should retried request contain retry reason. Can also be sourced from the `SNOWFLAKE_INCLUDE_RETRY_REASON` environment
|
|
109
|
-
variable.
|
|
86
|
+
:param pulumi.Input[bool] disable_telemetry: Indicates whether to disable telemetry. Can also be sourced from the `SNOWFLAKE_DISABLE_TELEMETRY` environment variable.
|
|
87
|
+
: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
|
|
88
|
+
sourced from the `SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
|
|
89
|
+
: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
|
|
90
|
+
the `SNOWFLAKE_HOST` environment variable.
|
|
110
91
|
:param pulumi.Input[bool] insecure_mode: If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the
|
|
111
92
|
default value for testing or emergency situations only. Can also be sourced from the `SNOWFLAKE_INSECURE_MODE`
|
|
112
93
|
environment variable.
|
|
113
|
-
:param pulumi.Input[int] jwt_client_timeout: The timeout in seconds for the JWT client to complete the authentication. Can also be sourced
|
|
114
|
-
`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. Default is 10 seconds. Can also be sourced
|
|
95
|
+
from the `SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
|
|
115
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.
|
|
116
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
|
|
117
98
|
`SNOWFLAKE_KEEP_SESSION_ALIVE` environment variable.
|
|
118
|
-
:param pulumi.Input[int] login_timeout: Login retry timeout
|
|
99
|
+
:param pulumi.Input[int] login_timeout: Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
119
100
|
`SNOWFLAKE_LOGIN_TIMEOUT` environment variable.
|
|
120
|
-
: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
|
|
121
|
-
`SNOWFLAKE_MAX_RETRY_COUNT` environment variable.
|
|
122
101
|
: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`,
|
|
123
102
|
`private_key_path`, `oauth_refresh_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN`
|
|
124
103
|
environment variable.
|
|
@@ -132,66 +111,53 @@ class ProviderArgs:
|
|
|
132
111
|
`oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`,
|
|
133
112
|
`private_key_path`, `oauth_access_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN`
|
|
134
113
|
environment variable.
|
|
135
|
-
:param pulumi.Input[
|
|
114
|
+
: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
|
|
136
115
|
sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
|
|
137
|
-
:param pulumi.Input[str] okta_url: The URL of the Okta server. e.g. https://example.okta.com.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
:param pulumi.Input[str] organization_name: Specifies your Snowflake organization name assigned by Snowflake. For information about account identifiers, see the
|
|
141
|
-
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#organization-name). Required
|
|
142
|
-
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ORGANIZATION_NAME` environment variable.
|
|
143
|
-
: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).
|
|
144
|
-
This field can not be set with environmental variables.
|
|
116
|
+
: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
|
|
117
|
+
variable.
|
|
118
|
+
: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)
|
|
145
119
|
:param pulumi.Input[str] passcode: Specifies the passcode provided by Duo when using multi-factor authentication (MFA) for login. Can also be sourced from
|
|
146
120
|
the `SNOWFLAKE_PASSCODE` environment variable.
|
|
147
|
-
:param pulumi.Input[bool] passcode_in_password: False by default. Set to true if the MFA passcode is embedded
|
|
148
|
-
`SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
149
|
-
:param pulumi.Input[str] password: Password for
|
|
121
|
+
: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
|
|
122
|
+
of the password. Can also be sourced from the `SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
123
|
+
: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
|
|
150
124
|
the `SNOWFLAKE_PASSWORD` environment variable.
|
|
151
|
-
:param pulumi.Input[int] port:
|
|
125
|
+
:param pulumi.Input[int] port: Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
|
|
152
126
|
`SNOWFLAKE_PORT` environment variable.
|
|
153
127
|
: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
|
|
154
|
-
|
|
128
|
+
`SNOWFLAKE_PRIVATE_KEY` environment variable.
|
|
155
129
|
: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
|
|
156
|
-
des-ede3-cbc. Can also be sourced from
|
|
130
|
+
des-ede3-cbc. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
157
131
|
: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
|
|
158
132
|
`password`. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
|
|
159
133
|
:param pulumi.Input[str] profile: Sets the profile to read from ~/.snowflake/config file. Can also be sourced from the `SNOWFLAKE_PROFILE` environment
|
|
160
134
|
variable.
|
|
161
|
-
:param pulumi.Input[str] protocol:
|
|
162
|
-
`SNOWFLAKE_PROTOCOL` environment variable.
|
|
135
|
+
:param pulumi.Input[str] protocol: Either http or https, defaults to https. Can also be sourced from the `SNOWFLAKE_PROTOCOL` environment variable.
|
|
163
136
|
:param pulumi.Input[str] region: Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
|
|
164
137
|
to specify the region as part of the account parameter. For details, see the description of the account parameter.
|
|
165
138
|
[Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy
|
|
166
139
|
format for the `account`
|
|
167
140
|
identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region)
|
|
168
141
|
in the form of `<cloud_region_id>.<cloud>`. Can also be sourced from the `SNOWFLAKE_REGION` environment variable.
|
|
169
|
-
:param pulumi.Input[int] request_timeout: request retry timeout
|
|
142
|
+
:param pulumi.Input[int] request_timeout: request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
170
143
|
`SNOWFLAKE_REQUEST_TIMEOUT` environment variable.
|
|
171
144
|
: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
|
|
172
|
-
`SNOWFLAKE_ROLE` environment variable.
|
|
145
|
+
`SNOWFLAKE_ROLE` environment variable. .
|
|
173
146
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] session_params: Sets session parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
|
|
174
|
-
: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
|
|
175
|
-
the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
|
|
176
147
|
: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
|
|
177
148
|
variable.
|
|
178
|
-
:param pulumi.Input[str] user: Username.
|
|
179
|
-
:param pulumi.Input[str] username: Username for
|
|
180
|
-
|
|
181
|
-
:param pulumi.Input[
|
|
149
|
+
:param pulumi.Input[str] user: Username. Can also be sourced from the `SNOWFLAKE_USER` environment variable. Required unless using `profile`.
|
|
150
|
+
:param pulumi.Input[str] username: Username for username+password authentication. Can also be sourced from the `SNOWFLAKE_USERNAME` environment variable.
|
|
151
|
+
Required unless using `profile`.
|
|
152
|
+
: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
|
|
182
153
|
connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
|
|
183
154
|
: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
|
|
184
155
|
from the `SNOWFLAKE_WAREHOUSE` environment variable.
|
|
185
156
|
"""
|
|
186
|
-
if account is not None:
|
|
187
|
-
warnings.warn("""Use `account_name` and `organization_name` instead of `account`""", DeprecationWarning)
|
|
188
|
-
pulumi.log.warn("""account is deprecated: Use `account_name` and `organization_name` instead of `account`""")
|
|
189
157
|
if account is None:
|
|
190
158
|
account = _utilities.get_env('SNOWFLAKE_ACCOUNT')
|
|
191
159
|
if account is not None:
|
|
192
160
|
pulumi.set(__self__, "account", account)
|
|
193
|
-
if account_name is not None:
|
|
194
|
-
pulumi.set(__self__, "account_name", account_name)
|
|
195
161
|
if authenticator is not None:
|
|
196
162
|
pulumi.set(__self__, "authenticator", authenticator)
|
|
197
163
|
if browser_auth is not None:
|
|
@@ -209,22 +175,16 @@ class ProviderArgs:
|
|
|
209
175
|
pulumi.set(__self__, "client_store_temporary_credential", client_store_temporary_credential)
|
|
210
176
|
if client_timeout is not None:
|
|
211
177
|
pulumi.set(__self__, "client_timeout", client_timeout)
|
|
212
|
-
if disable_console_login is not None:
|
|
213
|
-
pulumi.set(__self__, "disable_console_login", disable_console_login)
|
|
214
178
|
if disable_query_context_cache is not None:
|
|
215
179
|
pulumi.set(__self__, "disable_query_context_cache", disable_query_context_cache)
|
|
216
180
|
if disable_telemetry is not None:
|
|
217
181
|
pulumi.set(__self__, "disable_telemetry", disable_telemetry)
|
|
218
|
-
if driver_tracing is not None:
|
|
219
|
-
pulumi.set(__self__, "driver_tracing", driver_tracing)
|
|
220
182
|
if external_browser_timeout is not None:
|
|
221
183
|
pulumi.set(__self__, "external_browser_timeout", external_browser_timeout)
|
|
222
184
|
if host is None:
|
|
223
185
|
host = _utilities.get_env('SNOWFLAKE_HOST')
|
|
224
186
|
if host is not None:
|
|
225
187
|
pulumi.set(__self__, "host", host)
|
|
226
|
-
if include_retry_reason is not None:
|
|
227
|
-
pulumi.set(__self__, "include_retry_reason", include_retry_reason)
|
|
228
188
|
if insecure_mode is not None:
|
|
229
189
|
pulumi.set(__self__, "insecure_mode", insecure_mode)
|
|
230
190
|
if jwt_client_timeout is not None:
|
|
@@ -235,8 +195,6 @@ class ProviderArgs:
|
|
|
235
195
|
pulumi.set(__self__, "keep_session_alive", keep_session_alive)
|
|
236
196
|
if login_timeout is not None:
|
|
237
197
|
pulumi.set(__self__, "login_timeout", login_timeout)
|
|
238
|
-
if max_retry_count is not None:
|
|
239
|
-
pulumi.set(__self__, "max_retry_count", max_retry_count)
|
|
240
198
|
if oauth_access_token is not None:
|
|
241
199
|
warnings.warn("""Use `token` instead""", DeprecationWarning)
|
|
242
200
|
pulumi.log.warn("""oauth_access_token is deprecated: Use `token` instead""")
|
|
@@ -283,8 +241,6 @@ class ProviderArgs:
|
|
|
283
241
|
pulumi.set(__self__, "ocsp_fail_open", ocsp_fail_open)
|
|
284
242
|
if okta_url is not None:
|
|
285
243
|
pulumi.set(__self__, "okta_url", okta_url)
|
|
286
|
-
if organization_name is not None:
|
|
287
|
-
pulumi.set(__self__, "organization_name", organization_name)
|
|
288
244
|
if params is not None:
|
|
289
245
|
pulumi.set(__self__, "params", params)
|
|
290
246
|
if passcode is not None:
|
|
@@ -336,8 +292,6 @@ class ProviderArgs:
|
|
|
336
292
|
pulumi.log.warn("""session_params is deprecated: Use `params` instead""")
|
|
337
293
|
if session_params is not None:
|
|
338
294
|
pulumi.set(__self__, "session_params", session_params)
|
|
339
|
-
if tmp_directory_path is not None:
|
|
340
|
-
pulumi.set(__self__, "tmp_directory_path", tmp_directory_path)
|
|
341
295
|
if token is not None:
|
|
342
296
|
pulumi.set(__self__, "token", token)
|
|
343
297
|
if token_accessor is not None:
|
|
@@ -360,15 +314,11 @@ class ProviderArgs:
|
|
|
360
314
|
|
|
361
315
|
@property
|
|
362
316
|
@pulumi.getter
|
|
363
|
-
@_utilities.deprecated("""Use `account_name` and `organization_name` instead of `account`""")
|
|
364
317
|
def account(self) -> Optional[pulumi.Input[str]]:
|
|
365
318
|
"""
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
is not supported. For information about account identifiers, see the [Snowflake
|
|
370
|
-
documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Required unless using `profile`.
|
|
371
|
-
Can also be sourced from the `SNOWFLAKE_ACCOUNT` environment variable.
|
|
319
|
+
Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
|
|
320
|
+
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Can also be sourced
|
|
321
|
+
from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using `profile`.
|
|
372
322
|
"""
|
|
373
323
|
return pulumi.get(self, "account")
|
|
374
324
|
|
|
@@ -376,28 +326,14 @@ class ProviderArgs:
|
|
|
376
326
|
def account(self, value: Optional[pulumi.Input[str]]):
|
|
377
327
|
pulumi.set(self, "account", value)
|
|
378
328
|
|
|
379
|
-
@property
|
|
380
|
-
@pulumi.getter(name="accountName")
|
|
381
|
-
def account_name(self) -> Optional[pulumi.Input[str]]:
|
|
382
|
-
"""
|
|
383
|
-
Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
|
|
384
|
-
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
|
|
385
|
-
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
|
|
386
|
-
"""
|
|
387
|
-
return pulumi.get(self, "account_name")
|
|
388
|
-
|
|
389
|
-
@account_name.setter
|
|
390
|
-
def account_name(self, value: Optional[pulumi.Input[str]]):
|
|
391
|
-
pulumi.set(self, "account_name", value)
|
|
392
|
-
|
|
393
329
|
@property
|
|
394
330
|
@pulumi.getter
|
|
395
331
|
def authenticator(self) -> Optional[pulumi.Input[str]]:
|
|
396
332
|
"""
|
|
397
333
|
Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
|
|
398
|
-
connecting to Snowflake. Valid
|
|
399
|
-
|
|
400
|
-
|
|
334
|
+
connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
|
|
335
|
+
UsernamePasswordMFA. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable. It has to be set
|
|
336
|
+
explicitly to JWT for private key authentication.
|
|
401
337
|
"""
|
|
402
338
|
return pulumi.get(self, "authenticator")
|
|
403
339
|
|
|
@@ -432,7 +368,7 @@ class ProviderArgs:
|
|
|
432
368
|
|
|
433
369
|
@property
|
|
434
370
|
@pulumi.getter(name="clientRequestMfaToken")
|
|
435
|
-
def client_request_mfa_token(self) -> Optional[pulumi.Input[
|
|
371
|
+
def client_request_mfa_token(self) -> Optional[pulumi.Input[bool]]:
|
|
436
372
|
"""
|
|
437
373
|
When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
|
|
438
374
|
be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
|
|
@@ -440,12 +376,12 @@ class ProviderArgs:
|
|
|
440
376
|
return pulumi.get(self, "client_request_mfa_token")
|
|
441
377
|
|
|
442
378
|
@client_request_mfa_token.setter
|
|
443
|
-
def client_request_mfa_token(self, value: Optional[pulumi.Input[
|
|
379
|
+
def client_request_mfa_token(self, value: Optional[pulumi.Input[bool]]):
|
|
444
380
|
pulumi.set(self, "client_request_mfa_token", value)
|
|
445
381
|
|
|
446
382
|
@property
|
|
447
383
|
@pulumi.getter(name="clientStoreTemporaryCredential")
|
|
448
|
-
def client_store_temporary_credential(self) -> Optional[pulumi.Input[
|
|
384
|
+
def client_store_temporary_credential(self) -> Optional[pulumi.Input[bool]]:
|
|
449
385
|
"""
|
|
450
386
|
When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
|
|
451
387
|
sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment variable.
|
|
@@ -453,15 +389,15 @@ class ProviderArgs:
|
|
|
453
389
|
return pulumi.get(self, "client_store_temporary_credential")
|
|
454
390
|
|
|
455
391
|
@client_store_temporary_credential.setter
|
|
456
|
-
def client_store_temporary_credential(self, value: Optional[pulumi.Input[
|
|
392
|
+
def client_store_temporary_credential(self, value: Optional[pulumi.Input[bool]]):
|
|
457
393
|
pulumi.set(self, "client_store_temporary_credential", value)
|
|
458
394
|
|
|
459
395
|
@property
|
|
460
396
|
@pulumi.getter(name="clientTimeout")
|
|
461
397
|
def client_timeout(self) -> Optional[pulumi.Input[int]]:
|
|
462
398
|
"""
|
|
463
|
-
The timeout in seconds for the client to complete the authentication. Can also be sourced from
|
|
464
|
-
`SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
|
|
399
|
+
The timeout in seconds for the client to complete the authentication. Default is 900 seconds. Can also be sourced from
|
|
400
|
+
the `SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
|
|
465
401
|
"""
|
|
466
402
|
return pulumi.get(self, "client_timeout")
|
|
467
403
|
|
|
@@ -469,24 +405,11 @@ class ProviderArgs:
|
|
|
469
405
|
def client_timeout(self, value: Optional[pulumi.Input[int]]):
|
|
470
406
|
pulumi.set(self, "client_timeout", value)
|
|
471
407
|
|
|
472
|
-
@property
|
|
473
|
-
@pulumi.getter(name="disableConsoleLogin")
|
|
474
|
-
def disable_console_login(self) -> Optional[pulumi.Input[str]]:
|
|
475
|
-
"""
|
|
476
|
-
Indicates whether console login should be disabled in the driver. Can also be sourced from the
|
|
477
|
-
`SNOWFLAKE_DISABLE_CONSOLE_LOGIN` environment variable.
|
|
478
|
-
"""
|
|
479
|
-
return pulumi.get(self, "disable_console_login")
|
|
480
|
-
|
|
481
|
-
@disable_console_login.setter
|
|
482
|
-
def disable_console_login(self, value: Optional[pulumi.Input[str]]):
|
|
483
|
-
pulumi.set(self, "disable_console_login", value)
|
|
484
|
-
|
|
485
408
|
@property
|
|
486
409
|
@pulumi.getter(name="disableQueryContextCache")
|
|
487
410
|
def disable_query_context_cache(self) -> Optional[pulumi.Input[bool]]:
|
|
488
411
|
"""
|
|
489
|
-
|
|
412
|
+
Should HTAP query context cache be disabled. Can also be sourced from the `SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE`
|
|
490
413
|
environment variable.
|
|
491
414
|
"""
|
|
492
415
|
return pulumi.get(self, "disable_query_context_cache")
|
|
@@ -499,7 +422,7 @@ class ProviderArgs:
|
|
|
499
422
|
@pulumi.getter(name="disableTelemetry")
|
|
500
423
|
def disable_telemetry(self) -> Optional[pulumi.Input[bool]]:
|
|
501
424
|
"""
|
|
502
|
-
|
|
425
|
+
Indicates whether to disable telemetry. Can also be sourced from the `SNOWFLAKE_DISABLE_TELEMETRY` environment variable.
|
|
503
426
|
"""
|
|
504
427
|
return pulumi.get(self, "disable_telemetry")
|
|
505
428
|
|
|
@@ -507,25 +430,12 @@ class ProviderArgs:
|
|
|
507
430
|
def disable_telemetry(self, value: Optional[pulumi.Input[bool]]):
|
|
508
431
|
pulumi.set(self, "disable_telemetry", value)
|
|
509
432
|
|
|
510
|
-
@property
|
|
511
|
-
@pulumi.getter(name="driverTracing")
|
|
512
|
-
def driver_tracing(self) -> Optional[pulumi.Input[str]]:
|
|
513
|
-
"""
|
|
514
|
-
Specifies the logging level to be used by the driver. Valid options are: `trace` | `debug` | `info` | `print` |
|
|
515
|
-
`warning` | `error` | `fatal` | `panic`. Can also be sourced from the `SNOWFLAKE_DRIVER_TRACING` environment variable.
|
|
516
|
-
"""
|
|
517
|
-
return pulumi.get(self, "driver_tracing")
|
|
518
|
-
|
|
519
|
-
@driver_tracing.setter
|
|
520
|
-
def driver_tracing(self, value: Optional[pulumi.Input[str]]):
|
|
521
|
-
pulumi.set(self, "driver_tracing", value)
|
|
522
|
-
|
|
523
433
|
@property
|
|
524
434
|
@pulumi.getter(name="externalBrowserTimeout")
|
|
525
435
|
def external_browser_timeout(self) -> Optional[pulumi.Input[int]]:
|
|
526
436
|
"""
|
|
527
|
-
The timeout in seconds for the external browser to complete the authentication. Can also be
|
|
528
|
-
`SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
|
|
437
|
+
The timeout in seconds for the external browser to complete the authentication. Default is 120 seconds. Can also be
|
|
438
|
+
sourced from the `SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
|
|
529
439
|
"""
|
|
530
440
|
return pulumi.get(self, "external_browser_timeout")
|
|
531
441
|
|
|
@@ -537,8 +447,8 @@ class ProviderArgs:
|
|
|
537
447
|
@pulumi.getter
|
|
538
448
|
def host(self) -> Optional[pulumi.Input[str]]:
|
|
539
449
|
"""
|
|
540
|
-
|
|
541
|
-
`SNOWFLAKE_HOST` environment variable.
|
|
450
|
+
Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
|
|
451
|
+
the `SNOWFLAKE_HOST` environment variable.
|
|
542
452
|
"""
|
|
543
453
|
return pulumi.get(self, "host")
|
|
544
454
|
|
|
@@ -546,19 +456,6 @@ class ProviderArgs:
|
|
|
546
456
|
def host(self, value: Optional[pulumi.Input[str]]):
|
|
547
457
|
pulumi.set(self, "host", value)
|
|
548
458
|
|
|
549
|
-
@property
|
|
550
|
-
@pulumi.getter(name="includeRetryReason")
|
|
551
|
-
def include_retry_reason(self) -> Optional[pulumi.Input[str]]:
|
|
552
|
-
"""
|
|
553
|
-
Should retried request contain retry reason. Can also be sourced from the `SNOWFLAKE_INCLUDE_RETRY_REASON` environment
|
|
554
|
-
variable.
|
|
555
|
-
"""
|
|
556
|
-
return pulumi.get(self, "include_retry_reason")
|
|
557
|
-
|
|
558
|
-
@include_retry_reason.setter
|
|
559
|
-
def include_retry_reason(self, value: Optional[pulumi.Input[str]]):
|
|
560
|
-
pulumi.set(self, "include_retry_reason", value)
|
|
561
|
-
|
|
562
459
|
@property
|
|
563
460
|
@pulumi.getter(name="insecureMode")
|
|
564
461
|
def insecure_mode(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -577,8 +474,8 @@ class ProviderArgs:
|
|
|
577
474
|
@pulumi.getter(name="jwtClientTimeout")
|
|
578
475
|
def jwt_client_timeout(self) -> Optional[pulumi.Input[int]]:
|
|
579
476
|
"""
|
|
580
|
-
The timeout in seconds for the JWT client to complete the authentication. Can also be sourced
|
|
581
|
-
`SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
|
|
477
|
+
The timeout in seconds for the JWT client to complete the authentication. Default is 10 seconds. Can also be sourced
|
|
478
|
+
from the `SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
|
|
582
479
|
"""
|
|
583
480
|
return pulumi.get(self, "jwt_client_timeout")
|
|
584
481
|
|
|
@@ -615,7 +512,7 @@ class ProviderArgs:
|
|
|
615
512
|
@pulumi.getter(name="loginTimeout")
|
|
616
513
|
def login_timeout(self) -> Optional[pulumi.Input[int]]:
|
|
617
514
|
"""
|
|
618
|
-
Login retry timeout
|
|
515
|
+
Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
619
516
|
`SNOWFLAKE_LOGIN_TIMEOUT` environment variable.
|
|
620
517
|
"""
|
|
621
518
|
return pulumi.get(self, "login_timeout")
|
|
@@ -624,19 +521,6 @@ class ProviderArgs:
|
|
|
624
521
|
def login_timeout(self, value: Optional[pulumi.Input[int]]):
|
|
625
522
|
pulumi.set(self, "login_timeout", value)
|
|
626
523
|
|
|
627
|
-
@property
|
|
628
|
-
@pulumi.getter(name="maxRetryCount")
|
|
629
|
-
def max_retry_count(self) -> Optional[pulumi.Input[int]]:
|
|
630
|
-
"""
|
|
631
|
-
Specifies how many times non-periodic HTTP request can be retried by the driver. Can also be sourced from the
|
|
632
|
-
`SNOWFLAKE_MAX_RETRY_COUNT` environment variable.
|
|
633
|
-
"""
|
|
634
|
-
return pulumi.get(self, "max_retry_count")
|
|
635
|
-
|
|
636
|
-
@max_retry_count.setter
|
|
637
|
-
def max_retry_count(self, value: Optional[pulumi.Input[int]]):
|
|
638
|
-
pulumi.set(self, "max_retry_count", value)
|
|
639
|
-
|
|
640
524
|
@property
|
|
641
525
|
@pulumi.getter(name="oauthAccessToken")
|
|
642
526
|
@_utilities.deprecated("""Use `token` instead""")
|
|
@@ -724,7 +608,7 @@ class ProviderArgs:
|
|
|
724
608
|
|
|
725
609
|
@property
|
|
726
610
|
@pulumi.getter(name="ocspFailOpen")
|
|
727
|
-
def ocsp_fail_open(self) -> Optional[pulumi.Input[
|
|
611
|
+
def ocsp_fail_open(self) -> Optional[pulumi.Input[bool]]:
|
|
728
612
|
"""
|
|
729
613
|
True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
|
|
730
614
|
sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
|
|
@@ -732,16 +616,15 @@ class ProviderArgs:
|
|
|
732
616
|
return pulumi.get(self, "ocsp_fail_open")
|
|
733
617
|
|
|
734
618
|
@ocsp_fail_open.setter
|
|
735
|
-
def ocsp_fail_open(self, value: Optional[pulumi.Input[
|
|
619
|
+
def ocsp_fail_open(self, value: Optional[pulumi.Input[bool]]):
|
|
736
620
|
pulumi.set(self, "ocsp_fail_open", value)
|
|
737
621
|
|
|
738
622
|
@property
|
|
739
623
|
@pulumi.getter(name="oktaUrl")
|
|
740
624
|
def okta_url(self) -> Optional[pulumi.Input[str]]:
|
|
741
625
|
"""
|
|
742
|
-
The URL of the Okta server. e.g. https://example.okta.com.
|
|
743
|
-
|
|
744
|
-
`SNOWFLAKE_OKTA_URL` environment variable.
|
|
626
|
+
The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the `SNOWFLAKE_OKTA_URL` environment
|
|
627
|
+
variable.
|
|
745
628
|
"""
|
|
746
629
|
return pulumi.get(self, "okta_url")
|
|
747
630
|
|
|
@@ -749,26 +632,11 @@ class ProviderArgs:
|
|
|
749
632
|
def okta_url(self, value: Optional[pulumi.Input[str]]):
|
|
750
633
|
pulumi.set(self, "okta_url", value)
|
|
751
634
|
|
|
752
|
-
@property
|
|
753
|
-
@pulumi.getter(name="organizationName")
|
|
754
|
-
def organization_name(self) -> Optional[pulumi.Input[str]]:
|
|
755
|
-
"""
|
|
756
|
-
Specifies your Snowflake organization name assigned by Snowflake. For information about account identifiers, see the
|
|
757
|
-
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#organization-name). Required
|
|
758
|
-
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ORGANIZATION_NAME` environment variable.
|
|
759
|
-
"""
|
|
760
|
-
return pulumi.get(self, "organization_name")
|
|
761
|
-
|
|
762
|
-
@organization_name.setter
|
|
763
|
-
def organization_name(self, value: Optional[pulumi.Input[str]]):
|
|
764
|
-
pulumi.set(self, "organization_name", value)
|
|
765
|
-
|
|
766
635
|
@property
|
|
767
636
|
@pulumi.getter
|
|
768
637
|
def params(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
769
638
|
"""
|
|
770
|
-
Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
|
|
771
|
-
This field can not be set with environmental variables.
|
|
639
|
+
Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
|
|
772
640
|
"""
|
|
773
641
|
return pulumi.get(self, "params")
|
|
774
642
|
|
|
@@ -793,8 +661,8 @@ class ProviderArgs:
|
|
|
793
661
|
@pulumi.getter(name="passcodeInPassword")
|
|
794
662
|
def passcode_in_password(self) -> Optional[pulumi.Input[bool]]:
|
|
795
663
|
"""
|
|
796
|
-
False by default. Set to true if the MFA passcode is embedded
|
|
797
|
-
`SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
664
|
+
False by default. Set to true if the MFA passcode is embedded in the login password. Appends the MFA passcode to the end
|
|
665
|
+
of the password. Can also be sourced from the `SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
798
666
|
"""
|
|
799
667
|
return pulumi.get(self, "passcode_in_password")
|
|
800
668
|
|
|
@@ -806,7 +674,7 @@ class ProviderArgs:
|
|
|
806
674
|
@pulumi.getter
|
|
807
675
|
def password(self) -> Optional[pulumi.Input[str]]:
|
|
808
676
|
"""
|
|
809
|
-
Password for
|
|
677
|
+
Password for username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can also be sourced from
|
|
810
678
|
the `SNOWFLAKE_PASSWORD` environment variable.
|
|
811
679
|
"""
|
|
812
680
|
return pulumi.get(self, "password")
|
|
@@ -819,7 +687,7 @@ class ProviderArgs:
|
|
|
819
687
|
@pulumi.getter
|
|
820
688
|
def port(self) -> Optional[pulumi.Input[int]]:
|
|
821
689
|
"""
|
|
822
|
-
|
|
690
|
+
Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
|
|
823
691
|
`SNOWFLAKE_PORT` environment variable.
|
|
824
692
|
"""
|
|
825
693
|
return pulumi.get(self, "port")
|
|
@@ -833,7 +701,7 @@ class ProviderArgs:
|
|
|
833
701
|
def private_key(self) -> Optional[pulumi.Input[str]]:
|
|
834
702
|
"""
|
|
835
703
|
Private Key for username+private-key auth. Cannot be used with `browser_auth` or `password`. Can also be sourced from
|
|
836
|
-
|
|
704
|
+
`SNOWFLAKE_PRIVATE_KEY` environment variable.
|
|
837
705
|
"""
|
|
838
706
|
return pulumi.get(self, "private_key")
|
|
839
707
|
|
|
@@ -846,7 +714,7 @@ class ProviderArgs:
|
|
|
846
714
|
def private_key_passphrase(self) -> Optional[pulumi.Input[str]]:
|
|
847
715
|
"""
|
|
848
716
|
Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
|
|
849
|
-
des-ede3-cbc. Can also be sourced from
|
|
717
|
+
des-ede3-cbc. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
850
718
|
"""
|
|
851
719
|
return pulumi.get(self, "private_key_passphrase")
|
|
852
720
|
|
|
@@ -885,8 +753,7 @@ class ProviderArgs:
|
|
|
885
753
|
@pulumi.getter
|
|
886
754
|
def protocol(self) -> Optional[pulumi.Input[str]]:
|
|
887
755
|
"""
|
|
888
|
-
|
|
889
|
-
`SNOWFLAKE_PROTOCOL` environment variable.
|
|
756
|
+
Either http or https, defaults to https. Can also be sourced from the `SNOWFLAKE_PROTOCOL` environment variable.
|
|
890
757
|
"""
|
|
891
758
|
return pulumi.get(self, "protocol")
|
|
892
759
|
|
|
@@ -916,7 +783,7 @@ class ProviderArgs:
|
|
|
916
783
|
@pulumi.getter(name="requestTimeout")
|
|
917
784
|
def request_timeout(self) -> Optional[pulumi.Input[int]]:
|
|
918
785
|
"""
|
|
919
|
-
request retry timeout
|
|
786
|
+
request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
920
787
|
`SNOWFLAKE_REQUEST_TIMEOUT` environment variable.
|
|
921
788
|
"""
|
|
922
789
|
return pulumi.get(self, "request_timeout")
|
|
@@ -930,7 +797,7 @@ class ProviderArgs:
|
|
|
930
797
|
def role(self) -> Optional[pulumi.Input[str]]:
|
|
931
798
|
"""
|
|
932
799
|
Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
|
|
933
|
-
`SNOWFLAKE_ROLE` environment variable.
|
|
800
|
+
`SNOWFLAKE_ROLE` environment variable. .
|
|
934
801
|
"""
|
|
935
802
|
return pulumi.get(self, "role")
|
|
936
803
|
|
|
@@ -951,19 +818,6 @@ class ProviderArgs:
|
|
|
951
818
|
def session_params(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
952
819
|
pulumi.set(self, "session_params", value)
|
|
953
820
|
|
|
954
|
-
@property
|
|
955
|
-
@pulumi.getter(name="tmpDirectoryPath")
|
|
956
|
-
def tmp_directory_path(self) -> Optional[pulumi.Input[str]]:
|
|
957
|
-
"""
|
|
958
|
-
Sets temporary directory used by the driver for operations like encrypting, compressing etc. Can also be sourced from
|
|
959
|
-
the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
|
|
960
|
-
"""
|
|
961
|
-
return pulumi.get(self, "tmp_directory_path")
|
|
962
|
-
|
|
963
|
-
@tmp_directory_path.setter
|
|
964
|
-
def tmp_directory_path(self, value: Optional[pulumi.Input[str]]):
|
|
965
|
-
pulumi.set(self, "tmp_directory_path", value)
|
|
966
|
-
|
|
967
821
|
@property
|
|
968
822
|
@pulumi.getter
|
|
969
823
|
def token(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -990,7 +844,7 @@ class ProviderArgs:
|
|
|
990
844
|
@pulumi.getter
|
|
991
845
|
def user(self) -> Optional[pulumi.Input[str]]:
|
|
992
846
|
"""
|
|
993
|
-
Username.
|
|
847
|
+
Username. Can also be sourced from the `SNOWFLAKE_USER` environment variable. Required unless using `profile`.
|
|
994
848
|
"""
|
|
995
849
|
return pulumi.get(self, "user")
|
|
996
850
|
|
|
@@ -1003,8 +857,8 @@ class ProviderArgs:
|
|
|
1003
857
|
@_utilities.deprecated("""Use `user` instead of `username`""")
|
|
1004
858
|
def username(self) -> Optional[pulumi.Input[str]]:
|
|
1005
859
|
"""
|
|
1006
|
-
Username for
|
|
1007
|
-
|
|
860
|
+
Username for username+password authentication. Can also be sourced from the `SNOWFLAKE_USERNAME` environment variable.
|
|
861
|
+
Required unless using `profile`.
|
|
1008
862
|
"""
|
|
1009
863
|
return pulumi.get(self, "username")
|
|
1010
864
|
|
|
@@ -1014,7 +868,7 @@ class ProviderArgs:
|
|
|
1014
868
|
|
|
1015
869
|
@property
|
|
1016
870
|
@pulumi.getter(name="validateDefaultParameters")
|
|
1017
|
-
def validate_default_parameters(self) -> Optional[pulumi.Input[
|
|
871
|
+
def validate_default_parameters(self) -> Optional[pulumi.Input[bool]]:
|
|
1018
872
|
"""
|
|
1019
873
|
True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
|
|
1020
874
|
connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
|
|
@@ -1022,7 +876,7 @@ class ProviderArgs:
|
|
|
1022
876
|
return pulumi.get(self, "validate_default_parameters")
|
|
1023
877
|
|
|
1024
878
|
@validate_default_parameters.setter
|
|
1025
|
-
def validate_default_parameters(self, value: Optional[pulumi.Input[
|
|
879
|
+
def validate_default_parameters(self, value: Optional[pulumi.Input[bool]]):
|
|
1026
880
|
pulumi.set(self, "validate_default_parameters", value)
|
|
1027
881
|
|
|
1028
882
|
@property
|
|
@@ -1045,35 +899,29 @@ class Provider(pulumi.ProviderResource):
|
|
|
1045
899
|
resource_name: str,
|
|
1046
900
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1047
901
|
account: Optional[pulumi.Input[str]] = None,
|
|
1048
|
-
account_name: Optional[pulumi.Input[str]] = None,
|
|
1049
902
|
authenticator: Optional[pulumi.Input[str]] = None,
|
|
1050
903
|
browser_auth: Optional[pulumi.Input[bool]] = None,
|
|
1051
904
|
client_ip: Optional[pulumi.Input[str]] = None,
|
|
1052
|
-
client_request_mfa_token: Optional[pulumi.Input[
|
|
1053
|
-
client_store_temporary_credential: Optional[pulumi.Input[
|
|
905
|
+
client_request_mfa_token: Optional[pulumi.Input[bool]] = None,
|
|
906
|
+
client_store_temporary_credential: Optional[pulumi.Input[bool]] = None,
|
|
1054
907
|
client_timeout: Optional[pulumi.Input[int]] = None,
|
|
1055
|
-
disable_console_login: Optional[pulumi.Input[str]] = None,
|
|
1056
908
|
disable_query_context_cache: Optional[pulumi.Input[bool]] = None,
|
|
1057
909
|
disable_telemetry: Optional[pulumi.Input[bool]] = None,
|
|
1058
|
-
driver_tracing: Optional[pulumi.Input[str]] = None,
|
|
1059
910
|
external_browser_timeout: Optional[pulumi.Input[int]] = None,
|
|
1060
911
|
host: Optional[pulumi.Input[str]] = None,
|
|
1061
|
-
include_retry_reason: Optional[pulumi.Input[str]] = None,
|
|
1062
912
|
insecure_mode: Optional[pulumi.Input[bool]] = None,
|
|
1063
913
|
jwt_client_timeout: Optional[pulumi.Input[int]] = None,
|
|
1064
914
|
jwt_expire_timeout: Optional[pulumi.Input[int]] = None,
|
|
1065
915
|
keep_session_alive: Optional[pulumi.Input[bool]] = None,
|
|
1066
916
|
login_timeout: Optional[pulumi.Input[int]] = None,
|
|
1067
|
-
max_retry_count: Optional[pulumi.Input[int]] = None,
|
|
1068
917
|
oauth_access_token: Optional[pulumi.Input[str]] = None,
|
|
1069
918
|
oauth_client_id: Optional[pulumi.Input[str]] = None,
|
|
1070
919
|
oauth_client_secret: Optional[pulumi.Input[str]] = None,
|
|
1071
920
|
oauth_endpoint: Optional[pulumi.Input[str]] = None,
|
|
1072
921
|
oauth_redirect_url: Optional[pulumi.Input[str]] = None,
|
|
1073
922
|
oauth_refresh_token: Optional[pulumi.Input[str]] = None,
|
|
1074
|
-
ocsp_fail_open: Optional[pulumi.Input[
|
|
923
|
+
ocsp_fail_open: Optional[pulumi.Input[bool]] = None,
|
|
1075
924
|
okta_url: Optional[pulumi.Input[str]] = None,
|
|
1076
|
-
organization_name: Optional[pulumi.Input[str]] = None,
|
|
1077
925
|
params: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1078
926
|
passcode: Optional[pulumi.Input[str]] = None,
|
|
1079
927
|
passcode_in_password: Optional[pulumi.Input[bool]] = None,
|
|
@@ -1088,12 +936,11 @@ class Provider(pulumi.ProviderResource):
|
|
|
1088
936
|
request_timeout: Optional[pulumi.Input[int]] = None,
|
|
1089
937
|
role: Optional[pulumi.Input[str]] = None,
|
|
1090
938
|
session_params: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1091
|
-
tmp_directory_path: Optional[pulumi.Input[str]] = None,
|
|
1092
939
|
token: Optional[pulumi.Input[str]] = None,
|
|
1093
940
|
token_accessor: Optional[pulumi.Input[Union['ProviderTokenAccessorArgs', 'ProviderTokenAccessorArgsDict']]] = None,
|
|
1094
941
|
user: Optional[pulumi.Input[str]] = None,
|
|
1095
942
|
username: Optional[pulumi.Input[str]] = None,
|
|
1096
|
-
validate_default_parameters: Optional[pulumi.Input[
|
|
943
|
+
validate_default_parameters: Optional[pulumi.Input[bool]] = None,
|
|
1097
944
|
warehouse: Optional[pulumi.Input[str]] = None,
|
|
1098
945
|
__props__=None):
|
|
1099
946
|
"""
|
|
@@ -1104,52 +951,38 @@ class Provider(pulumi.ProviderResource):
|
|
|
1104
951
|
|
|
1105
952
|
:param str resource_name: The name of the resource.
|
|
1106
953
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1107
|
-
:param pulumi.Input[str] account:
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
is not supported. For information about account identifiers, see the [Snowflake
|
|
1111
|
-
documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Required unless using `profile`.
|
|
1112
|
-
Can also be sourced from the `SNOWFLAKE_ACCOUNT` environment variable.
|
|
1113
|
-
:param pulumi.Input[str] account_name: Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
|
|
1114
|
-
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
|
|
1115
|
-
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
|
|
954
|
+
:param pulumi.Input[str] account: Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
|
|
955
|
+
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Can also be sourced
|
|
956
|
+
from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using `profile`.
|
|
1116
957
|
:param pulumi.Input[str] authenticator: Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
|
|
1117
|
-
connecting to Snowflake. Valid
|
|
1118
|
-
|
|
1119
|
-
|
|
958
|
+
connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
|
|
959
|
+
UsernamePasswordMFA. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable. It has to be set
|
|
960
|
+
explicitly to JWT for private key authentication.
|
|
1120
961
|
:param pulumi.Input[bool] browser_auth: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_USE_BROWSER_AUTH` environment variable.
|
|
1121
962
|
:param pulumi.Input[str] client_ip: IP address for network checks. Can also be sourced from the `SNOWFLAKE_CLIENT_IP` environment variable.
|
|
1122
|
-
:param pulumi.Input[
|
|
963
|
+
: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
|
|
1123
964
|
be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
|
|
1124
|
-
:param pulumi.Input[
|
|
965
|
+
: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
|
|
1125
966
|
sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment variable.
|
|
1126
|
-
:param pulumi.Input[int] client_timeout: The timeout in seconds for the client to complete the authentication. Can also be sourced from
|
|
1127
|
-
`SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
|
|
1128
|
-
:param pulumi.Input[
|
|
1129
|
-
`SNOWFLAKE_DISABLE_CONSOLE_LOGIN` environment variable.
|
|
1130
|
-
: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`
|
|
967
|
+
: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
|
|
968
|
+
the `SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
|
|
969
|
+
: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`
|
|
1131
970
|
environment variable.
|
|
1132
|
-
:param pulumi.Input[bool] disable_telemetry:
|
|
1133
|
-
:param pulumi.Input[
|
|
1134
|
-
|
|
1135
|
-
:param pulumi.Input[
|
|
1136
|
-
`
|
|
1137
|
-
:param pulumi.Input[str] host: Specifies a custom host value used by the driver for privatelink connections. Can also be sourced from the
|
|
1138
|
-
`SNOWFLAKE_HOST` environment variable.
|
|
1139
|
-
:param pulumi.Input[str] include_retry_reason: Should retried request contain retry reason. Can also be sourced from the `SNOWFLAKE_INCLUDE_RETRY_REASON` environment
|
|
1140
|
-
variable.
|
|
971
|
+
:param pulumi.Input[bool] disable_telemetry: Indicates whether to disable telemetry. Can also be sourced from the `SNOWFLAKE_DISABLE_TELEMETRY` environment variable.
|
|
972
|
+
: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
|
|
973
|
+
sourced from the `SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
|
|
974
|
+
: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
|
|
975
|
+
the `SNOWFLAKE_HOST` environment variable.
|
|
1141
976
|
:param pulumi.Input[bool] insecure_mode: If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the
|
|
1142
977
|
default value for testing or emergency situations only. Can also be sourced from the `SNOWFLAKE_INSECURE_MODE`
|
|
1143
978
|
environment variable.
|
|
1144
|
-
:param pulumi.Input[int] jwt_client_timeout: The timeout in seconds for the JWT client to complete the authentication. Can also be sourced
|
|
1145
|
-
`SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
|
|
979
|
+
: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
|
|
980
|
+
from the `SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
|
|
1146
981
|
: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.
|
|
1147
982
|
:param pulumi.Input[bool] keep_session_alive: Enables the session to persist even after the connection is closed. Can also be sourced from the
|
|
1148
983
|
`SNOWFLAKE_KEEP_SESSION_ALIVE` environment variable.
|
|
1149
|
-
:param pulumi.Input[int] login_timeout: Login retry timeout
|
|
984
|
+
:param pulumi.Input[int] login_timeout: Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
1150
985
|
`SNOWFLAKE_LOGIN_TIMEOUT` environment variable.
|
|
1151
|
-
: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
|
|
1152
|
-
`SNOWFLAKE_MAX_RETRY_COUNT` environment variable.
|
|
1153
986
|
: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`,
|
|
1154
987
|
`private_key_path`, `oauth_refresh_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN`
|
|
1155
988
|
environment variable.
|
|
@@ -1163,53 +996,45 @@ class Provider(pulumi.ProviderResource):
|
|
|
1163
996
|
`oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`,
|
|
1164
997
|
`private_key_path`, `oauth_access_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN`
|
|
1165
998
|
environment variable.
|
|
1166
|
-
:param pulumi.Input[
|
|
999
|
+
: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
|
|
1167
1000
|
sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
|
|
1168
|
-
:param pulumi.Input[str] okta_url: The URL of the Okta server. e.g. https://example.okta.com.
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
:param pulumi.Input[str] organization_name: Specifies your Snowflake organization name assigned by Snowflake. For information about account identifiers, see the
|
|
1172
|
-
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#organization-name). Required
|
|
1173
|
-
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ORGANIZATION_NAME` environment variable.
|
|
1174
|
-
: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).
|
|
1175
|
-
This field can not be set with environmental variables.
|
|
1001
|
+
: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
|
|
1002
|
+
variable.
|
|
1003
|
+
: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)
|
|
1176
1004
|
:param pulumi.Input[str] passcode: Specifies the passcode provided by Duo when using multi-factor authentication (MFA) for login. Can also be sourced from
|
|
1177
1005
|
the `SNOWFLAKE_PASSCODE` environment variable.
|
|
1178
|
-
:param pulumi.Input[bool] passcode_in_password: False by default. Set to true if the MFA passcode is embedded
|
|
1179
|
-
`SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
1180
|
-
:param pulumi.Input[str] password: Password for
|
|
1006
|
+
: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
|
|
1007
|
+
of the password. Can also be sourced from the `SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
1008
|
+
: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
|
|
1181
1009
|
the `SNOWFLAKE_PASSWORD` environment variable.
|
|
1182
|
-
:param pulumi.Input[int] port:
|
|
1010
|
+
:param pulumi.Input[int] port: Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
|
|
1183
1011
|
`SNOWFLAKE_PORT` environment variable.
|
|
1184
1012
|
: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
|
|
1185
|
-
|
|
1013
|
+
`SNOWFLAKE_PRIVATE_KEY` environment variable.
|
|
1186
1014
|
: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
|
|
1187
|
-
des-ede3-cbc. Can also be sourced from
|
|
1015
|
+
des-ede3-cbc. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
1188
1016
|
: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
|
|
1189
1017
|
`password`. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
|
|
1190
1018
|
:param pulumi.Input[str] profile: Sets the profile to read from ~/.snowflake/config file. Can also be sourced from the `SNOWFLAKE_PROFILE` environment
|
|
1191
1019
|
variable.
|
|
1192
|
-
:param pulumi.Input[str] protocol:
|
|
1193
|
-
`SNOWFLAKE_PROTOCOL` environment variable.
|
|
1020
|
+
:param pulumi.Input[str] protocol: Either http or https, defaults to https. Can also be sourced from the `SNOWFLAKE_PROTOCOL` environment variable.
|
|
1194
1021
|
:param pulumi.Input[str] region: Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
|
|
1195
1022
|
to specify the region as part of the account parameter. For details, see the description of the account parameter.
|
|
1196
1023
|
[Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy
|
|
1197
1024
|
format for the `account`
|
|
1198
1025
|
identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region)
|
|
1199
1026
|
in the form of `<cloud_region_id>.<cloud>`. Can also be sourced from the `SNOWFLAKE_REGION` environment variable.
|
|
1200
|
-
:param pulumi.Input[int] request_timeout: request retry timeout
|
|
1027
|
+
:param pulumi.Input[int] request_timeout: request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
1201
1028
|
`SNOWFLAKE_REQUEST_TIMEOUT` environment variable.
|
|
1202
1029
|
: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
|
|
1203
|
-
`SNOWFLAKE_ROLE` environment variable.
|
|
1030
|
+
`SNOWFLAKE_ROLE` environment variable. .
|
|
1204
1031
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] session_params: Sets session parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
|
|
1205
|
-
: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
|
|
1206
|
-
the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
|
|
1207
1032
|
: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
|
|
1208
1033
|
variable.
|
|
1209
|
-
:param pulumi.Input[str] user: Username.
|
|
1210
|
-
:param pulumi.Input[str] username: Username for
|
|
1211
|
-
|
|
1212
|
-
:param pulumi.Input[
|
|
1034
|
+
:param pulumi.Input[str] user: Username. Can also be sourced from the `SNOWFLAKE_USER` environment variable. Required unless using `profile`.
|
|
1035
|
+
:param pulumi.Input[str] username: Username for username+password authentication. Can also be sourced from the `SNOWFLAKE_USERNAME` environment variable.
|
|
1036
|
+
Required unless using `profile`.
|
|
1037
|
+
: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
|
|
1213
1038
|
connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
|
|
1214
1039
|
: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
|
|
1215
1040
|
from the `SNOWFLAKE_WAREHOUSE` environment variable.
|
|
@@ -1242,35 +1067,29 @@ class Provider(pulumi.ProviderResource):
|
|
|
1242
1067
|
resource_name: str,
|
|
1243
1068
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1244
1069
|
account: Optional[pulumi.Input[str]] = None,
|
|
1245
|
-
account_name: Optional[pulumi.Input[str]] = None,
|
|
1246
1070
|
authenticator: Optional[pulumi.Input[str]] = None,
|
|
1247
1071
|
browser_auth: Optional[pulumi.Input[bool]] = None,
|
|
1248
1072
|
client_ip: Optional[pulumi.Input[str]] = None,
|
|
1249
|
-
client_request_mfa_token: Optional[pulumi.Input[
|
|
1250
|
-
client_store_temporary_credential: Optional[pulumi.Input[
|
|
1073
|
+
client_request_mfa_token: Optional[pulumi.Input[bool]] = None,
|
|
1074
|
+
client_store_temporary_credential: Optional[pulumi.Input[bool]] = None,
|
|
1251
1075
|
client_timeout: Optional[pulumi.Input[int]] = None,
|
|
1252
|
-
disable_console_login: Optional[pulumi.Input[str]] = None,
|
|
1253
1076
|
disable_query_context_cache: Optional[pulumi.Input[bool]] = None,
|
|
1254
1077
|
disable_telemetry: Optional[pulumi.Input[bool]] = None,
|
|
1255
|
-
driver_tracing: Optional[pulumi.Input[str]] = None,
|
|
1256
1078
|
external_browser_timeout: Optional[pulumi.Input[int]] = None,
|
|
1257
1079
|
host: Optional[pulumi.Input[str]] = None,
|
|
1258
|
-
include_retry_reason: Optional[pulumi.Input[str]] = None,
|
|
1259
1080
|
insecure_mode: Optional[pulumi.Input[bool]] = None,
|
|
1260
1081
|
jwt_client_timeout: Optional[pulumi.Input[int]] = None,
|
|
1261
1082
|
jwt_expire_timeout: Optional[pulumi.Input[int]] = None,
|
|
1262
1083
|
keep_session_alive: Optional[pulumi.Input[bool]] = None,
|
|
1263
1084
|
login_timeout: Optional[pulumi.Input[int]] = None,
|
|
1264
|
-
max_retry_count: Optional[pulumi.Input[int]] = None,
|
|
1265
1085
|
oauth_access_token: Optional[pulumi.Input[str]] = None,
|
|
1266
1086
|
oauth_client_id: Optional[pulumi.Input[str]] = None,
|
|
1267
1087
|
oauth_client_secret: Optional[pulumi.Input[str]] = None,
|
|
1268
1088
|
oauth_endpoint: Optional[pulumi.Input[str]] = None,
|
|
1269
1089
|
oauth_redirect_url: Optional[pulumi.Input[str]] = None,
|
|
1270
1090
|
oauth_refresh_token: Optional[pulumi.Input[str]] = None,
|
|
1271
|
-
ocsp_fail_open: Optional[pulumi.Input[
|
|
1091
|
+
ocsp_fail_open: Optional[pulumi.Input[bool]] = None,
|
|
1272
1092
|
okta_url: Optional[pulumi.Input[str]] = None,
|
|
1273
|
-
organization_name: Optional[pulumi.Input[str]] = None,
|
|
1274
1093
|
params: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1275
1094
|
passcode: Optional[pulumi.Input[str]] = None,
|
|
1276
1095
|
passcode_in_password: Optional[pulumi.Input[bool]] = None,
|
|
@@ -1285,12 +1104,11 @@ class Provider(pulumi.ProviderResource):
|
|
|
1285
1104
|
request_timeout: Optional[pulumi.Input[int]] = None,
|
|
1286
1105
|
role: Optional[pulumi.Input[str]] = None,
|
|
1287
1106
|
session_params: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1288
|
-
tmp_directory_path: Optional[pulumi.Input[str]] = None,
|
|
1289
1107
|
token: Optional[pulumi.Input[str]] = None,
|
|
1290
1108
|
token_accessor: Optional[pulumi.Input[Union['ProviderTokenAccessorArgs', 'ProviderTokenAccessorArgsDict']]] = None,
|
|
1291
1109
|
user: Optional[pulumi.Input[str]] = None,
|
|
1292
1110
|
username: Optional[pulumi.Input[str]] = None,
|
|
1293
|
-
validate_default_parameters: Optional[pulumi.Input[
|
|
1111
|
+
validate_default_parameters: Optional[pulumi.Input[bool]] = None,
|
|
1294
1112
|
warehouse: Optional[pulumi.Input[str]] = None,
|
|
1295
1113
|
__props__=None):
|
|
1296
1114
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -1304,30 +1122,25 @@ class Provider(pulumi.ProviderResource):
|
|
|
1304
1122
|
if account is None:
|
|
1305
1123
|
account = _utilities.get_env('SNOWFLAKE_ACCOUNT')
|
|
1306
1124
|
__props__.__dict__["account"] = account
|
|
1307
|
-
__props__.__dict__["account_name"] = account_name
|
|
1308
1125
|
__props__.__dict__["authenticator"] = authenticator
|
|
1309
1126
|
if browser_auth is None:
|
|
1310
1127
|
browser_auth = _utilities.get_env_bool('SNOWFLAKE_USE_BROWSER_AUTH')
|
|
1311
1128
|
__props__.__dict__["browser_auth"] = pulumi.Output.from_input(browser_auth).apply(pulumi.runtime.to_json) if browser_auth is not None else None
|
|
1312
1129
|
__props__.__dict__["client_ip"] = client_ip
|
|
1313
|
-
__props__.__dict__["client_request_mfa_token"] = client_request_mfa_token
|
|
1314
|
-
__props__.__dict__["client_store_temporary_credential"] = client_store_temporary_credential
|
|
1130
|
+
__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
|
|
1131
|
+
__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
|
|
1315
1132
|
__props__.__dict__["client_timeout"] = pulumi.Output.from_input(client_timeout).apply(pulumi.runtime.to_json) if client_timeout is not None else None
|
|
1316
|
-
__props__.__dict__["disable_console_login"] = disable_console_login
|
|
1317
1133
|
__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
|
|
1318
1134
|
__props__.__dict__["disable_telemetry"] = pulumi.Output.from_input(disable_telemetry).apply(pulumi.runtime.to_json) if disable_telemetry is not None else None
|
|
1319
|
-
__props__.__dict__["driver_tracing"] = driver_tracing
|
|
1320
1135
|
__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
|
|
1321
1136
|
if host is None:
|
|
1322
1137
|
host = _utilities.get_env('SNOWFLAKE_HOST')
|
|
1323
1138
|
__props__.__dict__["host"] = host
|
|
1324
|
-
__props__.__dict__["include_retry_reason"] = include_retry_reason
|
|
1325
1139
|
__props__.__dict__["insecure_mode"] = pulumi.Output.from_input(insecure_mode).apply(pulumi.runtime.to_json) if insecure_mode is not None else None
|
|
1326
1140
|
__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
|
|
1327
1141
|
__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
|
|
1328
1142
|
__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
|
|
1329
1143
|
__props__.__dict__["login_timeout"] = pulumi.Output.from_input(login_timeout).apply(pulumi.runtime.to_json) if login_timeout is not None else None
|
|
1330
|
-
__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
|
|
1331
1144
|
if oauth_access_token is None:
|
|
1332
1145
|
oauth_access_token = _utilities.get_env('SNOWFLAKE_OAUTH_ACCESS_TOKEN')
|
|
1333
1146
|
__props__.__dict__["oauth_access_token"] = None if oauth_access_token is None else pulumi.Output.secret(oauth_access_token)
|
|
@@ -1346,9 +1159,8 @@ class Provider(pulumi.ProviderResource):
|
|
|
1346
1159
|
if oauth_refresh_token is None:
|
|
1347
1160
|
oauth_refresh_token = _utilities.get_env('SNOWFLAKE_OAUTH_REFRESH_TOKEN')
|
|
1348
1161
|
__props__.__dict__["oauth_refresh_token"] = None if oauth_refresh_token is None else pulumi.Output.secret(oauth_refresh_token)
|
|
1349
|
-
__props__.__dict__["ocsp_fail_open"] = ocsp_fail_open
|
|
1162
|
+
__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
|
|
1350
1163
|
__props__.__dict__["okta_url"] = okta_url
|
|
1351
|
-
__props__.__dict__["organization_name"] = organization_name
|
|
1352
1164
|
__props__.__dict__["params"] = pulumi.Output.from_input(params).apply(pulumi.runtime.to_json) if params is not None else None
|
|
1353
1165
|
__props__.__dict__["passcode"] = passcode
|
|
1354
1166
|
__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
|
|
@@ -1377,14 +1189,13 @@ class Provider(pulumi.ProviderResource):
|
|
|
1377
1189
|
role = _utilities.get_env('SNOWFLAKE_ROLE')
|
|
1378
1190
|
__props__.__dict__["role"] = role
|
|
1379
1191
|
__props__.__dict__["session_params"] = pulumi.Output.from_input(session_params).apply(pulumi.runtime.to_json) if session_params is not None else None
|
|
1380
|
-
__props__.__dict__["tmp_directory_path"] = tmp_directory_path
|
|
1381
1192
|
__props__.__dict__["token"] = None if token is None else pulumi.Output.secret(token)
|
|
1382
1193
|
__props__.__dict__["token_accessor"] = pulumi.Output.from_input(token_accessor).apply(pulumi.runtime.to_json) if token_accessor is not None else None
|
|
1383
1194
|
__props__.__dict__["user"] = user
|
|
1384
1195
|
if username is None:
|
|
1385
1196
|
username = _utilities.get_env('SNOWFLAKE_USER')
|
|
1386
1197
|
__props__.__dict__["username"] = username
|
|
1387
|
-
__props__.__dict__["validate_default_parameters"] = validate_default_parameters
|
|
1198
|
+
__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
|
|
1388
1199
|
if warehouse is None:
|
|
1389
1200
|
warehouse = _utilities.get_env('SNOWFLAKE_WAREHOUSE')
|
|
1390
1201
|
__props__.__dict__["warehouse"] = warehouse
|
|
@@ -1398,36 +1209,22 @@ class Provider(pulumi.ProviderResource):
|
|
|
1398
1209
|
|
|
1399
1210
|
@property
|
|
1400
1211
|
@pulumi.getter
|
|
1401
|
-
@_utilities.deprecated("""Use `account_name` and `organization_name` instead of `account`""")
|
|
1402
1212
|
def account(self) -> pulumi.Output[Optional[str]]:
|
|
1403
1213
|
"""
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
is not supported. For information about account identifiers, see the [Snowflake
|
|
1408
|
-
documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Required unless using `profile`.
|
|
1409
|
-
Can also be sourced from the `SNOWFLAKE_ACCOUNT` environment variable.
|
|
1214
|
+
Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
|
|
1215
|
+
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Can also be sourced
|
|
1216
|
+
from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using `profile`.
|
|
1410
1217
|
"""
|
|
1411
1218
|
return pulumi.get(self, "account")
|
|
1412
1219
|
|
|
1413
|
-
@property
|
|
1414
|
-
@pulumi.getter(name="accountName")
|
|
1415
|
-
def account_name(self) -> pulumi.Output[Optional[str]]:
|
|
1416
|
-
"""
|
|
1417
|
-
Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
|
|
1418
|
-
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
|
|
1419
|
-
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
|
|
1420
|
-
"""
|
|
1421
|
-
return pulumi.get(self, "account_name")
|
|
1422
|
-
|
|
1423
1220
|
@property
|
|
1424
1221
|
@pulumi.getter
|
|
1425
1222
|
def authenticator(self) -> pulumi.Output[Optional[str]]:
|
|
1426
1223
|
"""
|
|
1427
1224
|
Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
|
|
1428
|
-
connecting to Snowflake. Valid
|
|
1429
|
-
|
|
1430
|
-
|
|
1225
|
+
connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
|
|
1226
|
+
UsernamePasswordMFA. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable. It has to be set
|
|
1227
|
+
explicitly to JWT for private key authentication.
|
|
1431
1228
|
"""
|
|
1432
1229
|
return pulumi.get(self, "authenticator")
|
|
1433
1230
|
|
|
@@ -1439,60 +1236,15 @@ class Provider(pulumi.ProviderResource):
|
|
|
1439
1236
|
"""
|
|
1440
1237
|
return pulumi.get(self, "client_ip")
|
|
1441
1238
|
|
|
1442
|
-
@property
|
|
1443
|
-
@pulumi.getter(name="clientRequestMfaToken")
|
|
1444
|
-
def client_request_mfa_token(self) -> pulumi.Output[Optional[str]]:
|
|
1445
|
-
"""
|
|
1446
|
-
When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
|
|
1447
|
-
be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
|
|
1448
|
-
"""
|
|
1449
|
-
return pulumi.get(self, "client_request_mfa_token")
|
|
1450
|
-
|
|
1451
|
-
@property
|
|
1452
|
-
@pulumi.getter(name="clientStoreTemporaryCredential")
|
|
1453
|
-
def client_store_temporary_credential(self) -> pulumi.Output[Optional[str]]:
|
|
1454
|
-
"""
|
|
1455
|
-
When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
|
|
1456
|
-
sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment variable.
|
|
1457
|
-
"""
|
|
1458
|
-
return pulumi.get(self, "client_store_temporary_credential")
|
|
1459
|
-
|
|
1460
|
-
@property
|
|
1461
|
-
@pulumi.getter(name="disableConsoleLogin")
|
|
1462
|
-
def disable_console_login(self) -> pulumi.Output[Optional[str]]:
|
|
1463
|
-
"""
|
|
1464
|
-
Indicates whether console login should be disabled in the driver. Can also be sourced from the
|
|
1465
|
-
`SNOWFLAKE_DISABLE_CONSOLE_LOGIN` environment variable.
|
|
1466
|
-
"""
|
|
1467
|
-
return pulumi.get(self, "disable_console_login")
|
|
1468
|
-
|
|
1469
|
-
@property
|
|
1470
|
-
@pulumi.getter(name="driverTracing")
|
|
1471
|
-
def driver_tracing(self) -> pulumi.Output[Optional[str]]:
|
|
1472
|
-
"""
|
|
1473
|
-
Specifies the logging level to be used by the driver. Valid options are: `trace` | `debug` | `info` | `print` |
|
|
1474
|
-
`warning` | `error` | `fatal` | `panic`. Can also be sourced from the `SNOWFLAKE_DRIVER_TRACING` environment variable.
|
|
1475
|
-
"""
|
|
1476
|
-
return pulumi.get(self, "driver_tracing")
|
|
1477
|
-
|
|
1478
1239
|
@property
|
|
1479
1240
|
@pulumi.getter
|
|
1480
1241
|
def host(self) -> pulumi.Output[Optional[str]]:
|
|
1481
1242
|
"""
|
|
1482
|
-
|
|
1483
|
-
`SNOWFLAKE_HOST` environment variable.
|
|
1243
|
+
Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
|
|
1244
|
+
the `SNOWFLAKE_HOST` environment variable.
|
|
1484
1245
|
"""
|
|
1485
1246
|
return pulumi.get(self, "host")
|
|
1486
1247
|
|
|
1487
|
-
@property
|
|
1488
|
-
@pulumi.getter(name="includeRetryReason")
|
|
1489
|
-
def include_retry_reason(self) -> pulumi.Output[Optional[str]]:
|
|
1490
|
-
"""
|
|
1491
|
-
Should retried request contain retry reason. Can also be sourced from the `SNOWFLAKE_INCLUDE_RETRY_REASON` environment
|
|
1492
|
-
variable.
|
|
1493
|
-
"""
|
|
1494
|
-
return pulumi.get(self, "include_retry_reason")
|
|
1495
|
-
|
|
1496
1248
|
@property
|
|
1497
1249
|
@pulumi.getter(name="oauthAccessToken")
|
|
1498
1250
|
@_utilities.deprecated("""Use `token` instead""")
|
|
@@ -1554,35 +1306,15 @@ class Provider(pulumi.ProviderResource):
|
|
|
1554
1306
|
"""
|
|
1555
1307
|
return pulumi.get(self, "oauth_refresh_token")
|
|
1556
1308
|
|
|
1557
|
-
@property
|
|
1558
|
-
@pulumi.getter(name="ocspFailOpen")
|
|
1559
|
-
def ocsp_fail_open(self) -> pulumi.Output[Optional[str]]:
|
|
1560
|
-
"""
|
|
1561
|
-
True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
|
|
1562
|
-
sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
|
|
1563
|
-
"""
|
|
1564
|
-
return pulumi.get(self, "ocsp_fail_open")
|
|
1565
|
-
|
|
1566
1309
|
@property
|
|
1567
1310
|
@pulumi.getter(name="oktaUrl")
|
|
1568
1311
|
def okta_url(self) -> pulumi.Output[Optional[str]]:
|
|
1569
1312
|
"""
|
|
1570
|
-
The URL of the Okta server. e.g. https://example.okta.com.
|
|
1571
|
-
|
|
1572
|
-
`SNOWFLAKE_OKTA_URL` environment variable.
|
|
1313
|
+
The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the `SNOWFLAKE_OKTA_URL` environment
|
|
1314
|
+
variable.
|
|
1573
1315
|
"""
|
|
1574
1316
|
return pulumi.get(self, "okta_url")
|
|
1575
1317
|
|
|
1576
|
-
@property
|
|
1577
|
-
@pulumi.getter(name="organizationName")
|
|
1578
|
-
def organization_name(self) -> pulumi.Output[Optional[str]]:
|
|
1579
|
-
"""
|
|
1580
|
-
Specifies your Snowflake organization name assigned by Snowflake. For information about account identifiers, see the
|
|
1581
|
-
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#organization-name). Required
|
|
1582
|
-
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ORGANIZATION_NAME` environment variable.
|
|
1583
|
-
"""
|
|
1584
|
-
return pulumi.get(self, "organization_name")
|
|
1585
|
-
|
|
1586
1318
|
@property
|
|
1587
1319
|
@pulumi.getter
|
|
1588
1320
|
def passcode(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -1596,7 +1328,7 @@ class Provider(pulumi.ProviderResource):
|
|
|
1596
1328
|
@pulumi.getter
|
|
1597
1329
|
def password(self) -> pulumi.Output[Optional[str]]:
|
|
1598
1330
|
"""
|
|
1599
|
-
Password for
|
|
1331
|
+
Password for username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can also be sourced from
|
|
1600
1332
|
the `SNOWFLAKE_PASSWORD` environment variable.
|
|
1601
1333
|
"""
|
|
1602
1334
|
return pulumi.get(self, "password")
|
|
@@ -1606,7 +1338,7 @@ class Provider(pulumi.ProviderResource):
|
|
|
1606
1338
|
def private_key(self) -> pulumi.Output[Optional[str]]:
|
|
1607
1339
|
"""
|
|
1608
1340
|
Private Key for username+private-key auth. Cannot be used with `browser_auth` or `password`. Can also be sourced from
|
|
1609
|
-
|
|
1341
|
+
`SNOWFLAKE_PRIVATE_KEY` environment variable.
|
|
1610
1342
|
"""
|
|
1611
1343
|
return pulumi.get(self, "private_key")
|
|
1612
1344
|
|
|
@@ -1615,7 +1347,7 @@ class Provider(pulumi.ProviderResource):
|
|
|
1615
1347
|
def private_key_passphrase(self) -> pulumi.Output[Optional[str]]:
|
|
1616
1348
|
"""
|
|
1617
1349
|
Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
|
|
1618
|
-
des-ede3-cbc. Can also be sourced from
|
|
1350
|
+
des-ede3-cbc. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
1619
1351
|
"""
|
|
1620
1352
|
return pulumi.get(self, "private_key_passphrase")
|
|
1621
1353
|
|
|
@@ -1642,8 +1374,7 @@ class Provider(pulumi.ProviderResource):
|
|
|
1642
1374
|
@pulumi.getter
|
|
1643
1375
|
def protocol(self) -> pulumi.Output[Optional[str]]:
|
|
1644
1376
|
"""
|
|
1645
|
-
|
|
1646
|
-
`SNOWFLAKE_PROTOCOL` environment variable.
|
|
1377
|
+
Either http or https, defaults to https. Can also be sourced from the `SNOWFLAKE_PROTOCOL` environment variable.
|
|
1647
1378
|
"""
|
|
1648
1379
|
return pulumi.get(self, "protocol")
|
|
1649
1380
|
|
|
@@ -1666,19 +1397,10 @@ class Provider(pulumi.ProviderResource):
|
|
|
1666
1397
|
def role(self) -> pulumi.Output[Optional[str]]:
|
|
1667
1398
|
"""
|
|
1668
1399
|
Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
|
|
1669
|
-
`SNOWFLAKE_ROLE` environment variable.
|
|
1400
|
+
`SNOWFLAKE_ROLE` environment variable. .
|
|
1670
1401
|
"""
|
|
1671
1402
|
return pulumi.get(self, "role")
|
|
1672
1403
|
|
|
1673
|
-
@property
|
|
1674
|
-
@pulumi.getter(name="tmpDirectoryPath")
|
|
1675
|
-
def tmp_directory_path(self) -> pulumi.Output[Optional[str]]:
|
|
1676
|
-
"""
|
|
1677
|
-
Sets temporary directory used by the driver for operations like encrypting, compressing etc. Can also be sourced from
|
|
1678
|
-
the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
|
|
1679
|
-
"""
|
|
1680
|
-
return pulumi.get(self, "tmp_directory_path")
|
|
1681
|
-
|
|
1682
1404
|
@property
|
|
1683
1405
|
@pulumi.getter
|
|
1684
1406
|
def token(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -1692,7 +1414,7 @@ class Provider(pulumi.ProviderResource):
|
|
|
1692
1414
|
@pulumi.getter
|
|
1693
1415
|
def user(self) -> pulumi.Output[Optional[str]]:
|
|
1694
1416
|
"""
|
|
1695
|
-
Username.
|
|
1417
|
+
Username. Can also be sourced from the `SNOWFLAKE_USER` environment variable. Required unless using `profile`.
|
|
1696
1418
|
"""
|
|
1697
1419
|
return pulumi.get(self, "user")
|
|
1698
1420
|
|
|
@@ -1701,20 +1423,11 @@ class Provider(pulumi.ProviderResource):
|
|
|
1701
1423
|
@_utilities.deprecated("""Use `user` instead of `username`""")
|
|
1702
1424
|
def username(self) -> pulumi.Output[Optional[str]]:
|
|
1703
1425
|
"""
|
|
1704
|
-
Username for
|
|
1705
|
-
|
|
1426
|
+
Username for username+password authentication. Can also be sourced from the `SNOWFLAKE_USERNAME` environment variable.
|
|
1427
|
+
Required unless using `profile`.
|
|
1706
1428
|
"""
|
|
1707
1429
|
return pulumi.get(self, "username")
|
|
1708
1430
|
|
|
1709
|
-
@property
|
|
1710
|
-
@pulumi.getter(name="validateDefaultParameters")
|
|
1711
|
-
def validate_default_parameters(self) -> pulumi.Output[Optional[str]]:
|
|
1712
|
-
"""
|
|
1713
|
-
True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
|
|
1714
|
-
connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
|
|
1715
|
-
"""
|
|
1716
|
-
return pulumi.get(self, "validate_default_parameters")
|
|
1717
|
-
|
|
1718
1431
|
@property
|
|
1719
1432
|
@pulumi.getter
|
|
1720
1433
|
def warehouse(self) -> pulumi.Output[Optional[str]]:
|