snowflake.Provider
Explore with Pulumi AI
The provider type for the snowflake package. By default, resources use package-wide configuration
settings, however an explicit Provider
instance may be created and passed during resource
construction to achieve fine-grained programmatic control over provider settings. See the
documentation for more information.
Create Provider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Provider(name: string, args?: ProviderArgs, opts?: CustomResourceOptions);
@overload
def Provider(resource_name: str,
args: Optional[ProviderArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Provider(resource_name: str,
opts: Optional[ResourceOptions] = None,
account: Optional[str] = None,
authenticator: Optional[str] = None,
browser_auth: Optional[bool] = None,
client_ip: Optional[str] = None,
client_request_mfa_token: Optional[bool] = None,
client_store_temporary_credential: Optional[bool] = None,
client_timeout: Optional[int] = None,
disable_query_context_cache: Optional[bool] = None,
disable_telemetry: Optional[bool] = None,
external_browser_timeout: Optional[int] = None,
host: Optional[str] = None,
insecure_mode: Optional[bool] = None,
jwt_client_timeout: Optional[int] = None,
jwt_expire_timeout: Optional[int] = None,
keep_session_alive: Optional[bool] = None,
login_timeout: Optional[int] = None,
oauth_access_token: Optional[str] = None,
oauth_client_id: Optional[str] = None,
oauth_client_secret: Optional[str] = None,
oauth_endpoint: Optional[str] = None,
oauth_redirect_url: Optional[str] = None,
oauth_refresh_token: Optional[str] = None,
ocsp_fail_open: Optional[bool] = None,
okta_url: Optional[str] = None,
params: Optional[Mapping[str, Any]] = None,
passcode: Optional[str] = None,
passcode_in_password: Optional[bool] = None,
password: Optional[str] = None,
port: Optional[int] = None,
private_key: Optional[str] = None,
private_key_passphrase: Optional[str] = None,
private_key_path: Optional[str] = None,
profile: Optional[str] = None,
protocol: Optional[str] = None,
region: Optional[str] = None,
request_timeout: Optional[int] = None,
role: Optional[str] = None,
session_params: Optional[Mapping[str, Any]] = None,
token: Optional[str] = None,
token_accessor: Optional[ProviderTokenAccessorArgs] = None,
user: Optional[str] = None,
username: Optional[str] = None,
validate_default_parameters: Optional[bool] = None,
warehouse: Optional[str] = None)
func NewProvider(ctx *Context, name string, args *ProviderArgs, opts ...ResourceOption) (*Provider, error)
public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? opts = null)
public Provider(String name, ProviderArgs args)
public Provider(String name, ProviderArgs args, CustomResourceOptions options)
type: pulumi:providers:snowflake
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Provider Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Provider resource accepts the following input properties:
- Account string
- Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
Snowflake documentation. Can also be sourced
from the
SNOWFLAKE_ACCOUNT
environment variable. Required unless usingprofile
. It can also be sourced from the following environment variable:SNOWFLAKE_ACCOUNT
- Authenticator string
- Specifies the authentication type to use when
connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
UsernamePasswordMFA. Can also be sourced from the
SNOWFLAKE_AUTHENTICATOR
environment variable. It has to be set explicitly to JWT for private key authentication. - Browser
Auth bool - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_USE_BROWSER_AUTH
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_USE_BROWSER_AUTH
- Client
Ip string - IP address for network checks. Can also be sourced from the
SNOWFLAKE_CLIENT_IP
environment variable. - Client
Request boolMfa Token - When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
be sourced from the
SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN
environment variable. - Client
Store boolTemporary Credential - When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
sourced from the
SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL
environment variable. - Client
Timeout int - The timeout in seconds for the client to complete the authentication. Default is 900 seconds. Can also be sourced from
the
SNOWFLAKE_CLIENT_TIMEOUT
environment variable. - Disable
Query boolContext Cache - Should HTAP query context cache be disabled. Can also be sourced from the
SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE
environment variable. - Disable
Telemetry bool - Indicates whether to disable telemetry. Can also be sourced from the
SNOWFLAKE_DISABLE_TELEMETRY
environment variable. - External
Browser intTimeout - The timeout in seconds for the external browser to complete the authentication. Default is 120 seconds. Can also be
sourced from the
SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT
environment variable. - Host string
- Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
the
SNOWFLAKE_HOST
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_HOST
- Insecure
Mode bool - If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the
default value for testing or emergency situations only. Can also be sourced from the
SNOWFLAKE_INSECURE_MODE
environment variable. - Jwt
Client intTimeout - The timeout in seconds for the JWT client to complete the authentication. Default is 10 seconds. Can also be sourced
from the
SNOWFLAKE_JWT_CLIENT_TIMEOUT
environment variable. - Jwt
Expire intTimeout - JWT expire after timeout in seconds. Can also be sourced from the
SNOWFLAKE_JWT_EXPIRE_TIMEOUT
environment variable. - Keep
Session boolAlive - Enables the session to persist even after the connection is closed. Can also be sourced from the
SNOWFLAKE_KEEP_SESSION_ALIVE
environment variable. - Login
Timeout int - Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
SNOWFLAKE_LOGIN_TIMEOUT
environment variable. - Oauth
Access stringToken - Token for use with OAuth. Generating the token is left to other tools. Cannot be used with
browser_auth
,private_key_path
,oauth_refresh_token
orpassword
. Can also be sourced fromSNOWFLAKE_OAUTH_ACCESS_TOKEN
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_ACCESS_TOKEN
- Oauth
Client stringId - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_CLIENT_ID
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_CLIENT_ID
- Oauth
Client stringSecret - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_CLIENT_SECRET
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_CLIENT_SECRET
- Oauth
Endpoint string - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_ENDPOINT
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_ENDPOINT
- Oauth
Redirect stringUrl - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_REDIRECT_URL
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_REDIRECT_URL
- Oauth
Refresh stringToken - Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
oauth_client_id
,oauth_client_secret
,oauth_endpoint
,oauth_redirect_url
. Cannot be used withbrowser_auth
,private_key_path
,oauth_access_token
orpassword
. Can also be sourced fromSNOWFLAKE_OAUTH_REFRESH_TOKEN
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_REFRESH_TOKEN
- Ocsp
Fail boolOpen - True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
sourced from the
SNOWFLAKE_OCSP_FAIL_OPEN
environment variable. - Okta
Url string - The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the
SNOWFLAKE_OKTA_URL
environment variable. - Params Dictionary<string, object>
- Sets other connection (i.e. session) parameters. Parameters
- Passcode string
- Specifies the passcode provided by Duo when using multi-factor authentication (MFA) for login. Can also be sourced from
the
SNOWFLAKE_PASSCODE
environment variable. - Passcode
In boolPassword - False by default. Set to true if the MFA passcode is embedded in the login password. Appends the MFA passcode to the end
of the password. Can also be sourced from the
SNOWFLAKE_PASSCODE_IN_PASSWORD
environment variable. - Password string
- Password for username+password auth. Cannot be used with
browser_auth
orprivate_key_path
. Can also be sourced from theSNOWFLAKE_PASSWORD
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PASSWORD
- Port int
- Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
SNOWFLAKE_PORT
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PORT
- Private
Key string - Private Key for username+private-key auth. Cannot be used with
browser_auth
orpassword
. Can also be sourced fromSNOWFLAKE_PRIVATE_KEY
environment variable. - Private
Key stringPassphrase - Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
des-ede3-cbc. Can also be sourced from
SNOWFLAKE_PRIVATE_KEY_PASSPHRASE
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PRIVATE_KEY_PASSPHRASE
- Private
Key stringPath - Path to a private key for using keypair authentication. Cannot be used with
browser_auth
,oauth_access_token
orpassword
. Can also be sourced fromSNOWFLAKE_PRIVATE_KEY_PATH
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PRIVATE_KEY_PATH
- Profile string
- Sets the profile to read from ~/.snowflake/config file. Can also be sourced from the
SNOWFLAKE_PROFILE
environment variable. - Protocol string
- Either http or https, defaults to https. Can also be sourced from the
SNOWFLAKE_PROTOCOL
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PROTOCOL
- Region string
- Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
to specify the region as part of the account parameter. For details, see the description of the account parameter.
Snowflake region to use. Required if using the legacy
format for the
account
identifier in the form of<cloud_region_id>.<cloud>
. Can also be sourced from theSNOWFLAKE_REGION
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_REGION
- Request
Timeout int - request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
SNOWFLAKE_REQUEST_TIMEOUT
environment variable. - Role string
- Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
SNOWFLAKE_ROLE
environment variable. . It can also be sourced from the following environment variable:SNOWFLAKE_ROLE
- Session
Params Dictionary<string, object> - Sets session parameters. Parameters
- Token string
- Token to use for OAuth and other forms of token based auth. Can also be sourced from the
SNOWFLAKE_TOKEN
environment variable. - Token
Accessor ProviderToken Accessor - User string
- Username. Can also be sourced from the
SNOWFLAKE_USER
environment variable. Required unless usingprofile
. - Username string
- Username for username+password authentication. Can also be sourced from the
SNOWFLAKE_USERNAME
environment variable. Required unless usingprofile
. It can also be sourced from the following environment variable:SNOWFLAKE_USER
- Validate
Default boolParameters - True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
connection is established. Can also be sourced from the
SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS
environment variable. - Warehouse string
- Specifies the virtual warehouse to use by default for queries, loading, etc. in the client session. Can also be sourced
from the
SNOWFLAKE_WAREHOUSE
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_WAREHOUSE
- Account string
- Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
Snowflake documentation. Can also be sourced
from the
SNOWFLAKE_ACCOUNT
environment variable. Required unless usingprofile
. It can also be sourced from the following environment variable:SNOWFLAKE_ACCOUNT
- Authenticator string
- Specifies the authentication type to use when
connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
UsernamePasswordMFA. Can also be sourced from the
SNOWFLAKE_AUTHENTICATOR
environment variable. It has to be set explicitly to JWT for private key authentication. - Browser
Auth bool - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_USE_BROWSER_AUTH
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_USE_BROWSER_AUTH
- Client
Ip string - IP address for network checks. Can also be sourced from the
SNOWFLAKE_CLIENT_IP
environment variable. - Client
Request boolMfa Token - When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
be sourced from the
SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN
environment variable. - Client
Store boolTemporary Credential - When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
sourced from the
SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL
environment variable. - Client
Timeout int - The timeout in seconds for the client to complete the authentication. Default is 900 seconds. Can also be sourced from
the
SNOWFLAKE_CLIENT_TIMEOUT
environment variable. - Disable
Query boolContext Cache - Should HTAP query context cache be disabled. Can also be sourced from the
SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE
environment variable. - Disable
Telemetry bool - Indicates whether to disable telemetry. Can also be sourced from the
SNOWFLAKE_DISABLE_TELEMETRY
environment variable. - External
Browser intTimeout - The timeout in seconds for the external browser to complete the authentication. Default is 120 seconds. Can also be
sourced from the
SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT
environment variable. - Host string
- Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
the
SNOWFLAKE_HOST
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_HOST
- Insecure
Mode bool - If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the
default value for testing or emergency situations only. Can also be sourced from the
SNOWFLAKE_INSECURE_MODE
environment variable. - Jwt
Client intTimeout - The timeout in seconds for the JWT client to complete the authentication. Default is 10 seconds. Can also be sourced
from the
SNOWFLAKE_JWT_CLIENT_TIMEOUT
environment variable. - Jwt
Expire intTimeout - JWT expire after timeout in seconds. Can also be sourced from the
SNOWFLAKE_JWT_EXPIRE_TIMEOUT
environment variable. - Keep
Session boolAlive - Enables the session to persist even after the connection is closed. Can also be sourced from the
SNOWFLAKE_KEEP_SESSION_ALIVE
environment variable. - Login
Timeout int - Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
SNOWFLAKE_LOGIN_TIMEOUT
environment variable. - Oauth
Access stringToken - Token for use with OAuth. Generating the token is left to other tools. Cannot be used with
browser_auth
,private_key_path
,oauth_refresh_token
orpassword
. Can also be sourced fromSNOWFLAKE_OAUTH_ACCESS_TOKEN
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_ACCESS_TOKEN
- Oauth
Client stringId - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_CLIENT_ID
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_CLIENT_ID
- Oauth
Client stringSecret - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_CLIENT_SECRET
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_CLIENT_SECRET
- Oauth
Endpoint string - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_ENDPOINT
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_ENDPOINT
- Oauth
Redirect stringUrl - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_REDIRECT_URL
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_REDIRECT_URL
- Oauth
Refresh stringToken - Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
oauth_client_id
,oauth_client_secret
,oauth_endpoint
,oauth_redirect_url
. Cannot be used withbrowser_auth
,private_key_path
,oauth_access_token
orpassword
. Can also be sourced fromSNOWFLAKE_OAUTH_REFRESH_TOKEN
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_REFRESH_TOKEN
- Ocsp
Fail boolOpen - True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
sourced from the
SNOWFLAKE_OCSP_FAIL_OPEN
environment variable. - Okta
Url string - The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the
SNOWFLAKE_OKTA_URL
environment variable. - Params map[string]interface{}
- Sets other connection (i.e. session) parameters. Parameters
- Passcode string
- Specifies the passcode provided by Duo when using multi-factor authentication (MFA) for login. Can also be sourced from
the
SNOWFLAKE_PASSCODE
environment variable. - Passcode
In boolPassword - False by default. Set to true if the MFA passcode is embedded in the login password. Appends the MFA passcode to the end
of the password. Can also be sourced from the
SNOWFLAKE_PASSCODE_IN_PASSWORD
environment variable. - Password string
- Password for username+password auth. Cannot be used with
browser_auth
orprivate_key_path
. Can also be sourced from theSNOWFLAKE_PASSWORD
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PASSWORD
- Port int
- Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
SNOWFLAKE_PORT
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PORT
- Private
Key string - Private Key for username+private-key auth. Cannot be used with
browser_auth
orpassword
. Can also be sourced fromSNOWFLAKE_PRIVATE_KEY
environment variable. - Private
Key stringPassphrase - Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
des-ede3-cbc. Can also be sourced from
SNOWFLAKE_PRIVATE_KEY_PASSPHRASE
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PRIVATE_KEY_PASSPHRASE
- Private
Key stringPath - Path to a private key for using keypair authentication. Cannot be used with
browser_auth
,oauth_access_token
orpassword
. Can also be sourced fromSNOWFLAKE_PRIVATE_KEY_PATH
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PRIVATE_KEY_PATH
- Profile string
- Sets the profile to read from ~/.snowflake/config file. Can also be sourced from the
SNOWFLAKE_PROFILE
environment variable. - Protocol string
- Either http or https, defaults to https. Can also be sourced from the
SNOWFLAKE_PROTOCOL
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PROTOCOL
- Region string
- Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
to specify the region as part of the account parameter. For details, see the description of the account parameter.
Snowflake region to use. Required if using the legacy
format for the
account
identifier in the form of<cloud_region_id>.<cloud>
. Can also be sourced from theSNOWFLAKE_REGION
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_REGION
- Request
Timeout int - request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
SNOWFLAKE_REQUEST_TIMEOUT
environment variable. - Role string
- Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
SNOWFLAKE_ROLE
environment variable. . It can also be sourced from the following environment variable:SNOWFLAKE_ROLE
- Session
Params map[string]interface{} - Sets session parameters. Parameters
- Token string
- Token to use for OAuth and other forms of token based auth. Can also be sourced from the
SNOWFLAKE_TOKEN
environment variable. - Token
Accessor ProviderToken Accessor Args - User string
- Username. Can also be sourced from the
SNOWFLAKE_USER
environment variable. Required unless usingprofile
. - Username string
- Username for username+password authentication. Can also be sourced from the
SNOWFLAKE_USERNAME
environment variable. Required unless usingprofile
. It can also be sourced from the following environment variable:SNOWFLAKE_USER
- Validate
Default boolParameters - True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
connection is established. Can also be sourced from the
SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS
environment variable. - Warehouse string
- Specifies the virtual warehouse to use by default for queries, loading, etc. in the client session. Can also be sourced
from the
SNOWFLAKE_WAREHOUSE
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_WAREHOUSE
- account String
- Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
Snowflake documentation. Can also be sourced
from the
SNOWFLAKE_ACCOUNT
environment variable. Required unless usingprofile
. It can also be sourced from the following environment variable:SNOWFLAKE_ACCOUNT
- authenticator String
- Specifies the authentication type to use when
connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
UsernamePasswordMFA. Can also be sourced from the
SNOWFLAKE_AUTHENTICATOR
environment variable. It has to be set explicitly to JWT for private key authentication. - browser
Auth Boolean - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_USE_BROWSER_AUTH
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_USE_BROWSER_AUTH
- client
Ip String - IP address for network checks. Can also be sourced from the
SNOWFLAKE_CLIENT_IP
environment variable. - client
Request BooleanMfa Token - When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
be sourced from the
SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN
environment variable. - client
Store BooleanTemporary Credential - When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
sourced from the
SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL
environment variable. - client
Timeout Integer - The timeout in seconds for the client to complete the authentication. Default is 900 seconds. Can also be sourced from
the
SNOWFLAKE_CLIENT_TIMEOUT
environment variable. - disable
Query BooleanContext Cache - Should HTAP query context cache be disabled. Can also be sourced from the
SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE
environment variable. - disable
Telemetry Boolean - Indicates whether to disable telemetry. Can also be sourced from the
SNOWFLAKE_DISABLE_TELEMETRY
environment variable. - external
Browser IntegerTimeout - The timeout in seconds for the external browser to complete the authentication. Default is 120 seconds. Can also be
sourced from the
SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT
environment variable. - host String
- Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
the
SNOWFLAKE_HOST
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_HOST
- insecure
Mode Boolean - If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the
default value for testing or emergency situations only. Can also be sourced from the
SNOWFLAKE_INSECURE_MODE
environment variable. - jwt
Client IntegerTimeout - The timeout in seconds for the JWT client to complete the authentication. Default is 10 seconds. Can also be sourced
from the
SNOWFLAKE_JWT_CLIENT_TIMEOUT
environment variable. - jwt
Expire IntegerTimeout - JWT expire after timeout in seconds. Can also be sourced from the
SNOWFLAKE_JWT_EXPIRE_TIMEOUT
environment variable. - keep
Session BooleanAlive - Enables the session to persist even after the connection is closed. Can also be sourced from the
SNOWFLAKE_KEEP_SESSION_ALIVE
environment variable. - login
Timeout Integer - Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
SNOWFLAKE_LOGIN_TIMEOUT
environment variable. - oauth
Access StringToken - Token for use with OAuth. Generating the token is left to other tools. Cannot be used with
browser_auth
,private_key_path
,oauth_refresh_token
orpassword
. Can also be sourced fromSNOWFLAKE_OAUTH_ACCESS_TOKEN
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_ACCESS_TOKEN
- oauth
Client StringId - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_CLIENT_ID
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_CLIENT_ID
- oauth
Client StringSecret - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_CLIENT_SECRET
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_CLIENT_SECRET
- oauth
Endpoint String - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_ENDPOINT
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_ENDPOINT
- oauth
Redirect StringUrl - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_REDIRECT_URL
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_REDIRECT_URL
- oauth
Refresh StringToken - Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
oauth_client_id
,oauth_client_secret
,oauth_endpoint
,oauth_redirect_url
. Cannot be used withbrowser_auth
,private_key_path
,oauth_access_token
orpassword
. Can also be sourced fromSNOWFLAKE_OAUTH_REFRESH_TOKEN
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_REFRESH_TOKEN
- ocsp
Fail BooleanOpen - True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
sourced from the
SNOWFLAKE_OCSP_FAIL_OPEN
environment variable. - okta
Url String - The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the
SNOWFLAKE_OKTA_URL
environment variable. - params Map<String,Object>
- Sets other connection (i.e. session) parameters. Parameters
- passcode String
- Specifies the passcode provided by Duo when using multi-factor authentication (MFA) for login. Can also be sourced from
the
SNOWFLAKE_PASSCODE
environment variable. - passcode
In BooleanPassword - False by default. Set to true if the MFA passcode is embedded in the login password. Appends the MFA passcode to the end
of the password. Can also be sourced from the
SNOWFLAKE_PASSCODE_IN_PASSWORD
environment variable. - password String
- Password for username+password auth. Cannot be used with
browser_auth
orprivate_key_path
. Can also be sourced from theSNOWFLAKE_PASSWORD
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PASSWORD
- port Integer
- Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
SNOWFLAKE_PORT
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PORT
- private
Key String - Private Key for username+private-key auth. Cannot be used with
browser_auth
orpassword
. Can also be sourced fromSNOWFLAKE_PRIVATE_KEY
environment variable. - private
Key StringPassphrase - Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
des-ede3-cbc. Can also be sourced from
SNOWFLAKE_PRIVATE_KEY_PASSPHRASE
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PRIVATE_KEY_PASSPHRASE
- private
Key StringPath - Path to a private key for using keypair authentication. Cannot be used with
browser_auth
,oauth_access_token
orpassword
. Can also be sourced fromSNOWFLAKE_PRIVATE_KEY_PATH
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PRIVATE_KEY_PATH
- profile String
- Sets the profile to read from ~/.snowflake/config file. Can also be sourced from the
SNOWFLAKE_PROFILE
environment variable. - protocol String
- Either http or https, defaults to https. Can also be sourced from the
SNOWFLAKE_PROTOCOL
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PROTOCOL
- region String
- Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
to specify the region as part of the account parameter. For details, see the description of the account parameter.
Snowflake region to use. Required if using the legacy
format for the
account
identifier in the form of<cloud_region_id>.<cloud>
. Can also be sourced from theSNOWFLAKE_REGION
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_REGION
- request
Timeout Integer - request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
SNOWFLAKE_REQUEST_TIMEOUT
environment variable. - role String
- Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
SNOWFLAKE_ROLE
environment variable. . It can also be sourced from the following environment variable:SNOWFLAKE_ROLE
- session
Params Map<String,Object> - Sets session parameters. Parameters
- token String
- Token to use for OAuth and other forms of token based auth. Can also be sourced from the
SNOWFLAKE_TOKEN
environment variable. - token
Accessor ProviderToken Accessor - user String
- Username. Can also be sourced from the
SNOWFLAKE_USER
environment variable. Required unless usingprofile
. - username String
- Username for username+password authentication. Can also be sourced from the
SNOWFLAKE_USERNAME
environment variable. Required unless usingprofile
. It can also be sourced from the following environment variable:SNOWFLAKE_USER
- validate
Default BooleanParameters - True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
connection is established. Can also be sourced from the
SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS
environment variable. - warehouse String
- Specifies the virtual warehouse to use by default for queries, loading, etc. in the client session. Can also be sourced
from the
SNOWFLAKE_WAREHOUSE
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_WAREHOUSE
- account string
- Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
Snowflake documentation. Can also be sourced
from the
SNOWFLAKE_ACCOUNT
environment variable. Required unless usingprofile
. It can also be sourced from the following environment variable:SNOWFLAKE_ACCOUNT
- authenticator string
- Specifies the authentication type to use when
connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
UsernamePasswordMFA. Can also be sourced from the
SNOWFLAKE_AUTHENTICATOR
environment variable. It has to be set explicitly to JWT for private key authentication. - browser
Auth boolean - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_USE_BROWSER_AUTH
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_USE_BROWSER_AUTH
- client
Ip string - IP address for network checks. Can also be sourced from the
SNOWFLAKE_CLIENT_IP
environment variable. - client
Request booleanMfa Token - When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
be sourced from the
SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN
environment variable. - client
Store booleanTemporary Credential - When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
sourced from the
SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL
environment variable. - client
Timeout number - The timeout in seconds for the client to complete the authentication. Default is 900 seconds. Can also be sourced from
the
SNOWFLAKE_CLIENT_TIMEOUT
environment variable. - disable
Query booleanContext Cache - Should HTAP query context cache be disabled. Can also be sourced from the
SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE
environment variable. - disable
Telemetry boolean - Indicates whether to disable telemetry. Can also be sourced from the
SNOWFLAKE_DISABLE_TELEMETRY
environment variable. - external
Browser numberTimeout - The timeout in seconds for the external browser to complete the authentication. Default is 120 seconds. Can also be
sourced from the
SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT
environment variable. - host string
- Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
the
SNOWFLAKE_HOST
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_HOST
- insecure
Mode boolean - If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the
default value for testing or emergency situations only. Can also be sourced from the
SNOWFLAKE_INSECURE_MODE
environment variable. - jwt
Client numberTimeout - The timeout in seconds for the JWT client to complete the authentication. Default is 10 seconds. Can also be sourced
from the
SNOWFLAKE_JWT_CLIENT_TIMEOUT
environment variable. - jwt
Expire numberTimeout - JWT expire after timeout in seconds. Can also be sourced from the
SNOWFLAKE_JWT_EXPIRE_TIMEOUT
environment variable. - keep
Session booleanAlive - Enables the session to persist even after the connection is closed. Can also be sourced from the
SNOWFLAKE_KEEP_SESSION_ALIVE
environment variable. - login
Timeout number - Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
SNOWFLAKE_LOGIN_TIMEOUT
environment variable. - oauth
Access stringToken - Token for use with OAuth. Generating the token is left to other tools. Cannot be used with
browser_auth
,private_key_path
,oauth_refresh_token
orpassword
. Can also be sourced fromSNOWFLAKE_OAUTH_ACCESS_TOKEN
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_ACCESS_TOKEN
- oauth
Client stringId - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_CLIENT_ID
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_CLIENT_ID
- oauth
Client stringSecret - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_CLIENT_SECRET
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_CLIENT_SECRET
- oauth
Endpoint string - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_ENDPOINT
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_ENDPOINT
- oauth
Redirect stringUrl - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_REDIRECT_URL
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_REDIRECT_URL
- oauth
Refresh stringToken - Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
oauth_client_id
,oauth_client_secret
,oauth_endpoint
,oauth_redirect_url
. Cannot be used withbrowser_auth
,private_key_path
,oauth_access_token
orpassword
. Can also be sourced fromSNOWFLAKE_OAUTH_REFRESH_TOKEN
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_REFRESH_TOKEN
- ocsp
Fail booleanOpen - True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
sourced from the
SNOWFLAKE_OCSP_FAIL_OPEN
environment variable. - okta
Url string - The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the
SNOWFLAKE_OKTA_URL
environment variable. - params {[key: string]: any}
- Sets other connection (i.e. session) parameters. Parameters
- passcode string
- Specifies the passcode provided by Duo when using multi-factor authentication (MFA) for login. Can also be sourced from
the
SNOWFLAKE_PASSCODE
environment variable. - passcode
In booleanPassword - False by default. Set to true if the MFA passcode is embedded in the login password. Appends the MFA passcode to the end
of the password. Can also be sourced from the
SNOWFLAKE_PASSCODE_IN_PASSWORD
environment variable. - password string
- Password for username+password auth. Cannot be used with
browser_auth
orprivate_key_path
. Can also be sourced from theSNOWFLAKE_PASSWORD
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PASSWORD
- port number
- Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
SNOWFLAKE_PORT
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PORT
- private
Key string - Private Key for username+private-key auth. Cannot be used with
browser_auth
orpassword
. Can also be sourced fromSNOWFLAKE_PRIVATE_KEY
environment variable. - private
Key stringPassphrase - Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
des-ede3-cbc. Can also be sourced from
SNOWFLAKE_PRIVATE_KEY_PASSPHRASE
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PRIVATE_KEY_PASSPHRASE
- private
Key stringPath - Path to a private key for using keypair authentication. Cannot be used with
browser_auth
,oauth_access_token
orpassword
. Can also be sourced fromSNOWFLAKE_PRIVATE_KEY_PATH
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PRIVATE_KEY_PATH
- profile string
- Sets the profile to read from ~/.snowflake/config file. Can also be sourced from the
SNOWFLAKE_PROFILE
environment variable. - protocol string
- Either http or https, defaults to https. Can also be sourced from the
SNOWFLAKE_PROTOCOL
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PROTOCOL
- region string
- Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
to specify the region as part of the account parameter. For details, see the description of the account parameter.
Snowflake region to use. Required if using the legacy
format for the
account
identifier in the form of<cloud_region_id>.<cloud>
. Can also be sourced from theSNOWFLAKE_REGION
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_REGION
- request
Timeout number - request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
SNOWFLAKE_REQUEST_TIMEOUT
environment variable. - role string
- Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
SNOWFLAKE_ROLE
environment variable. . It can also be sourced from the following environment variable:SNOWFLAKE_ROLE
- session
Params {[key: string]: any} - Sets session parameters. Parameters
- token string
- Token to use for OAuth and other forms of token based auth. Can also be sourced from the
SNOWFLAKE_TOKEN
environment variable. - token
Accessor ProviderToken Accessor - user string
- Username. Can also be sourced from the
SNOWFLAKE_USER
environment variable. Required unless usingprofile
. - username string
- Username for username+password authentication. Can also be sourced from the
SNOWFLAKE_USERNAME
environment variable. Required unless usingprofile
. It can also be sourced from the following environment variable:SNOWFLAKE_USER
- validate
Default booleanParameters - True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
connection is established. Can also be sourced from the
SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS
environment variable. - warehouse string
- Specifies the virtual warehouse to use by default for queries, loading, etc. in the client session. Can also be sourced
from the
SNOWFLAKE_WAREHOUSE
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_WAREHOUSE
- account str
- Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
Snowflake documentation. Can also be sourced
from the
SNOWFLAKE_ACCOUNT
environment variable. Required unless usingprofile
. It can also be sourced from the following environment variable:SNOWFLAKE_ACCOUNT
- authenticator str
- Specifies the authentication type to use when
connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
UsernamePasswordMFA. Can also be sourced from the
SNOWFLAKE_AUTHENTICATOR
environment variable. It has to be set explicitly to JWT for private key authentication. - browser_
auth bool - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_USE_BROWSER_AUTH
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_USE_BROWSER_AUTH
- client_
ip str - IP address for network checks. Can also be sourced from the
SNOWFLAKE_CLIENT_IP
environment variable. - client_
request_ boolmfa_ token - When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
be sourced from the
SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN
environment variable. - client_
store_ booltemporary_ credential - When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
sourced from the
SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL
environment variable. - client_
timeout int - The timeout in seconds for the client to complete the authentication. Default is 900 seconds. Can also be sourced from
the
SNOWFLAKE_CLIENT_TIMEOUT
environment variable. - disable_
query_ boolcontext_ cache - Should HTAP query context cache be disabled. Can also be sourced from the
SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE
environment variable. - disable_
telemetry bool - Indicates whether to disable telemetry. Can also be sourced from the
SNOWFLAKE_DISABLE_TELEMETRY
environment variable. - external_
browser_ inttimeout - The timeout in seconds for the external browser to complete the authentication. Default is 120 seconds. Can also be
sourced from the
SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT
environment variable. - host str
- Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
the
SNOWFLAKE_HOST
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_HOST
- insecure_
mode bool - If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the
default value for testing or emergency situations only. Can also be sourced from the
SNOWFLAKE_INSECURE_MODE
environment variable. - jwt_
client_ inttimeout - The timeout in seconds for the JWT client to complete the authentication. Default is 10 seconds. Can also be sourced
from the
SNOWFLAKE_JWT_CLIENT_TIMEOUT
environment variable. - jwt_
expire_ inttimeout - JWT expire after timeout in seconds. Can also be sourced from the
SNOWFLAKE_JWT_EXPIRE_TIMEOUT
environment variable. - keep_
session_ boolalive - Enables the session to persist even after the connection is closed. Can also be sourced from the
SNOWFLAKE_KEEP_SESSION_ALIVE
environment variable. - login_
timeout int - Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
SNOWFLAKE_LOGIN_TIMEOUT
environment variable. - oauth_
access_ strtoken - Token for use with OAuth. Generating the token is left to other tools. Cannot be used with
browser_auth
,private_key_path
,oauth_refresh_token
orpassword
. Can also be sourced fromSNOWFLAKE_OAUTH_ACCESS_TOKEN
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_ACCESS_TOKEN
- oauth_
client_ strid - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_CLIENT_ID
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_CLIENT_ID
- oauth_
client_ strsecret - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_CLIENT_SECRET
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_CLIENT_SECRET
- oauth_
endpoint str - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_ENDPOINT
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_ENDPOINT
- oauth_
redirect_ strurl - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_REDIRECT_URL
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_REDIRECT_URL
- oauth_
refresh_ strtoken - Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
oauth_client_id
,oauth_client_secret
,oauth_endpoint
,oauth_redirect_url
. Cannot be used withbrowser_auth
,private_key_path
,oauth_access_token
orpassword
. Can also be sourced fromSNOWFLAKE_OAUTH_REFRESH_TOKEN
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_REFRESH_TOKEN
- ocsp_
fail_ boolopen - True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
sourced from the
SNOWFLAKE_OCSP_FAIL_OPEN
environment variable. - okta_
url str - The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the
SNOWFLAKE_OKTA_URL
environment variable. - params Mapping[str, Any]
- Sets other connection (i.e. session) parameters. Parameters
- passcode str
- Specifies the passcode provided by Duo when using multi-factor authentication (MFA) for login. Can also be sourced from
the
SNOWFLAKE_PASSCODE
environment variable. - passcode_
in_ boolpassword - False by default. Set to true if the MFA passcode is embedded in the login password. Appends the MFA passcode to the end
of the password. Can also be sourced from the
SNOWFLAKE_PASSCODE_IN_PASSWORD
environment variable. - password str
- Password for username+password auth. Cannot be used with
browser_auth
orprivate_key_path
. Can also be sourced from theSNOWFLAKE_PASSWORD
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PASSWORD
- port int
- Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
SNOWFLAKE_PORT
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PORT
- private_
key str - Private Key for username+private-key auth. Cannot be used with
browser_auth
orpassword
. Can also be sourced fromSNOWFLAKE_PRIVATE_KEY
environment variable. - private_
key_ strpassphrase - Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
des-ede3-cbc. Can also be sourced from
SNOWFLAKE_PRIVATE_KEY_PASSPHRASE
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PRIVATE_KEY_PASSPHRASE
- private_
key_ strpath - Path to a private key for using keypair authentication. Cannot be used with
browser_auth
,oauth_access_token
orpassword
. Can also be sourced fromSNOWFLAKE_PRIVATE_KEY_PATH
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PRIVATE_KEY_PATH
- profile str
- Sets the profile to read from ~/.snowflake/config file. Can also be sourced from the
SNOWFLAKE_PROFILE
environment variable. - protocol str
- Either http or https, defaults to https. Can also be sourced from the
SNOWFLAKE_PROTOCOL
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PROTOCOL
- region str
- Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
to specify the region as part of the account parameter. For details, see the description of the account parameter.
Snowflake region to use. Required if using the legacy
format for the
account
identifier in the form of<cloud_region_id>.<cloud>
. Can also be sourced from theSNOWFLAKE_REGION
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_REGION
- request_
timeout int - request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
SNOWFLAKE_REQUEST_TIMEOUT
environment variable. - role str
- Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
SNOWFLAKE_ROLE
environment variable. . It can also be sourced from the following environment variable:SNOWFLAKE_ROLE
- session_
params Mapping[str, Any] - Sets session parameters. Parameters
- token str
- Token to use for OAuth and other forms of token based auth. Can also be sourced from the
SNOWFLAKE_TOKEN
environment variable. - token_
accessor ProviderToken Accessor Args - user str
- Username. Can also be sourced from the
SNOWFLAKE_USER
environment variable. Required unless usingprofile
. - username str
- Username for username+password authentication. Can also be sourced from the
SNOWFLAKE_USERNAME
environment variable. Required unless usingprofile
. It can also be sourced from the following environment variable:SNOWFLAKE_USER
- validate_
default_ boolparameters - True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
connection is established. Can also be sourced from the
SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS
environment variable. - warehouse str
- Specifies the virtual warehouse to use by default for queries, loading, etc. in the client session. Can also be sourced
from the
SNOWFLAKE_WAREHOUSE
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_WAREHOUSE
- account String
- Specifies your Snowflake account identifier assigned, by Snowflake. For information about account identifiers, see the
Snowflake documentation. Can also be sourced
from the
SNOWFLAKE_ACCOUNT
environment variable. Required unless usingprofile
. It can also be sourced from the following environment variable:SNOWFLAKE_ACCOUNT
- authenticator String
- Specifies the authentication type to use when
connecting to Snowflake. Valid values include: Snowflake, OAuth, ExternalBrowser, Okta, JWT, TokenAccessor,
UsernamePasswordMFA. Can also be sourced from the
SNOWFLAKE_AUTHENTICATOR
environment variable. It has to be set explicitly to JWT for private key authentication. - browser
Auth Boolean - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_USE_BROWSER_AUTH
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_USE_BROWSER_AUTH
- client
Ip String - IP address for network checks. Can also be sourced from the
SNOWFLAKE_CLIENT_IP
environment variable. - client
Request BooleanMfa Token - When true the MFA token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also
be sourced from the
SNOWFLAKE_CLIENT_REQUEST_MFA_TOKEN
environment variable. - client
Store BooleanTemporary Credential - When true the ID token is cached in the credential manager. True by default in Windows/OSX. False for Linux. Can also be
sourced from the
SNOWFLAKE_CLIENT_STORE_TEMPORARY_CREDENTIAL
environment variable. - client
Timeout Number - The timeout in seconds for the client to complete the authentication. Default is 900 seconds. Can also be sourced from
the
SNOWFLAKE_CLIENT_TIMEOUT
environment variable. - disable
Query BooleanContext Cache - Should HTAP query context cache be disabled. Can also be sourced from the
SNOWFLAKE_DISABLE_QUERY_CONTEXT_CACHE
environment variable. - disable
Telemetry Boolean - Indicates whether to disable telemetry. Can also be sourced from the
SNOWFLAKE_DISABLE_TELEMETRY
environment variable. - external
Browser NumberTimeout - The timeout in seconds for the external browser to complete the authentication. Default is 120 seconds. Can also be
sourced from the
SNOWFLAKE_EXTERNAL_BROWSER_TIMEOUT
environment variable. - host String
- Supports passing in a custom host value to the snowflake go driver for use with privatelink. Can also be sourced from
the
SNOWFLAKE_HOST
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_HOST
- insecure
Mode Boolean - If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the
default value for testing or emergency situations only. Can also be sourced from the
SNOWFLAKE_INSECURE_MODE
environment variable. - jwt
Client NumberTimeout - The timeout in seconds for the JWT client to complete the authentication. Default is 10 seconds. Can also be sourced
from the
SNOWFLAKE_JWT_CLIENT_TIMEOUT
environment variable. - jwt
Expire NumberTimeout - JWT expire after timeout in seconds. Can also be sourced from the
SNOWFLAKE_JWT_EXPIRE_TIMEOUT
environment variable. - keep
Session BooleanAlive - Enables the session to persist even after the connection is closed. Can also be sourced from the
SNOWFLAKE_KEEP_SESSION_ALIVE
environment variable. - login
Timeout Number - Login retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
SNOWFLAKE_LOGIN_TIMEOUT
environment variable. - oauth
Access StringToken - Token for use with OAuth. Generating the token is left to other tools. Cannot be used with
browser_auth
,private_key_path
,oauth_refresh_token
orpassword
. Can also be sourced fromSNOWFLAKE_OAUTH_ACCESS_TOKEN
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_ACCESS_TOKEN
- oauth
Client StringId - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_CLIENT_ID
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_CLIENT_ID
- oauth
Client StringSecret - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_CLIENT_SECRET
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_CLIENT_SECRET
- oauth
Endpoint String - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_ENDPOINT
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_ENDPOINT
- oauth
Redirect StringUrl - Required when
oauth_refresh_token
is used. Can also be sourced fromSNOWFLAKE_OAUTH_REDIRECT_URL
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_REDIRECT_URL
- oauth
Refresh StringToken - Token for use with OAuth. Setup and generation of the token is left to other tools. Should be used in conjunction with
oauth_client_id
,oauth_client_secret
,oauth_endpoint
,oauth_redirect_url
. Cannot be used withbrowser_auth
,private_key_path
,oauth_access_token
orpassword
. Can also be sourced fromSNOWFLAKE_OAUTH_REFRESH_TOKEN
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_OAUTH_REFRESH_TOKEN
- ocsp
Fail BooleanOpen - True represents OCSP fail open mode. False represents OCSP fail closed mode. Fail open true by default. Can also be
sourced from the
SNOWFLAKE_OCSP_FAIL_OPEN
environment variable. - okta
Url String - The URL of the Okta server. e.g. https://example.okta.com. Can also be sourced from the
SNOWFLAKE_OKTA_URL
environment variable. - params Map<Any>
- Sets other connection (i.e. session) parameters. Parameters
- passcode String
- Specifies the passcode provided by Duo when using multi-factor authentication (MFA) for login. Can also be sourced from
the
SNOWFLAKE_PASSCODE
environment variable. - passcode
In BooleanPassword - False by default. Set to true if the MFA passcode is embedded in the login password. Appends the MFA passcode to the end
of the password. Can also be sourced from the
SNOWFLAKE_PASSCODE_IN_PASSWORD
environment variable. - password String
- Password for username+password auth. Cannot be used with
browser_auth
orprivate_key_path
. Can also be sourced from theSNOWFLAKE_PASSWORD
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PASSWORD
- port Number
- Support custom port values to snowflake go driver for use with privatelink. Can also be sourced from the
SNOWFLAKE_PORT
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PORT
- private
Key String - Private Key for username+private-key auth. Cannot be used with
browser_auth
orpassword
. Can also be sourced fromSNOWFLAKE_PRIVATE_KEY
environment variable. - private
Key StringPassphrase - Supports the encryption ciphers aes-128-cbc, aes-128-gcm, aes-192-cbc, aes-192-gcm, aes-256-cbc, aes-256-gcm, and
des-ede3-cbc. Can also be sourced from
SNOWFLAKE_PRIVATE_KEY_PASSPHRASE
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PRIVATE_KEY_PASSPHRASE
- private
Key StringPath - Path to a private key for using keypair authentication. Cannot be used with
browser_auth
,oauth_access_token
orpassword
. Can also be sourced fromSNOWFLAKE_PRIVATE_KEY_PATH
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PRIVATE_KEY_PATH
- profile String
- Sets the profile to read from ~/.snowflake/config file. Can also be sourced from the
SNOWFLAKE_PROFILE
environment variable. - protocol String
- Either http or https, defaults to https. Can also be sourced from the
SNOWFLAKE_PROTOCOL
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_PROTOCOL
- region String
- Snowflake region, such as "eu-central-1", with this parameter. However, since this parameter is deprecated, it is best
to specify the region as part of the account parameter. For details, see the description of the account parameter.
Snowflake region to use. Required if using the legacy
format for the
account
identifier in the form of<cloud_region_id>.<cloud>
. Can also be sourced from theSNOWFLAKE_REGION
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_REGION
- request
Timeout Number - request retry timeout EXCLUDING network roundtrip and read out http response. Can also be sourced from the
SNOWFLAKE_REQUEST_TIMEOUT
environment variable. - role String
- Specifies the role to use by default for accessing Snowflake objects in the client session. Can also be sourced from the
SNOWFLAKE_ROLE
environment variable. . It can also be sourced from the following environment variable:SNOWFLAKE_ROLE
- session
Params Map<Any> - Sets session parameters. Parameters
- token String
- Token to use for OAuth and other forms of token based auth. Can also be sourced from the
SNOWFLAKE_TOKEN
environment variable. - token
Accessor Property Map - user String
- Username. Can also be sourced from the
SNOWFLAKE_USER
environment variable. Required unless usingprofile
. - username String
- Username for username+password authentication. Can also be sourced from the
SNOWFLAKE_USERNAME
environment variable. Required unless usingprofile
. It can also be sourced from the following environment variable:SNOWFLAKE_USER
- validate
Default BooleanParameters - True by default. If false, disables the validation checks for Database, Schema, Warehouse and Role at the time a
connection is established. Can also be sourced from the
SNOWFLAKE_VALIDATE_DEFAULT_PARAMETERS
environment variable. - warehouse String
- Specifies the virtual warehouse to use by default for queries, loading, etc. in the client session. Can also be sourced
from the
SNOWFLAKE_WAREHOUSE
environment variable. It can also be sourced from the following environment variable:SNOWFLAKE_WAREHOUSE
Outputs
All input properties are implicitly available as output properties. Additionally, the Provider resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
ProviderTokenAccessor, ProviderTokenAccessorArgs
- Client
Id string - The client ID for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_CLIENT_ID
environment variable. - Client
Secret string - The client secret for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_CLIENT_SECRET
environment variable. - Redirect
Uri string - The redirect URI for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_REDIRECT_URI
environment variable. - Refresh
Token string - The refresh token for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_REFRESH_TOKEN
environment variable. - Token
Endpoint string - The token endpoint for the OAuth provider e.g. https://{yourDomain}/oauth/token when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_TOKEN_ENDPOINT
environment variable.
- Client
Id string - The client ID for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_CLIENT_ID
environment variable. - Client
Secret string - The client secret for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_CLIENT_SECRET
environment variable. - Redirect
Uri string - The redirect URI for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_REDIRECT_URI
environment variable. - Refresh
Token string - The refresh token for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_REFRESH_TOKEN
environment variable. - Token
Endpoint string - The token endpoint for the OAuth provider e.g. https://{yourDomain}/oauth/token when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_TOKEN_ENDPOINT
environment variable.
- client
Id String - The client ID for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_CLIENT_ID
environment variable. - client
Secret String - The client secret for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_CLIENT_SECRET
environment variable. - redirect
Uri String - The redirect URI for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_REDIRECT_URI
environment variable. - refresh
Token String - The refresh token for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_REFRESH_TOKEN
environment variable. - token
Endpoint String - The token endpoint for the OAuth provider e.g. https://{yourDomain}/oauth/token when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_TOKEN_ENDPOINT
environment variable.
- client
Id string - The client ID for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_CLIENT_ID
environment variable. - client
Secret string - The client secret for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_CLIENT_SECRET
environment variable. - redirect
Uri string - The redirect URI for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_REDIRECT_URI
environment variable. - refresh
Token string - The refresh token for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_REFRESH_TOKEN
environment variable. - token
Endpoint string - The token endpoint for the OAuth provider e.g. https://{yourDomain}/oauth/token when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_TOKEN_ENDPOINT
environment variable.
- client_
id str - The client ID for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_CLIENT_ID
environment variable. - client_
secret str - The client secret for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_CLIENT_SECRET
environment variable. - redirect_
uri str - The redirect URI for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_REDIRECT_URI
environment variable. - refresh_
token str - The refresh token for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_REFRESH_TOKEN
environment variable. - token_
endpoint str - The token endpoint for the OAuth provider e.g. https://{yourDomain}/oauth/token when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_TOKEN_ENDPOINT
environment variable.
- client
Id String - The client ID for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_CLIENT_ID
environment variable. - client
Secret String - The client secret for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_CLIENT_SECRET
environment variable. - redirect
Uri String - The redirect URI for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_REDIRECT_URI
environment variable. - refresh
Token String - The refresh token for the OAuth provider when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_REFRESH_TOKEN
environment variable. - token
Endpoint String - The token endpoint for the OAuth provider e.g. https://{yourDomain}/oauth/token when using a refresh token to renew access token. Can also be sourced from the
SNOWFLAKE_TOKEN_ACCESSOR_TOKEN_ENDPOINT
environment variable.
Package Details
- Repository
- Snowflake pulumi/pulumi-snowflake
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
snowflake
Terraform Provider.