pulumi-snowflake 0.63.0a1734416430__py3-none-any.whl → 1.0.0__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 +82 -74
- pulumi_snowflake/_inputs.py +12705 -4876
- pulumi_snowflake/account.py +156 -163
- pulumi_snowflake/account_parameter.py +16 -16
- pulumi_snowflake/account_role.py +9 -9
- pulumi_snowflake/api_authentication_integration_with_authorization_code_grant.py +9 -22
- pulumi_snowflake/api_authentication_integration_with_client_credentials.py +9 -22
- pulumi_snowflake/api_authentication_integration_with_jwt_bearer.py +9 -22
- pulumi_snowflake/authentication_policy.py +21 -21
- pulumi_snowflake/config/__init__.pyi +8 -86
- pulumi_snowflake/config/vars.py +10 -110
- pulumi_snowflake/database.py +9 -9
- pulumi_snowflake/database_role.py +14 -14
- pulumi_snowflake/{unsafe_execute.py → execute.py} +35 -25
- pulumi_snowflake/external_oauth_integration.py +27 -27
- pulumi_snowflake/external_volume.py +11 -7
- pulumi_snowflake/function_java.py +1211 -0
- pulumi_snowflake/function_javascript.py +882 -0
- pulumi_snowflake/function_python.py +1212 -0
- pulumi_snowflake/function_scala.py +1212 -0
- pulumi_snowflake/function_sql.py +835 -0
- pulumi_snowflake/get_account_roles.py +129 -0
- pulumi_snowflake/get_accounts.py +41 -19
- pulumi_snowflake/get_alerts.py +4 -0
- pulumi_snowflake/get_connections.py +2 -40
- pulumi_snowflake/get_cortex_search_services.py +4 -0
- pulumi_snowflake/get_current_account.py +4 -0
- pulumi_snowflake/get_current_role.py +2 -2
- pulumi_snowflake/get_database.py +4 -0
- pulumi_snowflake/get_database_role.py +4 -0
- pulumi_snowflake/get_database_roles.py +2 -6
- pulumi_snowflake/get_databases.py +2 -6
- pulumi_snowflake/get_dynamic_tables.py +4 -2
- pulumi_snowflake/get_external_functions.py +4 -0
- pulumi_snowflake/get_external_tables.py +4 -0
- pulumi_snowflake/get_failover_groups.py +4 -2
- pulumi_snowflake/get_file_formats.py +4 -0
- pulumi_snowflake/get_functions.py +4 -0
- pulumi_snowflake/get_grants.py +0 -4
- pulumi_snowflake/get_masking_policies.py +2 -6
- pulumi_snowflake/get_materialized_views.py +4 -0
- pulumi_snowflake/get_network_policies.py +2 -6
- pulumi_snowflake/get_parameters.py +4 -0
- pulumi_snowflake/get_pipes.py +4 -0
- pulumi_snowflake/get_procedures.py +4 -0
- pulumi_snowflake/get_resource_monitors.py +2 -6
- pulumi_snowflake/get_row_access_policies.py +2 -6
- pulumi_snowflake/get_schemas.py +6 -4
- pulumi_snowflake/get_secrets.py +2 -6
- pulumi_snowflake/get_security_integrations.py +2 -6
- pulumi_snowflake/get_sequences.py +4 -0
- pulumi_snowflake/get_shares.py +4 -0
- pulumi_snowflake/get_stages.py +4 -0
- pulumi_snowflake/get_storage_integrations.py +4 -0
- pulumi_snowflake/get_streamlits.py +2 -6
- pulumi_snowflake/get_streams.py +2 -6
- pulumi_snowflake/get_system_generate_scim_access_token.py +4 -0
- pulumi_snowflake/get_system_get_private_link_config.py +4 -0
- pulumi_snowflake/get_system_get_snowflake_platform_info.py +2 -2
- pulumi_snowflake/get_tables.py +4 -0
- pulumi_snowflake/get_tags.py +2 -6
- pulumi_snowflake/get_tasks.py +0 -4
- pulumi_snowflake/get_users.py +2 -6
- pulumi_snowflake/get_views.py +2 -6
- pulumi_snowflake/get_warehouses.py +2 -6
- pulumi_snowflake/grant_account_role.py +21 -21
- pulumi_snowflake/grant_application_role.py +7 -7
- pulumi_snowflake/grant_database_role.py +28 -28
- pulumi_snowflake/grant_ownership.py +14 -14
- pulumi_snowflake/grant_privileges_to_account_role.py +14 -14
- pulumi_snowflake/grant_privileges_to_database_role.py +14 -14
- pulumi_snowflake/grant_privileges_to_share.py +42 -42
- pulumi_snowflake/legacy_service_user.py +21 -21
- pulumi_snowflake/masking_policy.py +21 -21
- pulumi_snowflake/network_policy.py +23 -23
- pulumi_snowflake/oauth_integration_for_custom_clients.py +73 -46
- pulumi_snowflake/oauth_integration_for_partner_applications.py +57 -30
- pulumi_snowflake/outputs.py +10029 -4056
- pulumi_snowflake/password_policy.py +12 -2
- pulumi_snowflake/primary_connection.py +16 -16
- pulumi_snowflake/procedure_java.py +1273 -0
- pulumi_snowflake/procedure_javascript.py +895 -0
- pulumi_snowflake/procedure_python.py +1226 -0
- pulumi_snowflake/procedure_scala.py +1273 -0
- pulumi_snowflake/procedure_sql.py +895 -0
- pulumi_snowflake/provider.py +40 -527
- pulumi_snowflake/pulumi-plugin.json +1 -1
- pulumi_snowflake/resource_monitor.py +16 -20
- pulumi_snowflake/row_access_policy.py +21 -21
- pulumi_snowflake/saml2_integration.py +9 -9
- pulumi_snowflake/schema.py +14 -18
- pulumi_snowflake/scim_integration.py +16 -16
- pulumi_snowflake/secondary_connection.py +16 -16
- pulumi_snowflake/secondary_database.py +16 -16
- pulumi_snowflake/secret_with_authorization_code_grant.py +28 -28
- pulumi_snowflake/secret_with_basic_authentication.py +21 -21
- pulumi_snowflake/secret_with_client_credentials.py +28 -28
- pulumi_snowflake/secret_with_generic_string.py +21 -21
- pulumi_snowflake/service_user.py +21 -21
- pulumi_snowflake/shared_database.py +16 -16
- pulumi_snowflake/stream_on_directory_table.py +28 -41
- pulumi_snowflake/stream_on_external_table.py +28 -41
- pulumi_snowflake/stream_on_table.py +28 -41
- pulumi_snowflake/stream_on_view.py +28 -41
- pulumi_snowflake/streamlit.py +42 -46
- pulumi_snowflake/tag.py +28 -28
- pulumi_snowflake/tag_association.py +28 -86
- pulumi_snowflake/task.py +58 -62
- pulumi_snowflake/user.py +21 -21
- pulumi_snowflake/view.py +28 -41
- pulumi_snowflake/warehouse.py +16 -16
- {pulumi_snowflake-0.63.0a1734416430.dist-info → pulumi_snowflake-1.0.0.dist-info}/METADATA +1 -1
- pulumi_snowflake-1.0.0.dist-info/RECORD +148 -0
- pulumi_snowflake/database_old.py +0 -489
- pulumi_snowflake/function.py +0 -901
- pulumi_snowflake/get_role.py +0 -126
- pulumi_snowflake/get_roles.py +0 -133
- pulumi_snowflake/oauth_integration.py +0 -610
- pulumi_snowflake/procedure.py +0 -910
- pulumi_snowflake/role.py +0 -250
- pulumi_snowflake/saml_integration.py +0 -916
- pulumi_snowflake/session_parameter.py +0 -301
- pulumi_snowflake/stream.py +0 -643
- pulumi_snowflake/tag_masking_policy_association.py +0 -211
- pulumi_snowflake-0.63.0a1734416430.dist-info/RECORD +0 -148
- {pulumi_snowflake-0.63.0a1734416430.dist-info → pulumi_snowflake-1.0.0.dist-info}/WHEEL +0 -0
- {pulumi_snowflake-0.63.0a1734416430.dist-info → pulumi_snowflake-1.0.0.dist-info}/top_level.txt +0 -0
pulumi_snowflake/provider.py
CHANGED
|
@@ -20,10 +20,8 @@ __all__ = ['ProviderArgs', 'Provider']
|
|
|
20
20
|
@pulumi.input_type
|
|
21
21
|
class ProviderArgs:
|
|
22
22
|
def __init__(__self__, *,
|
|
23
|
-
account: Optional[pulumi.Input[str]] = None,
|
|
24
23
|
account_name: Optional[pulumi.Input[str]] = None,
|
|
25
24
|
authenticator: Optional[pulumi.Input[str]] = None,
|
|
26
|
-
browser_auth: Optional[pulumi.Input[bool]] = None,
|
|
27
25
|
client_ip: Optional[pulumi.Input[str]] = None,
|
|
28
26
|
client_request_mfa_token: Optional[pulumi.Input[str]] = None,
|
|
29
27
|
client_store_temporary_credential: Optional[pulumi.Input[str]] = None,
|
|
@@ -41,12 +39,6 @@ class ProviderArgs:
|
|
|
41
39
|
keep_session_alive: Optional[pulumi.Input[bool]] = None,
|
|
42
40
|
login_timeout: Optional[pulumi.Input[int]] = None,
|
|
43
41
|
max_retry_count: Optional[pulumi.Input[int]] = None,
|
|
44
|
-
oauth_access_token: Optional[pulumi.Input[str]] = None,
|
|
45
|
-
oauth_client_id: Optional[pulumi.Input[str]] = None,
|
|
46
|
-
oauth_client_secret: Optional[pulumi.Input[str]] = None,
|
|
47
|
-
oauth_endpoint: Optional[pulumi.Input[str]] = None,
|
|
48
|
-
oauth_redirect_url: Optional[pulumi.Input[str]] = None,
|
|
49
|
-
oauth_refresh_token: Optional[pulumi.Input[str]] = None,
|
|
50
42
|
ocsp_fail_open: Optional[pulumi.Input[str]] = None,
|
|
51
43
|
okta_url: Optional[pulumi.Input[str]] = None,
|
|
52
44
|
organization_name: Optional[pulumi.Input[str]] = None,
|
|
@@ -55,38 +47,27 @@ class ProviderArgs:
|
|
|
55
47
|
passcode_in_password: Optional[pulumi.Input[bool]] = None,
|
|
56
48
|
password: Optional[pulumi.Input[str]] = None,
|
|
57
49
|
port: Optional[pulumi.Input[int]] = None,
|
|
50
|
+
preview_features_enableds: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
58
51
|
private_key: Optional[pulumi.Input[str]] = None,
|
|
59
52
|
private_key_passphrase: Optional[pulumi.Input[str]] = None,
|
|
60
|
-
private_key_path: Optional[pulumi.Input[str]] = None,
|
|
61
53
|
profile: Optional[pulumi.Input[str]] = None,
|
|
62
54
|
protocol: Optional[pulumi.Input[str]] = None,
|
|
63
|
-
region: Optional[pulumi.Input[str]] = None,
|
|
64
55
|
request_timeout: Optional[pulumi.Input[int]] = None,
|
|
65
56
|
role: Optional[pulumi.Input[str]] = None,
|
|
66
|
-
session_params: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
67
57
|
tmp_directory_path: Optional[pulumi.Input[str]] = None,
|
|
68
58
|
token: Optional[pulumi.Input[str]] = None,
|
|
69
59
|
token_accessor: Optional[pulumi.Input['ProviderTokenAccessorArgs']] = None,
|
|
70
60
|
user: Optional[pulumi.Input[str]] = None,
|
|
71
|
-
username: Optional[pulumi.Input[str]] = None,
|
|
72
61
|
validate_default_parameters: Optional[pulumi.Input[str]] = None,
|
|
73
62
|
warehouse: Optional[pulumi.Input[str]] = None):
|
|
74
63
|
"""
|
|
75
64
|
The set of arguments for constructing a Provider resource.
|
|
76
|
-
:param pulumi.Input[str] account: Use `account_name` and `organization_name` instead. Specifies your Snowflake account identifier assigned, by Snowflake.
|
|
77
|
-
The [account
|
|
78
|
-
locator](https://docs.snowflake.com/en/user-guide/admin-account-identifier#format-2-account-locator-in-a-region) format
|
|
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
65
|
:param pulumi.Input[str] account_name: Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
|
|
83
66
|
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
|
|
84
67
|
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
|
|
85
68
|
: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 options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `
|
|
87
|
-
|
|
88
|
-
sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
|
|
89
|
-
:param pulumi.Input[bool] browser_auth: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_USE_BROWSER_AUTH` environment variable.
|
|
69
|
+
connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `SNOWFLAKE_JWT` |
|
|
70
|
+
`TOKENACCESSOR` | `USERNAMEPASSWORDMFA`. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
|
|
90
71
|
:param pulumi.Input[str] client_ip: IP address for network checks. Can also be sourced from the `SNOWFLAKE_CLIENT_IP` environment variable.
|
|
91
72
|
:param pulumi.Input[str] client_request_mfa_token: When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
|
|
92
73
|
be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
|
|
@@ -119,19 +100,6 @@ class ProviderArgs:
|
|
|
119
100
|
`SNOWFLAKE_LOGIN_TIMEOUT` environment variable.
|
|
120
101
|
:param pulumi.Input[int] max_retry_count: Specifies how many times non-periodic HTTP request can be retried by the driver. Can also be sourced from the
|
|
121
102
|
`SNOWFLAKE_MAX_RETRY_COUNT` environment variable.
|
|
122
|
-
: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
|
-
`private_key_path`, `oauth_refresh_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN`
|
|
124
|
-
environment variable.
|
|
125
|
-
:param pulumi.Input[str] oauth_client_id: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.
|
|
126
|
-
:param pulumi.Input[str] oauth_client_secret: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment
|
|
127
|
-
variable.
|
|
128
|
-
:param pulumi.Input[str] oauth_endpoint: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.
|
|
129
|
-
:param pulumi.Input[str] oauth_redirect_url: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment
|
|
130
|
-
variable.
|
|
131
|
-
:param pulumi.Input[str] oauth_refresh_token: Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
|
|
132
|
-
`oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`,
|
|
133
|
-
`private_key_path`, `oauth_access_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN`
|
|
134
|
-
environment variable.
|
|
135
103
|
:param pulumi.Input[str] ocsp_fail_open: True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
|
|
136
104
|
sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
|
|
137
105
|
:param pulumi.Input[str] okta_url: The URL of the Okta server. e.g. https://example.okta.com. Okta URL host needs to to have a suffix `okta.com`. Read more
|
|
@@ -146,61 +114,36 @@ class ProviderArgs:
|
|
|
146
114
|
the `SNOWFLAKE_PASSCODE` environment variable.
|
|
147
115
|
:param pulumi.Input[bool] passcode_in_password: False by default. Set to true if the MFA passcode is embedded to the configured password. Can also be sourced from the
|
|
148
116
|
`SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
149
|
-
:param pulumi.Input[str] password: Password for user + password auth. Cannot be used with `
|
|
150
|
-
the `SNOWFLAKE_PASSWORD` environment variable.
|
|
117
|
+
:param pulumi.Input[str] password: Password for user + password auth. Cannot be used with `private_key` and `private_key_passphrase`. Can also be sourced
|
|
118
|
+
from the `SNOWFLAKE_PASSWORD` environment variable.
|
|
151
119
|
:param pulumi.Input[int] port: Specifies a custom port value used by the driver for privatelink connections. Can also be sourced from the
|
|
152
120
|
`SNOWFLAKE_PORT` environment variable.
|
|
153
|
-
:param pulumi.Input[str] private_key: Private Key for username+private-key auth. Cannot be used with `
|
|
154
|
-
|
|
121
|
+
:param pulumi.Input[str] private_key: Private Key for username+private-key auth. Cannot be used with `password`. Can also be sourced from the
|
|
122
|
+
`SNOWFLAKE_PRIVATE_KEY` environment variable.
|
|
155
123
|
:param pulumi.Input[str] private_key_passphrase: Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
|
|
156
124
|
des-ede3-cbc. Can also be sourced from the `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
157
|
-
: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
|
-
`password`. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
|
|
159
125
|
:param pulumi.Input[str] profile: Sets the profile to read from ~/.snowflake/config file. Can also be sourced from the `SNOWFLAKE_PROFILE` environment
|
|
160
126
|
variable.
|
|
161
127
|
:param pulumi.Input[str] protocol: A protocol used in the connection. Valid options are: `http` | `https`. Can also be sourced from the
|
|
162
128
|
`SNOWFLAKE_PROTOCOL` environment variable.
|
|
163
|
-
: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
|
-
to specify the region as part of the account parameter. For details, see the description of the account parameter.
|
|
165
|
-
[Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy
|
|
166
|
-
format for the `account`
|
|
167
|
-
identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region)
|
|
168
|
-
in the form of `<cloud_region_id>.<cloud>`. Can also be sourced from the `SNOWFLAKE_REGION` environment variable.
|
|
169
129
|
:param pulumi.Input[int] request_timeout: request retry timeout in seconds EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
170
130
|
`SNOWFLAKE_REQUEST_TIMEOUT` environment variable.
|
|
171
131
|
:param pulumi.Input[str] role: Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
|
|
172
132
|
`SNOWFLAKE_ROLE` environment variable.
|
|
173
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] session_params: Sets session parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
|
|
174
133
|
:param pulumi.Input[str] tmp_directory_path: Sets temporary directory used by the driver for operations like encrypting, compressing etc. Can also be sourced from
|
|
175
134
|
the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
|
|
176
135
|
:param pulumi.Input[str] token: Token to use for OAuth and other forms of token based auth. Can also be sourced from the `SNOWFLAKE_TOKEN` environment
|
|
177
136
|
variable.
|
|
178
137
|
:param pulumi.Input[str] user: Username. Required unless using `profile`. Can also be sourced from the `SNOWFLAKE_USER` environment variable.
|
|
179
|
-
:param pulumi.Input[str] username: Username for user + password authentication. Required unless using `profile`. Can also be sourced from the
|
|
180
|
-
`SNOWFLAKE_USERNAME` environment variable.
|
|
181
138
|
:param pulumi.Input[str] validate_default_parameters: True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
|
|
182
139
|
connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
|
|
183
140
|
:param pulumi.Input[str] warehouse: Specifies the virtual warehouse to use by default for queries, loading, etc. in the client session. Can also be sourced
|
|
184
141
|
from the `SNOWFLAKE_WAREHOUSE` environment variable.
|
|
185
142
|
"""
|
|
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
|
-
if account is None:
|
|
190
|
-
account = _utilities.get_env('SNOWFLAKE_ACCOUNT')
|
|
191
|
-
if account is not None:
|
|
192
|
-
pulumi.set(__self__, "account", account)
|
|
193
143
|
if account_name is not None:
|
|
194
144
|
pulumi.set(__self__, "account_name", account_name)
|
|
195
145
|
if authenticator is not None:
|
|
196
146
|
pulumi.set(__self__, "authenticator", authenticator)
|
|
197
|
-
if browser_auth is not None:
|
|
198
|
-
warnings.warn("""Use `authenticator` instead""", DeprecationWarning)
|
|
199
|
-
pulumi.log.warn("""browser_auth is deprecated: Use `authenticator` instead""")
|
|
200
|
-
if browser_auth is None:
|
|
201
|
-
browser_auth = _utilities.get_env_bool('SNOWFLAKE_USE_BROWSER_AUTH')
|
|
202
|
-
if browser_auth is not None:
|
|
203
|
-
pulumi.set(__self__, "browser_auth", browser_auth)
|
|
204
147
|
if client_ip is not None:
|
|
205
148
|
pulumi.set(__self__, "client_ip", client_ip)
|
|
206
149
|
if client_request_mfa_token is not None:
|
|
@@ -237,48 +180,6 @@ class ProviderArgs:
|
|
|
237
180
|
pulumi.set(__self__, "login_timeout", login_timeout)
|
|
238
181
|
if max_retry_count is not None:
|
|
239
182
|
pulumi.set(__self__, "max_retry_count", max_retry_count)
|
|
240
|
-
if oauth_access_token is not None:
|
|
241
|
-
warnings.warn("""Use `token` instead""", DeprecationWarning)
|
|
242
|
-
pulumi.log.warn("""oauth_access_token is deprecated: Use `token` instead""")
|
|
243
|
-
if oauth_access_token is None:
|
|
244
|
-
oauth_access_token = _utilities.get_env('SNOWFLAKE_OAUTH_ACCESS_TOKEN')
|
|
245
|
-
if oauth_access_token is not None:
|
|
246
|
-
pulumi.set(__self__, "oauth_access_token", oauth_access_token)
|
|
247
|
-
if oauth_client_id is not None:
|
|
248
|
-
warnings.warn("""Use `token_accessor.0.client_id` instead""", DeprecationWarning)
|
|
249
|
-
pulumi.log.warn("""oauth_client_id is deprecated: Use `token_accessor.0.client_id` instead""")
|
|
250
|
-
if oauth_client_id is None:
|
|
251
|
-
oauth_client_id = _utilities.get_env('SNOWFLAKE_OAUTH_CLIENT_ID')
|
|
252
|
-
if oauth_client_id is not None:
|
|
253
|
-
pulumi.set(__self__, "oauth_client_id", oauth_client_id)
|
|
254
|
-
if oauth_client_secret is not None:
|
|
255
|
-
warnings.warn("""Use `token_accessor.0.client_secret` instead""", DeprecationWarning)
|
|
256
|
-
pulumi.log.warn("""oauth_client_secret is deprecated: Use `token_accessor.0.client_secret` instead""")
|
|
257
|
-
if oauth_client_secret is None:
|
|
258
|
-
oauth_client_secret = _utilities.get_env('SNOWFLAKE_OAUTH_CLIENT_SECRET')
|
|
259
|
-
if oauth_client_secret is not None:
|
|
260
|
-
pulumi.set(__self__, "oauth_client_secret", oauth_client_secret)
|
|
261
|
-
if oauth_endpoint is not None:
|
|
262
|
-
warnings.warn("""Use `token_accessor.0.token_endpoint` instead""", DeprecationWarning)
|
|
263
|
-
pulumi.log.warn("""oauth_endpoint is deprecated: Use `token_accessor.0.token_endpoint` instead""")
|
|
264
|
-
if oauth_endpoint is None:
|
|
265
|
-
oauth_endpoint = _utilities.get_env('SNOWFLAKE_OAUTH_ENDPOINT')
|
|
266
|
-
if oauth_endpoint is not None:
|
|
267
|
-
pulumi.set(__self__, "oauth_endpoint", oauth_endpoint)
|
|
268
|
-
if oauth_redirect_url is not None:
|
|
269
|
-
warnings.warn("""Use `token_accessor.0.redirect_uri` instead""", DeprecationWarning)
|
|
270
|
-
pulumi.log.warn("""oauth_redirect_url is deprecated: Use `token_accessor.0.redirect_uri` instead""")
|
|
271
|
-
if oauth_redirect_url is None:
|
|
272
|
-
oauth_redirect_url = _utilities.get_env('SNOWFLAKE_OAUTH_REDIRECT_URL')
|
|
273
|
-
if oauth_redirect_url is not None:
|
|
274
|
-
pulumi.set(__self__, "oauth_redirect_url", oauth_redirect_url)
|
|
275
|
-
if oauth_refresh_token is not None:
|
|
276
|
-
warnings.warn("""Use `token_accessor.0.refresh_token` instead""", DeprecationWarning)
|
|
277
|
-
pulumi.log.warn("""oauth_refresh_token is deprecated: Use `token_accessor.0.refresh_token` instead""")
|
|
278
|
-
if oauth_refresh_token is None:
|
|
279
|
-
oauth_refresh_token = _utilities.get_env('SNOWFLAKE_OAUTH_REFRESH_TOKEN')
|
|
280
|
-
if oauth_refresh_token is not None:
|
|
281
|
-
pulumi.set(__self__, "oauth_refresh_token", oauth_refresh_token)
|
|
282
183
|
if ocsp_fail_open is not None:
|
|
283
184
|
pulumi.set(__self__, "ocsp_fail_open", ocsp_fail_open)
|
|
284
185
|
if okta_url is not None:
|
|
@@ -299,43 +200,26 @@ class ProviderArgs:
|
|
|
299
200
|
port = _utilities.get_env_int('SNOWFLAKE_PORT')
|
|
300
201
|
if port is not None:
|
|
301
202
|
pulumi.set(__self__, "port", port)
|
|
203
|
+
if preview_features_enableds is not None:
|
|
204
|
+
pulumi.set(__self__, "preview_features_enableds", preview_features_enableds)
|
|
302
205
|
if private_key is not None:
|
|
303
206
|
pulumi.set(__self__, "private_key", private_key)
|
|
304
207
|
if private_key_passphrase is None:
|
|
305
208
|
private_key_passphrase = _utilities.get_env('SNOWFLAKE_PRIVATE_KEY_PASSPHRASE')
|
|
306
209
|
if private_key_passphrase is not None:
|
|
307
210
|
pulumi.set(__self__, "private_key_passphrase", private_key_passphrase)
|
|
308
|
-
if private_key_path is not None:
|
|
309
|
-
warnings.warn("""use the [file Function](https://developer.hashicorp.com/terraform/language/functions/file) instead""", DeprecationWarning)
|
|
310
|
-
pulumi.log.warn("""private_key_path is deprecated: use the [file Function](https://developer.hashicorp.com/terraform/language/functions/file) instead""")
|
|
311
|
-
if private_key_path is None:
|
|
312
|
-
private_key_path = _utilities.get_env('SNOWFLAKE_PRIVATE_KEY_PATH')
|
|
313
|
-
if private_key_path is not None:
|
|
314
|
-
pulumi.set(__self__, "private_key_path", private_key_path)
|
|
315
211
|
if profile is not None:
|
|
316
212
|
pulumi.set(__self__, "profile", profile)
|
|
317
213
|
if protocol is None:
|
|
318
214
|
protocol = _utilities.get_env('SNOWFLAKE_PROTOCOL')
|
|
319
215
|
if protocol is not None:
|
|
320
216
|
pulumi.set(__self__, "protocol", protocol)
|
|
321
|
-
if region is not None:
|
|
322
|
-
warnings.warn("""Specify the region as part of the account parameter""", DeprecationWarning)
|
|
323
|
-
pulumi.log.warn("""region is deprecated: Specify the region as part of the account parameter""")
|
|
324
|
-
if region is None:
|
|
325
|
-
region = _utilities.get_env('SNOWFLAKE_REGION')
|
|
326
|
-
if region is not None:
|
|
327
|
-
pulumi.set(__self__, "region", region)
|
|
328
217
|
if request_timeout is not None:
|
|
329
218
|
pulumi.set(__self__, "request_timeout", request_timeout)
|
|
330
219
|
if role is None:
|
|
331
220
|
role = _utilities.get_env('SNOWFLAKE_ROLE')
|
|
332
221
|
if role is not None:
|
|
333
222
|
pulumi.set(__self__, "role", role)
|
|
334
|
-
if session_params is not None:
|
|
335
|
-
warnings.warn("""Use `params` instead""", DeprecationWarning)
|
|
336
|
-
pulumi.log.warn("""session_params is deprecated: Use `params` instead""")
|
|
337
|
-
if session_params is not None:
|
|
338
|
-
pulumi.set(__self__, "session_params", session_params)
|
|
339
223
|
if tmp_directory_path is not None:
|
|
340
224
|
pulumi.set(__self__, "tmp_directory_path", tmp_directory_path)
|
|
341
225
|
if token is not None:
|
|
@@ -344,13 +228,6 @@ class ProviderArgs:
|
|
|
344
228
|
pulumi.set(__self__, "token_accessor", token_accessor)
|
|
345
229
|
if user is not None:
|
|
346
230
|
pulumi.set(__self__, "user", user)
|
|
347
|
-
if username is not None:
|
|
348
|
-
warnings.warn("""Use `user` instead of `username`""", DeprecationWarning)
|
|
349
|
-
pulumi.log.warn("""username is deprecated: Use `user` instead of `username`""")
|
|
350
|
-
if username is None:
|
|
351
|
-
username = _utilities.get_env('SNOWFLAKE_USER')
|
|
352
|
-
if username is not None:
|
|
353
|
-
pulumi.set(__self__, "username", username)
|
|
354
231
|
if validate_default_parameters is not None:
|
|
355
232
|
pulumi.set(__self__, "validate_default_parameters", validate_default_parameters)
|
|
356
233
|
if warehouse is None:
|
|
@@ -358,24 +235,6 @@ class ProviderArgs:
|
|
|
358
235
|
if warehouse is not None:
|
|
359
236
|
pulumi.set(__self__, "warehouse", warehouse)
|
|
360
237
|
|
|
361
|
-
@property
|
|
362
|
-
@pulumi.getter
|
|
363
|
-
@_utilities.deprecated("""Use `account_name` and `organization_name` instead of `account`""")
|
|
364
|
-
def account(self) -> Optional[pulumi.Input[str]]:
|
|
365
|
-
"""
|
|
366
|
-
Use `account_name` and `organization_name` instead. Specifies your Snowflake account identifier assigned, by Snowflake.
|
|
367
|
-
The [account
|
|
368
|
-
locator](https://docs.snowflake.com/en/user-guide/admin-account-identifier#format-2-account-locator-in-a-region) format
|
|
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.
|
|
372
|
-
"""
|
|
373
|
-
return pulumi.get(self, "account")
|
|
374
|
-
|
|
375
|
-
@account.setter
|
|
376
|
-
def account(self, value: Optional[pulumi.Input[str]]):
|
|
377
|
-
pulumi.set(self, "account", value)
|
|
378
|
-
|
|
379
238
|
@property
|
|
380
239
|
@pulumi.getter(name="accountName")
|
|
381
240
|
def account_name(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -395,9 +254,8 @@ class ProviderArgs:
|
|
|
395
254
|
def authenticator(self) -> Optional[pulumi.Input[str]]:
|
|
396
255
|
"""
|
|
397
256
|
Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
|
|
398
|
-
connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `
|
|
399
|
-
|
|
400
|
-
sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
|
|
257
|
+
connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `SNOWFLAKE_JWT` |
|
|
258
|
+
`TOKENACCESSOR` | `USERNAMEPASSWORDMFA`. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
|
|
401
259
|
"""
|
|
402
260
|
return pulumi.get(self, "authenticator")
|
|
403
261
|
|
|
@@ -405,19 +263,6 @@ class ProviderArgs:
|
|
|
405
263
|
def authenticator(self, value: Optional[pulumi.Input[str]]):
|
|
406
264
|
pulumi.set(self, "authenticator", value)
|
|
407
265
|
|
|
408
|
-
@property
|
|
409
|
-
@pulumi.getter(name="browserAuth")
|
|
410
|
-
@_utilities.deprecated("""Use `authenticator` instead""")
|
|
411
|
-
def browser_auth(self) -> Optional[pulumi.Input[bool]]:
|
|
412
|
-
"""
|
|
413
|
-
Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_USE_BROWSER_AUTH` environment variable.
|
|
414
|
-
"""
|
|
415
|
-
return pulumi.get(self, "browser_auth")
|
|
416
|
-
|
|
417
|
-
@browser_auth.setter
|
|
418
|
-
def browser_auth(self, value: Optional[pulumi.Input[bool]]):
|
|
419
|
-
pulumi.set(self, "browser_auth", value)
|
|
420
|
-
|
|
421
266
|
@property
|
|
422
267
|
@pulumi.getter(name="clientIp")
|
|
423
268
|
def client_ip(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -637,91 +482,6 @@ class ProviderArgs:
|
|
|
637
482
|
def max_retry_count(self, value: Optional[pulumi.Input[int]]):
|
|
638
483
|
pulumi.set(self, "max_retry_count", value)
|
|
639
484
|
|
|
640
|
-
@property
|
|
641
|
-
@pulumi.getter(name="oauthAccessToken")
|
|
642
|
-
@_utilities.deprecated("""Use `token` instead""")
|
|
643
|
-
def oauth_access_token(self) -> Optional[pulumi.Input[str]]:
|
|
644
|
-
"""
|
|
645
|
-
Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browser_auth`,
|
|
646
|
-
`private_key_path`, `oauth_refresh_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN`
|
|
647
|
-
environment variable.
|
|
648
|
-
"""
|
|
649
|
-
return pulumi.get(self, "oauth_access_token")
|
|
650
|
-
|
|
651
|
-
@oauth_access_token.setter
|
|
652
|
-
def oauth_access_token(self, value: Optional[pulumi.Input[str]]):
|
|
653
|
-
pulumi.set(self, "oauth_access_token", value)
|
|
654
|
-
|
|
655
|
-
@property
|
|
656
|
-
@pulumi.getter(name="oauthClientId")
|
|
657
|
-
@_utilities.deprecated("""Use `token_accessor.0.client_id` instead""")
|
|
658
|
-
def oauth_client_id(self) -> Optional[pulumi.Input[str]]:
|
|
659
|
-
"""
|
|
660
|
-
Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.
|
|
661
|
-
"""
|
|
662
|
-
return pulumi.get(self, "oauth_client_id")
|
|
663
|
-
|
|
664
|
-
@oauth_client_id.setter
|
|
665
|
-
def oauth_client_id(self, value: Optional[pulumi.Input[str]]):
|
|
666
|
-
pulumi.set(self, "oauth_client_id", value)
|
|
667
|
-
|
|
668
|
-
@property
|
|
669
|
-
@pulumi.getter(name="oauthClientSecret")
|
|
670
|
-
@_utilities.deprecated("""Use `token_accessor.0.client_secret` instead""")
|
|
671
|
-
def oauth_client_secret(self) -> Optional[pulumi.Input[str]]:
|
|
672
|
-
"""
|
|
673
|
-
Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment
|
|
674
|
-
variable.
|
|
675
|
-
"""
|
|
676
|
-
return pulumi.get(self, "oauth_client_secret")
|
|
677
|
-
|
|
678
|
-
@oauth_client_secret.setter
|
|
679
|
-
def oauth_client_secret(self, value: Optional[pulumi.Input[str]]):
|
|
680
|
-
pulumi.set(self, "oauth_client_secret", value)
|
|
681
|
-
|
|
682
|
-
@property
|
|
683
|
-
@pulumi.getter(name="oauthEndpoint")
|
|
684
|
-
@_utilities.deprecated("""Use `token_accessor.0.token_endpoint` instead""")
|
|
685
|
-
def oauth_endpoint(self) -> Optional[pulumi.Input[str]]:
|
|
686
|
-
"""
|
|
687
|
-
Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.
|
|
688
|
-
"""
|
|
689
|
-
return pulumi.get(self, "oauth_endpoint")
|
|
690
|
-
|
|
691
|
-
@oauth_endpoint.setter
|
|
692
|
-
def oauth_endpoint(self, value: Optional[pulumi.Input[str]]):
|
|
693
|
-
pulumi.set(self, "oauth_endpoint", value)
|
|
694
|
-
|
|
695
|
-
@property
|
|
696
|
-
@pulumi.getter(name="oauthRedirectUrl")
|
|
697
|
-
@_utilities.deprecated("""Use `token_accessor.0.redirect_uri` instead""")
|
|
698
|
-
def oauth_redirect_url(self) -> Optional[pulumi.Input[str]]:
|
|
699
|
-
"""
|
|
700
|
-
Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment
|
|
701
|
-
variable.
|
|
702
|
-
"""
|
|
703
|
-
return pulumi.get(self, "oauth_redirect_url")
|
|
704
|
-
|
|
705
|
-
@oauth_redirect_url.setter
|
|
706
|
-
def oauth_redirect_url(self, value: Optional[pulumi.Input[str]]):
|
|
707
|
-
pulumi.set(self, "oauth_redirect_url", value)
|
|
708
|
-
|
|
709
|
-
@property
|
|
710
|
-
@pulumi.getter(name="oauthRefreshToken")
|
|
711
|
-
@_utilities.deprecated("""Use `token_accessor.0.refresh_token` instead""")
|
|
712
|
-
def oauth_refresh_token(self) -> Optional[pulumi.Input[str]]:
|
|
713
|
-
"""
|
|
714
|
-
Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
|
|
715
|
-
`oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`,
|
|
716
|
-
`private_key_path`, `oauth_access_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN`
|
|
717
|
-
environment variable.
|
|
718
|
-
"""
|
|
719
|
-
return pulumi.get(self, "oauth_refresh_token")
|
|
720
|
-
|
|
721
|
-
@oauth_refresh_token.setter
|
|
722
|
-
def oauth_refresh_token(self, value: Optional[pulumi.Input[str]]):
|
|
723
|
-
pulumi.set(self, "oauth_refresh_token", value)
|
|
724
|
-
|
|
725
485
|
@property
|
|
726
486
|
@pulumi.getter(name="ocspFailOpen")
|
|
727
487
|
def ocsp_fail_open(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -806,8 +566,8 @@ class ProviderArgs:
|
|
|
806
566
|
@pulumi.getter
|
|
807
567
|
def password(self) -> Optional[pulumi.Input[str]]:
|
|
808
568
|
"""
|
|
809
|
-
Password for user + password auth. Cannot be used with `
|
|
810
|
-
the `SNOWFLAKE_PASSWORD` environment variable.
|
|
569
|
+
Password for user + password auth. Cannot be used with `private_key` and `private_key_passphrase`. Can also be sourced
|
|
570
|
+
from the `SNOWFLAKE_PASSWORD` environment variable.
|
|
811
571
|
"""
|
|
812
572
|
return pulumi.get(self, "password")
|
|
813
573
|
|
|
@@ -828,12 +588,21 @@ class ProviderArgs:
|
|
|
828
588
|
def port(self, value: Optional[pulumi.Input[int]]):
|
|
829
589
|
pulumi.set(self, "port", value)
|
|
830
590
|
|
|
591
|
+
@property
|
|
592
|
+
@pulumi.getter(name="previewFeaturesEnableds")
|
|
593
|
+
def preview_features_enableds(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
594
|
+
return pulumi.get(self, "preview_features_enableds")
|
|
595
|
+
|
|
596
|
+
@preview_features_enableds.setter
|
|
597
|
+
def preview_features_enableds(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
598
|
+
pulumi.set(self, "preview_features_enableds", value)
|
|
599
|
+
|
|
831
600
|
@property
|
|
832
601
|
@pulumi.getter(name="privateKey")
|
|
833
602
|
def private_key(self) -> Optional[pulumi.Input[str]]:
|
|
834
603
|
"""
|
|
835
|
-
Private Key for username+private-key auth. Cannot be used with `
|
|
836
|
-
|
|
604
|
+
Private Key for username+private-key auth. Cannot be used with `password`. Can also be sourced from the
|
|
605
|
+
`SNOWFLAKE_PRIVATE_KEY` environment variable.
|
|
837
606
|
"""
|
|
838
607
|
return pulumi.get(self, "private_key")
|
|
839
608
|
|
|
@@ -854,20 +623,6 @@ class ProviderArgs:
|
|
|
854
623
|
def private_key_passphrase(self, value: Optional[pulumi.Input[str]]):
|
|
855
624
|
pulumi.set(self, "private_key_passphrase", value)
|
|
856
625
|
|
|
857
|
-
@property
|
|
858
|
-
@pulumi.getter(name="privateKeyPath")
|
|
859
|
-
@_utilities.deprecated("""use the [file Function](https://developer.hashicorp.com/terraform/language/functions/file) instead""")
|
|
860
|
-
def private_key_path(self) -> Optional[pulumi.Input[str]]:
|
|
861
|
-
"""
|
|
862
|
-
Path to a private key for using keypair authentication. Cannot be used with `browser_auth`, `oauth_access_token` or
|
|
863
|
-
`password`. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
|
|
864
|
-
"""
|
|
865
|
-
return pulumi.get(self, "private_key_path")
|
|
866
|
-
|
|
867
|
-
@private_key_path.setter
|
|
868
|
-
def private_key_path(self, value: Optional[pulumi.Input[str]]):
|
|
869
|
-
pulumi.set(self, "private_key_path", value)
|
|
870
|
-
|
|
871
626
|
@property
|
|
872
627
|
@pulumi.getter
|
|
873
628
|
def profile(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -894,24 +649,6 @@ class ProviderArgs:
|
|
|
894
649
|
def protocol(self, value: Optional[pulumi.Input[str]]):
|
|
895
650
|
pulumi.set(self, "protocol", value)
|
|
896
651
|
|
|
897
|
-
@property
|
|
898
|
-
@pulumi.getter
|
|
899
|
-
@_utilities.deprecated("""Specify the region as part of the account parameter""")
|
|
900
|
-
def region(self) -> Optional[pulumi.Input[str]]:
|
|
901
|
-
"""
|
|
902
|
-
Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
|
|
903
|
-
to specify the region as part of the account parameter. For details, see the description of the account parameter.
|
|
904
|
-
[Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy
|
|
905
|
-
format for the `account`
|
|
906
|
-
identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region)
|
|
907
|
-
in the form of `<cloud_region_id>.<cloud>`. Can also be sourced from the `SNOWFLAKE_REGION` environment variable.
|
|
908
|
-
"""
|
|
909
|
-
return pulumi.get(self, "region")
|
|
910
|
-
|
|
911
|
-
@region.setter
|
|
912
|
-
def region(self, value: Optional[pulumi.Input[str]]):
|
|
913
|
-
pulumi.set(self, "region", value)
|
|
914
|
-
|
|
915
652
|
@property
|
|
916
653
|
@pulumi.getter(name="requestTimeout")
|
|
917
654
|
def request_timeout(self) -> Optional[pulumi.Input[int]]:
|
|
@@ -938,19 +675,6 @@ class ProviderArgs:
|
|
|
938
675
|
def role(self, value: Optional[pulumi.Input[str]]):
|
|
939
676
|
pulumi.set(self, "role", value)
|
|
940
677
|
|
|
941
|
-
@property
|
|
942
|
-
@pulumi.getter(name="sessionParams")
|
|
943
|
-
@_utilities.deprecated("""Use `params` instead""")
|
|
944
|
-
def session_params(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
945
|
-
"""
|
|
946
|
-
Sets session parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
|
|
947
|
-
"""
|
|
948
|
-
return pulumi.get(self, "session_params")
|
|
949
|
-
|
|
950
|
-
@session_params.setter
|
|
951
|
-
def session_params(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
952
|
-
pulumi.set(self, "session_params", value)
|
|
953
|
-
|
|
954
678
|
@property
|
|
955
679
|
@pulumi.getter(name="tmpDirectoryPath")
|
|
956
680
|
def tmp_directory_path(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -998,20 +722,6 @@ class ProviderArgs:
|
|
|
998
722
|
def user(self, value: Optional[pulumi.Input[str]]):
|
|
999
723
|
pulumi.set(self, "user", value)
|
|
1000
724
|
|
|
1001
|
-
@property
|
|
1002
|
-
@pulumi.getter
|
|
1003
|
-
@_utilities.deprecated("""Use `user` instead of `username`""")
|
|
1004
|
-
def username(self) -> Optional[pulumi.Input[str]]:
|
|
1005
|
-
"""
|
|
1006
|
-
Username for user + password authentication. Required unless using `profile`. Can also be sourced from the
|
|
1007
|
-
`SNOWFLAKE_USERNAME` environment variable.
|
|
1008
|
-
"""
|
|
1009
|
-
return pulumi.get(self, "username")
|
|
1010
|
-
|
|
1011
|
-
@username.setter
|
|
1012
|
-
def username(self, value: Optional[pulumi.Input[str]]):
|
|
1013
|
-
pulumi.set(self, "username", value)
|
|
1014
|
-
|
|
1015
725
|
@property
|
|
1016
726
|
@pulumi.getter(name="validateDefaultParameters")
|
|
1017
727
|
def validate_default_parameters(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -1044,10 +754,8 @@ class Provider(pulumi.ProviderResource):
|
|
|
1044
754
|
def __init__(__self__,
|
|
1045
755
|
resource_name: str,
|
|
1046
756
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1047
|
-
account: Optional[pulumi.Input[str]] = None,
|
|
1048
757
|
account_name: Optional[pulumi.Input[str]] = None,
|
|
1049
758
|
authenticator: Optional[pulumi.Input[str]] = None,
|
|
1050
|
-
browser_auth: Optional[pulumi.Input[bool]] = None,
|
|
1051
759
|
client_ip: Optional[pulumi.Input[str]] = None,
|
|
1052
760
|
client_request_mfa_token: Optional[pulumi.Input[str]] = None,
|
|
1053
761
|
client_store_temporary_credential: Optional[pulumi.Input[str]] = None,
|
|
@@ -1065,12 +773,6 @@ class Provider(pulumi.ProviderResource):
|
|
|
1065
773
|
keep_session_alive: Optional[pulumi.Input[bool]] = None,
|
|
1066
774
|
login_timeout: Optional[pulumi.Input[int]] = None,
|
|
1067
775
|
max_retry_count: Optional[pulumi.Input[int]] = None,
|
|
1068
|
-
oauth_access_token: Optional[pulumi.Input[str]] = None,
|
|
1069
|
-
oauth_client_id: Optional[pulumi.Input[str]] = None,
|
|
1070
|
-
oauth_client_secret: Optional[pulumi.Input[str]] = None,
|
|
1071
|
-
oauth_endpoint: Optional[pulumi.Input[str]] = None,
|
|
1072
|
-
oauth_redirect_url: Optional[pulumi.Input[str]] = None,
|
|
1073
|
-
oauth_refresh_token: Optional[pulumi.Input[str]] = None,
|
|
1074
776
|
ocsp_fail_open: Optional[pulumi.Input[str]] = None,
|
|
1075
777
|
okta_url: Optional[pulumi.Input[str]] = None,
|
|
1076
778
|
organization_name: Optional[pulumi.Input[str]] = None,
|
|
@@ -1079,20 +781,17 @@ class Provider(pulumi.ProviderResource):
|
|
|
1079
781
|
passcode_in_password: Optional[pulumi.Input[bool]] = None,
|
|
1080
782
|
password: Optional[pulumi.Input[str]] = None,
|
|
1081
783
|
port: Optional[pulumi.Input[int]] = None,
|
|
784
|
+
preview_features_enableds: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1082
785
|
private_key: Optional[pulumi.Input[str]] = None,
|
|
1083
786
|
private_key_passphrase: Optional[pulumi.Input[str]] = None,
|
|
1084
|
-
private_key_path: Optional[pulumi.Input[str]] = None,
|
|
1085
787
|
profile: Optional[pulumi.Input[str]] = None,
|
|
1086
788
|
protocol: Optional[pulumi.Input[str]] = None,
|
|
1087
|
-
region: Optional[pulumi.Input[str]] = None,
|
|
1088
789
|
request_timeout: Optional[pulumi.Input[int]] = None,
|
|
1089
790
|
role: Optional[pulumi.Input[str]] = None,
|
|
1090
|
-
session_params: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1091
791
|
tmp_directory_path: Optional[pulumi.Input[str]] = None,
|
|
1092
792
|
token: Optional[pulumi.Input[str]] = None,
|
|
1093
793
|
token_accessor: Optional[pulumi.Input[Union['ProviderTokenAccessorArgs', 'ProviderTokenAccessorArgsDict']]] = None,
|
|
1094
794
|
user: Optional[pulumi.Input[str]] = None,
|
|
1095
|
-
username: Optional[pulumi.Input[str]] = None,
|
|
1096
795
|
validate_default_parameters: Optional[pulumi.Input[str]] = None,
|
|
1097
796
|
warehouse: Optional[pulumi.Input[str]] = None,
|
|
1098
797
|
__props__=None):
|
|
@@ -1104,20 +803,12 @@ class Provider(pulumi.ProviderResource):
|
|
|
1104
803
|
|
|
1105
804
|
:param str resource_name: The name of the resource.
|
|
1106
805
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1107
|
-
:param pulumi.Input[str] account: Use `account_name` and `organization_name` instead. Specifies your Snowflake account identifier assigned, by Snowflake.
|
|
1108
|
-
The [account
|
|
1109
|
-
locator](https://docs.snowflake.com/en/user-guide/admin-account-identifier#format-2-account-locator-in-a-region) format
|
|
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
806
|
:param pulumi.Input[str] account_name: Specifies your Snowflake account name assigned by Snowflake. For information about account identifiers, see the
|
|
1114
807
|
[Snowflake documentation](https://docs.snowflake.com/en/user-guide/admin-account-identifier#account-name). Required
|
|
1115
808
|
unless using `profile`. Can also be sourced from the `SNOWFLAKE_ACCOUNT_NAME` environment variable.
|
|
1116
809
|
: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 options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `
|
|
1118
|
-
|
|
1119
|
-
sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
|
|
1120
|
-
:param pulumi.Input[bool] browser_auth: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_USE_BROWSER_AUTH` environment variable.
|
|
810
|
+
connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `SNOWFLAKE_JWT` |
|
|
811
|
+
`TOKENACCESSOR` | `USERNAMEPASSWORDMFA`. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
|
|
1121
812
|
:param pulumi.Input[str] client_ip: IP address for network checks. Can also be sourced from the `SNOWFLAKE_CLIENT_IP` environment variable.
|
|
1122
813
|
:param pulumi.Input[str] client_request_mfa_token: When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
|
|
1123
814
|
be sourced from the `SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN` environment variable.
|
|
@@ -1150,19 +841,6 @@ class Provider(pulumi.ProviderResource):
|
|
|
1150
841
|
`SNOWFLAKE_LOGIN_TIMEOUT` environment variable.
|
|
1151
842
|
:param pulumi.Input[int] max_retry_count: Specifies how many times non-periodic HTTP request can be retried by the driver. Can also be sourced from the
|
|
1152
843
|
`SNOWFLAKE_MAX_RETRY_COUNT` environment variable.
|
|
1153
|
-
: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
|
-
`private_key_path`, `oauth_refresh_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN`
|
|
1155
|
-
environment variable.
|
|
1156
|
-
:param pulumi.Input[str] oauth_client_id: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.
|
|
1157
|
-
:param pulumi.Input[str] oauth_client_secret: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment
|
|
1158
|
-
variable.
|
|
1159
|
-
:param pulumi.Input[str] oauth_endpoint: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.
|
|
1160
|
-
:param pulumi.Input[str] oauth_redirect_url: Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment
|
|
1161
|
-
variable.
|
|
1162
|
-
:param pulumi.Input[str] oauth_refresh_token: Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
|
|
1163
|
-
`oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`,
|
|
1164
|
-
`private_key_path`, `oauth_access_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN`
|
|
1165
|
-
environment variable.
|
|
1166
844
|
:param pulumi.Input[str] ocsp_fail_open: True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
|
|
1167
845
|
sourced from the `SNOWFLAKE_OCSP_FAIL_OPEN` environment variable.
|
|
1168
846
|
:param pulumi.Input[str] okta_url: The URL of the Okta server. e.g. https://example.okta.com. Okta URL host needs to to have a suffix `okta.com`. Read more
|
|
@@ -1177,38 +855,27 @@ class Provider(pulumi.ProviderResource):
|
|
|
1177
855
|
the `SNOWFLAKE_PASSCODE` environment variable.
|
|
1178
856
|
:param pulumi.Input[bool] passcode_in_password: False by default. Set to true if the MFA passcode is embedded to the configured password. Can also be sourced from the
|
|
1179
857
|
`SNOWFLAKE_PASSCODE_IN_PASSWORD` environment variable.
|
|
1180
|
-
:param pulumi.Input[str] password: Password for user + password auth. Cannot be used with `
|
|
1181
|
-
the `SNOWFLAKE_PASSWORD` environment variable.
|
|
858
|
+
:param pulumi.Input[str] password: Password for user + password auth. Cannot be used with `private_key` and `private_key_passphrase`. Can also be sourced
|
|
859
|
+
from the `SNOWFLAKE_PASSWORD` environment variable.
|
|
1182
860
|
:param pulumi.Input[int] port: Specifies a custom port value used by the driver for privatelink connections. Can also be sourced from the
|
|
1183
861
|
`SNOWFLAKE_PORT` environment variable.
|
|
1184
|
-
:param pulumi.Input[str] private_key: Private Key for username+private-key auth. Cannot be used with `
|
|
1185
|
-
|
|
862
|
+
:param pulumi.Input[str] private_key: Private Key for username+private-key auth. Cannot be used with `password`. Can also be sourced from the
|
|
863
|
+
`SNOWFLAKE_PRIVATE_KEY` environment variable.
|
|
1186
864
|
:param pulumi.Input[str] private_key_passphrase: Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
|
|
1187
865
|
des-ede3-cbc. Can also be sourced from the `SNOWFLAKE_PRIVATE_KEY_PASSPHRASE` environment variable.
|
|
1188
|
-
: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
|
-
`password`. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
|
|
1190
866
|
:param pulumi.Input[str] profile: Sets the profile to read from ~/.snowflake/config file. Can also be sourced from the `SNOWFLAKE_PROFILE` environment
|
|
1191
867
|
variable.
|
|
1192
868
|
:param pulumi.Input[str] protocol: A protocol used in the connection. Valid options are: `http` | `https`. Can also be sourced from the
|
|
1193
869
|
`SNOWFLAKE_PROTOCOL` environment variable.
|
|
1194
|
-
: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
|
-
to specify the region as part of the account parameter. For details, see the description of the account parameter.
|
|
1196
|
-
[Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy
|
|
1197
|
-
format for the `account`
|
|
1198
|
-
identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region)
|
|
1199
|
-
in the form of `<cloud_region_id>.<cloud>`. Can also be sourced from the `SNOWFLAKE_REGION` environment variable.
|
|
1200
870
|
:param pulumi.Input[int] request_timeout: request retry timeout in seconds EXCLUDING network roundtrip and read out http response. Can also be sourced from the
|
|
1201
871
|
`SNOWFLAKE_REQUEST_TIMEOUT` environment variable.
|
|
1202
872
|
:param pulumi.Input[str] role: Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
|
|
1203
873
|
`SNOWFLAKE_ROLE` environment variable.
|
|
1204
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] session_params: Sets session parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
|
|
1205
874
|
:param pulumi.Input[str] tmp_directory_path: Sets temporary directory used by the driver for operations like encrypting, compressing etc. Can also be sourced from
|
|
1206
875
|
the `SNOWFLAKE_TMP_DIRECTORY_PATH` environment variable.
|
|
1207
876
|
:param pulumi.Input[str] token: Token to use for OAuth and other forms of token based auth. Can also be sourced from the `SNOWFLAKE_TOKEN` environment
|
|
1208
877
|
variable.
|
|
1209
878
|
:param pulumi.Input[str] user: Username. Required unless using `profile`. Can also be sourced from the `SNOWFLAKE_USER` environment variable.
|
|
1210
|
-
:param pulumi.Input[str] username: Username for user + password authentication. Required unless using `profile`. Can also be sourced from the
|
|
1211
|
-
`SNOWFLAKE_USERNAME` environment variable.
|
|
1212
879
|
:param pulumi.Input[str] validate_default_parameters: True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
|
|
1213
880
|
connection is established. Can also be sourced from the `SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS` environment variable.
|
|
1214
881
|
:param pulumi.Input[str] warehouse: Specifies the virtual warehouse to use by default for queries, loading, etc. in the client session. Can also be sourced
|
|
@@ -1241,10 +908,8 @@ class Provider(pulumi.ProviderResource):
|
|
|
1241
908
|
def _internal_init(__self__,
|
|
1242
909
|
resource_name: str,
|
|
1243
910
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1244
|
-
account: Optional[pulumi.Input[str]] = None,
|
|
1245
911
|
account_name: Optional[pulumi.Input[str]] = None,
|
|
1246
912
|
authenticator: Optional[pulumi.Input[str]] = None,
|
|
1247
|
-
browser_auth: Optional[pulumi.Input[bool]] = None,
|
|
1248
913
|
client_ip: Optional[pulumi.Input[str]] = None,
|
|
1249
914
|
client_request_mfa_token: Optional[pulumi.Input[str]] = None,
|
|
1250
915
|
client_store_temporary_credential: Optional[pulumi.Input[str]] = None,
|
|
@@ -1262,12 +927,6 @@ class Provider(pulumi.ProviderResource):
|
|
|
1262
927
|
keep_session_alive: Optional[pulumi.Input[bool]] = None,
|
|
1263
928
|
login_timeout: Optional[pulumi.Input[int]] = None,
|
|
1264
929
|
max_retry_count: Optional[pulumi.Input[int]] = None,
|
|
1265
|
-
oauth_access_token: Optional[pulumi.Input[str]] = None,
|
|
1266
|
-
oauth_client_id: Optional[pulumi.Input[str]] = None,
|
|
1267
|
-
oauth_client_secret: Optional[pulumi.Input[str]] = None,
|
|
1268
|
-
oauth_endpoint: Optional[pulumi.Input[str]] = None,
|
|
1269
|
-
oauth_redirect_url: Optional[pulumi.Input[str]] = None,
|
|
1270
|
-
oauth_refresh_token: Optional[pulumi.Input[str]] = None,
|
|
1271
930
|
ocsp_fail_open: Optional[pulumi.Input[str]] = None,
|
|
1272
931
|
okta_url: Optional[pulumi.Input[str]] = None,
|
|
1273
932
|
organization_name: Optional[pulumi.Input[str]] = None,
|
|
@@ -1276,20 +935,17 @@ class Provider(pulumi.ProviderResource):
|
|
|
1276
935
|
passcode_in_password: Optional[pulumi.Input[bool]] = None,
|
|
1277
936
|
password: Optional[pulumi.Input[str]] = None,
|
|
1278
937
|
port: Optional[pulumi.Input[int]] = None,
|
|
938
|
+
preview_features_enableds: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1279
939
|
private_key: Optional[pulumi.Input[str]] = None,
|
|
1280
940
|
private_key_passphrase: Optional[pulumi.Input[str]] = None,
|
|
1281
|
-
private_key_path: Optional[pulumi.Input[str]] = None,
|
|
1282
941
|
profile: Optional[pulumi.Input[str]] = None,
|
|
1283
942
|
protocol: Optional[pulumi.Input[str]] = None,
|
|
1284
|
-
region: Optional[pulumi.Input[str]] = None,
|
|
1285
943
|
request_timeout: Optional[pulumi.Input[int]] = None,
|
|
1286
944
|
role: Optional[pulumi.Input[str]] = None,
|
|
1287
|
-
session_params: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1288
945
|
tmp_directory_path: Optional[pulumi.Input[str]] = None,
|
|
1289
946
|
token: Optional[pulumi.Input[str]] = None,
|
|
1290
947
|
token_accessor: Optional[pulumi.Input[Union['ProviderTokenAccessorArgs', 'ProviderTokenAccessorArgsDict']]] = None,
|
|
1291
948
|
user: Optional[pulumi.Input[str]] = None,
|
|
1292
|
-
username: Optional[pulumi.Input[str]] = None,
|
|
1293
949
|
validate_default_parameters: Optional[pulumi.Input[str]] = None,
|
|
1294
950
|
warehouse: Optional[pulumi.Input[str]] = None,
|
|
1295
951
|
__props__=None):
|
|
@@ -1301,14 +957,8 @@ class Provider(pulumi.ProviderResource):
|
|
|
1301
957
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
1302
958
|
__props__ = ProviderArgs.__new__(ProviderArgs)
|
|
1303
959
|
|
|
1304
|
-
if account is None:
|
|
1305
|
-
account = _utilities.get_env('SNOWFLAKE_ACCOUNT')
|
|
1306
|
-
__props__.__dict__["account"] = account
|
|
1307
960
|
__props__.__dict__["account_name"] = account_name
|
|
1308
961
|
__props__.__dict__["authenticator"] = authenticator
|
|
1309
|
-
if browser_auth is None:
|
|
1310
|
-
browser_auth = _utilities.get_env_bool('SNOWFLAKE_USE_BROWSER_AUTH')
|
|
1311
|
-
__props__.__dict__["browser_auth"] = pulumi.Output.from_input(browser_auth).apply(pulumi.runtime.to_json) if browser_auth is not None else None
|
|
1312
962
|
__props__.__dict__["client_ip"] = client_ip
|
|
1313
963
|
__props__.__dict__["client_request_mfa_token"] = client_request_mfa_token
|
|
1314
964
|
__props__.__dict__["client_store_temporary_credential"] = client_store_temporary_credential
|
|
@@ -1328,24 +978,6 @@ class Provider(pulumi.ProviderResource):
|
|
|
1328
978
|
__props__.__dict__["keep_session_alive"] = pulumi.Output.from_input(keep_session_alive).apply(pulumi.runtime.to_json) if keep_session_alive is not None else None
|
|
1329
979
|
__props__.__dict__["login_timeout"] = pulumi.Output.from_input(login_timeout).apply(pulumi.runtime.to_json) if login_timeout is not None else None
|
|
1330
980
|
__props__.__dict__["max_retry_count"] = pulumi.Output.from_input(max_retry_count).apply(pulumi.runtime.to_json) if max_retry_count is not None else None
|
|
1331
|
-
if oauth_access_token is None:
|
|
1332
|
-
oauth_access_token = _utilities.get_env('SNOWFLAKE_OAUTH_ACCESS_TOKEN')
|
|
1333
|
-
__props__.__dict__["oauth_access_token"] = None if oauth_access_token is None else pulumi.Output.secret(oauth_access_token)
|
|
1334
|
-
if oauth_client_id is None:
|
|
1335
|
-
oauth_client_id = _utilities.get_env('SNOWFLAKE_OAUTH_CLIENT_ID')
|
|
1336
|
-
__props__.__dict__["oauth_client_id"] = None if oauth_client_id is None else pulumi.Output.secret(oauth_client_id)
|
|
1337
|
-
if oauth_client_secret is None:
|
|
1338
|
-
oauth_client_secret = _utilities.get_env('SNOWFLAKE_OAUTH_CLIENT_SECRET')
|
|
1339
|
-
__props__.__dict__["oauth_client_secret"] = None if oauth_client_secret is None else pulumi.Output.secret(oauth_client_secret)
|
|
1340
|
-
if oauth_endpoint is None:
|
|
1341
|
-
oauth_endpoint = _utilities.get_env('SNOWFLAKE_OAUTH_ENDPOINT')
|
|
1342
|
-
__props__.__dict__["oauth_endpoint"] = None if oauth_endpoint is None else pulumi.Output.secret(oauth_endpoint)
|
|
1343
|
-
if oauth_redirect_url is None:
|
|
1344
|
-
oauth_redirect_url = _utilities.get_env('SNOWFLAKE_OAUTH_REDIRECT_URL')
|
|
1345
|
-
__props__.__dict__["oauth_redirect_url"] = None if oauth_redirect_url is None else pulumi.Output.secret(oauth_redirect_url)
|
|
1346
|
-
if oauth_refresh_token is None:
|
|
1347
|
-
oauth_refresh_token = _utilities.get_env('SNOWFLAKE_OAUTH_REFRESH_TOKEN')
|
|
1348
|
-
__props__.__dict__["oauth_refresh_token"] = None if oauth_refresh_token is None else pulumi.Output.secret(oauth_refresh_token)
|
|
1349
981
|
__props__.__dict__["ocsp_fail_open"] = ocsp_fail_open
|
|
1350
982
|
__props__.__dict__["okta_url"] = okta_url
|
|
1351
983
|
__props__.__dict__["organization_name"] = organization_name
|
|
@@ -1358,37 +990,28 @@ class Provider(pulumi.ProviderResource):
|
|
|
1358
990
|
if port is None:
|
|
1359
991
|
port = _utilities.get_env_int('SNOWFLAKE_PORT')
|
|
1360
992
|
__props__.__dict__["port"] = pulumi.Output.from_input(port).apply(pulumi.runtime.to_json) if port is not None else None
|
|
993
|
+
__props__.__dict__["preview_features_enableds"] = pulumi.Output.from_input(preview_features_enableds).apply(pulumi.runtime.to_json) if preview_features_enableds is not None else None
|
|
1361
994
|
__props__.__dict__["private_key"] = None if private_key is None else pulumi.Output.secret(private_key)
|
|
1362
995
|
if private_key_passphrase is None:
|
|
1363
996
|
private_key_passphrase = _utilities.get_env('SNOWFLAKE_PRIVATE_KEY_PASSPHRASE')
|
|
1364
997
|
__props__.__dict__["private_key_passphrase"] = None if private_key_passphrase is None else pulumi.Output.secret(private_key_passphrase)
|
|
1365
|
-
if private_key_path is None:
|
|
1366
|
-
private_key_path = _utilities.get_env('SNOWFLAKE_PRIVATE_KEY_PATH')
|
|
1367
|
-
__props__.__dict__["private_key_path"] = None if private_key_path is None else pulumi.Output.secret(private_key_path)
|
|
1368
998
|
__props__.__dict__["profile"] = profile
|
|
1369
999
|
if protocol is None:
|
|
1370
1000
|
protocol = _utilities.get_env('SNOWFLAKE_PROTOCOL')
|
|
1371
1001
|
__props__.__dict__["protocol"] = protocol
|
|
1372
|
-
if region is None:
|
|
1373
|
-
region = _utilities.get_env('SNOWFLAKE_REGION')
|
|
1374
|
-
__props__.__dict__["region"] = region
|
|
1375
1002
|
__props__.__dict__["request_timeout"] = pulumi.Output.from_input(request_timeout).apply(pulumi.runtime.to_json) if request_timeout is not None else None
|
|
1376
1003
|
if role is None:
|
|
1377
1004
|
role = _utilities.get_env('SNOWFLAKE_ROLE')
|
|
1378
1005
|
__props__.__dict__["role"] = role
|
|
1379
|
-
__props__.__dict__["session_params"] = pulumi.Output.from_input(session_params).apply(pulumi.runtime.to_json) if session_params is not None else None
|
|
1380
1006
|
__props__.__dict__["tmp_directory_path"] = tmp_directory_path
|
|
1381
1007
|
__props__.__dict__["token"] = None if token is None else pulumi.Output.secret(token)
|
|
1382
1008
|
__props__.__dict__["token_accessor"] = pulumi.Output.from_input(token_accessor).apply(pulumi.runtime.to_json) if token_accessor is not None else None
|
|
1383
1009
|
__props__.__dict__["user"] = user
|
|
1384
|
-
if username is None:
|
|
1385
|
-
username = _utilities.get_env('SNOWFLAKE_USER')
|
|
1386
|
-
__props__.__dict__["username"] = username
|
|
1387
1010
|
__props__.__dict__["validate_default_parameters"] = validate_default_parameters
|
|
1388
1011
|
if warehouse is None:
|
|
1389
1012
|
warehouse = _utilities.get_env('SNOWFLAKE_WAREHOUSE')
|
|
1390
1013
|
__props__.__dict__["warehouse"] = warehouse
|
|
1391
|
-
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["
|
|
1014
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["password", "privateKey", "privateKeyPassphrase", "token"])
|
|
1392
1015
|
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
|
1393
1016
|
super(Provider, __self__).__init__(
|
|
1394
1017
|
'snowflake',
|
|
@@ -1396,20 +1019,6 @@ class Provider(pulumi.ProviderResource):
|
|
|
1396
1019
|
__props__,
|
|
1397
1020
|
opts)
|
|
1398
1021
|
|
|
1399
|
-
@property
|
|
1400
|
-
@pulumi.getter
|
|
1401
|
-
@_utilities.deprecated("""Use `account_name` and `organization_name` instead of `account`""")
|
|
1402
|
-
def account(self) -> pulumi.Output[Optional[str]]:
|
|
1403
|
-
"""
|
|
1404
|
-
Use `account_name` and `organization_name` instead. Specifies your Snowflake account identifier assigned, by Snowflake.
|
|
1405
|
-
The [account
|
|
1406
|
-
locator](https://docs.snowflake.com/en/user-guide/admin-account-identifier#format-2-account-locator-in-a-region) format
|
|
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.
|
|
1410
|
-
"""
|
|
1411
|
-
return pulumi.get(self, "account")
|
|
1412
|
-
|
|
1413
1022
|
@property
|
|
1414
1023
|
@pulumi.getter(name="accountName")
|
|
1415
1024
|
def account_name(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -1425,9 +1034,8 @@ class Provider(pulumi.ProviderResource):
|
|
|
1425
1034
|
def authenticator(self) -> pulumi.Output[Optional[str]]:
|
|
1426
1035
|
"""
|
|
1427
1036
|
Specifies the [authentication type](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#AuthType) to use when
|
|
1428
|
-
connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `
|
|
1429
|
-
|
|
1430
|
-
sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
|
|
1037
|
+
connecting to Snowflake. Valid options are: `SNOWFLAKE` | `OAUTH` | `EXTERNALBROWSER` | `OKTA` | `SNOWFLAKE_JWT` |
|
|
1038
|
+
`TOKENACCESSOR` | `USERNAMEPASSWORDMFA`. Can also be sourced from the `SNOWFLAKE_AUTHENTICATOR` environment variable.
|
|
1431
1039
|
"""
|
|
1432
1040
|
return pulumi.get(self, "authenticator")
|
|
1433
1041
|
|
|
@@ -1493,67 +1101,6 @@ class Provider(pulumi.ProviderResource):
|
|
|
1493
1101
|
"""
|
|
1494
1102
|
return pulumi.get(self, "include_retry_reason")
|
|
1495
1103
|
|
|
1496
|
-
@property
|
|
1497
|
-
@pulumi.getter(name="oauthAccessToken")
|
|
1498
|
-
@_utilities.deprecated("""Use `token` instead""")
|
|
1499
|
-
def oauth_access_token(self) -> pulumi.Output[Optional[str]]:
|
|
1500
|
-
"""
|
|
1501
|
-
Token for use with OAuth. Generating the token is left to other tools. Cannot be used with `browser_auth`,
|
|
1502
|
-
`private_key_path`, `oauth_refresh_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN`
|
|
1503
|
-
environment variable.
|
|
1504
|
-
"""
|
|
1505
|
-
return pulumi.get(self, "oauth_access_token")
|
|
1506
|
-
|
|
1507
|
-
@property
|
|
1508
|
-
@pulumi.getter(name="oauthClientId")
|
|
1509
|
-
@_utilities.deprecated("""Use `token_accessor.0.client_id` instead""")
|
|
1510
|
-
def oauth_client_id(self) -> pulumi.Output[Optional[str]]:
|
|
1511
|
-
"""
|
|
1512
|
-
Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.
|
|
1513
|
-
"""
|
|
1514
|
-
return pulumi.get(self, "oauth_client_id")
|
|
1515
|
-
|
|
1516
|
-
@property
|
|
1517
|
-
@pulumi.getter(name="oauthClientSecret")
|
|
1518
|
-
@_utilities.deprecated("""Use `token_accessor.0.client_secret` instead""")
|
|
1519
|
-
def oauth_client_secret(self) -> pulumi.Output[Optional[str]]:
|
|
1520
|
-
"""
|
|
1521
|
-
Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment
|
|
1522
|
-
variable.
|
|
1523
|
-
"""
|
|
1524
|
-
return pulumi.get(self, "oauth_client_secret")
|
|
1525
|
-
|
|
1526
|
-
@property
|
|
1527
|
-
@pulumi.getter(name="oauthEndpoint")
|
|
1528
|
-
@_utilities.deprecated("""Use `token_accessor.0.token_endpoint` instead""")
|
|
1529
|
-
def oauth_endpoint(self) -> pulumi.Output[Optional[str]]:
|
|
1530
|
-
"""
|
|
1531
|
-
Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.
|
|
1532
|
-
"""
|
|
1533
|
-
return pulumi.get(self, "oauth_endpoint")
|
|
1534
|
-
|
|
1535
|
-
@property
|
|
1536
|
-
@pulumi.getter(name="oauthRedirectUrl")
|
|
1537
|
-
@_utilities.deprecated("""Use `token_accessor.0.redirect_uri` instead""")
|
|
1538
|
-
def oauth_redirect_url(self) -> pulumi.Output[Optional[str]]:
|
|
1539
|
-
"""
|
|
1540
|
-
Required when `oauth_refresh_token` is used. Can also be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment
|
|
1541
|
-
variable.
|
|
1542
|
-
"""
|
|
1543
|
-
return pulumi.get(self, "oauth_redirect_url")
|
|
1544
|
-
|
|
1545
|
-
@property
|
|
1546
|
-
@pulumi.getter(name="oauthRefreshToken")
|
|
1547
|
-
@_utilities.deprecated("""Use `token_accessor.0.refresh_token` instead""")
|
|
1548
|
-
def oauth_refresh_token(self) -> pulumi.Output[Optional[str]]:
|
|
1549
|
-
"""
|
|
1550
|
-
Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
|
|
1551
|
-
`oauth_client_id`, `oauth_client_secret`, `oauth_endpoint`, `oauth_redirect_url`. Cannot be used with `browser_auth`,
|
|
1552
|
-
`private_key_path`, `oauth_access_token` or `password`. Can also be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN`
|
|
1553
|
-
environment variable.
|
|
1554
|
-
"""
|
|
1555
|
-
return pulumi.get(self, "oauth_refresh_token")
|
|
1556
|
-
|
|
1557
1104
|
@property
|
|
1558
1105
|
@pulumi.getter(name="ocspFailOpen")
|
|
1559
1106
|
def ocsp_fail_open(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -1596,8 +1143,8 @@ class Provider(pulumi.ProviderResource):
|
|
|
1596
1143
|
@pulumi.getter
|
|
1597
1144
|
def password(self) -> pulumi.Output[Optional[str]]:
|
|
1598
1145
|
"""
|
|
1599
|
-
Password for user + password auth. Cannot be used with `
|
|
1600
|
-
the `SNOWFLAKE_PASSWORD` environment variable.
|
|
1146
|
+
Password for user + password auth. Cannot be used with `private_key` and `private_key_passphrase`. Can also be sourced
|
|
1147
|
+
from the `SNOWFLAKE_PASSWORD` environment variable.
|
|
1601
1148
|
"""
|
|
1602
1149
|
return pulumi.get(self, "password")
|
|
1603
1150
|
|
|
@@ -1605,8 +1152,8 @@ class Provider(pulumi.ProviderResource):
|
|
|
1605
1152
|
@pulumi.getter(name="privateKey")
|
|
1606
1153
|
def private_key(self) -> pulumi.Output[Optional[str]]:
|
|
1607
1154
|
"""
|
|
1608
|
-
Private Key for username+private-key auth. Cannot be used with `
|
|
1609
|
-
|
|
1155
|
+
Private Key for username+private-key auth. Cannot be used with `password`. Can also be sourced from the
|
|
1156
|
+
`SNOWFLAKE_PRIVATE_KEY` environment variable.
|
|
1610
1157
|
"""
|
|
1611
1158
|
return pulumi.get(self, "private_key")
|
|
1612
1159
|
|
|
@@ -1619,16 +1166,6 @@ class Provider(pulumi.ProviderResource):
|
|
|
1619
1166
|
"""
|
|
1620
1167
|
return pulumi.get(self, "private_key_passphrase")
|
|
1621
1168
|
|
|
1622
|
-
@property
|
|
1623
|
-
@pulumi.getter(name="privateKeyPath")
|
|
1624
|
-
@_utilities.deprecated("""use the [file Function](https://developer.hashicorp.com/terraform/language/functions/file) instead""")
|
|
1625
|
-
def private_key_path(self) -> pulumi.Output[Optional[str]]:
|
|
1626
|
-
"""
|
|
1627
|
-
Path to a private key for using keypair authentication. Cannot be used with `browser_auth`, `oauth_access_token` or
|
|
1628
|
-
`password`. Can also be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
|
|
1629
|
-
"""
|
|
1630
|
-
return pulumi.get(self, "private_key_path")
|
|
1631
|
-
|
|
1632
1169
|
@property
|
|
1633
1170
|
@pulumi.getter
|
|
1634
1171
|
def profile(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -1647,20 +1184,6 @@ class Provider(pulumi.ProviderResource):
|
|
|
1647
1184
|
"""
|
|
1648
1185
|
return pulumi.get(self, "protocol")
|
|
1649
1186
|
|
|
1650
|
-
@property
|
|
1651
|
-
@pulumi.getter
|
|
1652
|
-
@_utilities.deprecated("""Specify the region as part of the account parameter""")
|
|
1653
|
-
def region(self) -> pulumi.Output[Optional[str]]:
|
|
1654
|
-
"""
|
|
1655
|
-
Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
|
|
1656
|
-
to specify the region as part of the account parameter. For details, see the description of the account parameter.
|
|
1657
|
-
[Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy
|
|
1658
|
-
format for the `account`
|
|
1659
|
-
identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region)
|
|
1660
|
-
in the form of `<cloud_region_id>.<cloud>`. Can also be sourced from the `SNOWFLAKE_REGION` environment variable.
|
|
1661
|
-
"""
|
|
1662
|
-
return pulumi.get(self, "region")
|
|
1663
|
-
|
|
1664
1187
|
@property
|
|
1665
1188
|
@pulumi.getter
|
|
1666
1189
|
def role(self) -> pulumi.Output[Optional[str]]:
|
|
@@ -1696,16 +1219,6 @@ class Provider(pulumi.ProviderResource):
|
|
|
1696
1219
|
"""
|
|
1697
1220
|
return pulumi.get(self, "user")
|
|
1698
1221
|
|
|
1699
|
-
@property
|
|
1700
|
-
@pulumi.getter
|
|
1701
|
-
@_utilities.deprecated("""Use `user` instead of `username`""")
|
|
1702
|
-
def username(self) -> pulumi.Output[Optional[str]]:
|
|
1703
|
-
"""
|
|
1704
|
-
Username for user + password authentication. Required unless using `profile`. Can also be sourced from the
|
|
1705
|
-
`SNOWFLAKE_USERNAME` environment variable.
|
|
1706
|
-
"""
|
|
1707
|
-
return pulumi.get(self, "username")
|
|
1708
|
-
|
|
1709
1222
|
@property
|
|
1710
1223
|
@pulumi.getter(name="validateDefaultParameters")
|
|
1711
1224
|
def validate_default_parameters(self) -> pulumi.Output[Optional[str]]:
|