amp

package
v7.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 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"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// 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/v7/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
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// 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) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

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
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// ID of the prometheus workspace the alert manager definition should be linked to
	WorkspaceId pulumi.StringPtrInput
}

func (AlertManagerDefinitionState) ElementType

type GetDefaultScraperConfigurationArgs

type GetDefaultScraperConfigurationArgs struct {
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region *string `pulumi:"region"`
}

A collection of arguments for invoking getDefaultScraperConfiguration.

type GetDefaultScraperConfigurationOutputArgs

type GetDefaultScraperConfigurationOutputArgs struct {
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

A collection of arguments for invoking getDefaultScraperConfiguration.

func (GetDefaultScraperConfigurationOutputArgs) ElementType

type GetDefaultScraperConfigurationResult

type GetDefaultScraperConfigurationResult struct {
	// The configuration file.
	Configuration string `pulumi:"configuration"`
	// The provider-assigned unique ID for this managed resource.
	Id     string `pulumi:"id"`
	Region string `pulumi:"region"`
}

A collection of values returned by getDefaultScraperConfiguration.

func GetDefaultScraperConfiguration

Returns the default scraper configuration used when Amazon EKS creates a scraper for you.

## Example Usage

```go package main

import (

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

)

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

```

type GetDefaultScraperConfigurationResultOutput

type GetDefaultScraperConfigurationResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDefaultScraperConfiguration.

func (GetDefaultScraperConfigurationResultOutput) Configuration

The configuration file.

func (GetDefaultScraperConfigurationResultOutput) ElementType

func (GetDefaultScraperConfigurationResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetDefaultScraperConfigurationResultOutput) Region

func (GetDefaultScraperConfigurationResultOutput) ToGetDefaultScraperConfigurationResultOutput

func (o GetDefaultScraperConfigurationResultOutput) ToGetDefaultScraperConfigurationResultOutput() GetDefaultScraperConfigurationResultOutput

func (GetDefaultScraperConfigurationResultOutput) ToGetDefaultScraperConfigurationResultOutputWithContext

func (o GetDefaultScraperConfigurationResultOutput) ToGetDefaultScraperConfigurationResultOutputWithContext(ctx context.Context) GetDefaultScraperConfigurationResultOutput

type GetWorkspacesArgs

type GetWorkspacesArgs struct {
	// Limits results to workspaces with aliases that begin with this value.
	AliasPrefix *string `pulumi:"aliasPrefix"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region *string `pulumi:"region"`
}

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"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

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"`
	Region string `pulumi:"region"`
	// 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/v7/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{}, 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/v7/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) Region

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 {
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region *string `pulumi:"region"`
	// 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 {
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// 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"`
	Region             string `pulumi:"region"`
	// 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/v7/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

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) Region

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 QueryLoggingConfiguration

type QueryLoggingConfiguration struct {
	pulumi.CustomResourceState

	// Configuration block for the logging destinations. See `destinations`.
	Destinations QueryLoggingConfigurationDestinationArrayOutput `pulumi:"destinations"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region   pulumi.StringOutput                        `pulumi:"region"`
	Timeouts QueryLoggingConfigurationTimeoutsPtrOutput `pulumi:"timeouts"`
	// The ID of the AMP workspace for which to configure query logging.
	//
	// The following arguments are optional:
	WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"`
}

Manages an Amazon Managed Service for Prometheus (AMP) Query Logging Configuration.

## Example Usage

```go package main

import (

"fmt"

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := amp.NewWorkspace(ctx, "example", &amp.WorkspaceArgs{
			Alias: pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		exampleLogGroup, err := cloudwatch.NewLogGroup(ctx, "example", &cloudwatch.LogGroupArgs{
			Name: pulumi.String("/aws/prometheus/query-logs/example"),
		})
		if err != nil {
			return err
		}
		_, err = amp.NewQueryLoggingConfiguration(ctx, "example", &amp.QueryLoggingConfigurationArgs{
			WorkspaceId: example.ID(),
			Destinations: amp.QueryLoggingConfigurationDestinationArray{
				&amp.QueryLoggingConfigurationDestinationArgs{
					CloudwatchLogs: &amp.QueryLoggingConfigurationDestinationCloudwatchLogsArgs{
						LogGroupArn: exampleLogGroup.Arn.ApplyT(func(arn string) (string, error) {
							return fmt.Sprintf("%v:*", arn), nil
						}).(pulumi.StringOutput),
					},
					Filters: &amp.QueryLoggingConfigurationDestinationFiltersArgs{
						QspThreshold: pulumi.Int(1000),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetQueryLoggingConfiguration

func GetQueryLoggingConfiguration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *QueryLoggingConfigurationState, opts ...pulumi.ResourceOption) (*QueryLoggingConfiguration, error)

GetQueryLoggingConfiguration gets an existing QueryLoggingConfiguration 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 NewQueryLoggingConfiguration

func NewQueryLoggingConfiguration(ctx *pulumi.Context,
	name string, args *QueryLoggingConfigurationArgs, opts ...pulumi.ResourceOption) (*QueryLoggingConfiguration, error)

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

func (*QueryLoggingConfiguration) ElementType

func (*QueryLoggingConfiguration) ElementType() reflect.Type

func (*QueryLoggingConfiguration) ToQueryLoggingConfigurationOutput

func (i *QueryLoggingConfiguration) ToQueryLoggingConfigurationOutput() QueryLoggingConfigurationOutput

func (*QueryLoggingConfiguration) ToQueryLoggingConfigurationOutputWithContext

func (i *QueryLoggingConfiguration) ToQueryLoggingConfigurationOutputWithContext(ctx context.Context) QueryLoggingConfigurationOutput

type QueryLoggingConfigurationArgs

type QueryLoggingConfigurationArgs struct {
	// Configuration block for the logging destinations. See `destinations`.
	Destinations QueryLoggingConfigurationDestinationArrayInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region   pulumi.StringPtrInput
	Timeouts QueryLoggingConfigurationTimeoutsPtrInput
	// The ID of the AMP workspace for which to configure query logging.
	//
	// The following arguments are optional:
	WorkspaceId pulumi.StringInput
}

The set of arguments for constructing a QueryLoggingConfiguration resource.

func (QueryLoggingConfigurationArgs) ElementType

type QueryLoggingConfigurationArray

type QueryLoggingConfigurationArray []QueryLoggingConfigurationInput

func (QueryLoggingConfigurationArray) ElementType

func (QueryLoggingConfigurationArray) ToQueryLoggingConfigurationArrayOutput

func (i QueryLoggingConfigurationArray) ToQueryLoggingConfigurationArrayOutput() QueryLoggingConfigurationArrayOutput

func (QueryLoggingConfigurationArray) ToQueryLoggingConfigurationArrayOutputWithContext

func (i QueryLoggingConfigurationArray) ToQueryLoggingConfigurationArrayOutputWithContext(ctx context.Context) QueryLoggingConfigurationArrayOutput

type QueryLoggingConfigurationArrayInput

type QueryLoggingConfigurationArrayInput interface {
	pulumi.Input

	ToQueryLoggingConfigurationArrayOutput() QueryLoggingConfigurationArrayOutput
	ToQueryLoggingConfigurationArrayOutputWithContext(context.Context) QueryLoggingConfigurationArrayOutput
}

QueryLoggingConfigurationArrayInput is an input type that accepts QueryLoggingConfigurationArray and QueryLoggingConfigurationArrayOutput values. You can construct a concrete instance of `QueryLoggingConfigurationArrayInput` via:

QueryLoggingConfigurationArray{ QueryLoggingConfigurationArgs{...} }

type QueryLoggingConfigurationArrayOutput

type QueryLoggingConfigurationArrayOutput struct{ *pulumi.OutputState }

func (QueryLoggingConfigurationArrayOutput) ElementType

func (QueryLoggingConfigurationArrayOutput) Index

func (QueryLoggingConfigurationArrayOutput) ToQueryLoggingConfigurationArrayOutput

func (o QueryLoggingConfigurationArrayOutput) ToQueryLoggingConfigurationArrayOutput() QueryLoggingConfigurationArrayOutput

func (QueryLoggingConfigurationArrayOutput) ToQueryLoggingConfigurationArrayOutputWithContext

func (o QueryLoggingConfigurationArrayOutput) ToQueryLoggingConfigurationArrayOutputWithContext(ctx context.Context) QueryLoggingConfigurationArrayOutput

type QueryLoggingConfigurationDestination

type QueryLoggingConfigurationDestination struct {
	// Configuration block for CloudWatch Logs destination. See `cloudwatchLogs`.
	CloudwatchLogs *QueryLoggingConfigurationDestinationCloudwatchLogs `pulumi:"cloudwatchLogs"`
	// A list of filter configurations that specify which logs should be sent to the destination. See `filters`.
	Filters *QueryLoggingConfigurationDestinationFilters `pulumi:"filters"`
}

type QueryLoggingConfigurationDestinationArgs

type QueryLoggingConfigurationDestinationArgs struct {
	// Configuration block for CloudWatch Logs destination. See `cloudwatchLogs`.
	CloudwatchLogs QueryLoggingConfigurationDestinationCloudwatchLogsPtrInput `pulumi:"cloudwatchLogs"`
	// A list of filter configurations that specify which logs should be sent to the destination. See `filters`.
	Filters QueryLoggingConfigurationDestinationFiltersPtrInput `pulumi:"filters"`
}

func (QueryLoggingConfigurationDestinationArgs) ElementType

func (QueryLoggingConfigurationDestinationArgs) ToQueryLoggingConfigurationDestinationOutput

func (i QueryLoggingConfigurationDestinationArgs) ToQueryLoggingConfigurationDestinationOutput() QueryLoggingConfigurationDestinationOutput

func (QueryLoggingConfigurationDestinationArgs) ToQueryLoggingConfigurationDestinationOutputWithContext

func (i QueryLoggingConfigurationDestinationArgs) ToQueryLoggingConfigurationDestinationOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationOutput

type QueryLoggingConfigurationDestinationArray

type QueryLoggingConfigurationDestinationArray []QueryLoggingConfigurationDestinationInput

func (QueryLoggingConfigurationDestinationArray) ElementType

func (QueryLoggingConfigurationDestinationArray) ToQueryLoggingConfigurationDestinationArrayOutput

func (i QueryLoggingConfigurationDestinationArray) ToQueryLoggingConfigurationDestinationArrayOutput() QueryLoggingConfigurationDestinationArrayOutput

func (QueryLoggingConfigurationDestinationArray) ToQueryLoggingConfigurationDestinationArrayOutputWithContext

func (i QueryLoggingConfigurationDestinationArray) ToQueryLoggingConfigurationDestinationArrayOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationArrayOutput

type QueryLoggingConfigurationDestinationArrayInput

type QueryLoggingConfigurationDestinationArrayInput interface {
	pulumi.Input

	ToQueryLoggingConfigurationDestinationArrayOutput() QueryLoggingConfigurationDestinationArrayOutput
	ToQueryLoggingConfigurationDestinationArrayOutputWithContext(context.Context) QueryLoggingConfigurationDestinationArrayOutput
}

QueryLoggingConfigurationDestinationArrayInput is an input type that accepts QueryLoggingConfigurationDestinationArray and QueryLoggingConfigurationDestinationArrayOutput values. You can construct a concrete instance of `QueryLoggingConfigurationDestinationArrayInput` via:

QueryLoggingConfigurationDestinationArray{ QueryLoggingConfigurationDestinationArgs{...} }

type QueryLoggingConfigurationDestinationArrayOutput

type QueryLoggingConfigurationDestinationArrayOutput struct{ *pulumi.OutputState }

func (QueryLoggingConfigurationDestinationArrayOutput) ElementType

func (QueryLoggingConfigurationDestinationArrayOutput) Index

func (QueryLoggingConfigurationDestinationArrayOutput) ToQueryLoggingConfigurationDestinationArrayOutput

func (o QueryLoggingConfigurationDestinationArrayOutput) ToQueryLoggingConfigurationDestinationArrayOutput() QueryLoggingConfigurationDestinationArrayOutput

func (QueryLoggingConfigurationDestinationArrayOutput) ToQueryLoggingConfigurationDestinationArrayOutputWithContext

func (o QueryLoggingConfigurationDestinationArrayOutput) ToQueryLoggingConfigurationDestinationArrayOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationArrayOutput

type QueryLoggingConfigurationDestinationCloudwatchLogs

type QueryLoggingConfigurationDestinationCloudwatchLogs struct {
	// The ARN of the CloudWatch log group to which query logs will be sent.
	LogGroupArn string `pulumi:"logGroupArn"`
}

type QueryLoggingConfigurationDestinationCloudwatchLogsArgs

type QueryLoggingConfigurationDestinationCloudwatchLogsArgs struct {
	// The ARN of the CloudWatch log group to which query logs will be sent.
	LogGroupArn pulumi.StringInput `pulumi:"logGroupArn"`
}

func (QueryLoggingConfigurationDestinationCloudwatchLogsArgs) ElementType

func (QueryLoggingConfigurationDestinationCloudwatchLogsArgs) ToQueryLoggingConfigurationDestinationCloudwatchLogsOutput

func (QueryLoggingConfigurationDestinationCloudwatchLogsArgs) ToQueryLoggingConfigurationDestinationCloudwatchLogsOutputWithContext

func (i QueryLoggingConfigurationDestinationCloudwatchLogsArgs) ToQueryLoggingConfigurationDestinationCloudwatchLogsOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationCloudwatchLogsOutput

func (QueryLoggingConfigurationDestinationCloudwatchLogsArgs) ToQueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput

func (i QueryLoggingConfigurationDestinationCloudwatchLogsArgs) ToQueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput() QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput

func (QueryLoggingConfigurationDestinationCloudwatchLogsArgs) ToQueryLoggingConfigurationDestinationCloudwatchLogsPtrOutputWithContext

func (i QueryLoggingConfigurationDestinationCloudwatchLogsArgs) ToQueryLoggingConfigurationDestinationCloudwatchLogsPtrOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput

type QueryLoggingConfigurationDestinationCloudwatchLogsInput

type QueryLoggingConfigurationDestinationCloudwatchLogsInput interface {
	pulumi.Input

	ToQueryLoggingConfigurationDestinationCloudwatchLogsOutput() QueryLoggingConfigurationDestinationCloudwatchLogsOutput
	ToQueryLoggingConfigurationDestinationCloudwatchLogsOutputWithContext(context.Context) QueryLoggingConfigurationDestinationCloudwatchLogsOutput
}

QueryLoggingConfigurationDestinationCloudwatchLogsInput is an input type that accepts QueryLoggingConfigurationDestinationCloudwatchLogsArgs and QueryLoggingConfigurationDestinationCloudwatchLogsOutput values. You can construct a concrete instance of `QueryLoggingConfigurationDestinationCloudwatchLogsInput` via:

QueryLoggingConfigurationDestinationCloudwatchLogsArgs{...}

type QueryLoggingConfigurationDestinationCloudwatchLogsOutput

type QueryLoggingConfigurationDestinationCloudwatchLogsOutput struct{ *pulumi.OutputState }

func (QueryLoggingConfigurationDestinationCloudwatchLogsOutput) ElementType

func (QueryLoggingConfigurationDestinationCloudwatchLogsOutput) LogGroupArn

The ARN of the CloudWatch log group to which query logs will be sent.

func (QueryLoggingConfigurationDestinationCloudwatchLogsOutput) ToQueryLoggingConfigurationDestinationCloudwatchLogsOutput

func (QueryLoggingConfigurationDestinationCloudwatchLogsOutput) ToQueryLoggingConfigurationDestinationCloudwatchLogsOutputWithContext

func (o QueryLoggingConfigurationDestinationCloudwatchLogsOutput) ToQueryLoggingConfigurationDestinationCloudwatchLogsOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationCloudwatchLogsOutput

func (QueryLoggingConfigurationDestinationCloudwatchLogsOutput) ToQueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput

func (QueryLoggingConfigurationDestinationCloudwatchLogsOutput) ToQueryLoggingConfigurationDestinationCloudwatchLogsPtrOutputWithContext

func (o QueryLoggingConfigurationDestinationCloudwatchLogsOutput) ToQueryLoggingConfigurationDestinationCloudwatchLogsPtrOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput

type QueryLoggingConfigurationDestinationCloudwatchLogsPtrInput

type QueryLoggingConfigurationDestinationCloudwatchLogsPtrInput interface {
	pulumi.Input

	ToQueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput() QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput
	ToQueryLoggingConfigurationDestinationCloudwatchLogsPtrOutputWithContext(context.Context) QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput
}

QueryLoggingConfigurationDestinationCloudwatchLogsPtrInput is an input type that accepts QueryLoggingConfigurationDestinationCloudwatchLogsArgs, QueryLoggingConfigurationDestinationCloudwatchLogsPtr and QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput values. You can construct a concrete instance of `QueryLoggingConfigurationDestinationCloudwatchLogsPtrInput` via:

        QueryLoggingConfigurationDestinationCloudwatchLogsArgs{...}

or:

        nil

type QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput

type QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput struct{ *pulumi.OutputState }

func (QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput) Elem

func (QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput) ElementType

func (QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput) LogGroupArn

The ARN of the CloudWatch log group to which query logs will be sent.

func (QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput) ToQueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput

func (QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput) ToQueryLoggingConfigurationDestinationCloudwatchLogsPtrOutputWithContext

func (o QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput) ToQueryLoggingConfigurationDestinationCloudwatchLogsPtrOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationCloudwatchLogsPtrOutput

type QueryLoggingConfigurationDestinationFilters

type QueryLoggingConfigurationDestinationFilters struct {
	// The Query Samples Processed (QSP) threshold above which queries will be logged. Queries processing more samples than this threshold will be captured in logs.
	QspThreshold int `pulumi:"qspThreshold"`
}

type QueryLoggingConfigurationDestinationFiltersArgs

type QueryLoggingConfigurationDestinationFiltersArgs struct {
	// The Query Samples Processed (QSP) threshold above which queries will be logged. Queries processing more samples than this threshold will be captured in logs.
	QspThreshold pulumi.IntInput `pulumi:"qspThreshold"`
}

func (QueryLoggingConfigurationDestinationFiltersArgs) ElementType

func (QueryLoggingConfigurationDestinationFiltersArgs) ToQueryLoggingConfigurationDestinationFiltersOutput

func (i QueryLoggingConfigurationDestinationFiltersArgs) ToQueryLoggingConfigurationDestinationFiltersOutput() QueryLoggingConfigurationDestinationFiltersOutput

func (QueryLoggingConfigurationDestinationFiltersArgs) ToQueryLoggingConfigurationDestinationFiltersOutputWithContext

func (i QueryLoggingConfigurationDestinationFiltersArgs) ToQueryLoggingConfigurationDestinationFiltersOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationFiltersOutput

func (QueryLoggingConfigurationDestinationFiltersArgs) ToQueryLoggingConfigurationDestinationFiltersPtrOutput

func (i QueryLoggingConfigurationDestinationFiltersArgs) ToQueryLoggingConfigurationDestinationFiltersPtrOutput() QueryLoggingConfigurationDestinationFiltersPtrOutput

func (QueryLoggingConfigurationDestinationFiltersArgs) ToQueryLoggingConfigurationDestinationFiltersPtrOutputWithContext

func (i QueryLoggingConfigurationDestinationFiltersArgs) ToQueryLoggingConfigurationDestinationFiltersPtrOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationFiltersPtrOutput

type QueryLoggingConfigurationDestinationFiltersInput

type QueryLoggingConfigurationDestinationFiltersInput interface {
	pulumi.Input

	ToQueryLoggingConfigurationDestinationFiltersOutput() QueryLoggingConfigurationDestinationFiltersOutput
	ToQueryLoggingConfigurationDestinationFiltersOutputWithContext(context.Context) QueryLoggingConfigurationDestinationFiltersOutput
}

QueryLoggingConfigurationDestinationFiltersInput is an input type that accepts QueryLoggingConfigurationDestinationFiltersArgs and QueryLoggingConfigurationDestinationFiltersOutput values. You can construct a concrete instance of `QueryLoggingConfigurationDestinationFiltersInput` via:

QueryLoggingConfigurationDestinationFiltersArgs{...}

type QueryLoggingConfigurationDestinationFiltersOutput

type QueryLoggingConfigurationDestinationFiltersOutput struct{ *pulumi.OutputState }

func (QueryLoggingConfigurationDestinationFiltersOutput) ElementType

func (QueryLoggingConfigurationDestinationFiltersOutput) QspThreshold

The Query Samples Processed (QSP) threshold above which queries will be logged. Queries processing more samples than this threshold will be captured in logs.

func (QueryLoggingConfigurationDestinationFiltersOutput) ToQueryLoggingConfigurationDestinationFiltersOutput

func (o QueryLoggingConfigurationDestinationFiltersOutput) ToQueryLoggingConfigurationDestinationFiltersOutput() QueryLoggingConfigurationDestinationFiltersOutput

func (QueryLoggingConfigurationDestinationFiltersOutput) ToQueryLoggingConfigurationDestinationFiltersOutputWithContext

func (o QueryLoggingConfigurationDestinationFiltersOutput) ToQueryLoggingConfigurationDestinationFiltersOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationFiltersOutput

func (QueryLoggingConfigurationDestinationFiltersOutput) ToQueryLoggingConfigurationDestinationFiltersPtrOutput

func (o QueryLoggingConfigurationDestinationFiltersOutput) ToQueryLoggingConfigurationDestinationFiltersPtrOutput() QueryLoggingConfigurationDestinationFiltersPtrOutput

func (QueryLoggingConfigurationDestinationFiltersOutput) ToQueryLoggingConfigurationDestinationFiltersPtrOutputWithContext

func (o QueryLoggingConfigurationDestinationFiltersOutput) ToQueryLoggingConfigurationDestinationFiltersPtrOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationFiltersPtrOutput

type QueryLoggingConfigurationDestinationFiltersPtrInput

type QueryLoggingConfigurationDestinationFiltersPtrInput interface {
	pulumi.Input

	ToQueryLoggingConfigurationDestinationFiltersPtrOutput() QueryLoggingConfigurationDestinationFiltersPtrOutput
	ToQueryLoggingConfigurationDestinationFiltersPtrOutputWithContext(context.Context) QueryLoggingConfigurationDestinationFiltersPtrOutput
}

QueryLoggingConfigurationDestinationFiltersPtrInput is an input type that accepts QueryLoggingConfigurationDestinationFiltersArgs, QueryLoggingConfigurationDestinationFiltersPtr and QueryLoggingConfigurationDestinationFiltersPtrOutput values. You can construct a concrete instance of `QueryLoggingConfigurationDestinationFiltersPtrInput` via:

        QueryLoggingConfigurationDestinationFiltersArgs{...}

or:

        nil

type QueryLoggingConfigurationDestinationFiltersPtrOutput

type QueryLoggingConfigurationDestinationFiltersPtrOutput struct{ *pulumi.OutputState }

func (QueryLoggingConfigurationDestinationFiltersPtrOutput) Elem

func (QueryLoggingConfigurationDestinationFiltersPtrOutput) ElementType

func (QueryLoggingConfigurationDestinationFiltersPtrOutput) QspThreshold

The Query Samples Processed (QSP) threshold above which queries will be logged. Queries processing more samples than this threshold will be captured in logs.

func (QueryLoggingConfigurationDestinationFiltersPtrOutput) ToQueryLoggingConfigurationDestinationFiltersPtrOutput

func (QueryLoggingConfigurationDestinationFiltersPtrOutput) ToQueryLoggingConfigurationDestinationFiltersPtrOutputWithContext

func (o QueryLoggingConfigurationDestinationFiltersPtrOutput) ToQueryLoggingConfigurationDestinationFiltersPtrOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationFiltersPtrOutput

type QueryLoggingConfigurationDestinationInput

type QueryLoggingConfigurationDestinationInput interface {
	pulumi.Input

	ToQueryLoggingConfigurationDestinationOutput() QueryLoggingConfigurationDestinationOutput
	ToQueryLoggingConfigurationDestinationOutputWithContext(context.Context) QueryLoggingConfigurationDestinationOutput
}

QueryLoggingConfigurationDestinationInput is an input type that accepts QueryLoggingConfigurationDestinationArgs and QueryLoggingConfigurationDestinationOutput values. You can construct a concrete instance of `QueryLoggingConfigurationDestinationInput` via:

QueryLoggingConfigurationDestinationArgs{...}

type QueryLoggingConfigurationDestinationOutput

type QueryLoggingConfigurationDestinationOutput struct{ *pulumi.OutputState }

func (QueryLoggingConfigurationDestinationOutput) CloudwatchLogs

Configuration block for CloudWatch Logs destination. See `cloudwatchLogs`.

func (QueryLoggingConfigurationDestinationOutput) ElementType

func (QueryLoggingConfigurationDestinationOutput) Filters

A list of filter configurations that specify which logs should be sent to the destination. See `filters`.

func (QueryLoggingConfigurationDestinationOutput) ToQueryLoggingConfigurationDestinationOutput

func (o QueryLoggingConfigurationDestinationOutput) ToQueryLoggingConfigurationDestinationOutput() QueryLoggingConfigurationDestinationOutput

func (QueryLoggingConfigurationDestinationOutput) ToQueryLoggingConfigurationDestinationOutputWithContext

func (o QueryLoggingConfigurationDestinationOutput) ToQueryLoggingConfigurationDestinationOutputWithContext(ctx context.Context) QueryLoggingConfigurationDestinationOutput

type QueryLoggingConfigurationInput

type QueryLoggingConfigurationInput interface {
	pulumi.Input

	ToQueryLoggingConfigurationOutput() QueryLoggingConfigurationOutput
	ToQueryLoggingConfigurationOutputWithContext(ctx context.Context) QueryLoggingConfigurationOutput
}

type QueryLoggingConfigurationMap

type QueryLoggingConfigurationMap map[string]QueryLoggingConfigurationInput

func (QueryLoggingConfigurationMap) ElementType

func (QueryLoggingConfigurationMap) ToQueryLoggingConfigurationMapOutput

func (i QueryLoggingConfigurationMap) ToQueryLoggingConfigurationMapOutput() QueryLoggingConfigurationMapOutput

func (QueryLoggingConfigurationMap) ToQueryLoggingConfigurationMapOutputWithContext

func (i QueryLoggingConfigurationMap) ToQueryLoggingConfigurationMapOutputWithContext(ctx context.Context) QueryLoggingConfigurationMapOutput

type QueryLoggingConfigurationMapInput

type QueryLoggingConfigurationMapInput interface {
	pulumi.Input

	ToQueryLoggingConfigurationMapOutput() QueryLoggingConfigurationMapOutput
	ToQueryLoggingConfigurationMapOutputWithContext(context.Context) QueryLoggingConfigurationMapOutput
}

QueryLoggingConfigurationMapInput is an input type that accepts QueryLoggingConfigurationMap and QueryLoggingConfigurationMapOutput values. You can construct a concrete instance of `QueryLoggingConfigurationMapInput` via:

QueryLoggingConfigurationMap{ "key": QueryLoggingConfigurationArgs{...} }

type QueryLoggingConfigurationMapOutput

type QueryLoggingConfigurationMapOutput struct{ *pulumi.OutputState }

func (QueryLoggingConfigurationMapOutput) ElementType

func (QueryLoggingConfigurationMapOutput) MapIndex

func (QueryLoggingConfigurationMapOutput) ToQueryLoggingConfigurationMapOutput

func (o QueryLoggingConfigurationMapOutput) ToQueryLoggingConfigurationMapOutput() QueryLoggingConfigurationMapOutput

func (QueryLoggingConfigurationMapOutput) ToQueryLoggingConfigurationMapOutputWithContext

func (o QueryLoggingConfigurationMapOutput) ToQueryLoggingConfigurationMapOutputWithContext(ctx context.Context) QueryLoggingConfigurationMapOutput

type QueryLoggingConfigurationOutput

type QueryLoggingConfigurationOutput struct{ *pulumi.OutputState }

func (QueryLoggingConfigurationOutput) Destinations

Configuration block for the logging destinations. See `destinations`.

func (QueryLoggingConfigurationOutput) ElementType

func (QueryLoggingConfigurationOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (QueryLoggingConfigurationOutput) Timeouts

func (QueryLoggingConfigurationOutput) ToQueryLoggingConfigurationOutput

func (o QueryLoggingConfigurationOutput) ToQueryLoggingConfigurationOutput() QueryLoggingConfigurationOutput

func (QueryLoggingConfigurationOutput) ToQueryLoggingConfigurationOutputWithContext

func (o QueryLoggingConfigurationOutput) ToQueryLoggingConfigurationOutputWithContext(ctx context.Context) QueryLoggingConfigurationOutput

func (QueryLoggingConfigurationOutput) WorkspaceId

The ID of the AMP workspace for which to configure query logging.

The following arguments are optional:

type QueryLoggingConfigurationState

type QueryLoggingConfigurationState struct {
	// Configuration block for the logging destinations. See `destinations`.
	Destinations QueryLoggingConfigurationDestinationArrayInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region   pulumi.StringPtrInput
	Timeouts QueryLoggingConfigurationTimeoutsPtrInput
	// The ID of the AMP workspace for which to configure query logging.
	//
	// The following arguments are optional:
	WorkspaceId pulumi.StringPtrInput
}

func (QueryLoggingConfigurationState) ElementType

type QueryLoggingConfigurationTimeouts

type QueryLoggingConfigurationTimeouts 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"`
	// 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).
	Update *string `pulumi:"update"`
}

type QueryLoggingConfigurationTimeoutsArgs

type QueryLoggingConfigurationTimeoutsArgs 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"`
	// 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).
	Update pulumi.StringPtrInput `pulumi:"update"`
}

