generated from pulumi/pulumi-tf-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
32 lines (25 loc) · 1.1 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"
"github.com/ru5j4r0/pulumi-prefect/sdk/go/prefect/internal"
)
var _ = internal.GetEnvOrDefault
// Default Prefect Cloud Account ID. Can also be set via the `PREFECT_CLOUD_ACCOUNT_ID` environment variable.
func GetAccountId(ctx *pulumi.Context) string {
return config.Get(ctx, "prefect:accountId")
}
// Prefect Cloud API Key. Can also be set via the `PREFECT_API_KEY` environment variable.
func GetApiKey(ctx *pulumi.Context) string {
return config.Get(ctx, "prefect:apiKey")
}
// Prefect API URL. Can also be set via the `PREFECT_API_URL` environment variable. Defaults to `https://api.prefect.cloud`
func GetEndpoint(ctx *pulumi.Context) string {
return config.Get(ctx, "prefect:endpoint")
}
// Default Prefect Cloud Workspace ID.
func GetWorkspaceId(ctx *pulumi.Context) string {
return config.Get(ctx, "prefect:workspaceId")
}