amp

package
v6.24.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertManagerDefinition

type AlertManagerDefinition struct {
	pulumi.CustomResourceState

	// the alert manager definition that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html).
	Definition pulumi.StringOutput `pulumi:"definition"`
	// ID of the prometheus workspace the alert manager definition should be linked to
	WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"`
}

Manages an Amazon Managed Service for Prometheus (AMP) Alert Manager Definition

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/amp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		demo, err := amp.NewWorkspace(ctx, "demo", nil)
		if err != nil {
			return err
		}
		_, err = amp.NewAlertManagerDefinition(ctx, "demo", &amp.AlertManagerDefinitionArgs{
			WorkspaceId: demo.ID(),
			Definition: pulumi.String(`alertmanager_config: |
  route:
    receiver: 'default'
  receivers:
    - name: 'default'

`),

		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import the prometheus alert manager definition using the workspace identifier. For example:

```sh

$ pulumi import aws:amp/alertManagerDefinition:AlertManagerDefinition demo ws-C6DCB907-F2D7-4D96-957B-66691F865D8B

```

func GetAlertManagerDefinition

func GetAlertManagerDefinition(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AlertManagerDefinitionState, opts ...pulumi.ResourceOption) (*AlertManagerDefinition, error)

GetAlertManagerDefinition gets an existing AlertManagerDefinition resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewAlertManagerDefinition

func NewAlertManagerDefinition(ctx *pulumi.Context,
	name string, args *AlertManagerDefinitionArgs, opts ...pulumi.ResourceOption) (*AlertManagerDefinition, error)

NewAlertManagerDefinition registers a new resource with the given unique name, arguments, and options.

func (*AlertManagerDefinition) ElementType

func (*AlertManagerDefinition) ElementType() reflect.Type

func (*AlertManagerDefinition) ToAlertManagerDefinitionOutput

func (i *AlertManagerDefinition) ToAlertManagerDefinitionOutput() AlertManagerDefinitionOutput

func (*AlertManagerDefinition) ToAlertManagerDefinitionOutputWithContext

func (i *AlertManagerDefinition) ToAlertManagerDefinitionOutputWithContext(ctx context.Context) AlertManagerDefinitionOutput

type AlertManagerDefinitionArgs

type AlertManagerDefinitionArgs struct {
	// the alert manager definition that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html).
	Definition pulumi.StringInput
	// ID of the prometheus workspace the alert manager definition should be linked to
	WorkspaceId pulumi.StringInput
}

The set of arguments for constructing a AlertManagerDefinition resource.

func (AlertManagerDefinitionArgs) ElementType

func (AlertManagerDefinitionArgs) ElementType() reflect.Type

type AlertManagerDefinitionArray

type AlertManagerDefinitionArray []AlertManagerDefinitionInput

func (AlertManagerDefinitionArray) ElementType

func (AlertManagerDefinitionArray) ToAlertManagerDefinitionArrayOutput

func (i AlertManagerDefinitionArray) ToAlertManagerDefinitionArrayOutput() AlertManagerDefinitionArrayOutput

func (AlertManagerDefinitionArray) ToAlertManagerDefinitionArrayOutputWithContext

func (i AlertManagerDefinitionArray) ToAlertManagerDefinitionArrayOutputWithContext(ctx context.Context) AlertManagerDefinitionArrayOutput

type AlertManagerDefinitionArrayInput

type AlertManagerDefinitionArrayInput interface {
	pulumi.Input

	ToAlertManagerDefinitionArrayOutput() AlertManagerDefinitionArrayOutput
	ToAlertManagerDefinitionArrayOutputWithContext(context.Context) AlertManagerDefinitionArrayOutput
}

AlertManagerDefinitionArrayInput is an input type that accepts AlertManagerDefinitionArray and AlertManagerDefinitionArrayOutput values. You can construct a concrete instance of `AlertManagerDefinitionArrayInput` via:

AlertManagerDefinitionArray{ AlertManagerDefinitionArgs{...} }

type AlertManagerDefinitionArrayOutput

type AlertManagerDefinitionArrayOutput struct{ *pulumi.OutputState }

func (AlertManagerDefinitionArrayOutput) ElementType

func (AlertManagerDefinitionArrayOutput) Index

func (AlertManagerDefinitionArrayOutput) ToAlertManagerDefinitionArrayOutput

func (o AlertManagerDefinitionArrayOutput) ToAlertManagerDefinitionArrayOutput() AlertManagerDefinitionArrayOutput

func (AlertManagerDefinitionArrayOutput) ToAlertManagerDefinitionArrayOutputWithContext

func (o AlertManagerDefinitionArrayOutput) ToAlertManagerDefinitionArrayOutputWithContext(ctx context.Context) AlertManagerDefinitionArrayOutput

type AlertManagerDefinitionInput

type AlertManagerDefinitionInput interface {
	pulumi.Input

	ToAlertManagerDefinitionOutput() AlertManagerDefinitionOutput
	ToAlertManagerDefinitionOutputWithContext(ctx context.Context) AlertManagerDefinitionOutput
}

type AlertManagerDefinitionMap

type AlertManagerDefinitionMap map[string]AlertManagerDefinitionInput

func (AlertManagerDefinitionMap) ElementType

func (AlertManagerDefinitionMap) ElementType() reflect.Type

func (AlertManagerDefinitionMap) ToAlertManagerDefinitionMapOutput

func (i AlertManagerDefinitionMap) ToAlertManagerDefinitionMapOutput() AlertManagerDefinitionMapOutput

func (AlertManagerDefinitionMap) ToAlertManagerDefinitionMapOutputWithContext

func (i AlertManagerDefinitionMap) ToAlertManagerDefinitionMapOutputWithContext(ctx context.Context) AlertManagerDefinitionMapOutput

type AlertManagerDefinitionMapInput

type AlertManagerDefinitionMapInput interface {
	pulumi.Input

	ToAlertManagerDefinitionMapOutput() AlertManagerDefinitionMapOutput
	ToAlertManagerDefinitionMapOutputWithContext(context.Context) AlertManagerDefinitionMapOutput
}

AlertManagerDefinitionMapInput is an input type that accepts AlertManagerDefinitionMap and AlertManagerDefinitionMapOutput values. You can construct a concrete instance of `AlertManagerDefinitionMapInput` via:

AlertManagerDefinitionMap{ "key": AlertManagerDefinitionArgs{...} }

type AlertManagerDefinitionMapOutput

type AlertManagerDefinitionMapOutput struct{ *pulumi.OutputState }

func (AlertManagerDefinitionMapOutput) ElementType

func (AlertManagerDefinitionMapOutput) MapIndex

func (AlertManagerDefinitionMapOutput) ToAlertManagerDefinitionMapOutput

func (o AlertManagerDefinitionMapOutput) ToAlertManagerDefinitionMapOutput() AlertManagerDefinitionMapOutput

func (AlertManagerDefinitionMapOutput) ToAlertManagerDefinitionMapOutputWithContext

func (o AlertManagerDefinitionMapOutput) ToAlertManagerDefinitionMapOutputWithContext(ctx context.Context) AlertManagerDefinitionMapOutput

type AlertManagerDefinitionOutput

type AlertManagerDefinitionOutput struct{ *pulumi.OutputState }

func (AlertManagerDefinitionOutput) Definition

the alert manager definition that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html).

func (AlertManagerDefinitionOutput) ElementType

func (AlertManagerDefinitionOutput) ToAlertManagerDefinitionOutput

func (o AlertManagerDefinitionOutput) ToAlertManagerDefinitionOutput() AlertManagerDefinitionOutput

func (AlertManagerDefinitionOutput) ToAlertManagerDefinitionOutputWithContext

func (o AlertManagerDefinitionOutput) ToAlertManagerDefinitionOutputWithContext(ctx context.Context) AlertManagerDefinitionOutput

func (AlertManagerDefinitionOutput) WorkspaceId

ID of the prometheus workspace the alert manager definition should be linked to

type AlertManagerDefinitionState

type AlertManagerDefinitionState struct {
	// the alert manager definition that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html).
	Definition pulumi.StringPtrInput
	// ID of the prometheus workspace the alert manager definition should be linked to
	WorkspaceId pulumi.StringPtrInput
}

func (AlertManagerDefinitionState) ElementType

type GetWorkspacesArgs

type GetWorkspacesArgs struct {
	// Limits results to workspaces with aliases that begin with this value.
	AliasPrefix *string `pulumi:"aliasPrefix"`
}

A collection of arguments for invoking getWorkspaces.

type GetWorkspacesOutputArgs

type GetWorkspacesOutputArgs struct {
	// Limits results to workspaces with aliases that begin with this value.
	AliasPrefix pulumi.StringPtrInput `pulumi:"aliasPrefix"`
}

A collection of arguments for invoking getWorkspaces.

func (GetWorkspacesOutputArgs) ElementType

func (GetWorkspacesOutputArgs) ElementType() reflect.Type

type GetWorkspacesResult

type GetWorkspacesResult struct {
	AliasPrefix *string `pulumi:"aliasPrefix"`
	// List of aliases of the matched Prometheus workspaces.
	Aliases []string `pulumi:"aliases"`
	// List of ARNs of the matched Prometheus workspaces.
	Arns []string `pulumi:"arns"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// List of workspace IDs of the matched Prometheus workspaces.
	WorkspaceIds []string `pulumi:"workspaceIds"`
}

A collection of values returned by getWorkspaces.

func GetWorkspaces

func GetWorkspaces(ctx *pulumi.Context, args *GetWorkspacesArgs, opts ...pulumi.InvokeOption) (*GetWorkspacesResult, error)

Provides the aliases, ARNs, and workspace IDs of Amazon Prometheus workspaces.

## Example Usage

The following example returns all of the workspaces in a region:

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/amp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := amp.GetWorkspaces(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

The following example filters the workspaces by alias. Only the workspaces with aliases that begin with the value of `aliasPrefix` will be returned:

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/amp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := amp.GetWorkspaces(ctx, &amp.GetWorkspacesArgs{
			AliasPrefix: pulumi.StringRef("example"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetWorkspacesResultOutput

type GetWorkspacesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getWorkspaces.

func (GetWorkspacesResultOutput) AliasPrefix

func (GetWorkspacesResultOutput) Aliases

List of aliases of the matched Prometheus workspaces.

func (GetWorkspacesResultOutput) Arns

List of ARNs of the matched Prometheus workspaces.

func (GetWorkspacesResultOutput) ElementType

func (GetWorkspacesResultOutput) ElementType() reflect.Type

func (GetWorkspacesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetWorkspacesResultOutput) ToGetWorkspacesResultOutput

func (o GetWorkspacesResultOutput) ToGetWorkspacesResultOutput() GetWorkspacesResultOutput

func (GetWorkspacesResultOutput) ToGetWorkspacesResultOutputWithContext

func (o GetWorkspacesResultOutput) ToGetWorkspacesResultOutputWithContext(ctx context.Context) GetWorkspacesResultOutput

func (GetWorkspacesResultOutput) WorkspaceIds

List of workspace IDs of the matched Prometheus workspaces.

type LookupWorkspaceArgs

type LookupWorkspaceArgs struct {
	// Tags assigned to the resource.
	Tags map[string]string `pulumi:"tags"`
	// Prometheus workspace ID.
	WorkspaceId string `pulumi:"workspaceId"`
}

A collection of arguments for invoking getWorkspace.

type LookupWorkspaceOutputArgs

type LookupWorkspaceOutputArgs struct {
	// Tags assigned to the resource.
	Tags pulumi.StringMapInput `pulumi:"tags"`
	// Prometheus workspace ID.
	WorkspaceId pulumi.StringInput `pulumi:"workspaceId"`
}

A collection of arguments for invoking getWorkspace.

func (LookupWorkspaceOutputArgs) ElementType

func (LookupWorkspaceOutputArgs) ElementType() reflect.Type

type LookupWorkspaceResult

type LookupWorkspaceResult struct {
	// Prometheus workspace alias.
	Alias string `pulumi:"alias"`
	// ARN of the Prometheus workspace.
	Arn string `pulumi:"arn"`
	// Creation date of the Prometheus workspace.
	CreatedDate string `pulumi:"createdDate"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// ARN of the KMS key used to encrypt data in the Prometheus workspace.
	KmsKeyArn string `pulumi:"kmsKeyArn"`
	// Endpoint of the Prometheus workspace.
	PrometheusEndpoint string `pulumi:"prometheusEndpoint"`
	// Status of the Prometheus workspace.
	Status string `pulumi:"status"`
	// Tags assigned to the resource.
	Tags        map[string]string `pulumi:"tags"`
	WorkspaceId string            `pulumi:"workspaceId"`
}

A collection of values returned by getWorkspace.

func LookupWorkspace

func LookupWorkspace(ctx *pulumi.Context, args *LookupWorkspaceArgs, opts ...pulumi.InvokeOption) (*LookupWorkspaceResult, error)

Provides an Amazon Managed Prometheus workspace data source.

## Example Usage ### Basic configuration

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/amp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := amp.LookupWorkspace(ctx, &amp.LookupWorkspaceArgs{
			WorkspaceId: "ws-41det8a1-2c67-6a1a-9381-9b83d3d78ef7",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupWorkspaceResultOutput

type LookupWorkspaceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getWorkspace.

func (LookupWorkspaceResultOutput) Alias

Prometheus workspace alias.

func (LookupWorkspaceResultOutput) Arn

ARN of the Prometheus workspace.

func (LookupWorkspaceResultOutput) CreatedDate

Creation date of the Prometheus workspace.

func (LookupWorkspaceResultOutput) ElementType

func (LookupWorkspaceResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupWorkspaceResultOutput) KmsKeyArn added in v6.18.2

ARN of the KMS key used to encrypt data in the Prometheus workspace.

func (LookupWorkspaceResultOutput) PrometheusEndpoint

func (o LookupWorkspaceResultOutput) PrometheusEndpoint() pulumi.StringOutput

Endpoint of the Prometheus workspace.

func (LookupWorkspaceResultOutput) Status

Status of the Prometheus workspace.

func (LookupWorkspaceResultOutput) Tags

Tags assigned to the resource.

func (LookupWorkspaceResultOutput) ToLookupWorkspaceResultOutput

func (o LookupWorkspaceResultOutput) ToLookupWorkspaceResultOutput() LookupWorkspaceResultOutput

func (LookupWorkspaceResultOutput) ToLookupWorkspaceResultOutputWithContext

func (o LookupWorkspaceResultOutput) ToLookupWorkspaceResultOutputWithContext(ctx context.Context) LookupWorkspaceResultOutput

func (LookupWorkspaceResultOutput) WorkspaceId

type RuleGroupNamespace

type RuleGroupNamespace struct {
	pulumi.CustomResourceState

	// the rule group namespace data that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-Ruler.html).
	Data pulumi.StringOutput `pulumi:"data"`
	// The name of the rule group namespace
	Name pulumi.StringOutput `pulumi:"name"`
	// ID of the prometheus workspace the rule group namespace should be linked to
	WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"`
}

Manages an Amazon Managed Service for Prometheus (AMP) Rule Group Namespace

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/amp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		demo, err := amp.NewWorkspace(ctx, "demo", nil)
		if err != nil {
			return err
		}
		_, err = amp.NewRuleGroupNamespace(ctx, "demo", &amp.RuleGroupNamespaceArgs{
			Name:        pulumi.String("rules"),
			WorkspaceId: demo.ID(),
			Data: pulumi.String(`groups:
  - name: test
    rules:
    - record: metric:recording_rule
      expr: avg(rate(container_cpu_usage_seconds_total[5m]))

`),

		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import the prometheus rule group namespace using the arn. For example:

```sh

$ pulumi import aws:amp/ruleGroupNamespace:RuleGroupNamespace demo arn:aws:aps:us-west-2:123456789012:rulegroupsnamespace/IDstring/namespace_name

```

func GetRuleGroupNamespace

func GetRuleGroupNamespace(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RuleGroupNamespaceState, opts ...pulumi.ResourceOption) (*RuleGroupNamespace, error)

GetRuleGroupNamespace gets an existing RuleGroupNamespace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewRuleGroupNamespace

func NewRuleGroupNamespace(ctx *pulumi.Context,
	name string, args *RuleGroupNamespaceArgs, opts ...pulumi.ResourceOption) (*RuleGroupNamespace, error)

NewRuleGroupNamespace registers a new resource with the given unique name, arguments, and options.

func (*RuleGroupNamespace) ElementType

func (*RuleGroupNamespace) ElementType() reflect.Type

func (*RuleGroupNamespace) ToRuleGroupNamespaceOutput

func (i *RuleGroupNamespace) ToRuleGroupNamespaceOutput() RuleGroupNamespaceOutput

func (*RuleGroupNamespace) ToRuleGroupNamespaceOutputWithContext

func (i *RuleGroupNamespace) ToRuleGroupNamespaceOutputWithContext(ctx context.Context) RuleGroupNamespaceOutput

type RuleGroupNamespaceArgs

type RuleGroupNamespaceArgs struct {
	// the rule group namespace data that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-Ruler.html).
	Data pulumi.StringInput
	// The name of the rule group namespace
	Name pulumi.StringPtrInput
	// ID of the prometheus workspace the rule group namespace should be linked to
	WorkspaceId pulumi.StringInput
}

The set of arguments for constructing a RuleGroupNamespace resource.

func (RuleGroupNamespaceArgs) ElementType

func (RuleGroupNamespaceArgs) ElementType() reflect.Type

type RuleGroupNamespaceArray

type RuleGroupNamespaceArray []RuleGroupNamespaceInput

func (RuleGroupNamespaceArray) ElementType

func (RuleGroupNamespaceArray) ElementType() reflect.Type

func (RuleGroupNamespaceArray) ToRuleGroupNamespaceArrayOutput

func (i RuleGroupNamespaceArray) ToRuleGroupNamespaceArrayOutput() RuleGroupNamespaceArrayOutput

func (RuleGroupNamespaceArray) ToRuleGroupNamespaceArrayOutputWithContext

func (i RuleGroupNamespaceArray) ToRuleGroupNamespaceArrayOutputWithContext(ctx context.Context) RuleGroupNamespaceArrayOutput

type RuleGroupNamespaceArrayInput

type RuleGroupNamespaceArrayInput interface {
	pulumi.Input

	ToRuleGroupNamespaceArrayOutput() RuleGroupNamespaceArrayOutput
	ToRuleGroupNamespaceArrayOutputWithContext(context.Context) RuleGroupNamespaceArrayOutput
}

RuleGroupNamespaceArrayInput is an input type that accepts RuleGroupNamespaceArray and RuleGroupNamespaceArrayOutput values. You can construct a concrete instance of `RuleGroupNamespaceArrayInput` via:

RuleGroupNamespaceArray{ RuleGroupNamespaceArgs{...} }

type RuleGroupNamespaceArrayOutput

type RuleGroupNamespaceArrayOutput struct{ *pulumi.OutputState }

func (RuleGroupNamespaceArrayOutput) ElementType

func (RuleGroupNamespaceArrayOutput) Index

func (RuleGroupNamespaceArrayOutput) ToRuleGroupNamespaceArrayOutput

func (o RuleGroupNamespaceArrayOutput) ToRuleGroupNamespaceArrayOutput() RuleGroupNamespaceArrayOutput

func (RuleGroupNamespaceArrayOutput) ToRuleGroupNamespaceArrayOutputWithContext

func (o RuleGroupNamespaceArrayOutput) ToRuleGroupNamespaceArrayOutputWithContext(ctx context.Context) RuleGroupNamespaceArrayOutput

type RuleGroupNamespaceInput

type RuleGroupNamespaceInput interface {
	pulumi.Input

	ToRuleGroupNamespaceOutput() RuleGroupNamespaceOutput
	ToRuleGroupNamespaceOutputWithContext(ctx context.Context) RuleGroupNamespaceOutput
}

type RuleGroupNamespaceMap

type RuleGroupNamespaceMap map[string]RuleGroupNamespaceInput

func (RuleGroupNamespaceMap) ElementType

func (RuleGroupNamespaceMap) ElementType() reflect.Type

func (RuleGroupNamespaceMap) ToRuleGroupNamespaceMapOutput

func (i RuleGroupNamespaceMap) ToRuleGroupNamespaceMapOutput() RuleGroupNamespaceMapOutput

func (RuleGroupNamespaceMap) ToRuleGroupNamespaceMapOutputWithContext

func (i RuleGroupNamespaceMap) ToRuleGroupNamespaceMapOutputWithContext(ctx context.Context) RuleGroupNamespaceMapOutput

type RuleGroupNamespaceMapInput

type RuleGroupNamespaceMapInput interface {
	pulumi.Input

	ToRuleGroupNamespaceMapOutput() RuleGroupNamespaceMapOutput
	ToRuleGroupNamespaceMapOutputWithContext(context.Context) RuleGroupNamespaceMapOutput
}

RuleGroupNamespaceMapInput is an input type that accepts RuleGroupNamespaceMap and RuleGroupNamespaceMapOutput values. You can construct a concrete instance of `RuleGroupNamespaceMapInput` via:

RuleGroupNamespaceMap{ "key": RuleGroupNamespaceArgs{...} }

type RuleGroupNamespaceMapOutput

type RuleGroupNamespaceMapOutput struct{ *pulumi.OutputState }

func (RuleGroupNamespaceMapOutput) ElementType

func (RuleGroupNamespaceMapOutput) MapIndex

func (RuleGroupNamespaceMapOutput) ToRuleGroupNamespaceMapOutput

func (o RuleGroupNamespaceMapOutput) ToRuleGroupNamespaceMapOutput() RuleGroupNamespaceMapOutput

func (RuleGroupNamespaceMapOutput) ToRuleGroupNamespaceMapOutputWithContext

func (o RuleGroupNamespaceMapOutput) ToRuleGroupNamespaceMapOutputWithContext(ctx context.Context) RuleGroupNamespaceMapOutput

type RuleGroupNamespaceOutput

type RuleGroupNamespaceOutput struct{ *pulumi.OutputState }

func (RuleGroupNamespaceOutput) Data

the rule group namespace data that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-Ruler.html).

func (RuleGroupNamespaceOutput) ElementType

func (RuleGroupNamespaceOutput) ElementType() reflect.Type

func (RuleGroupNamespaceOutput) Name

The name of the rule group namespace

func (RuleGroupNamespaceOutput) ToRuleGroupNamespaceOutput

func (o RuleGroupNamespaceOutput) ToRuleGroupNamespaceOutput() RuleGroupNamespaceOutput

func (RuleGroupNamespaceOutput) ToRuleGroupNamespaceOutputWithContext

func (o RuleGroupNamespaceOutput) ToRuleGroupNamespaceOutputWithContext(ctx context.Context) RuleGroupNamespaceOutput

func (RuleGroupNamespaceOutput) WorkspaceId

ID of the prometheus workspace the rule group namespace should be linked to

type RuleGroupNamespaceState

type RuleGroupNamespaceState struct {
	// the rule group namespace data that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-Ruler.html).
	Data pulumi.StringPtrInput
	// The name of the rule group namespace
	Name pulumi.StringPtrInput
	// ID of the prometheus workspace the rule group namespace should be linked to
	WorkspaceId pulumi.StringPtrInput
}

func (RuleGroupNamespaceState) ElementType

func (RuleGroupNamespaceState) ElementType() reflect.Type

type Scraper added in v6.18.2

type Scraper struct {
	pulumi.CustomResourceState

	// a name to associate with the managed scraper. This is for your use, and does not need to be unique.
	Alias pulumi.StringPtrOutput `pulumi:"alias"`
	// The Amazon Resource Name (ARN) of the new scraper.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Configuration block for the managed scraper to send metrics to. See `destination`.
	Destination ScraperDestinationPtrOutput `pulumi:"destination"`
	// The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover, collect, and produce metrics
	RoleArn pulumi.StringOutput `pulumi:"roleArn"`
	// The configuration file to use in the new scraper. For more information, see [Scraper configuration](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration).
	ScrapeConfiguration pulumi.StringOutput `pulumi:"scrapeConfiguration"`
	// Configuration block to specify where the managed scraper will collect metrics from. See `source`.
	//
	// The following arguments are optional:
	Source ScraperSourcePtrOutput `pulumi:"source"`
	Tags   pulumi.StringMapOutput `pulumi:"tags"`
	// Deprecated: Please use `tags` instead.
	TagsAll  pulumi.StringMapOutput   `pulumi:"tagsAll"`
	Timeouts ScraperTimeoutsPtrOutput `pulumi:"timeouts"`
}

## Import

Using `pulumi import`, import the Managed Scraper using its identifier. For example:

```sh

$ pulumi import aws:amp/scraper:Scraper example s-0123abc-0000-0123-a000-000000000000

```

func GetScraper added in v6.18.2

func GetScraper(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ScraperState, opts ...pulumi.ResourceOption) (*Scraper, error)

GetScraper gets an existing Scraper resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewScraper added in v6.18.2

func NewScraper(ctx *pulumi.Context,
	name string, args *ScraperArgs, opts ...pulumi.ResourceOption) (*Scraper, error)

NewScraper registers a new resource with the given unique name, arguments, and options.

func (*Scraper) ElementType added in v6.18.2

func (*Scraper) ElementType() reflect.Type

func (*Scraper) ToScraperOutput added in v6.18.2

func (i *Scraper) ToScraperOutput() ScraperOutput

func (*Scraper) ToScraperOutputWithContext added in v6.18.2

func (i *Scraper) ToScraperOutputWithContext(ctx context.Context) ScraperOutput

type ScraperArgs added in v6.18.2

type ScraperArgs struct {
	// a name to associate with the managed scraper. This is for your use, and does not need to be unique.
	Alias pulumi.StringPtrInput
	// Configuration block for the managed scraper to send metrics to. See `destination`.
	Destination ScraperDestinationPtrInput
	// The configuration file to use in the new scraper. For more information, see [Scraper configuration](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration).
	ScrapeConfiguration pulumi.StringInput
	// Configuration block to specify where the managed scraper will collect metrics from. See `source`.
	//
	// The following arguments are optional:
	Source   ScraperSourcePtrInput
	Tags     pulumi.StringMapInput
	Timeouts ScraperTimeoutsPtrInput
}

The set of arguments for constructing a Scraper resource.

func (ScraperArgs) ElementType added in v6.18.2

func (ScraperArgs) ElementType() reflect.Type

type ScraperArray added in v6.18.2

type ScraperArray []ScraperInput

func (ScraperArray) ElementType added in v6.18.2

func (ScraperArray) ElementType() reflect.Type

func (ScraperArray) ToScraperArrayOutput added in v6.18.2

func (i ScraperArray) ToScraperArrayOutput() ScraperArrayOutput

func (ScraperArray) ToScraperArrayOutputWithContext added in v6.18.2

func (i ScraperArray) ToScraperArrayOutputWithContext(ctx context.Context) ScraperArrayOutput

type ScraperArrayInput added in v6.18.2

type ScraperArrayInput interface {
	pulumi.Input

	ToScraperArrayOutput() ScraperArrayOutput
	ToScraperArrayOutputWithContext(context.Context) ScraperArrayOutput
}

ScraperArrayInput is an input type that accepts ScraperArray and ScraperArrayOutput values. You can construct a concrete instance of `ScraperArrayInput` via:

ScraperArray{ ScraperArgs{...} }

type ScraperArrayOutput added in v6.18.2

type ScraperArrayOutput struct{ *pulumi.OutputState }

func (ScraperArrayOutput) ElementType added in v6.18.2

func (ScraperArrayOutput) ElementType() reflect.Type

func (ScraperArrayOutput) Index added in v6.18.2

func (ScraperArrayOutput) ToScraperArrayOutput added in v6.18.2

func (o ScraperArrayOutput) ToScraperArrayOutput() ScraperArrayOutput

func (ScraperArrayOutput) ToScraperArrayOutputWithContext added in v6.18.2

func (o ScraperArrayOutput) ToScraperArrayOutputWithContext(ctx context.Context) ScraperArrayOutput

type ScraperDestination added in v6.18.2

type ScraperDestination struct {
	// Configuration block for an Amazon Managed Prometheus workspace destination. See `amp`.
	Amp *ScraperDestinationAmp `pulumi:"amp"`
}

type ScraperDestinationAmp added in v6.18.2

type ScraperDestinationAmp struct {
	// The Amazon Resource Name (ARN) of the prometheus workspace.
	WorkspaceArn string `pulumi:"workspaceArn"`
}

type ScraperDestinationAmpArgs added in v6.18.2

type ScraperDestinationAmpArgs struct {
	// The Amazon Resource Name (ARN) of the prometheus workspace.
	WorkspaceArn pulumi.StringInput `pulumi:"workspaceArn"`
}

func (ScraperDestinationAmpArgs) ElementType added in v6.18.2

func (ScraperDestinationAmpArgs) ElementType() reflect.Type

func (ScraperDestinationAmpArgs) ToScraperDestinationAmpOutput added in v6.18.2

func (i ScraperDestinationAmpArgs) ToScraperDestinationAmpOutput() ScraperDestinationAmpOutput

func (ScraperDestinationAmpArgs) ToScraperDestinationAmpOutputWithContext added in v6.18.2

func (i ScraperDestinationAmpArgs) ToScraperDestinationAmpOutputWithContext(ctx context.Context) ScraperDestinationAmpOutput

func (ScraperDestinationAmpArgs) ToScraperDestinationAmpPtrOutput added in v6.18.2

func (i ScraperDestinationAmpArgs) ToScraperDestinationAmpPtrOutput() ScraperDestinationAmpPtrOutput

func (ScraperDestinationAmpArgs) ToScraperDestinationAmpPtrOutputWithContext added in v6.18.2

func (i ScraperDestinationAmpArgs) ToScraperDestinationAmpPtrOutputWithContext(ctx context.Context) ScraperDestinationAmpPtrOutput

type ScraperDestinationAmpInput added in v6.18.2

type ScraperDestinationAmpInput interface {
	pulumi.Input

	ToScraperDestinationAmpOutput() ScraperDestinationAmpOutput
	ToScraperDestinationAmpOutputWithContext(context.Context) ScraperDestinationAmpOutput
}

ScraperDestinationAmpInput is an input type that accepts ScraperDestinationAmpArgs and ScraperDestinationAmpOutput values. You can construct a concrete instance of `ScraperDestinationAmpInput` via:

ScraperDestinationAmpArgs{...}

type ScraperDestinationAmpOutput added in v6.18.2

type ScraperDestinationAmpOutput struct{ *pulumi.OutputState }

func (ScraperDestinationAmpOutput) ElementType added in v6.18.2

func (ScraperDestinationAmpOutput) ToScraperDestinationAmpOutput added in v6.18.2

func (o ScraperDestinationAmpOutput) ToScraperDestinationAmpOutput() ScraperDestinationAmpOutput

func (ScraperDestinationAmpOutput) ToScraperDestinationAmpOutputWithContext added in v6.18.2

func (o ScraperDestinationAmpOutput) ToScraperDestinationAmpOutputWithContext(ctx context.Context) ScraperDestinationAmpOutput

func (ScraperDestinationAmpOutput) ToScraperDestinationAmpPtrOutput added in v6.18.2

func (o ScraperDestinationAmpOutput) ToScraperDestinationAmpPtrOutput() ScraperDestinationAmpPtrOutput

func (ScraperDestinationAmpOutput) ToScraperDestinationAmpPtrOutputWithContext added in v6.18.2

func (o ScraperDestinationAmpOutput) ToScraperDestinationAmpPtrOutputWithContext(ctx context.Context) ScraperDestinationAmpPtrOutput

func (ScraperDestinationAmpOutput) WorkspaceArn added in v6.18.2

The Amazon Resource Name (ARN) of the prometheus workspace.

type ScraperDestinationAmpPtrInput added in v6.18.2

type ScraperDestinationAmpPtrInput interface {
	pulumi.Input

	ToScraperDestinationAmpPtrOutput() ScraperDestinationAmpPtrOutput
	ToScraperDestinationAmpPtrOutputWithContext(context.Context) ScraperDestinationAmpPtrOutput
}

ScraperDestinationAmpPtrInput is an input type that accepts ScraperDestinationAmpArgs, ScraperDestinationAmpPtr and ScraperDestinationAmpPtrOutput values. You can construct a concrete instance of `ScraperDestinationAmpPtrInput` via:

        ScraperDestinationAmpArgs{...}

or:

        nil

func ScraperDestinationAmpPtr added in v6.18.2

func ScraperDestinationAmpPtr(v *ScraperDestinationAmpArgs) ScraperDestinationAmpPtrInput

type ScraperDestinationAmpPtrOutput added in v6.18.2

type ScraperDestinationAmpPtrOutput struct{ *pulumi.OutputState }

func (ScraperDestinationAmpPtrOutput) Elem added in v6.18.2

func (ScraperDestinationAmpPtrOutput) ElementType added in v6.18.2

func (ScraperDestinationAmpPtrOutput) ToScraperDestinationAmpPtrOutput added in v6.18.2

func (o ScraperDestinationAmpPtrOutput) ToScraperDestinationAmpPtrOutput() ScraperDestinationAmpPtrOutput

func (ScraperDestinationAmpPtrOutput) ToScraperDestinationAmpPtrOutputWithContext added in v6.18.2

func (o ScraperDestinationAmpPtrOutput) ToScraperDestinationAmpPtrOutputWithContext(ctx context.Context) ScraperDestinationAmpPtrOutput

func (ScraperDestinationAmpPtrOutput) WorkspaceArn added in v6.18.2

The Amazon Resource Name (ARN) of the prometheus workspace.

type ScraperDestinationArgs added in v6.18.2

type ScraperDestinationArgs struct {
	// Configuration block for an Amazon Managed Prometheus workspace destination. See `amp`.
	Amp ScraperDestinationAmpPtrInput `pulumi:"amp"`
}

func (ScraperDestinationArgs) ElementType added in v6.18.2

func (ScraperDestinationArgs) ElementType() reflect.Type

func (ScraperDestinationArgs) ToScraperDestinationOutput added in v6.18.2

func (i ScraperDestinationArgs) ToScraperDestinationOutput() ScraperDestinationOutput

func (ScraperDestinationArgs) ToScraperDestinationOutputWithContext added in v6.18.2

func (i ScraperDestinationArgs) ToScraperDestinationOutputWithContext(ctx context.Context) ScraperDestinationOutput

func (ScraperDestinationArgs) ToScraperDestinationPtrOutput added in v6.18.2

func (i ScraperDestinationArgs) ToScraperDestinationPtrOutput() ScraperDestinationPtrOutput

func (ScraperDestinationArgs) ToScraperDestinationPtrOutputWithContext added in v6.18.2

func (i ScraperDestinationArgs) ToScraperDestinationPtrOutputWithContext(ctx context.Context) ScraperDestinationPtrOutput

type ScraperDestinationInput added in v6.18.2

type ScraperDestinationInput interface {
	pulumi.Input

	ToScraperDestinationOutput() ScraperDestinationOutput
	ToScraperDestinationOutputWithContext(context.Context) ScraperDestinationOutput
}

ScraperDestinationInput is an input type that accepts ScraperDestinationArgs and ScraperDestinationOutput values. You can construct a concrete instance of `ScraperDestinationInput` via:

ScraperDestinationArgs{...}

type ScraperDestinationOutput added in v6.18.2

type ScraperDestinationOutput struct{ *pulumi.OutputState }

func (ScraperDestinationOutput) Amp added in v6.18.2

Configuration block for an Amazon Managed Prometheus workspace destination. See `amp`.

func (ScraperDestinationOutput) ElementType added in v6.18.2

func (ScraperDestinationOutput) ElementType() reflect.Type

func (ScraperDestinationOutput) ToScraperDestinationOutput added in v6.18.2

func (o ScraperDestinationOutput) ToScraperDestinationOutput() ScraperDestinationOutput

func (ScraperDestinationOutput) ToScraperDestinationOutputWithContext added in v6.18.2

func (o ScraperDestinationOutput) ToScraperDestinationOutputWithContext(ctx context.Context) ScraperDestinationOutput

func (ScraperDestinationOutput) ToScraperDestinationPtrOutput added in v6.18.2

func (o ScraperDestinationOutput) ToScraperDestinationPtrOutput() ScraperDestinationPtrOutput

func (ScraperDestinationOutput) ToScraperDestinationPtrOutputWithContext added in v6.18.2

func (o ScraperDestinationOutput) ToScraperDestinationPtrOutputWithContext(ctx context.Context) ScraperDestinationPtrOutput

type ScraperDestinationPtrInput added in v6.18.2

type ScraperDestinationPtrInput interface {
	pulumi.Input

	ToScraperDestinationPtrOutput() ScraperDestinationPtrOutput
	ToScraperDestinationPtrOutputWithContext(context.Context) ScraperDestinationPtrOutput
}

ScraperDestinationPtrInput is an input type that accepts ScraperDestinationArgs, ScraperDestinationPtr and ScraperDestinationPtrOutput values. You can construct a concrete instance of `ScraperDestinationPtrInput` via:

        ScraperDestinationArgs{...}

or:

        nil

func ScraperDestinationPtr added in v6.18.2

func ScraperDestinationPtr(v *ScraperDestinationArgs) ScraperDestinationPtrInput

type ScraperDestinationPtrOutput added in v6.18.2

type ScraperDestinationPtrOutput struct{ *pulumi.OutputState }

func (ScraperDestinationPtrOutput) Amp added in v6.18.2

Configuration block for an Amazon Managed Prometheus workspace destination. See `amp`.

func (ScraperDestinationPtrOutput) Elem added in v6.18.2

func (ScraperDestinationPtrOutput) ElementType added in v6.18.2

func (ScraperDestinationPtrOutput) ToScraperDestinationPtrOutput added in v6.18.2

func (o ScraperDestinationPtrOutput) ToScraperDestinationPtrOutput() ScraperDestinationPtrOutput

func (ScraperDestinationPtrOutput) ToScraperDestinationPtrOutputWithContext added in v6.18.2

func (o ScraperDestinationPtrOutput) ToScraperDestinationPtrOutputWithContext(ctx context.Context) ScraperDestinationPtrOutput

type ScraperInput added in v6.18.2

type ScraperInput interface {
	pulumi.Input

	ToScraperOutput() ScraperOutput
	ToScraperOutputWithContext(ctx context.Context) ScraperOutput
}

type ScraperMap added in v6.18.2

type ScraperMap map[string]ScraperInput

func (ScraperMap) ElementType added in v6.18.2

func (ScraperMap) ElementType() reflect.Type

func (ScraperMap) ToScraperMapOutput added in v6.18.2

func (i ScraperMap) ToScraperMapOutput() ScraperMapOutput

func (ScraperMap) ToScraperMapOutputWithContext added in v6.18.2

func (i ScraperMap) ToScraperMapOutputWithContext(ctx context.Context) ScraperMapOutput

type ScraperMapInput added in v6.18.2

type ScraperMapInput interface {
	pulumi.Input

	ToScraperMapOutput() ScraperMapOutput
	ToScraperMapOutputWithContext(context.Context) ScraperMapOutput
}

ScraperMapInput is an input type that accepts ScraperMap and ScraperMapOutput values. You can construct a concrete instance of `ScraperMapInput` via:

ScraperMap{ "key": ScraperArgs{...} }

type ScraperMapOutput added in v6.18.2

type ScraperMapOutput struct{ *pulumi.OutputState }

func (ScraperMapOutput) ElementType added in v6.18.2

func (ScraperMapOutput) ElementType() reflect.Type

func (ScraperMapOutput) MapIndex added in v6.18.2

func (ScraperMapOutput) ToScraperMapOutput added in v6.18.2

func (o ScraperMapOutput) ToScraperMapOutput() ScraperMapOutput

func (ScraperMapOutput) ToScraperMapOutputWithContext added in v6.18.2

func (o ScraperMapOutput) ToScraperMapOutputWithContext(ctx context.Context) ScraperMapOutput

type ScraperOutput added in v6.18.2

type ScraperOutput struct{ *pulumi.OutputState }

func (ScraperOutput) Alias added in v6.18.2

a name to associate with the managed scraper. This is for your use, and does not need to be unique.

func (ScraperOutput) Arn added in v6.18.2

The Amazon Resource Name (ARN) of the new scraper.

func (ScraperOutput) Destination added in v6.18.2

Configuration block for the managed scraper to send metrics to. See `destination`.

func (ScraperOutput) ElementType added in v6.18.2

func (ScraperOutput) ElementType() reflect.Type

func (ScraperOutput) RoleArn added in v6.19.0

func (o ScraperOutput) RoleArn() pulumi.StringOutput

The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover, collect, and produce metrics

func (ScraperOutput) ScrapeConfiguration added in v6.18.2

func (o ScraperOutput) ScrapeConfiguration() pulumi.StringOutput

The configuration file to use in the new scraper. For more information, see [Scraper configuration](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration).

func (ScraperOutput) Source added in v6.18.2

Configuration block to specify where the managed scraper will collect metrics from. See `source`.

The following arguments are optional:

func (ScraperOutput) Tags added in v6.18.2

func (ScraperOutput) TagsAll deprecated added in v6.18.2

func (o ScraperOutput) TagsAll() pulumi.StringMapOutput

Deprecated: Please use `tags` instead.

func (ScraperOutput) Timeouts added in v6.18.2

func (ScraperOutput) ToScraperOutput added in v6.18.2

func (o ScraperOutput) ToScraperOutput() ScraperOutput

func (ScraperOutput) ToScraperOutputWithContext added in v6.18.2

func (o ScraperOutput) ToScraperOutputWithContext(ctx context.Context) ScraperOutput

type ScraperSource added in v6.18.2

type ScraperSource struct {
	// Configuration block for an EKS cluster source. See `eks`.
	Eks *ScraperSourceEks `pulumi:"eks"`
}

type ScraperSourceArgs added in v6.18.2

type ScraperSourceArgs struct {
	// Configuration block for an EKS cluster source. See `eks`.
	Eks ScraperSourceEksPtrInput `pulumi:"eks"`
}

func (ScraperSourceArgs) ElementType added in v6.18.2

func (ScraperSourceArgs) ElementType() reflect.Type

func (ScraperSourceArgs) ToScraperSourceOutput added in v6.18.2

func (i ScraperSourceArgs) ToScraperSourceOutput() ScraperSourceOutput

func (ScraperSourceArgs) ToScraperSourceOutputWithContext added in v6.18.2

func (i ScraperSourceArgs) ToScraperSourceOutputWithContext(ctx context.Context) ScraperSourceOutput

func (ScraperSourceArgs) ToScraperSourcePtrOutput added in v6.18.2

func (i ScraperSourceArgs) ToScraperSourcePtrOutput() ScraperSourcePtrOutput

func (ScraperSourceArgs) ToScraperSourcePtrOutputWithContext added in v6.18.2

func (i ScraperSourceArgs) ToScraperSourcePtrOutputWithContext(ctx context.Context) ScraperSourcePtrOutput

type ScraperSourceEks added in v6.18.2

type ScraperSourceEks struct {
	ClusterArn string `pulumi:"clusterArn"`
	// List of the security group IDs for the Amazon EKS cluster VPC configuration.
	SecurityGroupIds []string `pulumi:"securityGroupIds"`
	// List of subnet IDs. Must be in at least two different availability zones.
	SubnetIds []string `pulumi:"subnetIds"`
}

type ScraperSourceEksArgs added in v6.18.2

type ScraperSourceEksArgs struct {
	ClusterArn pulumi.StringInput `pulumi:"clusterArn"`
	// List of the security group IDs for the Amazon EKS cluster VPC configuration.
	SecurityGroupIds pulumi.StringArrayInput `pulumi:"securityGroupIds"`
	// List of subnet IDs. Must be in at least two different availability zones.
	SubnetIds pulumi.StringArrayInput `pulumi:"subnetIds"`
}

func (ScraperSourceEksArgs) ElementType added in v6.18.2

func (ScraperSourceEksArgs) ElementType() reflect.Type

func (ScraperSourceEksArgs) ToScraperSourceEksOutput added in v6.18.2

func (i ScraperSourceEksArgs) ToScraperSourceEksOutput() ScraperSourceEksOutput

func (ScraperSourceEksArgs) ToScraperSourceEksOutputWithContext added in v6.18.2

func (i ScraperSourceEksArgs) ToScraperSourceEksOutputWithContext(ctx context.Context) ScraperSourceEksOutput

func (ScraperSourceEksArgs) ToScraperSourceEksPtrOutput added in v6.18.2

func (i ScraperSourceEksArgs) ToScraperSourceEksPtrOutput() ScraperSourceEksPtrOutput

func (ScraperSourceEksArgs) ToScraperSourceEksPtrOutputWithContext added in v6.18.2

func (i ScraperSourceEksArgs) ToScraperSourceEksPtrOutputWithContext(ctx context.Context) ScraperSourceEksPtrOutput

type ScraperSourceEksInput added in v6.18.2

type ScraperSourceEksInput interface {
	pulumi.Input

	ToScraperSourceEksOutput() ScraperSourceEksOutput
	ToScraperSourceEksOutputWithContext(context.Context) ScraperSourceEksOutput
}

ScraperSourceEksInput is an input type that accepts ScraperSourceEksArgs and ScraperSourceEksOutput values. You can construct a concrete instance of `ScraperSourceEksInput` via:

ScraperSourceEksArgs{...}

type ScraperSourceEksOutput added in v6.18.2

type ScraperSourceEksOutput struct{ *pulumi.OutputState }

func (ScraperSourceEksOutput) ClusterArn added in v6.18.2

func (ScraperSourceEksOutput) ElementType added in v6.18.2

func (ScraperSourceEksOutput) ElementType() reflect.Type

func (ScraperSourceEksOutput) SecurityGroupIds added in v6.18.2

func (o ScraperSourceEksOutput) SecurityGroupIds() pulumi.StringArrayOutput

List of the security group IDs for the Amazon EKS cluster VPC configuration.

func (ScraperSourceEksOutput) SubnetIds added in v6.18.2

List of subnet IDs. Must be in at least two different availability zones.

func (ScraperSourceEksOutput) ToScraperSourceEksOutput added in v6.18.2

func (o ScraperSourceEksOutput) ToScraperSourceEksOutput() ScraperSourceEksOutput

func (ScraperSourceEksOutput) ToScraperSourceEksOutputWithContext added in v6.18.2

func (o ScraperSourceEksOutput) ToScraperSourceEksOutputWithContext(ctx context.Context) ScraperSourceEksOutput

func (ScraperSourceEksOutput) ToScraperSourceEksPtrOutput added in v6.18.2

func (o ScraperSourceEksOutput) ToScraperSourceEksPtrOutput() ScraperSourceEksPtrOutput

func (ScraperSourceEksOutput) ToScraperSourceEksPtrOutputWithContext added in v6.18.2

func (o ScraperSourceEksOutput) ToScraperSourceEksPtrOutputWithContext(ctx context.Context) ScraperSourceEksPtrOutput

type ScraperSourceEksPtrInput added in v6.18.2

type ScraperSourceEksPtrInput interface {
	pulumi.Input

	ToScraperSourceEksPtrOutput() ScraperSourceEksPtrOutput
	ToScraperSourceEksPtrOutputWithContext(context.Context) ScraperSourceEksPtrOutput
}

ScraperSourceEksPtrInput is an input type that accepts ScraperSourceEksArgs, ScraperSourceEksPtr and ScraperSourceEksPtrOutput values. You can construct a concrete instance of `ScraperSourceEksPtrInput` via:

        ScraperSourceEksArgs{...}

or:

        nil

func ScraperSourceEksPtr added in v6.18.2

func ScraperSourceEksPtr(v *ScraperSourceEksArgs) ScraperSourceEksPtrInput

type ScraperSourceEksPtrOutput added in v6.18.2

type ScraperSourceEksPtrOutput struct{ *pulumi.OutputState }

func (ScraperSourceEksPtrOutput) ClusterArn added in v6.18.2

func (ScraperSourceEksPtrOutput) Elem added in v6.18.2

func (ScraperSourceEksPtrOutput) ElementType added in v6.18.2

func (ScraperSourceEksPtrOutput) ElementType() reflect.Type

func (ScraperSourceEksPtrOutput) SecurityGroupIds added in v6.18.2

func (o ScraperSourceEksPtrOutput) SecurityGroupIds() pulumi.StringArrayOutput

List of the security group IDs for the Amazon EKS cluster VPC configuration.

func (ScraperSourceEksPtrOutput) SubnetIds added in v6.18.2

List of subnet IDs. Must be in at least two different availability zones.

func (ScraperSourceEksPtrOutput) ToScraperSourceEksPtrOutput added in v6.18.2

func (o ScraperSourceEksPtrOutput) ToScraperSourceEksPtrOutput() ScraperSourceEksPtrOutput

func (ScraperSourceEksPtrOutput) ToScraperSourceEksPtrOutputWithContext added in v6.18.2

func (o ScraperSourceEksPtrOutput) ToScraperSourceEksPtrOutputWithContext(ctx context.Context) ScraperSourceEksPtrOutput

type ScraperSourceInput added in v6.18.2

type ScraperSourceInput interface {
	pulumi.Input

	ToScraperSourceOutput() ScraperSourceOutput
	ToScraperSourceOutputWithContext(context.Context) ScraperSourceOutput
}

ScraperSourceInput is an input type that accepts ScraperSourceArgs and ScraperSourceOutput values. You can construct a concrete instance of `ScraperSourceInput` via:

ScraperSourceArgs{...}

type ScraperSourceOutput added in v6.18.2

type ScraperSourceOutput struct{ *pulumi.OutputState }

func (ScraperSourceOutput) Eks added in v6.18.2

Configuration block for an EKS cluster source. See `eks`.

func (ScraperSourceOutput) ElementType added in v6.18.2

func (ScraperSourceOutput) ElementType() reflect.Type

func (ScraperSourceOutput) ToScraperSourceOutput added in v6.18.2

func (o ScraperSourceOutput) ToScraperSourceOutput() ScraperSourceOutput

func (ScraperSourceOutput) ToScraperSourceOutputWithContext added in v6.18.2

func (o ScraperSourceOutput) ToScraperSourceOutputWithContext(ctx context.Context) ScraperSourceOutput

func (ScraperSourceOutput) ToScraperSourcePtrOutput added in v6.18.2

func (o ScraperSourceOutput) ToScraperSourcePtrOutput() ScraperSourcePtrOutput

func (ScraperSourceOutput) ToScraperSourcePtrOutputWithContext added in v6.18.2

func (o ScraperSourceOutput) ToScraperSourcePtrOutputWithContext(ctx context.Context) ScraperSourcePtrOutput

type ScraperSourcePtrInput added in v6.18.2

type ScraperSourcePtrInput interface {
	pulumi.Input

	ToScraperSourcePtrOutput() ScraperSourcePtrOutput
	ToScraperSourcePtrOutputWithContext(context.Context) ScraperSourcePtrOutput
}

ScraperSourcePtrInput is an input type that accepts ScraperSourceArgs, ScraperSourcePtr and ScraperSourcePtrOutput values. You can construct a concrete instance of `ScraperSourcePtrInput` via:

        ScraperSourceArgs{...}

or:

        nil

func ScraperSourcePtr added in v6.18.2

func ScraperSourcePtr(v *ScraperSourceArgs) ScraperSourcePtrInput

type ScraperSourcePtrOutput added in v6.18.2

type ScraperSourcePtrOutput struct{ *pulumi.OutputState }

func (ScraperSourcePtrOutput) Eks added in v6.18.2

Configuration block for an EKS cluster source. See `eks`.

func (ScraperSourcePtrOutput) Elem added in v6.18.2

func (ScraperSourcePtrOutput) ElementType added in v6.18.2

func (ScraperSourcePtrOutput) ElementType() reflect.Type

func (ScraperSourcePtrOutput) ToScraperSourcePtrOutput added in v6.18.2

func (o ScraperSourcePtrOutput) ToScraperSourcePtrOutput() ScraperSourcePtrOutput

func (ScraperSourcePtrOutput) ToScraperSourcePtrOutputWithContext added in v6.18.2

func (o ScraperSourcePtrOutput) ToScraperSourcePtrOutputWithContext(ctx context.Context) ScraperSourcePtrOutput

type ScraperState added in v6.18.2

type ScraperState struct {
	// a name to associate with the managed scraper. This is for your use, and does not need to be unique.
	Alias pulumi.StringPtrInput
	// The Amazon Resource Name (ARN) of the new scraper.
	Arn pulumi.StringPtrInput
	// Configuration block for the managed scraper to send metrics to. See `destination`.
	Destination ScraperDestinationPtrInput
	// The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover, collect, and produce metrics
	RoleArn pulumi.StringPtrInput
	// The configuration file to use in the new scraper. For more information, see [Scraper configuration](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-collector-how-to.html#AMP-collector-configuration).
	ScrapeConfiguration pulumi.StringPtrInput
	// Configuration block to specify where the managed scraper will collect metrics from. See `source`.
	//
	// The following arguments are optional:
	Source ScraperSourcePtrInput
	Tags   pulumi.StringMapInput
	// Deprecated: Please use `tags` instead.
	TagsAll  pulumi.StringMapInput
	Timeouts ScraperTimeoutsPtrInput
}

func (ScraperState) ElementType added in v6.18.2

func (ScraperState) ElementType() reflect.Type

type ScraperTimeouts added in v6.18.2

type ScraperTimeouts struct {
	// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
	Create *string `pulumi:"create"`
	// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
	Delete *string `pulumi:"delete"`
}

type ScraperTimeoutsArgs added in v6.18.2

type ScraperTimeoutsArgs struct {
	// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
	Create pulumi.StringPtrInput `pulumi:"create"`
	// A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
	Delete pulumi.StringPtrInput `pulumi:"delete"`
}

func (ScraperTimeoutsArgs) ElementType added in v6.18.2

func (ScraperTimeoutsArgs) ElementType() reflect.Type

func (ScraperTimeoutsArgs) ToScraperTimeoutsOutput added in v6.18.2

func (i ScraperTimeoutsArgs) ToScraperTimeoutsOutput() ScraperTimeoutsOutput

func (ScraperTimeoutsArgs) ToScraperTimeoutsOutputWithContext added in v6.18.2

func (i ScraperTimeoutsArgs) ToScraperTimeoutsOutputWithContext(ctx context.Context) ScraperTimeoutsOutput

func (ScraperTimeoutsArgs) ToScraperTimeoutsPtrOutput added in v6.18.2

func (i ScraperTimeoutsArgs) ToScraperTimeoutsPtrOutput() ScraperTimeoutsPtrOutput

func (ScraperTimeoutsArgs) ToScraperTimeoutsPtrOutputWithContext added in v6.18.2

func (i ScraperTimeoutsArgs) ToScraperTimeoutsPtrOutputWithContext(ctx context.Context) ScraperTimeoutsPtrOutput

type ScraperTimeoutsInput added in v6.18.2

type ScraperTimeoutsInput interface {
	pulumi.Input

	ToScraperTimeoutsOutput() ScraperTimeoutsOutput
	ToScraperTimeoutsOutputWithContext(context.Context) ScraperTimeoutsOutput
}

ScraperTimeoutsInput is an input type that accepts ScraperTimeoutsArgs and ScraperTimeoutsOutput values. You can construct a concrete instance of `ScraperTimeoutsInput` via:

ScraperTimeoutsArgs{...}

type ScraperTimeoutsOutput added in v6.18.2

type ScraperTimeoutsOutput struct{ *pulumi.OutputState }

func (ScraperTimeoutsOutput) Create added in v6.18.2

A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

func (ScraperTimeoutsOutput) Delete added in v6.18.2

A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.

func (ScraperTimeoutsOutput) ElementType added in v6.18.2

func (ScraperTimeoutsOutput) ElementType() reflect.Type

func (ScraperTimeoutsOutput) ToScraperTimeoutsOutput added in v6.18.2

func (o ScraperTimeoutsOutput) ToScraperTimeoutsOutput() ScraperTimeoutsOutput

func (ScraperTimeoutsOutput) ToScraperTimeoutsOutputWithContext added in v6.18.2

func (o ScraperTimeoutsOutput) ToScraperTimeoutsOutputWithContext(ctx context.Context) ScraperTimeoutsOutput

func (ScraperTimeoutsOutput) ToScraperTimeoutsPtrOutput added in v6.18.2

func (o ScraperTimeoutsOutput) ToScraperTimeoutsPtrOutput() ScraperTimeoutsPtrOutput

func (ScraperTimeoutsOutput) ToScraperTimeoutsPtrOutputWithContext added in v6.18.2

func (o ScraperTimeoutsOutput) ToScraperTimeoutsPtrOutputWithContext(ctx context.Context) ScraperTimeoutsPtrOutput

type ScraperTimeoutsPtrInput added in v6.18.2

type ScraperTimeoutsPtrInput interface {
	pulumi.Input

	ToScraperTimeoutsPtrOutput() ScraperTimeoutsPtrOutput
	ToScraperTimeoutsPtrOutputWithContext(context.Context) ScraperTimeoutsPtrOutput
}

ScraperTimeoutsPtrInput is an input type that accepts ScraperTimeoutsArgs, ScraperTimeoutsPtr and ScraperTimeoutsPtrOutput values. You can construct a concrete instance of `ScraperTimeoutsPtrInput` via:

        ScraperTimeoutsArgs{...}

or:

        nil

func ScraperTimeoutsPtr added in v6.18.2

func ScraperTimeoutsPtr(v *ScraperTimeoutsArgs) ScraperTimeoutsPtrInput

type ScraperTimeoutsPtrOutput added in v6.18.2

type ScraperTimeoutsPtrOutput struct{ *pulumi.OutputState }

func (ScraperTimeoutsPtrOutput) Create added in v6.18.2

A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

func (ScraperTimeoutsPtrOutput) Delete added in v6.18.2

A string that can be [parsed as a duration](https://pkg.go.dev/time#ParseDuration) consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.

func (ScraperTimeoutsPtrOutput) Elem added in v6.18.2

func (ScraperTimeoutsPtrOutput) ElementType added in v6.18.2

func (ScraperTimeoutsPtrOutput) ElementType() reflect.Type

func (ScraperTimeoutsPtrOutput) ToScraperTimeoutsPtrOutput added in v6.18.2

func (o ScraperTimeoutsPtrOutput) ToScraperTimeoutsPtrOutput() ScraperTimeoutsPtrOutput

func (ScraperTimeoutsPtrOutput) ToScraperTimeoutsPtrOutputWithContext added in v6.18.2

func (o ScraperTimeoutsPtrOutput) ToScraperTimeoutsPtrOutputWithContext(ctx context.Context) ScraperTimeoutsPtrOutput

type Workspace

type Workspace struct {
	pulumi.CustomResourceState

	// The alias of the prometheus workspace. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-onboard-create-workspace.html).
	Alias pulumi.StringPtrOutput `pulumi:"alias"`
	// Amazon Resource Name (ARN) of the workspace.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The ARN for the KMS encryption key. If this argument is not provided, then the AWS owned encryption key will be used to encrypt the data in the workspace. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/encryption-at-rest-Amazon-Service-Prometheus.html)
	KmsKeyArn pulumi.StringPtrOutput `pulumi:"kmsKeyArn"`
	// Logging configuration for the workspace. See Logging Configuration below for details.
	LoggingConfiguration WorkspaceLoggingConfigurationPtrOutput `pulumi:"loggingConfiguration"`
	// Prometheus endpoint available for this workspace.
	PrometheusEndpoint pulumi.StringOutput `pulumi:"prometheusEndpoint"`
	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	//
	// Deprecated: Please use `tags` instead.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}

Manages an Amazon Managed Service for Prometheus (AMP) Workspace.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/amp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := amp.NewWorkspace(ctx, "example", &amp.WorkspaceArgs{
			Alias: pulumi.String("example"),
			Tags: pulumi.StringMap{
				"Environment": pulumi.String("production"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### CloudWatch Logging

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/amp"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudwatch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := cloudwatch.NewLogGroup(ctx, "example", &cloudwatch.LogGroupArgs{
			Name: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		_, err = amp.NewWorkspace(ctx, "example", &amp.WorkspaceArgs{
			LoggingConfiguration: &amp.WorkspaceLoggingConfigurationArgs{
				LogGroupArn: example.Arn.ApplyT(func(arn string) (string, error) {
					return fmt.Sprintf("%v:*", arn), nil
				}).(pulumi.StringOutput),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### AWS KMS Customer Managed Keys (CMK)

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/amp"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleKey, err := kms.NewKey(ctx, "example", &kms.KeyArgs{
			Description:          pulumi.String("example"),
			DeletionWindowInDays: pulumi.Int(7),
		})
		if err != nil {
			return err
		}
		_, err = amp.NewWorkspace(ctx, "example", &amp.WorkspaceArgs{
			Alias:     pulumi.String("example"),
			KmsKeyArn: exampleKey.Arn,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import AMP Workspaces using the identifier. For example:

```sh

$ pulumi import aws:amp/workspace:Workspace demo ws-C6DCB907-F2D7-4D96-957B-66691F865D8B

```

func GetWorkspace

func GetWorkspace(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WorkspaceState, opts ...pulumi.ResourceOption) (*Workspace, error)

GetWorkspace gets an existing Workspace resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewWorkspace

func NewWorkspace(ctx *pulumi.Context,
	name string, args *WorkspaceArgs, opts ...pulumi.ResourceOption) (*Workspace, error)

NewWorkspace registers a new resource with the given unique name, arguments, and options.

func (*Workspace) ElementType

func (*Workspace) ElementType() reflect.Type

func (*Workspace) ToWorkspaceOutput

func (i *Workspace) ToWorkspaceOutput() WorkspaceOutput

func (*Workspace) ToWorkspaceOutputWithContext

func (i *Workspace) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput

type WorkspaceArgs

type WorkspaceArgs struct {
	// The alias of the prometheus workspace. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-onboard-create-workspace.html).
	Alias pulumi.StringPtrInput
	// The ARN for the KMS encryption key. If this argument is not provided, then the AWS owned encryption key will be used to encrypt the data in the workspace. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/encryption-at-rest-Amazon-Service-Prometheus.html)
	KmsKeyArn pulumi.StringPtrInput
	// Logging configuration for the workspace. See Logging Configuration below for details.
	LoggingConfiguration WorkspaceLoggingConfigurationPtrInput
	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
}

The set of arguments for constructing a Workspace resource.

func (WorkspaceArgs) ElementType

func (WorkspaceArgs) ElementType() reflect.Type

type WorkspaceArray

type WorkspaceArray []WorkspaceInput

func (WorkspaceArray) ElementType

func (WorkspaceArray) ElementType() reflect.Type

func (WorkspaceArray) ToWorkspaceArrayOutput

func (i WorkspaceArray) ToWorkspaceArrayOutput() WorkspaceArrayOutput

func (WorkspaceArray) ToWorkspaceArrayOutputWithContext

func (i WorkspaceArray) ToWorkspaceArrayOutputWithContext(ctx context.Context) WorkspaceArrayOutput

type WorkspaceArrayInput

type WorkspaceArrayInput interface {
	pulumi.Input

	ToWorkspaceArrayOutput() WorkspaceArrayOutput
	ToWorkspaceArrayOutputWithContext(context.Context) WorkspaceArrayOutput
}

WorkspaceArrayInput is an input type that accepts WorkspaceArray and WorkspaceArrayOutput values. You can construct a concrete instance of `WorkspaceArrayInput` via:

WorkspaceArray{ WorkspaceArgs{...} }

type WorkspaceArrayOutput

type WorkspaceArrayOutput struct{ *pulumi.OutputState }

func (WorkspaceArrayOutput) ElementType

func (WorkspaceArrayOutput) ElementType() reflect.Type

func (WorkspaceArrayOutput) Index

func (WorkspaceArrayOutput) ToWorkspaceArrayOutput

func (o WorkspaceArrayOutput) ToWorkspaceArrayOutput() WorkspaceArrayOutput

func (WorkspaceArrayOutput) ToWorkspaceArrayOutputWithContext

func (o WorkspaceArrayOutput) ToWorkspaceArrayOutputWithContext(ctx context.Context) WorkspaceArrayOutput

type WorkspaceInput

type WorkspaceInput interface {
	pulumi.Input

	ToWorkspaceOutput() WorkspaceOutput
	ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput
}

type WorkspaceLoggingConfiguration

type WorkspaceLoggingConfiguration struct {
	// The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist.
	LogGroupArn string `pulumi:"logGroupArn"`
}

type WorkspaceLoggingConfigurationArgs

type WorkspaceLoggingConfigurationArgs struct {
	// The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist.
	LogGroupArn pulumi.StringInput `pulumi:"logGroupArn"`
}

func (WorkspaceLoggingConfigurationArgs) ElementType

func (WorkspaceLoggingConfigurationArgs) ToWorkspaceLoggingConfigurationOutput

func (i WorkspaceLoggingConfigurationArgs) ToWorkspaceLoggingConfigurationOutput() WorkspaceLoggingConfigurationOutput

func (WorkspaceLoggingConfigurationArgs) ToWorkspaceLoggingConfigurationOutputWithContext

func (i WorkspaceLoggingConfigurationArgs) ToWorkspaceLoggingConfigurationOutputWithContext(ctx context.Context) WorkspaceLoggingConfigurationOutput

func (WorkspaceLoggingConfigurationArgs) ToWorkspaceLoggingConfigurationPtrOutput

func (i WorkspaceLoggingConfigurationArgs) ToWorkspaceLoggingConfigurationPtrOutput() WorkspaceLoggingConfigurationPtrOutput

func (WorkspaceLoggingConfigurationArgs) ToWorkspaceLoggingConfigurationPtrOutputWithContext

func (i WorkspaceLoggingConfigurationArgs) ToWorkspaceLoggingConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceLoggingConfigurationPtrOutput

type WorkspaceLoggingConfigurationInput

type WorkspaceLoggingConfigurationInput interface {
	pulumi.Input

	ToWorkspaceLoggingConfigurationOutput() WorkspaceLoggingConfigurationOutput
	ToWorkspaceLoggingConfigurationOutputWithContext(context.Context) WorkspaceLoggingConfigurationOutput
}

WorkspaceLoggingConfigurationInput is an input type that accepts WorkspaceLoggingConfigurationArgs and WorkspaceLoggingConfigurationOutput values. You can construct a concrete instance of `WorkspaceLoggingConfigurationInput` via:

WorkspaceLoggingConfigurationArgs{...}

type WorkspaceLoggingConfigurationOutput

type WorkspaceLoggingConfigurationOutput struct{ *pulumi.OutputState }

func (WorkspaceLoggingConfigurationOutput) ElementType

func (WorkspaceLoggingConfigurationOutput) LogGroupArn

The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist.

func (WorkspaceLoggingConfigurationOutput) ToWorkspaceLoggingConfigurationOutput

func (o WorkspaceLoggingConfigurationOutput) ToWorkspaceLoggingConfigurationOutput() WorkspaceLoggingConfigurationOutput

func (WorkspaceLoggingConfigurationOutput) ToWorkspaceLoggingConfigurationOutputWithContext

func (o WorkspaceLoggingConfigurationOutput) ToWorkspaceLoggingConfigurationOutputWithContext(ctx context.Context) WorkspaceLoggingConfigurationOutput

func (WorkspaceLoggingConfigurationOutput) ToWorkspaceLoggingConfigurationPtrOutput

func (o WorkspaceLoggingConfigurationOutput) ToWorkspaceLoggingConfigurationPtrOutput() WorkspaceLoggingConfigurationPtrOutput

func (WorkspaceLoggingConfigurationOutput) ToWorkspaceLoggingConfigurationPtrOutputWithContext

func (o WorkspaceLoggingConfigurationOutput) ToWorkspaceLoggingConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceLoggingConfigurationPtrOutput

type WorkspaceLoggingConfigurationPtrInput

type WorkspaceLoggingConfigurationPtrInput interface {
	pulumi.Input

	ToWorkspaceLoggingConfigurationPtrOutput() WorkspaceLoggingConfigurationPtrOutput
	ToWorkspaceLoggingConfigurationPtrOutputWithContext(context.Context) WorkspaceLoggingConfigurationPtrOutput
}

WorkspaceLoggingConfigurationPtrInput is an input type that accepts WorkspaceLoggingConfigurationArgs, WorkspaceLoggingConfigurationPtr and WorkspaceLoggingConfigurationPtrOutput values. You can construct a concrete instance of `WorkspaceLoggingConfigurationPtrInput` via:

        WorkspaceLoggingConfigurationArgs{...}

or:

        nil

type WorkspaceLoggingConfigurationPtrOutput

type WorkspaceLoggingConfigurationPtrOutput struct{ *pulumi.OutputState }

func (WorkspaceLoggingConfigurationPtrOutput) Elem

func (WorkspaceLoggingConfigurationPtrOutput) ElementType

func (WorkspaceLoggingConfigurationPtrOutput) LogGroupArn

The ARN of the CloudWatch log group to which the vended log data will be published. This log group must exist.

func (WorkspaceLoggingConfigurationPtrOutput) ToWorkspaceLoggingConfigurationPtrOutput

func (o WorkspaceLoggingConfigurationPtrOutput) ToWorkspaceLoggingConfigurationPtrOutput() WorkspaceLoggingConfigurationPtrOutput

func (WorkspaceLoggingConfigurationPtrOutput) ToWorkspaceLoggingConfigurationPtrOutputWithContext

func (o WorkspaceLoggingConfigurationPtrOutput) ToWorkspaceLoggingConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceLoggingConfigurationPtrOutput

type WorkspaceMap

type WorkspaceMap map[string]WorkspaceInput

func (WorkspaceMap) ElementType

func (WorkspaceMap) ElementType() reflect.Type

func (WorkspaceMap) ToWorkspaceMapOutput

func (i WorkspaceMap) ToWorkspaceMapOutput() WorkspaceMapOutput

func (WorkspaceMap) ToWorkspaceMapOutputWithContext

func (i WorkspaceMap) ToWorkspaceMapOutputWithContext(ctx context.Context) WorkspaceMapOutput

type WorkspaceMapInput

type WorkspaceMapInput interface {
	pulumi.Input

	ToWorkspaceMapOutput() WorkspaceMapOutput
	ToWorkspaceMapOutputWithContext(context.Context) WorkspaceMapOutput
}

WorkspaceMapInput is an input type that accepts WorkspaceMap and WorkspaceMapOutput values. You can construct a concrete instance of `WorkspaceMapInput` via:

WorkspaceMap{ "key": WorkspaceArgs{...} }

type WorkspaceMapOutput

type WorkspaceMapOutput struct{ *pulumi.OutputState }

func (WorkspaceMapOutput) ElementType

func (WorkspaceMapOutput) ElementType() reflect.Type

func (WorkspaceMapOutput) MapIndex

func (WorkspaceMapOutput) ToWorkspaceMapOutput

func (o WorkspaceMapOutput) ToWorkspaceMapOutput() WorkspaceMapOutput

func (WorkspaceMapOutput) ToWorkspaceMapOutputWithContext

func (o WorkspaceMapOutput) ToWorkspaceMapOutputWithContext(ctx context.Context) WorkspaceMapOutput

type WorkspaceOutput

type WorkspaceOutput struct{ *pulumi.OutputState }

func (WorkspaceOutput) Alias

The alias of the prometheus workspace. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-onboard-create-workspace.html).

func (WorkspaceOutput) Arn

Amazon Resource Name (ARN) of the workspace.

func (WorkspaceOutput) ElementType

func (WorkspaceOutput) ElementType() reflect.Type

func (WorkspaceOutput) KmsKeyArn added in v6.18.2

func (o WorkspaceOutput) KmsKeyArn() pulumi.StringPtrOutput

The ARN for the KMS encryption key. If this argument is not provided, then the AWS owned encryption key will be used to encrypt the data in the workspace. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/encryption-at-rest-Amazon-Service-Prometheus.html)

func (WorkspaceOutput) LoggingConfiguration

Logging configuration for the workspace. See Logging Configuration below for details.

func (WorkspaceOutput) PrometheusEndpoint

func (o WorkspaceOutput) PrometheusEndpoint() pulumi.StringOutput

Prometheus endpoint available for this workspace.

func (WorkspaceOutput) Tags

A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.

func (WorkspaceOutput) TagsAll deprecated

A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.

Deprecated: Please use `tags` instead.

func (WorkspaceOutput) ToWorkspaceOutput

func (o WorkspaceOutput) ToWorkspaceOutput() WorkspaceOutput

func (WorkspaceOutput) ToWorkspaceOutputWithContext

func (o WorkspaceOutput) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput

type WorkspaceState

type WorkspaceState struct {
	// The alias of the prometheus workspace. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-onboard-create-workspace.html).
	Alias pulumi.StringPtrInput
	// Amazon Resource Name (ARN) of the workspace.
	Arn pulumi.StringPtrInput
	// The ARN for the KMS encryption key. If this argument is not provided, then the AWS owned encryption key will be used to encrypt the data in the workspace. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/encryption-at-rest-Amazon-Service-Prometheus.html)
	KmsKeyArn pulumi.StringPtrInput
	// Logging configuration for the workspace. See Logging Configuration below for details.
	LoggingConfiguration WorkspaceLoggingConfigurationPtrInput
	// Prometheus endpoint available for this workspace.
	PrometheusEndpoint pulumi.StringPtrInput
	// A map of tags to assign to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
	Tags pulumi.StringMapInput
	// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	//
	// Deprecated: Please use `tags` instead.
	TagsAll pulumi.StringMapInput
}

func (WorkspaceState) ElementType

func (WorkspaceState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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