generated from pulumi/pulumi-tf-provider-boilerplate
/
config.go
58 lines (54 loc) · 1.93 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package config
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func GetAccount(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:account")
}
func GetBrowserAuth(ctx *pulumi.Context) bool {
return config.GetBool(ctx, "snowflake:browserAuth")
}
func GetOauthAccessToken(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:oauthAccessToken")
}
func GetOauthClientId(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:oauthClientId")
}
func GetOauthClientSecret(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:oauthClientSecret")
}
func GetOauthEndpoint(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:oauthEndpoint")
}
func GetOauthRedirectUrl(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:oauthRedirectUrl")
}
func GetOauthRefreshToken(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:oauthRefreshToken")
}
func GetPassword(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:password")
}
func GetPrivateKey(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:privateKey")
}
// 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 GetPrivateKeyPassphrase(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:privateKeyPassphrase")
}
func GetPrivateKeyPath(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:privateKeyPath")
}
func GetRegion(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:region")
}
func GetRole(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:role")
}
func GetUsername(ctx *pulumi.Context) string {
return config.Get(ctx, "snowflake:username")
}