/
config.go
32 lines (26 loc) · 1.11 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
// 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/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
// Fastly API Key from https://app.fastly.com/#account
func GetApiKey(ctx *pulumi.Context) string {
return config.Get(ctx, "fastly:apiKey")
}
// Fastly API URL
func GetBaseUrl(ctx *pulumi.Context) string {
return config.Get(ctx, "fastly:baseUrl")
}
// Set this to `true` to disable HTTP/1.x fallback mechanism that the underlying Go library will attempt upon connection to
// `api.fastly.com:443` by default. This may slightly improve the provider's performance and reduce unnecessary TLS
// handshakes. Default: `false`
func GetForceHttp2(ctx *pulumi.Context) bool {
return config.GetBool(ctx, "fastly:forceHttp2")
}
// Set to `true` if your configuration only consumes data sources that do not require authentication, such as
// `fastly_ip_ranges`
func GetNoAuth(ctx *pulumi.Context) bool {
return config.GetBool(ctx, "fastly:noAuth")
}