generated from pulumi/pulumi-tf-provider-boilerplate
/
config.go
22 lines (18 loc) · 869 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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"
)
// The target Sentry Base API URL in the format `https://[hostname]/api/`. The default value is `https://sentry.io/api/`.
// The value must be provided when working with Sentry On-Premise. The value can be sourced from the `SENTRY_BASE_URL`
// environment variable.
func GetBaseUrl(ctx *pulumi.Context) string {
return config.Get(ctx, "sentry:baseUrl")
}
// The authentication token used to connect to Sentry. The value can be sourced from the `SENTRY_AUTH_TOKEN` environment
// variable.
func GetToken(ctx *pulumi.Context) string {
return config.Get(ctx, "sentry:token")
}