func (QueryLoggingConfigurationTimeoutsArgs) ElementType

func (QueryLoggingConfigurationTimeoutsArgs) ToQueryLoggingConfigurationTimeoutsOutput

func (i QueryLoggingConfigurationTimeoutsArgs) ToQueryLoggingConfigurationTimeoutsOutput() QueryLoggingConfigurationTimeoutsOutput

func (QueryLoggingConfigurationTimeoutsArgs) ToQueryLoggingConfigurationTimeoutsOutputWithContext

func (i QueryLoggingConfigurationTimeoutsArgs) ToQueryLoggingConfigurationTimeoutsOutputWithContext(ctx context.Context) QueryLoggingConfigurationTimeoutsOutput

func (QueryLoggingConfigurationTimeoutsArgs) ToQueryLoggingConfigurationTimeoutsPtrOutput

func (i QueryLoggingConfigurationTimeoutsArgs) ToQueryLoggingConfigurationTimeoutsPtrOutput() QueryLoggingConfigurationTimeoutsPtrOutput

func (QueryLoggingConfigurationTimeoutsArgs) ToQueryLoggingConfigurationTimeoutsPtrOutputWithContext

func (i QueryLoggingConfigurationTimeoutsArgs) ToQueryLoggingConfigurationTimeoutsPtrOutputWithContext(ctx context.Context) QueryLoggingConfigurationTimeoutsPtrOutput

