config

package
v0.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccount

func GetAccount(ctx *pulumi.Context) string

The name of the Snowflake account. Can also come from the `SNOWFLAKE_ACCOUNT` environment variable. Required unless using profile.

func GetBrowserAuth

func GetBrowserAuth(ctx *pulumi.Context) bool

Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_USE_BROWSER_AUTH` environment variable.

func GetHost added in v0.7.0

func GetHost(ctx *pulumi.Context) string

Supports passing in a custom host value to the snowflake go driver for use with privatelink.

func GetInsecureMode added in v0.23.0

func GetInsecureMode(ctx *pulumi.Context) bool

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

func GetOauthAccessToken(ctx *pulumi.Context) string

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

func GetOauthClientId(ctx *pulumi.Context) string

Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_CLIENT_ID` environment variable.

func GetOauthClientSecret

func GetOauthClientSecret(ctx *pulumi.Context) string

Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_CLIENT_SECRET` environment variable.

func GetOauthEndpoint

func GetOauthEndpoint(ctx *pulumi.Context) string

Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_ENDPOINT` environment variable.

func GetOauthRedirectUrl

func GetOauthRedirectUrl(ctx *pulumi.Context) string

Required when `oauth_refresh_token` is used. Can be sourced from `SNOWFLAKE_OAUTH_REDIRECT_URL` environment variable.

func GetOauthRefreshToken

func GetOauthRefreshToken(ctx *pulumi.Context) string

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

func GetPasscode(ctx *pulumi.Context) string

Specifies the passcode provided by Duo when using multi-factor authentication (MFA) for login.

func GetPasscodeInPassword added in v0.36.0

func GetPasscodeInPassword(ctx *pulumi.Context) bool

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

func GetPassword(ctx *pulumi.Context) string

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

func GetPort(ctx *pulumi.Context) int

Support custom port values to snowflake go driver for use with privatelink. Can be sourced from `SNOWFLAKE_PORT` environment variable.

func GetPrivateKey

func GetPrivateKey(ctx *pulumi.Context) string

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

func GetPrivateKeyPassphrase(ctx *pulumi.Context) string

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

func GetPrivateKeyPath(ctx *pulumi.Context) string

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

func GetProfile(ctx *pulumi.Context) string

Sets the profile to read from ~/.snowflake/config file.

func GetProtocol added in v0.14.0

func GetProtocol(ctx *pulumi.Context) string

Support custom protocols to snowflake go driver. Can be sourced from `SNOWFLAKE_PROTOCOL` environment variable.

func GetRegion

func GetRegion(ctx *pulumi.Context) string

[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

func GetRole(ctx *pulumi.Context) string

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

func GetSessionParams(ctx *pulumi.Context) string

Sets session parameters. [Parameters](https://docs.snowflake.com/en/sql-reference/parameters)

func GetUsername

func GetUsername(ctx *pulumi.Context) string

Username for username+password authentication. Can come from the `SNOWFLAKE_USER` environment variable. Required unless using profile.

func GetWarehouse added in v0.11.0

func GetWarehouse(ctx *pulumi.Context) string

Sets the default warehouse. Optional. Can be sourced from SNOWFLAKE_WAREHOUSE environment variable.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL