config

package
v0.0.0-...-67af332 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 2 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.

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

func GetHost(ctx *pulumi.Context) string

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

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 GetPassword

func GetPassword(ctx *pulumi.Context) string

Password for username+password auth. Cannot be used with `browser_auth` or `private_key_path`. Can be source from `SNOWFLAKE_PASSWORD` environment variable.

func GetPort

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 source from `SNOWFLAKE_PRIVATE_KEY` environment variable.

func GetPrivateKeyPassphrase

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 source from `SNOWFLAKE_PRIVATE_KEY_PATH` environment variable.

func GetProtocol

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. Can be source 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 come from the `SNOWFLAKE_ROLE` environment variable.

func GetUsername

func GetUsername(ctx *pulumi.Context) string

Username for username+password authentication. Can come from the `SNOWFLAKE_USER` environment variable.

func GetWarehouse

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