type QueryLoggingConfigurationTimeoutsInput

type QueryLoggingConfigurationTimeoutsInput interface {
	pulumi.Input

	ToQueryLoggingConfigurationTimeoutsOutput() QueryLoggingConfigurationTimeoutsOutput
	ToQueryLoggingConfigurationTimeoutsOutputWithContext(context.Context) QueryLoggingConfigurationTimeoutsOutput
}

QueryLoggingConfigurationTimeoutsInput is an input type that accepts QueryLoggingConfigurationTimeoutsArgs and QueryLoggingConfigurationTimeoutsOutput values. You can construct a concrete instance of `QueryLoggingConfigurationTimeoutsInput` via:

QueryLoggingConfigurationTimeoutsArgs{...}

type QueryLoggingConfigurationTimeoutsOutput

type QueryLoggingConfigurationTimeoutsOutput struct{ *pulumi.OutputState }

func (QueryLoggingConfigurationTimeoutsOutput) 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).

func (QueryLoggingConfigurationTimeoutsOutput) Delete

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 (QueryLoggingConfigurationTimeoutsOutput) ElementType

func (QueryLoggingConfigurationTimeoutsOutput) ToQueryLoggingConfigurationTimeoutsOutput

func (o QueryLoggingConfigurationTimeoutsOutput) ToQueryLoggingConfigurationTimeoutsOutput() QueryLoggingConfigurationTimeoutsOutput

func (QueryLoggingConfigurationTimeoutsOutput) ToQueryLoggingConfigurationTimeoutsOutputWithContext

func (o QueryLoggingConfigurationTimeoutsOutput) ToQueryLoggingConfigurationTimeoutsOutputWithContext(ctx context.Context) QueryLoggingConfigurationTimeoutsOutput

func (QueryLoggingConfigurationTimeoutsOutput) ToQueryLoggingConfigurationTimeoutsPtrOutput

