config

package
v4.46.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApiKey

func GetApiKey(ctx *pulumi.Context) string

(Required unless validate is false) Datadog API key. This can also be set via the DD_API_KEY environment variable.

func GetApiUrl

func GetApiUrl(ctx *pulumi.Context) string

The API URL. This can also be set via the DD_HOST environment variable, and defaults to `https://api.datadoghq.com`. Note that this URL must not end with the `/api/` path. For example, `https://api.datadoghq.com/` is a correct value, while `https://api.datadoghq.com/api/` is not. And if you're working with "EU" version of Datadog, use `https://api.datadoghq.eu/`. Other Datadog region examples: `https://api.us5.datadoghq.com/`, `https://api.us3.datadoghq.com/` and `https://api.ddog-gov.com/`. See https://docs.datadoghq.com/getting_started/site/ for all available regions.

func GetAppKey

func GetAppKey(ctx *pulumi.Context) string

(Required unless validate is false) Datadog APP key. This can also be set via the DD_APP_KEY environment variable.

func GetDefaultTags added in v4.32.0

func GetDefaultTags(ctx *pulumi.Context) string

[Experimental - Monitors and Logs Pipelines only] Configuration block containing settings to apply default resource tags across all resources.

func GetHttpClientRetryBackoffBase added in v4.16.0

func GetHttpClientRetryBackoffBase(ctx *pulumi.Context) int

The HTTP request retry back off base. Defaults to 2.

func GetHttpClientRetryBackoffMultiplier added in v4.16.0

func GetHttpClientRetryBackoffMultiplier(ctx *pulumi.Context) int

The HTTP request retry back off multiplier. Defaults to 2.

func GetHttpClientRetryEnabled

func GetHttpClientRetryEnabled(ctx *pulumi.Context) string

Enables request retries on HTTP status codes 429 and 5xx. Valid values are [`true`, `false`]. Defaults to `true`.

func GetHttpClientRetryMaxRetries added in v4.16.0

func GetHttpClientRetryMaxRetries(ctx *pulumi.Context) int

The HTTP request maximum retry number. Defaults to 3.

func GetHttpClientRetryTimeout

func GetHttpClientRetryTimeout(ctx *pulumi.Context) int

The HTTP request retry timeout period. Defaults to 60 seconds.

func GetValidate

func GetValidate(ctx *pulumi.Context) string

Enables validation of the provided API key during provider initialization. Valid values are [`true`, `false`]. Default is true. When false, apiKey won't be checked.

Types

type DefaultTags added in v4.32.0

type DefaultTags struct {
	// [Experimental - Monitors and Logs Pipelines only] Resource tags to be applied by default across all resources.
	Tags map[string]string `pulumi:"tags"`
}

type DefaultTagsArgs added in v4.32.0

type DefaultTagsArgs struct {
	// [Experimental - Monitors and Logs Pipelines only] Resource tags to be applied by default across all resources.
	Tags pulumi.StringMapInput `pulumi:"tags"`
}

func (DefaultTagsArgs) ElementType added in v4.32.0

func (DefaultTagsArgs) ElementType() reflect.Type

func (DefaultTagsArgs) ToDefaultTagsOutput added in v4.32.0

func (i DefaultTagsArgs) ToDefaultTagsOutput() DefaultTagsOutput

func (DefaultTagsArgs) ToDefaultTagsOutputWithContext added in v4.32.0

func (i DefaultTagsArgs) ToDefaultTagsOutputWithContext(ctx context.Context) DefaultTagsOutput

type DefaultTagsInput added in v4.32.0

type DefaultTagsInput interface {
	pulumi.Input

	ToDefaultTagsOutput() DefaultTagsOutput
	ToDefaultTagsOutputWithContext(context.Context) DefaultTagsOutput
}

DefaultTagsInput is an input type that accepts DefaultTagsArgs and DefaultTagsOutput values. You can construct a concrete instance of `DefaultTagsInput` via:

DefaultTagsArgs{...}

type DefaultTagsOutput added in v4.32.0

type DefaultTagsOutput struct{ *pulumi.OutputState }

func (DefaultTagsOutput) ElementType added in v4.32.0

func (DefaultTagsOutput) ElementType() reflect.Type

func (DefaultTagsOutput) Tags added in v4.32.0

[Experimental - Monitors and Logs Pipelines only] Resource tags to be applied by default across all resources.

func (DefaultTagsOutput) ToDefaultTagsOutput added in v4.32.0

func (o DefaultTagsOutput) ToDefaultTagsOutput() DefaultTagsOutput

func (DefaultTagsOutput) ToDefaultTagsOutputWithContext added in v4.32.0

func (o DefaultTagsOutput) ToDefaultTagsOutputWithContext(ctx context.Context) DefaultTagsOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL