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
|
@@ -17,27 +17,17 @@ from . import outputs
|
|
|
17
17
|
|
|
18
18
|
account: Optional[str]
|
|
19
19
|
"""
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
is not supported. For information about account identifiers, see the [Snowflake
|
|
24
|
-
documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Required unless using `profile`.
|
|
25
|
-
Can also be sourced from the `SNOWFLAKE_ACCOUNT` environment variable.
|
|
26
|
-
"""
|
|
27
|
-
|
|
28
|
-
accountName: Optional[str]
|
|
29
|
-
"""
|
|
30
|
-
Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
|
|
31
|
-
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
|
|
32
|
-
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
|
|
20
|
+
Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
|
|
21
|
+
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Can also be sourced
|
|
22
|
+
from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using `profile`.
|
|
33
23
|
"""
|
|
34
24
|
|
|
35
25
|
authenticator: Optional[str]
|
|
36
26
|
"""
|
|
37
27
|
Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
|
|
38
|
-
connecting to Snowflake. Valid
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
|
|
29
|
+
UsernamePasswordMFA. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable. It has to be set
|
|
30
|
+
explicitly to JWT for private key authentication.
|
|
41
31
|
"""
|
|
42
32
|
|
|
43
33
|
browserAuth: Optional[bool]
|
|
@@ -50,13 +40,13 @@ clientIp: Optional[str]
|
|
|
50
40
|
IP address for network checks. Can also be sourced from the `SNOWFLAKE_CLIENT_IP` environment variable.
|
|
51
41
|
"""
|
|
52
42
|
|
|
53
|
-
clientRequestMfaToken: Optional[
|
|
43
|
+
clientRequestMfaToken: Optional[bool]
|
|
54
44
|
"""
|
|
55
45
|
When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
|
|
56
46
|
be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
|
|
57
47
|
"""
|
|
58
48
|
|
|
59
|
-
clientStoreTemporaryCredential: Optional[
|
|
49
|
+
clientStoreTemporaryCredential: Optional[bool]
|
|
60
50
|
"""
|
|
61
51
|
When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
|
|
62
52
|
sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment variable.
|
|
@@ -64,49 +54,31 @@ sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment varia
|
|
|
64
54
|
|
|
65
55
|
clientTimeout: Optional[int]
|
|
66
56
|
"""
|
|
67
|
-
The timeout in seconds for the client to complete the authentication. Can also be sourced from
|
|
68
|
-
`SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
|
|
69
|
-
"""
|
|
70
|
-
|
|
71
|
-
disableConsoleLogin: Optional[str]
|
|
72
|
-
"""
|
|
73
|
-
Indicates whether console login should be disabled in the driver. Can also be sourced from the
|
|
74
|
-
`SNOWFLAKE_DISABLE_CONSOLE_LOGIN` environment variable.
|
|
57
|
+
The timeout in seconds for the client to complete the authentication. Default is 900 seconds. Can also be sourced from
|
|
58
|
+
the `SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
|
|
75
59
|
"""
|
|
76
60
|
|
|
77
61
|
disableQueryContextCache: Optional[bool]
|
|
78
62
|
"""
|
|
79
|
-
|
|
63
|
+
Should HTAP query context cache be disabled. Can also be sourced from the `SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE`
|
|
80
64
|
environment variable.
|
|
81
65
|
"""
|
|
82
66
|
|
|
83
67
|
disableTelemetry: Optional[bool]
|
|
84
68
|
"""
|
|
85
|
-
|
|
86
|
-
"""
|
|
87
|
-
|
|
88
|
-
driverTracing: Optional[str]
|
|
89
|
-
"""
|
|
90
|
-
Specifies the logging level to be used by the driver. Valid options are: `trace` | `debug` | `info` | `print` |
|
|
91
|
-
`warning` | `error` | `fatal` | `panic`. Can also be sourced from the `SNOWFLAKE_DRIVER_TRACING` environment variable.
|
|
69
|
+
Indicates whether to disable telemetry. Can also be sourced from the `SNOWFLAKE_DISABLE_TELEMETRY` environment variable.
|
|
92
70
|
"""
|
|
93
71
|
|
|
94
72
|
externalBrowserTimeout: Optional[int]
|
|
95
73
|
"""
|
|
96
|
-
The timeout in seconds for the external browser to complete the authentication. Can also be
|
|
97
|
-
`SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
|
|
74
|
+
The timeout in seconds for the external browser to complete the authentication. Default is 120 seconds. Can also be
|
|
75
|
+
sourced from the `SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
|
|
98
76
|
"""
|
|
99
77
|
|
|
100
78
|
host: Optional[str]
|
|
101
79
|
"""
|
|
102
|
-
|
|
103
|
-
`SNOWFLAKE_HOST` environment variable.
|
|
104
|
-
"""
|
|
105
|
-
|
|
106
|
-
includeRetryReason: Optional[str]
|
|
107
|
-
"""
|
|
108
|
-
Should retried request contain retry reason. Can also be sourced from the `SNOWFLAKE_INCLUDE_RETRY_REASON` environment
|
|
109
|
-
variable.
|
|
80
|
+
Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
|
|
81
|
+
the `SNOWFLAKE_HOST` environment variable.
|
|
110
82
|
"""
|
|
111
83
|
|
|
112
84
|
insecureMode: Optional[bool]
|
|
@@ -118,8 +90,8 @@ environment variable.
|
|
|
118
90
|
|
|
119
91
|
jwtClientTimeout: Optional[int]
|
|
120
92
|
"""
|
|
121
|
-
The timeout in seconds for the JWT client to complete the authentication. Can also be sourced
|
|
122
|
-
`SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
|
|
93
|
+
The timeout in seconds for the JWT client to complete the authentication. Default is 10 seconds. Can also be sourced
|
|
94
|
+
from the `SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
|
|
123
95
|
"""
|
|
124
96
|
|
|
125
97
|
jwtExpireTimeout: Optional[int]
|
|
@@ -135,16 +107,10 @@ Enables the session to persist even after the connection is closed. Can also be
|
|
|
135
107
|
|
|
136
108
|
loginTimeout: Optional[int]
|
|
137
109
|
"""
|
|
138
|
-
Login retry timeout
|
|
110
|
+
Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
139
111
|
`SNOWFLAKE_LOGIN_TIMEOUT` environment variable.
|
|
140
112
|
"""
|
|
141
113
|
|
|
142
|
-
maxRetryCount: Optional[int]
|
|
143
|
-
"""
|
|
144
|
-
Specifies how many times non-periodic HTTP request can be retried by the driver. Can also be sourced from the
|
|
145
|
-
`SNOWFLAKE_MAX_RETRY_COUNT` environment variable.
|
|
146
|
-
"""
|
|
147
|
-
|
|
148
114
|
oauthAccessToken: Optional[str]
|
|
149
115
|
"""
|
|
150
116
|
Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browser_auth`,
|
|
@@ -182,7 +148,7 @@ Token for use with OAuth. Setup and generation of the token is left to other too
|
|
|
182
148
|
environment variable.
|
|
183
149
|
"""
|
|
184
150
|
|
|
185
|
-
ocspFailOpen: Optional[
|
|
151
|
+
ocspFailOpen: Optional[bool]
|
|
186
152
|
"""
|
|
187
153
|
True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
|
|
188
154
|
sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
|
|
@@ -190,22 +156,13 @@ sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
|
|
|
190
156
|
|
|
191
157
|
oktaUrl: Optional[str]
|
|
192
158
|
"""
|
|
193
|
-
The URL of the Okta server. e.g. https://example.okta.com.
|
|
194
|
-
|
|
195
|
-
`SNOWFLAKE_OKTA_URL` environment variable.
|
|
196
|
-
"""
|
|
197
|
-
|
|
198
|
-
organizationName: Optional[str]
|
|
199
|
-
"""
|
|
200
|
-
Specifies your Snowflake organization name assigned by Snowflake. For information about account identifiers, see the
|
|
201
|
-
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#organization-name). Required
|
|
202
|
-
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ORGANIZATION_NAME` environment variable.
|
|
159
|
+
The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the `SNOWFLAKE_OKTA_URL` environment
|
|
160
|
+
variable.
|
|
203
161
|
"""
|
|
204
162
|
|
|
205
163
|
params: Optional[str]
|
|
206
164
|
"""
|
|
207
|
-
Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
|
|
208
|
-
This field can not be set with environmental variables.
|
|
165
|
+
Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
|
|
209
166
|
"""
|
|
210
167
|
|
|
211
168
|
passcode: Optional[str]
|
|
@@ -216,32 +173,32 @@ the `SNOWFLAKE_PASSCODE` environment variable.
|
|
|
216
173
|
|
|
217
174
|
passcodeInPassword: Optional[bool]
|
|
218
175
|
"""
|
|
219
|
-
False by default. Set to true if the MFA passcode is embedded
|
|
220
|
-
`SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
176
|
+
False by default. Set to true if the MFA passcode is embedded in the login password. Appends the MFA passcode to the end
|
|
177
|
+
of the password. Can also be sourced from the `SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
221
178
|
"""
|
|
222
179
|
|
|
223
180
|
password: Optional[str]
|
|
224
181
|
"""
|
|
225
|
-
Password for
|
|
182
|
+
Password for username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can also be sourced from
|
|
226
183
|
the `SNOWFLAKE_PASSWORD` environment variable.
|
|
227
184
|
"""
|
|
228
185
|
|
|
229
186
|
port: Optional[int]
|
|
230
187
|
"""
|
|
231
|
-
|
|
188
|
+
Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
|
|
232
189
|
`SNOWFLAKE_PORT` environment variable.
|
|
233
190
|
"""
|
|
234
191
|
|
|
235
192
|
privateKey: Optional[str]
|
|
236
193
|
"""
|
|
237
194
|
Private Key for username+private-key auth. Cannot be used with `browser_auth` or `password`. Can also be sourced from
|
|
238
|
-
|
|
195
|
+
`SNOWFLAKE_PRIVATE_KEY` environment variable.
|
|
239
196
|
"""
|
|
240
197
|
|
|
241
198
|
privateKeyPassphrase: Optional[str]
|
|
242
199
|
"""
|
|
243
200
|
Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
|
|
244
|
-
des-ede3-cbc. Can also be sourced from
|
|
201
|
+
des-ede3-cbc. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
245
202
|
"""
|
|
246
203
|
|
|
247
204
|
privateKeyPath: Optional[str]
|
|
@@ -258,8 +215,7 @@ variable.
|
|
|
258
215
|
|
|
259
216
|
protocol: Optional[str]
|
|
260
217
|
"""
|
|
261
|
-
|
|
262
|
-
`SNOWFLAKE_PROTOCOL` environment variable.
|
|
218
|
+
Either http or https, defaults to https. Can also be sourced from the `SNOWFLAKE_PROTOCOL` environment variable.
|
|
263
219
|
"""
|
|
264
220
|
|
|
265
221
|
region: Optional[str]
|
|
@@ -274,14 +230,14 @@ in the form of `<cloud_region_id>.<cloud>`. Can also be sourced from the `SNOWFL
|
|
|
274
230
|
|
|
275
231
|
requestTimeout: Optional[int]
|
|
276
232
|
"""
|
|
277
|
-
request retry timeout
|
|
233
|
+
request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
278
234
|
`SNOWFLAKE_REQUEST_TIMEOUT` environment variable.
|
|
279
235
|
"""
|
|
280
236
|
|
|
281
237
|
role: Optional[str]
|
|
282
238
|
"""
|
|
283
239
|
Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
|
|
284
|
-
`SNOWFLAKE_ROLE` environment variable.
|
|
240
|
+
`SNOWFLAKE_ROLE` environment variable. .
|
|
285
241
|
"""
|
|
286
242
|
|
|
287
243
|
sessionParams: Optional[str]
|
|
@@ -289,12 +245,6 @@ sessionParams: Optional[str]
|
|
|
289
245
|
Sets session parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
|
|
290
246
|
"""
|
|
291
247
|
|
|
292
|
-
tmpDirectoryPath: Optional[str]
|
|
293
|
-
"""
|
|
294
|
-
Sets temporary directory used by the driver for operations like encrypting, compressing etc. Can also be sourced from
|
|
295
|
-
the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
|
|
296
|
-
"""
|
|
297
|
-
|
|
298
248
|
token: Optional[str]
|
|
299
249
|
"""
|
|
300
250
|
Token to use for OAuth and other forms of token based auth. Can also be sourced from the `SNOWFLAKE_TOKEN` environment
|
|
@@ -305,16 +255,16 @@ tokenAccessor: Optional[str]
|
|
|
305
255
|
|
|
306
256
|
user: Optional[str]
|
|
307
257
|
"""
|
|
308
|
-
Username.
|
|
258
|
+
Username. Can also be sourced from the `SNOWFLAKE_USER` environment variable. Required unless using `profile`.
|
|
309
259
|
"""
|
|
310
260
|
|
|
311
261
|
username: Optional[str]
|
|
312
262
|
"""
|
|
313
|
-
Username for
|
|
314
|
-
|
|
263
|
+
Username for username+password authentication. Can also be sourced from the `SNOWFLAKE_USERNAME` environment variable.
|
|
264
|
+
Required unless using `profile`.
|
|
315
265
|
"""
|
|
316
266
|
|
|
317
|
-
validateDefaultParameters: Optional[
|
|
267
|
+
validateDefaultParameters: Optional[bool]
|
|
318
268
|
"""
|
|
319
269
|
True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
|
|
320
270
|
connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
|
pulumi_snowflake/config/vars.py
CHANGED
|
@@ -24,31 +24,19 @@ class _ExportableConfig(types.ModuleType):
|
|
|
24
24
|
@property
|
|
25
25
|
def account(self) -> Optional[str]:
|
|
26
26
|
"""
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
is not supported. For information about account identifiers, see the [Snowflake
|
|
31
|
-
documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Required unless using `profile`.
|
|
32
|
-
Can also be sourced from the `SNOWFLAKE_ACCOUNT` environment variable.
|
|
27
|
+
Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
|
|
28
|
+
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html). Can also be sourced
|
|
29
|
+
from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using `profile`.
|
|
33
30
|
"""
|
|
34
31
|
return __config__.get('account') or _utilities.get_env('SNOWFLAKE_ACCOUNT')
|
|
35
32
|
|
|
36
|
-
@property
|
|
37
|
-
def account_name(self) -> Optional[str]:
|
|
38
|
-
"""
|
|
39
|
-
Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
|
|
40
|
-
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
|
|
41
|
-
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
|
|
42
|
-
"""
|
|
43
|
-
return __config__.get('accountName')
|
|
44
|
-
|
|
45
33
|
@property
|
|
46
34
|
def authenticator(self) -> Optional[str]:
|
|
47
35
|
"""
|
|
48
36
|
Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
|
|
49
|
-
connecting to Snowflake. Valid
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
|
|
38
|
+
UsernamePasswordMFA. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable. It has to be set
|
|
39
|
+
explicitly to JWT for private key authentication.
|
|
52
40
|
"""
|
|
53
41
|
return __config__.get('authenticator')
|
|
54
42
|
|
|
@@ -67,41 +55,33 @@ class _ExportableConfig(types.ModuleType):
|
|
|
67
55
|
return __config__.get('clientIp')
|
|
68
56
|
|
|
69
57
|
@property
|
|
70
|
-
def client_request_mfa_token(self) -> Optional[
|
|
58
|
+
def client_request_mfa_token(self) -> Optional[bool]:
|
|
71
59
|
"""
|
|
72
60
|
When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
|
|
73
61
|
be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
|
|
74
62
|
"""
|
|
75
|
-
return __config__.
|
|
63
|
+
return __config__.get_bool('clientRequestMfaToken')
|
|
76
64
|
|
|
77
65
|
@property
|
|
78
|
-
def client_store_temporary_credential(self) -> Optional[
|
|
66
|
+
def client_store_temporary_credential(self) -> Optional[bool]:
|
|
79
67
|
"""
|
|
80
68
|
When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
|
|
81
69
|
sourced from the `SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL` environment variable.
|
|
82
70
|
"""
|
|
83
|
-
return __config__.
|
|
71
|
+
return __config__.get_bool('clientStoreTemporaryCredential')
|
|
84
72
|
|
|
85
73
|
@property
|
|
86
74
|
def client_timeout(self) -> Optional[int]:
|
|
87
75
|
"""
|
|
88
|
-
The timeout in seconds for the client to complete the authentication. Can also be sourced from
|
|
89
|
-
`SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
|
|
76
|
+
The timeout in seconds for the client to complete the authentication. Default is 900 seconds. Can also be sourced from
|
|
77
|
+
the `SNOWFLAKE_CLIENT_TIMEOUT` environment variable.
|
|
90
78
|
"""
|
|
91
79
|
return __config__.get_int('clientTimeout')
|
|
92
80
|
|
|
93
|
-
@property
|
|
94
|
-
def disable_console_login(self) -> Optional[str]:
|
|
95
|
-
"""
|
|
96
|
-
Indicates whether console login should be disabled in the driver. Can also be sourced from the
|
|
97
|
-
`SNOWFLAKE_DISABLE_CONSOLE_LOGIN` environment variable.
|
|
98
|
-
"""
|
|
99
|
-
return __config__.get('disableConsoleLogin')
|
|
100
|
-
|
|
101
81
|
@property
|
|
102
82
|
def disable_query_context_cache(self) -> Optional[bool]:
|
|
103
83
|
"""
|
|
104
|
-
|
|
84
|
+
Should HTAP query context cache be disabled. Can also be sourced from the `SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE`
|
|
105
85
|
environment variable.
|
|
106
86
|
"""
|
|
107
87
|
return __config__.get_bool('disableQueryContextCache')
|
|
@@ -109,42 +89,26 @@ class _ExportableConfig(types.ModuleType):
|
|
|
109
89
|
@property
|
|
110
90
|
def disable_telemetry(self) -> Optional[bool]:
|
|
111
91
|
"""
|
|
112
|
-
|
|
92
|
+
Indicates whether to disable telemetry. Can also be sourced from the `SNOWFLAKE_DISABLE_TELEMETRY` environment variable.
|
|
113
93
|
"""
|
|
114
94
|
return __config__.get_bool('disableTelemetry')
|
|
115
95
|
|
|
116
|
-
@property
|
|
117
|
-
def driver_tracing(self) -> Optional[str]:
|
|
118
|
-
"""
|
|
119
|
-
Specifies the logging level to be used by the driver. Valid options are: `trace` | `debug` | `info` | `print` |
|
|
120
|
-
`warning` | `error` | `fatal` | `panic`. Can also be sourced from the `SNOWFLAKE_DRIVER_TRACING` environment variable.
|
|
121
|
-
"""
|
|
122
|
-
return __config__.get('driverTracing')
|
|
123
|
-
|
|
124
96
|
@property
|
|
125
97
|
def external_browser_timeout(self) -> Optional[int]:
|
|
126
98
|
"""
|
|
127
|
-
The timeout in seconds for the external browser to complete the authentication. Can also be
|
|
128
|
-
`SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
|
|
99
|
+
The timeout in seconds for the external browser to complete the authentication. Default is 120 seconds. Can also be
|
|
100
|
+
sourced from the `SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT` environment variable.
|
|
129
101
|
"""
|
|
130
102
|
return __config__.get_int('externalBrowserTimeout')
|
|
131
103
|
|
|
132
104
|
@property
|
|
133
105
|
def host(self) -> Optional[str]:
|
|
134
106
|
"""
|
|
135
|
-
|
|
136
|
-
`SNOWFLAKE_HOST` environment variable.
|
|
107
|
+
Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
|
|
108
|
+
the `SNOWFLAKE_HOST` environment variable.
|
|
137
109
|
"""
|
|
138
110
|
return __config__.get('host') or _utilities.get_env('SNOWFLAKE_HOST')
|
|
139
111
|
|
|
140
|
-
@property
|
|
141
|
-
def include_retry_reason(self) -> Optional[str]:
|
|
142
|
-
"""
|
|
143
|
-
Should retried request contain retry reason. Can also be sourced from the `SNOWFLAKE_INCLUDE_RETRY_REASON` environment
|
|
144
|
-
variable.
|
|
145
|
-
"""
|
|
146
|
-
return __config__.get('includeRetryReason')
|
|
147
|
-
|
|
148
112
|
@property
|
|
149
113
|
def insecure_mode(self) -> Optional[bool]:
|
|
150
114
|
"""
|
|
@@ -157,8 +121,8 @@ class _ExportableConfig(types.ModuleType):
|
|
|
157
121
|
@property
|
|
158
122
|
def jwt_client_timeout(self) -> Optional[int]:
|
|
159
123
|
"""
|
|
160
|
-
The timeout in seconds for the JWT client to complete the authentication. Can also be sourced
|
|
161
|
-
`SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
|
|
124
|
+
The timeout in seconds for the JWT client to complete the authentication. Default is 10 seconds. Can also be sourced
|
|
125
|
+
from the `SNOWFLAKE_JWT_CLIENT_TIMEOUT` environment variable.
|
|
162
126
|
"""
|
|
163
127
|
return __config__.get_int('jwtClientTimeout')
|
|
164
128
|
|
|
@@ -180,19 +144,11 @@ class _ExportableConfig(types.ModuleType):
|
|
|
180
144
|
@property
|
|
181
145
|
def login_timeout(self) -> Optional[int]:
|
|
182
146
|
"""
|
|
183
|
-
Login retry timeout
|
|
147
|
+
Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
184
148
|
`SNOWFLAKE_LOGIN_TIMEOUT` environment variable.
|
|
185
149
|
"""
|
|
186
150
|
return __config__.get_int('loginTimeout')
|
|
187
151
|
|
|
188
|
-
@property
|
|
189
|
-
def max_retry_count(self) -> Optional[int]:
|
|
190
|
-
"""
|
|
191
|
-
Specifies how many times non-periodic HTTP request can be retried by the driver. Can also be sourced from the
|
|
192
|
-
`SNOWFLAKE_MAX_RETRY_COUNT` environment variable.
|
|
193
|
-
"""
|
|
194
|
-
return __config__.get_int('maxRetryCount')
|
|
195
|
-
|
|
196
152
|
@property
|
|
197
153
|
def oauth_access_token(self) -> Optional[str]:
|
|
198
154
|
"""
|
|
@@ -243,36 +199,25 @@ class _ExportableConfig(types.ModuleType):
|
|
|
243
199
|
return __config__.get('oauthRefreshToken') or _utilities.get_env('SNOWFLAKE_OAUTH_REFRESH_TOKEN')
|
|
244
200
|
|
|
245
201
|
@property
|
|
246
|
-
def ocsp_fail_open(self) -> Optional[
|
|
202
|
+
def ocsp_fail_open(self) -> Optional[bool]:
|
|
247
203
|
"""
|
|
248
204
|
True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
|
|
249
205
|
sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
|
|
250
206
|
"""
|
|
251
|
-
return __config__.
|
|
207
|
+
return __config__.get_bool('ocspFailOpen')
|
|
252
208
|
|
|
253
209
|
@property
|
|
254
210
|
def okta_url(self) -> Optional[str]:
|
|
255
211
|
"""
|
|
256
|
-
The URL of the Okta server. e.g. https://example.okta.com.
|
|
257
|
-
|
|
258
|
-
`SNOWFLAKE_OKTA_URL` environment variable.
|
|
212
|
+
The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the `SNOWFLAKE_OKTA_URL` environment
|
|
213
|
+
variable.
|
|
259
214
|
"""
|
|
260
215
|
return __config__.get('oktaUrl')
|
|
261
216
|
|
|
262
|
-
@property
|
|
263
|
-
def organization_name(self) -> Optional[str]:
|
|
264
|
-
"""
|
|
265
|
-
Specifies your Snowflake organization name assigned by Snowflake. For information about account identifiers, see the
|
|
266
|
-
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#organization-name). Required
|
|
267
|
-
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ORGANIZATION_NAME` environment variable.
|
|
268
|
-
"""
|
|
269
|
-
return __config__.get('organizationName')
|
|
270
|
-
|
|
271
217
|
@property
|
|
272
218
|
def params(self) -> Optional[str]:
|
|
273
219
|
"""
|
|
274
|
-
Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
|
|
275
|
-
This field can not be set with environmental variables.
|
|
220
|
+
Sets other connection (i.e. session) parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
|
|
276
221
|
"""
|
|
277
222
|
return __config__.get('params')
|
|
278
223
|
|
|
@@ -287,15 +232,15 @@ class _ExportableConfig(types.ModuleType):
|
|
|
287
232
|
@property
|
|
288
233
|
def passcode_in_password(self) -> Optional[bool]:
|
|
289
234
|
"""
|
|
290
|
-
False by default. Set to true if the MFA passcode is embedded
|
|
291
|
-
`SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
235
|
+
False by default. Set to true if the MFA passcode is embedded in the login password. Appends the MFA passcode to the end
|
|
236
|
+
of the password. Can also be sourced from the `SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
292
237
|
"""
|
|
293
238
|
return __config__.get_bool('passcodeInPassword')
|
|
294
239
|
|
|
295
240
|
@property
|
|
296
241
|
def password(self) -> Optional[str]:
|
|
297
242
|
"""
|
|
298
|
-
Password for
|
|
243
|
+
Password for username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can also be sourced from
|
|
299
244
|
the `SNOWFLAKE_PASSWORD` environment variable.
|
|
300
245
|
"""
|
|
301
246
|
return __config__.get('password') or _utilities.get_env('SNOWFLAKE_PASSWORD')
|
|
@@ -303,7 +248,7 @@ class _ExportableConfig(types.ModuleType):
|
|
|
303
248
|
@property
|
|
304
249
|
def port(self) -> Optional[int]:
|
|
305
250
|
"""
|
|
306
|
-
|
|
251
|
+
Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
|
|
307
252
|
`SNOWFLAKE_PORT` environment variable.
|
|
308
253
|
"""
|
|
309
254
|
return __config__.get_int('port') or _utilities.get_env_int('SNOWFLAKE_PORT')
|
|
@@ -312,7 +257,7 @@ class _ExportableConfig(types.ModuleType):
|
|
|
312
257
|
def private_key(self) -> Optional[str]:
|
|
313
258
|
"""
|
|
314
259
|
Private Key for username+private-key auth. Cannot be used with `browser_auth` or `password`. Can also be sourced from
|
|
315
|
-
|
|
260
|
+
`SNOWFLAKE_PRIVATE_KEY` environment variable.
|
|
316
261
|
"""
|
|
317
262
|
return __config__.get('privateKey')
|
|
318
263
|
|
|
@@ -320,7 +265,7 @@ class _ExportableConfig(types.ModuleType):
|
|
|
320
265
|
def private_key_passphrase(self) -> Optional[str]:
|
|
321
266
|
"""
|
|
322
267
|
Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
|
|
323
|
-
des-ede3-cbc. Can also be sourced from
|
|
268
|
+
des-ede3-cbc. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
324
269
|
"""
|
|
325
270
|
return __config__.get('privateKeyPassphrase') or _utilities.get_env('SNOWFLAKE_PRIVATE_KEY_PASSPHRASE')
|
|
326
271
|
|
|
@@ -343,8 +288,7 @@ class _ExportableConfig(types.ModuleType):
|
|
|
343
288
|
@property
|
|
344
289
|
def protocol(self) -> Optional[str]:
|
|
345
290
|
"""
|
|
346
|
-
|
|
347
|
-
`SNOWFLAKE_PROTOCOL` environment variable.
|
|
291
|
+
Either http or https, defaults to https. Can also be sourced from the `SNOWFLAKE_PROTOCOL` environment variable.
|
|
348
292
|
"""
|
|
349
293
|
return __config__.get('protocol') or _utilities.get_env('SNOWFLAKE_PROTOCOL')
|
|
350
294
|
|
|
@@ -363,7 +307,7 @@ class _ExportableConfig(types.ModuleType):
|
|
|
363
307
|
@property
|
|
364
308
|
def request_timeout(self) -> Optional[int]:
|
|
365
309
|
"""
|
|
366
|
-
request retry timeout
|
|
310
|
+
request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
367
311
|
`SNOWFLAKE_REQUEST_TIMEOUT` environment variable.
|
|
368
312
|
"""
|
|
369
313
|
return __config__.get_int('requestTimeout')
|
|
@@ -372,7 +316,7 @@ class _ExportableConfig(types.ModuleType):
|
|
|
372
316
|
def role(self) -> Optional[str]:
|
|
373
317
|
"""
|
|
374
318
|
Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
|
|
375
|
-
`SNOWFLAKE_ROLE` environment variable.
|
|
319
|
+
`SNOWFLAKE_ROLE` environment variable. .
|
|
376
320
|
"""
|
|
377
321
|
return __config__.get('role') or _utilities.get_env('SNOWFLAKE_ROLE')
|
|
378
322
|
|
|
@@ -383,14 +327,6 @@ class _ExportableConfig(types.ModuleType):
|
|
|
383
327
|
"""
|
|
384
328
|
return __config__.get('sessionParams')
|
|
385
329
|
|
|
386
|
-
@property
|
|
387
|
-
def tmp_directory_path(self) -> Optional[str]:
|
|
388
|
-
"""
|
|
389
|
-
Sets temporary directory used by the driver for operations like encrypting, compressing etc. Can also be sourced from
|
|
390
|
-
the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
|
|
391
|
-
"""
|
|
392
|
-
return __config__.get('tmpDirectoryPath')
|
|
393
|
-
|
|
394
330
|
@property
|
|
395
331
|
def token(self) -> Optional[str]:
|
|
396
332
|
"""
|
|
@@ -406,25 +342,25 @@ class _ExportableConfig(types.ModuleType):
|
|
|
406
342
|
@property
|
|
407
343
|
def user(self) -> Optional[str]:
|
|
408
344
|
"""
|
|
409
|
-
Username.
|
|
345
|
+
Username. Can also be sourced from the `SNOWFLAKE_USER` environment variable. Required unless using `profile`.
|
|
410
346
|
"""
|
|
411
347
|
return __config__.get('user')
|
|
412
348
|
|
|
413
349
|
@property
|
|
414
350
|
def username(self) -> Optional[str]:
|
|
415
351
|
"""
|
|
416
|
-
Username for
|
|
417
|
-
|
|
352
|
+
Username for username+password authentication. Can also be sourced from the `SNOWFLAKE_USERNAME` environment variable.
|
|
353
|
+
Required unless using `profile`.
|
|
418
354
|
"""
|
|
419
355
|
return __config__.get('username') or _utilities.get_env('SNOWFLAKE_USER')
|
|
420
356
|
|
|
421
357
|
@property
|
|
422
|
-
def validate_default_parameters(self) -> Optional[
|
|
358
|
+
def validate_default_parameters(self) -> Optional[bool]:
|
|
423
359
|
"""
|
|
424
360
|
True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
|
|
425
361
|
connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
|
|
426
362
|
"""
|
|
427
|
-
return __config__.
|
|
363
|
+
return __config__.get_bool('validateDefaultParameters')
|
|
428
364
|
|
|
429
365
|
@property
|
|
430
366
|
def warehouse(self) -> Optional[str]:
|
pulumi_snowflake/get_grants.py
CHANGED
|
@@ -130,8 +130,6 @@ def get_grants(future_grants_in: Optional[Union['GetGrantsFutureGrantsInArgs', '
|
|
|
130
130
|
grants_to: Optional[Union['GetGrantsGrantsToArgs', 'GetGrantsGrantsToArgsDict']] = None,
|
|
131
131
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetGrantsResult:
|
|
132
132
|
"""
|
|
133
|
-
!> **V1 release candidate** This datasource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the migration guide.
|
|
134
|
-
|
|
135
133
|
## Example Usage
|
|
136
134
|
|
|
137
135
|
```python
|
|
@@ -251,8 +249,6 @@ def get_grants_output(future_grants_in: Optional[pulumi.Input[Optional[Union['Ge
|
|
|
251
249
|
grants_to: Optional[pulumi.Input[Optional[Union['GetGrantsGrantsToArgs', 'GetGrantsGrantsToArgsDict']]]] = None,
|
|
252
250
|
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetGrantsResult]:
|
|
253
251
|
"""
|
|
254
|
-
!> **V1 release candidate** This datasource was reworked and is a release candidate for the V1. We do not expect significant changes in it before the V1. We will welcome any feedback and adjust the resource if needed. Any errors reported will be resolved with a higher priority. We encourage checking this resource out before the V1 release. To migrate from older grant resources please follow the migration guide.
|
|
255
|
-
|
|
256
252
|
## Example Usage
|
|
257
253
|
|
|
258
254
|
```python
|