func (o QueryLoggingConfigurationTimeoutsOutput) ToQueryLoggingConfigurationTimeoutsPtrOutput() QueryLoggingConfigurationTimeoutsPtrOutput

func (QueryLoggingConfigurationTimeoutsOutput) ToQueryLoggingConfigurationTimeoutsPtrOutputWithContext

func (o QueryLoggingConfigurationTimeoutsOutput) ToQueryLoggingConfigurationTimeoutsPtrOutputWithContext(ctx context.Context) QueryLoggingConfigurationTimeoutsPtrOutput

func (QueryLoggingConfigurationTimeoutsOutput) Update

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).

type QueryLoggingConfigurationTimeoutsPtrInput

type QueryLoggingConfigurationTimeoutsPtrInput interface {
	pulumi.Input

	ToQueryLoggingConfigurationTimeoutsPtrOutput() QueryLoggingConfigurationTimeoutsPtrOutput
	ToQueryLoggingConfigurationTimeoutsPtrOutputWithContext(context.Context) QueryLoggingConfigurationTimeoutsPtrOutput
}

QueryLoggingConfigurationTimeoutsPtrInput is an input type that accepts QueryLoggingConfigurationTimeoutsArgs, QueryLoggingConfigurationTimeoutsPtr and QueryLoggingConfigurationTimeoutsPtrOutput values. You can construct a concrete instance of `QueryLoggingConfigurationTimeoutsPtrInput` via:

        QueryLoggingConfigurationTimeoutsArgs{...}

or:

        nil

type QueryLoggingConfigurationTimeoutsPtrOutput

type QueryLoggingConfigurationTimeoutsPtrOutput struct{ *pulumi.OutputState }

func (QueryLoggingConfigurationTimeoutsPtrOutput) 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).

func (QueryLoggingConfigurationTimeoutsPtrOutput) Delete

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 (QueryLoggingConfigurationTimeoutsPtrOutput) Elem

func (QueryLoggingConfigurationTimeoutsPtrOutput) ElementType

func (QueryLoggingConfigurationTimeoutsPtrOutput) ToQueryLoggingConfigurationTimeoutsPtrOutput

func (o QueryLoggingConfigurationTimeoutsPtrOutput) ToQueryLoggingConfigurationTimeoutsPtrOutput() QueryLoggingConfigurationTimeoutsPtrOutput

func (QueryLoggingConfigurationTimeoutsPtrOutput) ToQueryLoggingConfigurationTimeoutsPtrOutputWithContext

func (o QueryLoggingConfigurationTimeoutsPtrOutput) ToQueryLoggingConfigurationTimeoutsPtrOutputWithContext(ctx context.Context) QueryLoggingConfigurationTimeoutsPtrOutput

func (QueryLoggingConfigurationTimeoutsPtrOutput) Update

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).

type RuleGroupNamespace

type RuleGroupNamespace struct {
	pulumi.CustomResourceState

	// The ARN of the rule group namespace.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// 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"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// Map of tags assigned 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"`
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
	// 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/v7/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
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Map of tags assigned 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
	// 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) Arn

The ARN of the rule group namespace.

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) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (RuleGroupNamespaceOutput) Tags

Map of tags assigned 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 (RuleGroupNamespaceOutput) TagsAll

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

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 ARN of the rule group namespace.
	Arn pulumi.StringPtrInput
	// 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
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Map of tags assigned 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
	// Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
	TagsAll pulumi.StringMapInput
	// 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

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"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// 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"`
	// Configuration block to enable writing to an Amazon Managed Service for Prometheus workspace in a different account. See `roleConfiguration` below.
	RoleConfiguration ScraperRoleConfigurationPtrOutput `pulumi:"roleConfiguration"`
	// 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"`
	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

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

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

func (*Scraper) ElementType() reflect.Type

func (*Scraper) ToScraperOutput

func (i *Scraper) ToScraperOutput() ScraperOutput

func (*Scraper) ToScraperOutputWithContext

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

type ScraperArgs

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
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Configuration block to enable writing to an Amazon Managed Service for Prometheus workspace in a different account. See `roleConfiguration` below.
	RoleConfiguration ScraperRoleConfigurationPtrInput
	// 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

func (ScraperArgs) ElementType() reflect.Type

type ScraperArray

type ScraperArray []ScraperInput

func (ScraperArray) ElementType

func (ScraperArray) ElementType() reflect.Type

func (ScraperArray) ToScraperArrayOutput

func (i ScraperArray) ToScraperArrayOutput() ScraperArrayOutput

func (ScraperArray) ToScraperArrayOutputWithContext

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

type ScraperArrayInput

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

type ScraperArrayOutput struct{ *pulumi.OutputState }

func (ScraperArrayOutput) ElementType

func (ScraperArrayOutput) ElementType() reflect.Type

func (ScraperArrayOutput) Index

func (ScraperArrayOutput) ToScraperArrayOutput

func (o ScraperArrayOutput) ToScraperArrayOutput() ScraperArrayOutput

func (ScraperArrayOutput) ToScraperArrayOutputWithContext

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

type ScraperDestination

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

type ScraperDestinationAmp

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

type ScraperDestinationAmpArgs

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

func (ScraperDestinationAmpArgs) ElementType

func (ScraperDestinationAmpArgs) ElementType() reflect.Type

func (ScraperDestinationAmpArgs) ToScraperDestinationAmpOutput

func (i ScraperDestinationAmpArgs) ToScraperDestinationAmpOutput() ScraperDestinationAmpOutput

func (ScraperDestinationAmpArgs) ToScraperDestinationAmpOutputWithContext

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

func (ScraperDestinationAmpArgs) ToScraperDestinationAmpPtrOutput

func (i ScraperDestinationAmpArgs) ToScraperDestinationAmpPtrOutput() ScraperDestinationAmpPtrOutput

func (ScraperDestinationAmpArgs) ToScraperDestinationAmpPtrOutputWithContext

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

type ScraperDestinationAmpInput

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

type ScraperDestinationAmpOutput struct{ *pulumi.OutputState }

func (ScraperDestinationAmpOutput) ElementType

func (ScraperDestinationAmpOutput) ToScraperDestinationAmpOutput

func (o ScraperDestinationAmpOutput) ToScraperDestinationAmpOutput() ScraperDestinationAmpOutput

func (ScraperDestinationAmpOutput) ToScraperDestinationAmpOutputWithContext

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

func (ScraperDestinationAmpOutput) ToScraperDestinationAmpPtrOutput

func (o ScraperDestinationAmpOutput) ToScraperDestinationAmpPtrOutput() ScraperDestinationAmpPtrOutput

func (ScraperDestinationAmpOutput) ToScraperDestinationAmpPtrOutputWithContext

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

func (ScraperDestinationAmpOutput) WorkspaceArn

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

type ScraperDestinationAmpPtrInput

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

type ScraperDestinationAmpPtrOutput

type ScraperDestinationAmpPtrOutput struct{ *pulumi.OutputState }

func (ScraperDestinationAmpPtrOutput) Elem

func (ScraperDestinationAmpPtrOutput) ElementType

func (ScraperDestinationAmpPtrOutput) ToScraperDestinationAmpPtrOutput

func (o ScraperDestinationAmpPtrOutput) ToScraperDestinationAmpPtrOutput() ScraperDestinationAmpPtrOutput

func (ScraperDestinationAmpPtrOutput) ToScraperDestinationAmpPtrOutputWithContext

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

func (ScraperDestinationAmpPtrOutput) WorkspaceArn

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

type ScraperDestinationArgs

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

func (ScraperDestinationArgs) ElementType

func (ScraperDestinationArgs) ElementType() reflect.Type

func (ScraperDestinationArgs) ToScraperDestinationOutput

func (i ScraperDestinationArgs) ToScraperDestinationOutput() ScraperDestinationOutput

func (ScraperDestinationArgs) ToScraperDestinationOutputWithContext

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

func (ScraperDestinationArgs) ToScraperDestinationPtrOutput

func (i ScraperDestinationArgs) ToScraperDestinationPtrOutput() ScraperDestinationPtrOutput

func (ScraperDestinationArgs) ToScraperDestinationPtrOutputWithContext

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

type ScraperDestinationInput

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

type ScraperDestinationOutput struct{ *pulumi.OutputState }

func (ScraperDestinationOutput) Amp

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

func (ScraperDestinationOutput) ElementType

func (ScraperDestinationOutput) ElementType() reflect.Type

func (ScraperDestinationOutput) ToScraperDestinationOutput

func (o ScraperDestinationOutput) ToScraperDestinationOutput() ScraperDestinationOutput

func (ScraperDestinationOutput) ToScraperDestinationOutputWithContext

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

func (ScraperDestinationOutput) ToScraperDestinationPtrOutput

func (o ScraperDestinationOutput) ToScraperDestinationPtrOutput() ScraperDestinationPtrOutput

func (ScraperDestinationOutput) ToScraperDestinationPtrOutputWithContext

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

type ScraperDestinationPtrInput

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

type ScraperDestinationPtrOutput

type ScraperDestinationPtrOutput struct{ *pulumi.OutputState }

func (ScraperDestinationPtrOutput) Amp

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

func (ScraperDestinationPtrOutput) Elem

func (ScraperDestinationPtrOutput) ElementType

func (ScraperDestinationPtrOutput) ToScraperDestinationPtrOutput

func (o ScraperDestinationPtrOutput) ToScraperDestinationPtrOutput() ScraperDestinationPtrOutput

func (ScraperDestinationPtrOutput) ToScraperDestinationPtrOutputWithContext

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

type ScraperInput

type ScraperInput interface {
	pulumi.Input

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

type ScraperMap

type ScraperMap map[string]ScraperInput

func (ScraperMap) ElementType

func (ScraperMap) ElementType() reflect.Type

func (ScraperMap) ToScraperMapOutput

func (i ScraperMap) ToScraperMapOutput() ScraperMapOutput

func (ScraperMap) ToScraperMapOutputWithContext

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

type ScraperMapInput

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

type ScraperMapOutput struct{ *pulumi.OutputState }

func (ScraperMapOutput) ElementType

func (ScraperMapOutput) ElementType() reflect.Type

func (ScraperMapOutput) MapIndex

func (ScraperMapOutput) ToScraperMapOutput

func (o ScraperMapOutput) ToScraperMapOutput() ScraperMapOutput

func (ScraperMapOutput) ToScraperMapOutputWithContext

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

type ScraperOutput

type ScraperOutput struct{ *pulumi.OutputState }

func (ScraperOutput) Alias

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

func (ScraperOutput) Arn

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

func (ScraperOutput) Destination

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

func (ScraperOutput) ElementType

func (ScraperOutput) ElementType() reflect.Type

func (ScraperOutput) Region

func (o ScraperOutput) Region() pulumi.StringOutput

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (ScraperOutput) RoleArn

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) RoleConfiguration

func (o ScraperOutput) RoleConfiguration() ScraperRoleConfigurationPtrOutput

Configuration block to enable writing to an Amazon Managed Service for Prometheus workspace in a different account. See `roleConfiguration` below.

func (ScraperOutput) ScrapeConfiguration

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

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

The following arguments are optional:

func (ScraperOutput) Tags

func (ScraperOutput) TagsAll

func (o ScraperOutput) TagsAll() pulumi.StringMapOutput

func (ScraperOutput) Timeouts

func (ScraperOutput) ToScraperOutput

func (o ScraperOutput) ToScraperOutput() ScraperOutput

func (ScraperOutput) ToScraperOutputWithContext

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

type ScraperRoleConfiguration

type ScraperRoleConfiguration struct {
	// The Amazon Resource Name (ARN) of the source role configuration. Must be an IAM role ARN.
	SourceRoleArn *string `pulumi:"sourceRoleArn"`
	// The Amazon Resource Name (ARN) of the target role configuration. Must be an IAM role ARN.
	TargetRoleArn *string `pulumi:"targetRoleArn"`
}

type ScraperRoleConfigurationArgs

type ScraperRoleConfigurationArgs struct {
	// The Amazon Resource Name (ARN) of the source role configuration. Must be an IAM role ARN.
	SourceRoleArn pulumi.StringPtrInput `pulumi:"sourceRoleArn"`
	// The Amazon Resource Name (ARN) of the target role configuration. Must be an IAM role ARN.
	TargetRoleArn pulumi.StringPtrInput `pulumi:"targetRoleArn"`
}

func (ScraperRoleConfigurationArgs) ElementType

func (ScraperRoleConfigurationArgs) ToScraperRoleConfigurationOutput

func (i ScraperRoleConfigurationArgs) ToScraperRoleConfigurationOutput() ScraperRoleConfigurationOutput

func (ScraperRoleConfigurationArgs) ToScraperRoleConfigurationOutputWithContext

func (i ScraperRoleConfigurationArgs) ToScraperRoleConfigurationOutputWithContext(ctx context.Context) ScraperRoleConfigurationOutput

func (ScraperRoleConfigurationArgs) ToScraperRoleConfigurationPtrOutput

func (i ScraperRoleConfigurationArgs) ToScraperRoleConfigurationPtrOutput() ScraperRoleConfigurationPtrOutput

func (ScraperRoleConfigurationArgs) ToScraperRoleConfigurationPtrOutputWithContext

func (i ScraperRoleConfigurationArgs) ToScraperRoleConfigurationPtrOutputWithContext(ctx context.Context) ScraperRoleConfigurationPtrOutput

type ScraperRoleConfigurationInput

type ScraperRoleConfigurationInput interface {
	pulumi.Input

	ToScraperRoleConfigurationOutput() ScraperRoleConfigurationOutput
	ToScraperRoleConfigurationOutputWithContext(context.Context) ScraperRoleConfigurationOutput
}

ScraperRoleConfigurationInput is an input type that accepts ScraperRoleConfigurationArgs and ScraperRoleConfigurationOutput values. You can construct a concrete instance of `ScraperRoleConfigurationInput` via:

ScraperRoleConfigurationArgs{...}

type ScraperRoleConfigurationOutput

type ScraperRoleConfigurationOutput struct{ *pulumi.OutputState }

func (ScraperRoleConfigurationOutput) ElementType

func (ScraperRoleConfigurationOutput) SourceRoleArn

The Amazon Resource Name (ARN) of the source role configuration. Must be an IAM role ARN.

func (ScraperRoleConfigurationOutput) TargetRoleArn

The Amazon Resource Name (ARN) of the target role configuration. Must be an IAM role ARN.

func (ScraperRoleConfigurationOutput) ToScraperRoleConfigurationOutput

func (o ScraperRoleConfigurationOutput) ToScraperRoleConfigurationOutput() ScraperRoleConfigurationOutput

func (ScraperRoleConfigurationOutput) ToScraperRoleConfigurationOutputWithContext

func (o ScraperRoleConfigurationOutput) ToScraperRoleConfigurationOutputWithContext(ctx context.Context) ScraperRoleConfigurationOutput

func (ScraperRoleConfigurationOutput) ToScraperRoleConfigurationPtrOutput

func (o ScraperRoleConfigurationOutput) ToScraperRoleConfigurationPtrOutput() ScraperRoleConfigurationPtrOutput

func (ScraperRoleConfigurationOutput) ToScraperRoleConfigurationPtrOutputWithContext

func (o ScraperRoleConfigurationOutput) ToScraperRoleConfigurationPtrOutputWithContext(ctx context.Context) ScraperRoleConfigurationPtrOutput

type ScraperRoleConfigurationPtrInput

type ScraperRoleConfigurationPtrInput interface {
	pulumi.Input

	ToScraperRoleConfigurationPtrOutput() ScraperRoleConfigurationPtrOutput
	ToScraperRoleConfigurationPtrOutputWithContext(context.Context) ScraperRoleConfigurationPtrOutput
}

ScraperRoleConfigurationPtrInput is an input type that accepts ScraperRoleConfigurationArgs, ScraperRoleConfigurationPtr and ScraperRoleConfigurationPtrOutput values. You can construct a concrete instance of `ScraperRoleConfigurationPtrInput` via:

        ScraperRoleConfigurationArgs{...}

or:

        nil

type ScraperRoleConfigurationPtrOutput

type ScraperRoleConfigurationPtrOutput struct{ *pulumi.OutputState }

func (ScraperRoleConfigurationPtrOutput) Elem

func (ScraperRoleConfigurationPtrOutput) ElementType

func (ScraperRoleConfigurationPtrOutput) SourceRoleArn

The Amazon Resource Name (ARN) of the source role configuration. Must be an IAM role ARN.

func (ScraperRoleConfigurationPtrOutput) TargetRoleArn

The Amazon Resource Name (ARN) of the target role configuration. Must be an IAM role ARN.

func (ScraperRoleConfigurationPtrOutput) ToScraperRoleConfigurationPtrOutput

func (o ScraperRoleConfigurationPtrOutput) ToScraperRoleConfigurationPtrOutput() ScraperRoleConfigurationPtrOutput

func (ScraperRoleConfigurationPtrOutput) ToScraperRoleConfigurationPtrOutputWithContext

func (o ScraperRoleConfigurationPtrOutput) ToScraperRoleConfigurationPtrOutputWithContext(ctx context.Context) ScraperRoleConfigurationPtrOutput

type ScraperSource

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

type ScraperSourceArgs

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

func (ScraperSourceArgs) ElementType

func (ScraperSourceArgs) ElementType() reflect.Type

func (ScraperSourceArgs) ToScraperSourceOutput

func (i ScraperSourceArgs) ToScraperSourceOutput() ScraperSourceOutput

func (ScraperSourceArgs) ToScraperSourceOutputWithContext

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

func (ScraperSourceArgs) ToScraperSourcePtrOutput

func (i ScraperSourceArgs) ToScraperSourcePtrOutput() ScraperSourcePtrOutput

func (ScraperSourceArgs) ToScraperSourcePtrOutputWithContext

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

type ScraperSourceEks

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

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

func (ScraperSourceEksArgs) ElementType() reflect.Type

func (ScraperSourceEksArgs) ToScraperSourceEksOutput

func (i ScraperSourceEksArgs) ToScraperSourceEksOutput() ScraperSourceEksOutput

func (ScraperSourceEksArgs) ToScraperSourceEksOutputWithContext

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

func (ScraperSourceEksArgs) ToScraperSourceEksPtrOutput

func (i ScraperSourceEksArgs) ToScraperSourceEksPtrOutput() ScraperSourceEksPtrOutput

func (ScraperSourceEksArgs) ToScraperSourceEksPtrOutputWithContext

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

type ScraperSourceEksInput

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

type ScraperSourceEksOutput struct{ *pulumi.OutputState }

func (ScraperSourceEksOutput) ClusterArn

func (ScraperSourceEksOutput) ElementType

func (ScraperSourceEksOutput) ElementType() reflect.Type

func (ScraperSourceEksOutput) SecurityGroupIds

func (o ScraperSourceEksOutput) SecurityGroupIds() pulumi.StringArrayOutput

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

func (ScraperSourceEksOutput) SubnetIds

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

func (ScraperSourceEksOutput) ToScraperSourceEksOutput

func (o ScraperSourceEksOutput) ToScraperSourceEksOutput() ScraperSourceEksOutput

func (ScraperSourceEksOutput) ToScraperSourceEksOutputWithContext

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

func (ScraperSourceEksOutput) ToScraperSourceEksPtrOutput

func (o ScraperSourceEksOutput) ToScraperSourceEksPtrOutput() ScraperSourceEksPtrOutput

func (ScraperSourceEksOutput) ToScraperSourceEksPtrOutputWithContext

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

type ScraperSourceEksPtrInput

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

type ScraperSourceEksPtrOutput

type ScraperSourceEksPtrOutput struct{ *pulumi.OutputState }

func (ScraperSourceEksPtrOutput) ClusterArn

func (ScraperSourceEksPtrOutput) Elem

func (ScraperSourceEksPtrOutput) ElementType

func (ScraperSourceEksPtrOutput) ElementType() reflect.Type

func (ScraperSourceEksPtrOutput) SecurityGroupIds

func (o ScraperSourceEksPtrOutput) SecurityGroupIds() pulumi.StringArrayOutput

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

func (ScraperSourceEksPtrOutput) SubnetIds

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

func (ScraperSourceEksPtrOutput) ToScraperSourceEksPtrOutput

func (o ScraperSourceEksPtrOutput) ToScraperSourceEksPtrOutput() ScraperSourceEksPtrOutput

func (ScraperSourceEksPtrOutput) ToScraperSourceEksPtrOutputWithContext

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

type ScraperSourceInput

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

type ScraperSourceOutput struct{ *pulumi.OutputState }

func (ScraperSourceOutput) Eks

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

func (ScraperSourceOutput) ElementType

func (ScraperSourceOutput) ElementType() reflect.Type

func (ScraperSourceOutput) ToScraperSourceOutput

func (o ScraperSourceOutput) ToScraperSourceOutput() ScraperSourceOutput

func (ScraperSourceOutput) ToScraperSourceOutputWithContext

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

func (ScraperSourceOutput) ToScraperSourcePtrOutput

func (o ScraperSourceOutput) ToScraperSourcePtrOutput() ScraperSourcePtrOutput

func (ScraperSourceOutput) ToScraperSourcePtrOutputWithContext

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

type ScraperSourcePtrInput

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

type ScraperSourcePtrOutput

type ScraperSourcePtrOutput struct{ *pulumi.OutputState }

func (ScraperSourcePtrOutput) Eks

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

func (ScraperSourcePtrOutput) Elem

func (ScraperSourcePtrOutput) ElementType

func (ScraperSourcePtrOutput) ElementType() reflect.Type

func (ScraperSourcePtrOutput) ToScraperSourcePtrOutput

func (o ScraperSourcePtrOutput) ToScraperSourcePtrOutput() ScraperSourcePtrOutput

func (ScraperSourcePtrOutput) ToScraperSourcePtrOutputWithContext

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

