Documentation ¶
Index ¶
- func GetAccount(ctx *pulumi.Context) string
- func GetBrowserAuth(ctx *pulumi.Context) bool
- func GetHost(ctx *pulumi.Context) string
- func GetInsecureMode(ctx *pulumi.Context) bool
- func GetOauthAccessToken(ctx *pulumi.Context) string
- func GetOauthClientId(ctx *pulumi.Context) string
- func GetOauthClientSecret(ctx *pulumi.Context) string
- func GetOauthEndpoint(ctx *pulumi.Context) string
- func GetOauthRedirectUrl(ctx *pulumi.Context) string
- func GetOauthRefreshToken(ctx *pulumi.Context) string
- func GetPasscode(ctx *pulumi.Context) string
- func GetPasscodeInPassword(ctx *pulumi.Context) bool
- func GetPassword(ctx *pulumi.Context) string
- func GetPort(ctx *pulumi.Context) int
- func GetPrivateKey(ctx *pulumi.Context) string
- func GetPrivateKeyPassphrase(ctx *pulumi.Context) string
- func GetPrivateKeyPath(ctx *pulumi.Context) string
- func GetProfile(ctx *pulumi.Context) string
- func GetProtocol(ctx *pulumi.Context) string
- func GetRegion(ctx *pulumi.Context) string
- func GetRole(ctx *pulumi.Context) string
- func GetSessionParams(ctx *pulumi.Context) string
- func GetUsername(ctx *pulumi.Context) string
- func GetWarehouse(ctx *pulumi.Context) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccount ¶
The name of the Snowflake account. Can also come from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using profile.
func GetBrowserAuth ¶
Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_USE_BROWSER_AUTH` environment variable.
func GetHost ¶ added in v0.7.0
Supports passing in a custom host value to the snowflake go driver for use with privatelink.
func GetInsecureMode ¶ added in v0.23.0
If true, bypass the Online Certificate Status Protocol (OCSP) certificate revocation check. IMPORTANT: Change the default value for testing or emergency situations only.
func GetOauthAccessToken ¶
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` or `password`. Can be sourced from `SNOWFLAKE_OAUTH_ACCESS_TOKEN` environment variable.
func GetOauthClientId ¶
Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.
func GetOauthClientSecret ¶
Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment variable.
func GetOauthEndpoint ¶
Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.
func GetOauthRedirectUrl ¶
Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment variable.
func GetOauthRefreshToken ¶
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 with `browser_auth`, `private_key_path`, `oauth_access_token` or `password`. Can be sourced from `SNOWFLAKE_OAUTH_REFRESH_TOKEN` environment variable.
func GetPasscode ¶ added in v0.36.0
Specifies the passcode provided by Duo when using multi-factor authentication (MFA) for login.
func GetPasscodeInPassword ¶ added in v0.36.0
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.
func GetPassword ¶
Password for username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can be sourced from `SNOWFLAKE_PASSWORD` environment variable.
func GetPort ¶ added in v0.14.0
Support custom port values to snowflake go driver for use with privatelink. Can be sourced from `SNOWFLAKE_PORT` environment variable.
func GetPrivateKey ¶
Private Key for username+private-key auth. Cannot be used with `browser_auth` or `password`. Can be sourced from `SNOWFLAKE_PRIVATE_KEY` environment variable.
func GetPrivateKeyPassphrase ¶ added in v0.1.3
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
func GetPrivateKeyPath ¶
Path to a private key for using keypair authentication. Cannot be used with `browser_auth`, `oauth_access_token` or `password`. Can be sourced from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.
func GetProfile ¶ added in v0.25.0
Sets the profile to read from ~/.snowflake/config file.
func GetProtocol ¶ added in v0.14.0
Support custom protocols to snowflake go driver. Can be sourced from `SNOWFLAKE_PROTOCOL` environment variable.
func GetRegion ¶
[Snowflake region](https://docs.snowflake.com/en/user-guide/intro-regions.html) to use. Required if using the [legacy format for the `account` identifier](https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#format-2-legacy-account-locator-in-a-region) in the form of `<cloud_region_id>.<cloud>`. Can be sourced from the `SNOWFLAKE_REGION` environment variable.
func GetRole ¶
Snowflake role to use for operations. If left unset, default role for user will be used. Can be sourced from the `SNOWFLAKE_ROLE` environment variable.
func GetSessionParams ¶ added in v0.29.0
Sets session parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)
func GetUsername ¶
Username for username+password authentication. Can come from the `SNOWFLAKE_USER` environment variable. Required unless using profile.
func GetWarehouse ¶ added in v0.11.0
Sets the default warehouse. Optional. Can be sourced from SNOWFLAKE_WAREHOUSE environment variable.
Types ¶
This section is empty.