generated from pulumi/pulumi-tf-provider-boilerplate
/
config.go
84 lines (69 loc) · 3.45 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package config
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
var _ = internal.GetEnvOrDefault
// (Optional) The type of auth to use. Options are 'ApiKey', 'SecurityToken' and 'InstancePrincipal' and
// 'ResourcePrincipal'. By default, 'ApiKey' will be used.
func GetAuth(ctx *pulumi.Context) string {
return config.Get(ctx, "oci:auth")
}
// (Optional) The profile name to be used from config file, if not set it will be DEFAULT.
func GetConfigFileProfile(ctx *pulumi.Context) string {
return config.Get(ctx, "oci:configFileProfile")
}
// (Optional) Disable automatic retries for retriable errors. Automatic retries were introduced to solve some eventual
// consistency problems but it also introduced performance issues on destroy operations.
func GetDisableAutoRetries(ctx *pulumi.Context) bool {
return config.GetBool(ctx, "oci:disableAutoRetries")
}
// (Optional) The fingerprint for the user's RSA key. This can be found in user settings in the Oracle Cloud Infrastructure
// console. Required if auth is set to 'ApiKey', ignored otherwise.
func GetFingerprint(ctx *pulumi.Context) string {
return config.Get(ctx, "oci:fingerprint")
}
func GetIgnoreDefinedTags(ctx *pulumi.Context) string {
return config.Get(ctx, "oci:ignoreDefinedTags")
}
// (Optional) A PEM formatted RSA private key for the user. A privateKey or a privateKeyPath must be provided if auth is
// set to 'ApiKey', ignored otherwise.
func GetPrivateKey(ctx *pulumi.Context) string {
return config.Get(ctx, "oci:privateKey")
}
// (Optional) The password used to secure the private key.
func GetPrivateKeyPassword(ctx *pulumi.Context) string {
return config.Get(ctx, "oci:privateKeyPassword")
}
// (Optional) The path to the user's PEM formatted private key. A privateKey or a privateKeyPath must be provided if auth
// is set to 'ApiKey', ignored otherwise.
func GetPrivateKeyPath(ctx *pulumi.Context) string {
return config.Get(ctx, "oci:privateKeyPath")
}
// (Optional) flags to enable realm specific service endpoint.
func GetRealmSpecificServiceEndpointTemplateEnabled(ctx *pulumi.Context) bool {
return config.GetBool(ctx, "oci:realmSpecificServiceEndpointTemplateEnabled")
}
// (Required) The region for API connections (e.g. us-ashburn-1).
func GetRegion(ctx *pulumi.Context) string {
return config.Get(ctx, "oci:region")
}
// (Optional) The minimum duration (in seconds) to retry a resource operation in response to an error. The actual retry
// duration may be longer due to jittering of retry operations. This value is ignored if the `disableAutoRetries` field is
// set to true.
func GetRetryDurationSeconds(ctx *pulumi.Context) int {
return config.GetInt(ctx, "oci:retryDurationSeconds")
}
// (Optional) The tenancy OCID for a user. The tenancy OCID can be found at the bottom of user settings in the Oracle Cloud
// Infrastructure console. Required if auth is set to 'ApiKey', ignored otherwise.
func GetTenancyOcid(ctx *pulumi.Context) string {
return config.Get(ctx, "oci:tenancyOcid")
}
// (Optional) The user OCID. This can be found in user settings in the Oracle Cloud Infrastructure console. Required if
// auth is set to 'ApiKey', ignored otherwise.
func GetUserOcid(ctx *pulumi.Context) string {
return config.Get(ctx, "oci:userOcid")
}