type ScraperState

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
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// The Amazon Resource Name (ARN) of the IAM role that provides permissions for the scraper to discover, collect, and produce metrics
	RoleArn pulumi.StringPtrInput
	// Configuration block to enable writing to an Amazon Managed Service for Prometheus workspace in a different account. See `roleConfiguration` below.
	RoleConfiguration ScraperRoleConfigurationPtrInput
	// 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
	TagsAll  pulumi.StringMapInput
	Timeouts ScraperTimeoutsPtrInput
}

func (ScraperState) ElementType

func (ScraperState) ElementType() reflect.Type

type ScraperTimeouts

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"`
	// 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).
	Update *string `pulumi:"update"`
}

type ScraperTimeoutsArgs

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"`
	// 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).
	Update pulumi.StringPtrInput `pulumi:"update"`
}

func (ScraperTimeoutsArgs) ElementType

func (ScraperTimeoutsArgs) ElementType() reflect.Type

func (ScraperTimeoutsArgs) ToScraperTimeoutsOutput

func (i ScraperTimeoutsArgs) ToScraperTimeoutsOutput() ScraperTimeoutsOutput

func (ScraperTimeoutsArgs) ToScraperTimeoutsOutputWithContext

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

func (ScraperTimeoutsArgs) ToScraperTimeoutsPtrOutput

func (i ScraperTimeoutsArgs) ToScraperTimeoutsPtrOutput() ScraperTimeoutsPtrOutput

func (ScraperTimeoutsArgs) ToScraperTimeoutsPtrOutputWithContext

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

type ScraperTimeoutsInput

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

type ScraperTimeoutsOutput struct{ *pulumi.OutputState }

func (ScraperTimeoutsOutput) 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).

func (ScraperTimeoutsOutput) Delete

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

func (ScraperTimeoutsOutput) ElementType() reflect.Type

func (ScraperTimeoutsOutput) ToScraperTimeoutsOutput

func (o ScraperTimeoutsOutput) ToScraperTimeoutsOutput() ScraperTimeoutsOutput

func (ScraperTimeoutsOutput) ToScraperTimeoutsOutputWithContext

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

func (ScraperTimeoutsOutput) ToScraperTimeoutsPtrOutput

func (o ScraperTimeoutsOutput) ToScraperTimeoutsPtrOutput() ScraperTimeoutsPtrOutput

func (ScraperTimeoutsOutput) ToScraperTimeoutsPtrOutputWithContext

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

func (ScraperTimeoutsOutput) Update

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).

type ScraperTimeoutsPtrInput

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

type ScraperTimeoutsPtrOutput

type ScraperTimeoutsPtrOutput struct{ *pulumi.OutputState }

func (ScraperTimeoutsPtrOutput) 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).

func (ScraperTimeoutsPtrOutput) Delete

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

func (ScraperTimeoutsPtrOutput) ElementType

func (ScraperTimeoutsPtrOutput) ElementType() reflect.Type

func (ScraperTimeoutsPtrOutput) ToScraperTimeoutsPtrOutput

func (o ScraperTimeoutsPtrOutput) ToScraperTimeoutsPtrOutput() ScraperTimeoutsPtrOutput

func (ScraperTimeoutsPtrOutput) ToScraperTimeoutsPtrOutputWithContext

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

func (ScraperTimeoutsPtrOutput) Update

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).

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"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// 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.
	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/v7/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/v7/go/aws/amp"
"github.com/pulumi/pulumi-aws/sdk/v7/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/v7/go/aws/amp"
"github.com/pulumi/pulumi-aws/sdk/v7/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
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region 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
}

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 WorkspaceConfiguration

type WorkspaceConfiguration struct {
	pulumi.CustomResourceState

	// Configuration block for setting limits on metrics with specific label sets. Detailed below.
	LimitsPerLabelSets WorkspaceConfigurationLimitsPerLabelSetArrayOutput `pulumi:"limitsPerLabelSets"`
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringOutput `pulumi:"region"`
	// Number of days to retain metric data in the workspace.
	RetentionPeriodInDays pulumi.IntOutput                        `pulumi:"retentionPeriodInDays"`
	Timeouts              WorkspaceConfigurationTimeoutsPtrOutput `pulumi:"timeouts"`
	// ID of the workspace to configure.
	//
	// The following arguments are optional:
	WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"`
}

Manages an AWS Managed Service for Prometheus Workspace Configuration.

## Example Usage

### Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := amp.NewWorkspace(ctx, "example", nil)
		if err != nil {
			return err
		}
		_, err = amp.NewWorkspaceConfiguration(ctx, "example", &amp.WorkspaceConfigurationArgs{
			WorkspaceId:           example.ID(),
			RetentionPeriodInDays: pulumi.Int(60),
			LimitsPerLabelSets: amp.WorkspaceConfigurationLimitsPerLabelSetArray{
				&amp.WorkspaceConfigurationLimitsPerLabelSetArgs{
					LabelSet: pulumi.StringMap{
						"env": pulumi.String("dev"),
					},
					Limits: &amp.WorkspaceConfigurationLimitsPerLabelSetLimitsArgs{
						MaxSeries: pulumi.Int(100000),
					},
				},
				&amp.WorkspaceConfigurationLimitsPerLabelSetArgs{
					LabelSet: pulumi.StringMap{
						"env": pulumi.String("prod"),
					},
					Limits: &amp.WorkspaceConfigurationLimitsPerLabelSetLimitsArgs{
						MaxSeries: pulumi.Int(400000),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

### Setting up default bucket

The default bucket limit is the maximum number of active time series that can be ingested in the workspace, counting only time series that don’t match a defined label set.

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := amp.NewWorkspace(ctx, "example", nil)
		if err != nil {
			return err
		}
		_, err = amp.NewWorkspaceConfiguration(ctx, "example", &amp.WorkspaceConfigurationArgs{
			WorkspaceId: example.ID(),
			LimitsPerLabelSets: amp.WorkspaceConfigurationLimitsPerLabelSetArray{
				&amp.WorkspaceConfigurationLimitsPerLabelSetArgs{
					LabelSet: pulumi.StringMap{},
					Limits: &amp.WorkspaceConfigurationLimitsPerLabelSetLimitsArgs{
						MaxSeries: pulumi.Int(50000),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Using `pulumi import`, import AMP (Managed Prometheus) Workspace Configuration using the `workspace_id`. For example

```sh $ pulumi import aws:amp/workspaceConfiguration:WorkspaceConfiguration example ws-12345678-abcd-1234-abcd-123456789012 ```

func GetWorkspaceConfiguration

func GetWorkspaceConfiguration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *WorkspaceConfigurationState, opts ...pulumi.ResourceOption) (*WorkspaceConfiguration, error)

GetWorkspaceConfiguration gets an existing WorkspaceConfiguration 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 NewWorkspaceConfiguration

func NewWorkspaceConfiguration(ctx *pulumi.Context,
	name string, args *WorkspaceConfigurationArgs, opts ...pulumi.ResourceOption) (*WorkspaceConfiguration, error)

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

func (*WorkspaceConfiguration) ElementType

func (*WorkspaceConfiguration) ElementType() reflect.Type

func (*WorkspaceConfiguration) ToWorkspaceConfigurationOutput

func (i *WorkspaceConfiguration) ToWorkspaceConfigurationOutput() WorkspaceConfigurationOutput

func (*WorkspaceConfiguration) ToWorkspaceConfigurationOutputWithContext

func (i *WorkspaceConfiguration) ToWorkspaceConfigurationOutputWithContext(ctx context.Context) WorkspaceConfigurationOutput

type WorkspaceConfigurationArgs

type WorkspaceConfigurationArgs struct {
	// Configuration block for setting limits on metrics with specific label sets. Detailed below.
	LimitsPerLabelSets WorkspaceConfigurationLimitsPerLabelSetArrayInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Number of days to retain metric data in the workspace.
	RetentionPeriodInDays pulumi.IntPtrInput
	Timeouts              WorkspaceConfigurationTimeoutsPtrInput
	// ID of the workspace to configure.
	//
	// The following arguments are optional:
	WorkspaceId pulumi.StringInput
}

The set of arguments for constructing a WorkspaceConfiguration resource.

func (WorkspaceConfigurationArgs) ElementType

func (WorkspaceConfigurationArgs) ElementType() reflect.Type

type WorkspaceConfigurationArray

type WorkspaceConfigurationArray []WorkspaceConfigurationInput

func (WorkspaceConfigurationArray) ElementType

func (WorkspaceConfigurationArray) ToWorkspaceConfigurationArrayOutput

func (i WorkspaceConfigurationArray) ToWorkspaceConfigurationArrayOutput() WorkspaceConfigurationArrayOutput

func (WorkspaceConfigurationArray) ToWorkspaceConfigurationArrayOutputWithContext

func (i WorkspaceConfigurationArray) ToWorkspaceConfigurationArrayOutputWithContext(ctx context.Context) WorkspaceConfigurationArrayOutput

type WorkspaceConfigurationArrayInput

type WorkspaceConfigurationArrayInput interface {
	pulumi.Input

	ToWorkspaceConfigurationArrayOutput() WorkspaceConfigurationArrayOutput
	ToWorkspaceConfigurationArrayOutputWithContext(context.Context) WorkspaceConfigurationArrayOutput
}

WorkspaceConfigurationArrayInput is an input type that accepts WorkspaceConfigurationArray and WorkspaceConfigurationArrayOutput values. You can construct a concrete instance of `WorkspaceConfigurationArrayInput` via:

WorkspaceConfigurationArray{ WorkspaceConfigurationArgs{...} }

type WorkspaceConfigurationArrayOutput

type WorkspaceConfigurationArrayOutput struct{ *pulumi.OutputState }

func (WorkspaceConfigurationArrayOutput) ElementType

func (WorkspaceConfigurationArrayOutput) Index

func (WorkspaceConfigurationArrayOutput) ToWorkspaceConfigurationArrayOutput

func (o WorkspaceConfigurationArrayOutput) ToWorkspaceConfigurationArrayOutput() WorkspaceConfigurationArrayOutput

func (WorkspaceConfigurationArrayOutput) ToWorkspaceConfigurationArrayOutputWithContext

func (o WorkspaceConfigurationArrayOutput) ToWorkspaceConfigurationArrayOutputWithContext(ctx context.Context) WorkspaceConfigurationArrayOutput

type WorkspaceConfigurationInput

type WorkspaceConfigurationInput interface {
	pulumi.Input

	ToWorkspaceConfigurationOutput() WorkspaceConfigurationOutput
	ToWorkspaceConfigurationOutputWithContext(ctx context.Context) WorkspaceConfigurationOutput
}

type WorkspaceConfigurationLimitsPerLabelSet

type WorkspaceConfigurationLimitsPerLabelSet struct {
	// Map of label key-value pairs that identify the metrics to which the limits apply. An empty map represents the default bucket for metrics that don't match any other label set.
	LabelSet map[string]string `pulumi:"labelSet"`
	// Configuration block for the limits to apply to the specified label set. Detailed below.
	Limits *WorkspaceConfigurationLimitsPerLabelSetLimits `pulumi:"limits"`
}

type WorkspaceConfigurationLimitsPerLabelSetArgs

type WorkspaceConfigurationLimitsPerLabelSetArgs struct {
	// Map of label key-value pairs that identify the metrics to which the limits apply. An empty map represents the default bucket for metrics that don't match any other label set.
	LabelSet pulumi.StringMapInput `pulumi:"labelSet"`
	// Configuration block for the limits to apply to the specified label set. Detailed below.
	Limits WorkspaceConfigurationLimitsPerLabelSetLimitsPtrInput `pulumi:"limits"`
}

func (WorkspaceConfigurationLimitsPerLabelSetArgs) ElementType

func (WorkspaceConfigurationLimitsPerLabelSetArgs) ToWorkspaceConfigurationLimitsPerLabelSetOutput

func (i WorkspaceConfigurationLimitsPerLabelSetArgs) ToWorkspaceConfigurationLimitsPerLabelSetOutput() WorkspaceConfigurationLimitsPerLabelSetOutput

func (WorkspaceConfigurationLimitsPerLabelSetArgs) ToWorkspaceConfigurationLimitsPerLabelSetOutputWithContext

func (i WorkspaceConfigurationLimitsPerLabelSetArgs) ToWorkspaceConfigurationLimitsPerLabelSetOutputWithContext(ctx context.Context) WorkspaceConfigurationLimitsPerLabelSetOutput

type WorkspaceConfigurationLimitsPerLabelSetArray

type WorkspaceConfigurationLimitsPerLabelSetArray []WorkspaceConfigurationLimitsPerLabelSetInput

func (WorkspaceConfigurationLimitsPerLabelSetArray) ElementType

func (WorkspaceConfigurationLimitsPerLabelSetArray) ToWorkspaceConfigurationLimitsPerLabelSetArrayOutput

func (i WorkspaceConfigurationLimitsPerLabelSetArray) ToWorkspaceConfigurationLimitsPerLabelSetArrayOutput() WorkspaceConfigurationLimitsPerLabelSetArrayOutput

func (WorkspaceConfigurationLimitsPerLabelSetArray) ToWorkspaceConfigurationLimitsPerLabelSetArrayOutputWithContext

func (i WorkspaceConfigurationLimitsPerLabelSetArray) ToWorkspaceConfigurationLimitsPerLabelSetArrayOutputWithContext(ctx context.Context) WorkspaceConfigurationLimitsPerLabelSetArrayOutput

type WorkspaceConfigurationLimitsPerLabelSetArrayInput

type WorkspaceConfigurationLimitsPerLabelSetArrayInput interface {
	pulumi.Input

	ToWorkspaceConfigurationLimitsPerLabelSetArrayOutput() WorkspaceConfigurationLimitsPerLabelSetArrayOutput
	ToWorkspaceConfigurationLimitsPerLabelSetArrayOutputWithContext(context.Context) WorkspaceConfigurationLimitsPerLabelSetArrayOutput
}

WorkspaceConfigurationLimitsPerLabelSetArrayInput is an input type that accepts WorkspaceConfigurationLimitsPerLabelSetArray and WorkspaceConfigurationLimitsPerLabelSetArrayOutput values. You can construct a concrete instance of `WorkspaceConfigurationLimitsPerLabelSetArrayInput` via:

WorkspaceConfigurationLimitsPerLabelSetArray{ WorkspaceConfigurationLimitsPerLabelSetArgs{...} }

type WorkspaceConfigurationLimitsPerLabelSetArrayOutput

type WorkspaceConfigurationLimitsPerLabelSetArrayOutput struct{ *pulumi.OutputState }

func (WorkspaceConfigurationLimitsPerLabelSetArrayOutput) ElementType

func (WorkspaceConfigurationLimitsPerLabelSetArrayOutput) Index

func (WorkspaceConfigurationLimitsPerLabelSetArrayOutput) ToWorkspaceConfigurationLimitsPerLabelSetArrayOutput

func (o WorkspaceConfigurationLimitsPerLabelSetArrayOutput) ToWorkspaceConfigurationLimitsPerLabelSetArrayOutput() WorkspaceConfigurationLimitsPerLabelSetArrayOutput

func (WorkspaceConfigurationLimitsPerLabelSetArrayOutput) ToWorkspaceConfigurationLimitsPerLabelSetArrayOutputWithContext

func (o WorkspaceConfigurationLimitsPerLabelSetArrayOutput) ToWorkspaceConfigurationLimitsPerLabelSetArrayOutputWithContext(ctx context.Context) WorkspaceConfigurationLimitsPerLabelSetArrayOutput

type WorkspaceConfigurationLimitsPerLabelSetInput

type WorkspaceConfigurationLimitsPerLabelSetInput interface {
	pulumi.Input

	ToWorkspaceConfigurationLimitsPerLabelSetOutput() WorkspaceConfigurationLimitsPerLabelSetOutput
	ToWorkspaceConfigurationLimitsPerLabelSetOutputWithContext(context.Context) WorkspaceConfigurationLimitsPerLabelSetOutput
}

WorkspaceConfigurationLimitsPerLabelSetInput is an input type that accepts WorkspaceConfigurationLimitsPerLabelSetArgs and WorkspaceConfigurationLimitsPerLabelSetOutput values. You can construct a concrete instance of `WorkspaceConfigurationLimitsPerLabelSetInput` via:

WorkspaceConfigurationLimitsPerLabelSetArgs{...}

type WorkspaceConfigurationLimitsPerLabelSetLimits

type WorkspaceConfigurationLimitsPerLabelSetLimits struct {
	// Maximum number of active time series that can be ingested for metrics matching the label set.
	MaxSeries int `pulumi:"maxSeries"`
}

type WorkspaceConfigurationLimitsPerLabelSetLimitsArgs

type WorkspaceConfigurationLimitsPerLabelSetLimitsArgs struct {
	// Maximum number of active time series that can be ingested for metrics matching the label set.
	MaxSeries pulumi.IntInput `pulumi:"maxSeries"`
}

func (WorkspaceConfigurationLimitsPerLabelSetLimitsArgs) ElementType

func (WorkspaceConfigurationLimitsPerLabelSetLimitsArgs) ToWorkspaceConfigurationLimitsPerLabelSetLimitsOutput

func (i WorkspaceConfigurationLimitsPerLabelSetLimitsArgs) ToWorkspaceConfigurationLimitsPerLabelSetLimitsOutput() WorkspaceConfigurationLimitsPerLabelSetLimitsOutput

func (WorkspaceConfigurationLimitsPerLabelSetLimitsArgs) ToWorkspaceConfigurationLimitsPerLabelSetLimitsOutputWithContext

func (i WorkspaceConfigurationLimitsPerLabelSetLimitsArgs) ToWorkspaceConfigurationLimitsPerLabelSetLimitsOutputWithContext(ctx context.Context) WorkspaceConfigurationLimitsPerLabelSetLimitsOutput

func (WorkspaceConfigurationLimitsPerLabelSetLimitsArgs) ToWorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput

func (i WorkspaceConfigurationLimitsPerLabelSetLimitsArgs) ToWorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput() WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput

func (WorkspaceConfigurationLimitsPerLabelSetLimitsArgs) ToWorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutputWithContext

func (i WorkspaceConfigurationLimitsPerLabelSetLimitsArgs) ToWorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutputWithContext(ctx context.Context) WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput

type WorkspaceConfigurationLimitsPerLabelSetLimitsInput

type WorkspaceConfigurationLimitsPerLabelSetLimitsInput interface {
	pulumi.Input

	ToWorkspaceConfigurationLimitsPerLabelSetLimitsOutput() WorkspaceConfigurationLimitsPerLabelSetLimitsOutput
	ToWorkspaceConfigurationLimitsPerLabelSetLimitsOutputWithContext(context.Context) WorkspaceConfigurationLimitsPerLabelSetLimitsOutput
}

WorkspaceConfigurationLimitsPerLabelSetLimitsInput is an input type that accepts WorkspaceConfigurationLimitsPerLabelSetLimitsArgs and WorkspaceConfigurationLimitsPerLabelSetLimitsOutput values. You can construct a concrete instance of `WorkspaceConfigurationLimitsPerLabelSetLimitsInput` via:

WorkspaceConfigurationLimitsPerLabelSetLimitsArgs{...}

type WorkspaceConfigurationLimitsPerLabelSetLimitsOutput

type WorkspaceConfigurationLimitsPerLabelSetLimitsOutput struct{ *pulumi.OutputState }

func (WorkspaceConfigurationLimitsPerLabelSetLimitsOutput) ElementType

func (WorkspaceConfigurationLimitsPerLabelSetLimitsOutput) MaxSeries

Maximum number of active time series that can be ingested for metrics matching the label set.

func (WorkspaceConfigurationLimitsPerLabelSetLimitsOutput) ToWorkspaceConfigurationLimitsPerLabelSetLimitsOutput

func (o WorkspaceConfigurationLimitsPerLabelSetLimitsOutput) ToWorkspaceConfigurationLimitsPerLabelSetLimitsOutput() WorkspaceConfigurationLimitsPerLabelSetLimitsOutput

func (WorkspaceConfigurationLimitsPerLabelSetLimitsOutput) ToWorkspaceConfigurationLimitsPerLabelSetLimitsOutputWithContext

func (o WorkspaceConfigurationLimitsPerLabelSetLimitsOutput) ToWorkspaceConfigurationLimitsPerLabelSetLimitsOutputWithContext(ctx context.Context) WorkspaceConfigurationLimitsPerLabelSetLimitsOutput

func (WorkspaceConfigurationLimitsPerLabelSetLimitsOutput) ToWorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput

func (o WorkspaceConfigurationLimitsPerLabelSetLimitsOutput) ToWorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput() WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput

func (WorkspaceConfigurationLimitsPerLabelSetLimitsOutput) ToWorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutputWithContext

func (o WorkspaceConfigurationLimitsPerLabelSetLimitsOutput) ToWorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutputWithContext(ctx context.Context) WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput

type WorkspaceConfigurationLimitsPerLabelSetLimitsPtrInput

type WorkspaceConfigurationLimitsPerLabelSetLimitsPtrInput interface {
	pulumi.Input

	ToWorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput() WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput
	ToWorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutputWithContext(context.Context) WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput
}

WorkspaceConfigurationLimitsPerLabelSetLimitsPtrInput is an input type that accepts WorkspaceConfigurationLimitsPerLabelSetLimitsArgs, WorkspaceConfigurationLimitsPerLabelSetLimitsPtr and WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput values. You can construct a concrete instance of `WorkspaceConfigurationLimitsPerLabelSetLimitsPtrInput` via:

        WorkspaceConfigurationLimitsPerLabelSetLimitsArgs{...}

or:

        nil

type WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput

type WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput struct{ *pulumi.OutputState }

func (WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput) Elem

func (WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput) ElementType

func (WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput) MaxSeries

Maximum number of active time series that can be ingested for metrics matching the label set.

func (WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput) ToWorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput

func (WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput) ToWorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutputWithContext

func (o WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput) ToWorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutputWithContext(ctx context.Context) WorkspaceConfigurationLimitsPerLabelSetLimitsPtrOutput

type WorkspaceConfigurationLimitsPerLabelSetOutput

type WorkspaceConfigurationLimitsPerLabelSetOutput struct{ *pulumi.OutputState }

func (WorkspaceConfigurationLimitsPerLabelSetOutput) ElementType

func (WorkspaceConfigurationLimitsPerLabelSetOutput) LabelSet

Map of label key-value pairs that identify the metrics to which the limits apply. An empty map represents the default bucket for metrics that don't match any other label set.

func (WorkspaceConfigurationLimitsPerLabelSetOutput) Limits

Configuration block for the limits to apply to the specified label set. Detailed below.

func (WorkspaceConfigurationLimitsPerLabelSetOutput) ToWorkspaceConfigurationLimitsPerLabelSetOutput

func (o WorkspaceConfigurationLimitsPerLabelSetOutput) ToWorkspaceConfigurationLimitsPerLabelSetOutput() WorkspaceConfigurationLimitsPerLabelSetOutput

func (WorkspaceConfigurationLimitsPerLabelSetOutput) ToWorkspaceConfigurationLimitsPerLabelSetOutputWithContext

func (o WorkspaceConfigurationLimitsPerLabelSetOutput) ToWorkspaceConfigurationLimitsPerLabelSetOutputWithContext(ctx context.Context) WorkspaceConfigurationLimitsPerLabelSetOutput

type WorkspaceConfigurationMap

type WorkspaceConfigurationMap map[string]WorkspaceConfigurationInput

func (WorkspaceConfigurationMap) ElementType

func (WorkspaceConfigurationMap) ElementType() reflect.Type

func (WorkspaceConfigurationMap) ToWorkspaceConfigurationMapOutput

func (i WorkspaceConfigurationMap) ToWorkspaceConfigurationMapOutput() WorkspaceConfigurationMapOutput

func (WorkspaceConfigurationMap) ToWorkspaceConfigurationMapOutputWithContext

func (i WorkspaceConfigurationMap) ToWorkspaceConfigurationMapOutputWithContext(ctx context.Context) WorkspaceConfigurationMapOutput

type WorkspaceConfigurationMapInput

type WorkspaceConfigurationMapInput interface {
	pulumi.Input

	ToWorkspaceConfigurationMapOutput() WorkspaceConfigurationMapOutput
	ToWorkspaceConfigurationMapOutputWithContext(context.Context) WorkspaceConfigurationMapOutput
}

WorkspaceConfigurationMapInput is an input type that accepts WorkspaceConfigurationMap and WorkspaceConfigurationMapOutput values. You can construct a concrete instance of `WorkspaceConfigurationMapInput` via:

WorkspaceConfigurationMap{ "key": WorkspaceConfigurationArgs{...} }

type WorkspaceConfigurationMapOutput

type WorkspaceConfigurationMapOutput struct{ *pulumi.OutputState }

func (WorkspaceConfigurationMapOutput) ElementType

func (WorkspaceConfigurationMapOutput) MapIndex

func (WorkspaceConfigurationMapOutput) ToWorkspaceConfigurationMapOutput

func (o WorkspaceConfigurationMapOutput) ToWorkspaceConfigurationMapOutput() WorkspaceConfigurationMapOutput

func (WorkspaceConfigurationMapOutput) ToWorkspaceConfigurationMapOutputWithContext

func (o WorkspaceConfigurationMapOutput) ToWorkspaceConfigurationMapOutputWithContext(ctx context.Context) WorkspaceConfigurationMapOutput

type WorkspaceConfigurationOutput

type WorkspaceConfigurationOutput struct{ *pulumi.OutputState }

func (WorkspaceConfigurationOutput) ElementType

func (WorkspaceConfigurationOutput) LimitsPerLabelSets

Configuration block for setting limits on metrics with specific label sets. Detailed below.

func (WorkspaceConfigurationOutput) Region

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

func (WorkspaceConfigurationOutput) RetentionPeriodInDays

func (o WorkspaceConfigurationOutput) RetentionPeriodInDays() pulumi.IntOutput

Number of days to retain metric data in the workspace.

func (WorkspaceConfigurationOutput) Timeouts

func (WorkspaceConfigurationOutput) ToWorkspaceConfigurationOutput

func (o WorkspaceConfigurationOutput) ToWorkspaceConfigurationOutput() WorkspaceConfigurationOutput

func (WorkspaceConfigurationOutput) ToWorkspaceConfigurationOutputWithContext

func (o WorkspaceConfigurationOutput) ToWorkspaceConfigurationOutputWithContext(ctx context.Context) WorkspaceConfigurationOutput

func (WorkspaceConfigurationOutput) WorkspaceId

ID of the workspace to configure.

The following arguments are optional:

type WorkspaceConfigurationState

type WorkspaceConfigurationState struct {
	// Configuration block for setting limits on metrics with specific label sets. Detailed below.
	LimitsPerLabelSets WorkspaceConfigurationLimitsPerLabelSetArrayInput
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region pulumi.StringPtrInput
	// Number of days to retain metric data in the workspace.
	RetentionPeriodInDays pulumi.IntPtrInput
	Timeouts              WorkspaceConfigurationTimeoutsPtrInput
	// ID of the workspace to configure.
	//
	// The following arguments are optional:
	WorkspaceId pulumi.StringPtrInput
}

func (WorkspaceConfigurationState) ElementType

type WorkspaceConfigurationTimeouts

type WorkspaceConfigurationTimeouts 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).
	Update *string `pulumi:"update"`
}

type WorkspaceConfigurationTimeoutsArgs

type WorkspaceConfigurationTimeoutsArgs 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).
	Update pulumi.StringPtrInput `pulumi:"update"`
}

func (WorkspaceConfigurationTimeoutsArgs) ElementType

func (WorkspaceConfigurationTimeoutsArgs) ToWorkspaceConfigurationTimeoutsOutput

func (i WorkspaceConfigurationTimeoutsArgs) ToWorkspaceConfigurationTimeoutsOutput() WorkspaceConfigurationTimeoutsOutput

func (WorkspaceConfigurationTimeoutsArgs) ToWorkspaceConfigurationTimeoutsOutputWithContext

func (i WorkspaceConfigurationTimeoutsArgs) ToWorkspaceConfigurationTimeoutsOutputWithContext(ctx context.Context) WorkspaceConfigurationTimeoutsOutput

func (WorkspaceConfigurationTimeoutsArgs) ToWorkspaceConfigurationTimeoutsPtrOutput

func (i WorkspaceConfigurationTimeoutsArgs) ToWorkspaceConfigurationTimeoutsPtrOutput() WorkspaceConfigurationTimeoutsPtrOutput

func (WorkspaceConfigurationTimeoutsArgs) ToWorkspaceConfigurationTimeoutsPtrOutputWithContext

func (i WorkspaceConfigurationTimeoutsArgs) ToWorkspaceConfigurationTimeoutsPtrOutputWithContext(ctx context.Context) WorkspaceConfigurationTimeoutsPtrOutput

type WorkspaceConfigurationTimeoutsInput

type WorkspaceConfigurationTimeoutsInput interface {
	pulumi.Input

	ToWorkspaceConfigurationTimeoutsOutput() WorkspaceConfigurationTimeoutsOutput
	ToWorkspaceConfigurationTimeoutsOutputWithContext(context.Context) WorkspaceConfigurationTimeoutsOutput
}

WorkspaceConfigurationTimeoutsInput is an input type that accepts WorkspaceConfigurationTimeoutsArgs and WorkspaceConfigurationTimeoutsOutput values. You can construct a concrete instance of `WorkspaceConfigurationTimeoutsInput` via:

WorkspaceConfigurationTimeoutsArgs{...}

type WorkspaceConfigurationTimeoutsOutput

type WorkspaceConfigurationTimeoutsOutput struct{ *pulumi.OutputState }

func (WorkspaceConfigurationTimeoutsOutput) 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).

func (WorkspaceConfigurationTimeoutsOutput) ElementType

func (WorkspaceConfigurationTimeoutsOutput) ToWorkspaceConfigurationTimeoutsOutput

func (o WorkspaceConfigurationTimeoutsOutput) ToWorkspaceConfigurationTimeoutsOutput() WorkspaceConfigurationTimeoutsOutput

func (WorkspaceConfigurationTimeoutsOutput) ToWorkspaceConfigurationTimeoutsOutputWithContext

func (o WorkspaceConfigurationTimeoutsOutput) ToWorkspaceConfigurationTimeoutsOutputWithContext(ctx context.Context) WorkspaceConfigurationTimeoutsOutput

func (WorkspaceConfigurationTimeoutsOutput) ToWorkspaceConfigurationTimeoutsPtrOutput

func (o WorkspaceConfigurationTimeoutsOutput) ToWorkspaceConfigurationTimeoutsPtrOutput() WorkspaceConfigurationTimeoutsPtrOutput

func (WorkspaceConfigurationTimeoutsOutput) ToWorkspaceConfigurationTimeoutsPtrOutputWithContext

func (o WorkspaceConfigurationTimeoutsOutput) ToWorkspaceConfigurationTimeoutsPtrOutputWithContext(ctx context.Context) WorkspaceConfigurationTimeoutsPtrOutput

func (WorkspaceConfigurationTimeoutsOutput) Update

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).

type WorkspaceConfigurationTimeoutsPtrInput

type WorkspaceConfigurationTimeoutsPtrInput interface {
	pulumi.Input

	ToWorkspaceConfigurationTimeoutsPtrOutput() WorkspaceConfigurationTimeoutsPtrOutput
	ToWorkspaceConfigurationTimeoutsPtrOutputWithContext(context.Context) WorkspaceConfigurationTimeoutsPtrOutput
}

WorkspaceConfigurationTimeoutsPtrInput is an input type that accepts WorkspaceConfigurationTimeoutsArgs, WorkspaceConfigurationTimeoutsPtr and WorkspaceConfigurationTimeoutsPtrOutput values. You can construct a concrete instance of `WorkspaceConfigurationTimeoutsPtrInput` via:

        WorkspaceConfigurationTimeoutsArgs{...}

or:

        nil

type WorkspaceConfigurationTimeoutsPtrOutput

type WorkspaceConfigurationTimeoutsPtrOutput struct{ *pulumi.OutputState }

func (WorkspaceConfigurationTimeoutsPtrOutput) 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).

func (WorkspaceConfigurationTimeoutsPtrOutput) Elem

func (WorkspaceConfigurationTimeoutsPtrOutput) ElementType

func (WorkspaceConfigurationTimeoutsPtrOutput) ToWorkspaceConfigurationTimeoutsPtrOutput

func (o WorkspaceConfigurationTimeoutsPtrOutput) ToWorkspaceConfigurationTimeoutsPtrOutput() WorkspaceConfigurationTimeoutsPtrOutput

func (WorkspaceConfigurationTimeoutsPtrOutput) ToWorkspaceConfigurationTimeoutsPtrOutputWithContext

func (o WorkspaceConfigurationTimeoutsPtrOutput) ToWorkspaceConfigurationTimeoutsPtrOutputWithContext(ctx context.Context) WorkspaceConfigurationTimeoutsPtrOutput

func (WorkspaceConfigurationTimeoutsPtrOutput) Update

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).

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

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) Region

func (o WorkspaceOutput) Region() pulumi.StringOutput

Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.

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

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

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
	// Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
	Region 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.
	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