Documentation ¶
Index ¶
- type AlertManagerDefinition
- func (*AlertManagerDefinition) ElementType() reflect.Type
- func (i *AlertManagerDefinition) ToAlertManagerDefinitionOutput() AlertManagerDefinitionOutput
- func (i *AlertManagerDefinition) ToAlertManagerDefinitionOutputWithContext(ctx context.Context) AlertManagerDefinitionOutput
- func (i *AlertManagerDefinition) ToAlertManagerDefinitionPtrOutput() AlertManagerDefinitionPtrOutput
- func (i *AlertManagerDefinition) ToAlertManagerDefinitionPtrOutputWithContext(ctx context.Context) AlertManagerDefinitionPtrOutput
- type AlertManagerDefinitionArgs
- type AlertManagerDefinitionArray
- func (AlertManagerDefinitionArray) ElementType() reflect.Type
- func (i AlertManagerDefinitionArray) ToAlertManagerDefinitionArrayOutput() AlertManagerDefinitionArrayOutput
- func (i AlertManagerDefinitionArray) ToAlertManagerDefinitionArrayOutputWithContext(ctx context.Context) AlertManagerDefinitionArrayOutput
- type AlertManagerDefinitionArrayInput
- type AlertManagerDefinitionArrayOutput
- func (AlertManagerDefinitionArrayOutput) ElementType() reflect.Type
- func (o AlertManagerDefinitionArrayOutput) Index(i pulumi.IntInput) AlertManagerDefinitionOutput
- func (o AlertManagerDefinitionArrayOutput) ToAlertManagerDefinitionArrayOutput() AlertManagerDefinitionArrayOutput
- func (o AlertManagerDefinitionArrayOutput) ToAlertManagerDefinitionArrayOutputWithContext(ctx context.Context) AlertManagerDefinitionArrayOutput
- type AlertManagerDefinitionInput
- type AlertManagerDefinitionMap
- type AlertManagerDefinitionMapInput
- type AlertManagerDefinitionMapOutput
- func (AlertManagerDefinitionMapOutput) ElementType() reflect.Type
- func (o AlertManagerDefinitionMapOutput) MapIndex(k pulumi.StringInput) AlertManagerDefinitionOutput
- func (o AlertManagerDefinitionMapOutput) ToAlertManagerDefinitionMapOutput() AlertManagerDefinitionMapOutput
- func (o AlertManagerDefinitionMapOutput) ToAlertManagerDefinitionMapOutputWithContext(ctx context.Context) AlertManagerDefinitionMapOutput
- type AlertManagerDefinitionOutput
- func (AlertManagerDefinitionOutput) ElementType() reflect.Type
- func (o AlertManagerDefinitionOutput) ToAlertManagerDefinitionOutput() AlertManagerDefinitionOutput
- func (o AlertManagerDefinitionOutput) ToAlertManagerDefinitionOutputWithContext(ctx context.Context) AlertManagerDefinitionOutput
- func (o AlertManagerDefinitionOutput) ToAlertManagerDefinitionPtrOutput() AlertManagerDefinitionPtrOutput
- func (o AlertManagerDefinitionOutput) ToAlertManagerDefinitionPtrOutputWithContext(ctx context.Context) AlertManagerDefinitionPtrOutput
- type AlertManagerDefinitionPtrInput
- type AlertManagerDefinitionPtrOutput
- func (o AlertManagerDefinitionPtrOutput) Elem() AlertManagerDefinitionOutput
- func (AlertManagerDefinitionPtrOutput) ElementType() reflect.Type
- func (o AlertManagerDefinitionPtrOutput) ToAlertManagerDefinitionPtrOutput() AlertManagerDefinitionPtrOutput
- func (o AlertManagerDefinitionPtrOutput) ToAlertManagerDefinitionPtrOutputWithContext(ctx context.Context) AlertManagerDefinitionPtrOutput
- type AlertManagerDefinitionState
- type RuleGroupNamespace
- func (*RuleGroupNamespace) ElementType() reflect.Type
- func (i *RuleGroupNamespace) ToRuleGroupNamespaceOutput() RuleGroupNamespaceOutput
- func (i *RuleGroupNamespace) ToRuleGroupNamespaceOutputWithContext(ctx context.Context) RuleGroupNamespaceOutput
- func (i *RuleGroupNamespace) ToRuleGroupNamespacePtrOutput() RuleGroupNamespacePtrOutput
- func (i *RuleGroupNamespace) ToRuleGroupNamespacePtrOutputWithContext(ctx context.Context) RuleGroupNamespacePtrOutput
- type RuleGroupNamespaceArgs
- type RuleGroupNamespaceArray
- type RuleGroupNamespaceArrayInput
- type RuleGroupNamespaceArrayOutput
- func (RuleGroupNamespaceArrayOutput) ElementType() reflect.Type
- func (o RuleGroupNamespaceArrayOutput) Index(i pulumi.IntInput) RuleGroupNamespaceOutput
- func (o RuleGroupNamespaceArrayOutput) ToRuleGroupNamespaceArrayOutput() RuleGroupNamespaceArrayOutput
- func (o RuleGroupNamespaceArrayOutput) ToRuleGroupNamespaceArrayOutputWithContext(ctx context.Context) RuleGroupNamespaceArrayOutput
- type RuleGroupNamespaceInput
- type RuleGroupNamespaceMap
- type RuleGroupNamespaceMapInput
- type RuleGroupNamespaceMapOutput
- func (RuleGroupNamespaceMapOutput) ElementType() reflect.Type
- func (o RuleGroupNamespaceMapOutput) MapIndex(k pulumi.StringInput) RuleGroupNamespaceOutput
- func (o RuleGroupNamespaceMapOutput) ToRuleGroupNamespaceMapOutput() RuleGroupNamespaceMapOutput
- func (o RuleGroupNamespaceMapOutput) ToRuleGroupNamespaceMapOutputWithContext(ctx context.Context) RuleGroupNamespaceMapOutput
- type RuleGroupNamespaceOutput
- func (RuleGroupNamespaceOutput) ElementType() reflect.Type
- func (o RuleGroupNamespaceOutput) ToRuleGroupNamespaceOutput() RuleGroupNamespaceOutput
- func (o RuleGroupNamespaceOutput) ToRuleGroupNamespaceOutputWithContext(ctx context.Context) RuleGroupNamespaceOutput
- func (o RuleGroupNamespaceOutput) ToRuleGroupNamespacePtrOutput() RuleGroupNamespacePtrOutput
- func (o RuleGroupNamespaceOutput) ToRuleGroupNamespacePtrOutputWithContext(ctx context.Context) RuleGroupNamespacePtrOutput
- type RuleGroupNamespacePtrInput
- type RuleGroupNamespacePtrOutput
- func (o RuleGroupNamespacePtrOutput) Elem() RuleGroupNamespaceOutput
- func (RuleGroupNamespacePtrOutput) ElementType() reflect.Type
- func (o RuleGroupNamespacePtrOutput) ToRuleGroupNamespacePtrOutput() RuleGroupNamespacePtrOutput
- func (o RuleGroupNamespacePtrOutput) ToRuleGroupNamespacePtrOutputWithContext(ctx context.Context) RuleGroupNamespacePtrOutput
- type RuleGroupNamespaceState
- type Workspace
- func (*Workspace) ElementType() reflect.Type
- func (i *Workspace) ToWorkspaceOutput() WorkspaceOutput
- func (i *Workspace) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput
- func (i *Workspace) ToWorkspacePtrOutput() WorkspacePtrOutput
- func (i *Workspace) ToWorkspacePtrOutputWithContext(ctx context.Context) WorkspacePtrOutput
- type WorkspaceArgs
- type WorkspaceArray
- type WorkspaceArrayInput
- type WorkspaceArrayOutput
- func (WorkspaceArrayOutput) ElementType() reflect.Type
- func (o WorkspaceArrayOutput) Index(i pulumi.IntInput) WorkspaceOutput
- func (o WorkspaceArrayOutput) ToWorkspaceArrayOutput() WorkspaceArrayOutput
- func (o WorkspaceArrayOutput) ToWorkspaceArrayOutputWithContext(ctx context.Context) WorkspaceArrayOutput
- type WorkspaceInput
- type WorkspaceMap
- type WorkspaceMapInput
- type WorkspaceMapOutput
- type WorkspaceOutput
- func (WorkspaceOutput) ElementType() reflect.Type
- func (o WorkspaceOutput) ToWorkspaceOutput() WorkspaceOutput
- func (o WorkspaceOutput) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput
- func (o WorkspaceOutput) ToWorkspacePtrOutput() WorkspacePtrOutput
- func (o WorkspaceOutput) ToWorkspacePtrOutputWithContext(ctx context.Context) WorkspacePtrOutput
- type WorkspacePtrInput
- type WorkspacePtrOutput
- type WorkspaceState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertManagerDefinition ¶ added in v4.27.0
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"` // The 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 (
"fmt" "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/amp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { demoWorkspace, err := amp.NewWorkspace(ctx, "demoWorkspace", nil) if err != nil { return err } _, err = amp.NewAlertManagerDefinition(ctx, "demoAlertManagerDefinition", &.AlertManagerDefinitionArgs{ WorkspaceId: demoWorkspace.ID(), Definition: pulumi.String(fmt.Sprintf("%v%v%v%v%v", "alertmanager_config: |\n", " route:\n", " receiver: 'default'\n", " receivers:\n", " - name: 'default'\n")), }) if err != nil { return err } return nil }) }
```
## Import
The prometheus alert manager definition can be imported using the workspace identifier, e.g.,
```sh
$ pulumi import aws:amp/alertManagerDefinition:AlertManagerDefinition demo ws-C6DCB907-F2D7-4D96-957B-66691F865D8B
```
func GetAlertManagerDefinition ¶ added in v4.27.0
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 ¶ added in v4.27.0
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 ¶ added in v4.27.0
func (*AlertManagerDefinition) ElementType() reflect.Type
func (*AlertManagerDefinition) ToAlertManagerDefinitionOutput ¶ added in v4.27.0
func (i *AlertManagerDefinition) ToAlertManagerDefinitionOutput() AlertManagerDefinitionOutput
func (*AlertManagerDefinition) ToAlertManagerDefinitionOutputWithContext ¶ added in v4.27.0
func (i *AlertManagerDefinition) ToAlertManagerDefinitionOutputWithContext(ctx context.Context) AlertManagerDefinitionOutput
func (*AlertManagerDefinition) ToAlertManagerDefinitionPtrOutput ¶ added in v4.27.0
func (i *AlertManagerDefinition) ToAlertManagerDefinitionPtrOutput() AlertManagerDefinitionPtrOutput
func (*AlertManagerDefinition) ToAlertManagerDefinitionPtrOutputWithContext ¶ added in v4.27.0
func (i *AlertManagerDefinition) ToAlertManagerDefinitionPtrOutputWithContext(ctx context.Context) AlertManagerDefinitionPtrOutput
type AlertManagerDefinitionArgs ¶ added in v4.27.0
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 // The 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 ¶ added in v4.27.0
func (AlertManagerDefinitionArgs) ElementType() reflect.Type
type AlertManagerDefinitionArray ¶ added in v4.27.0
type AlertManagerDefinitionArray []AlertManagerDefinitionInput
func (AlertManagerDefinitionArray) ElementType ¶ added in v4.27.0
func (AlertManagerDefinitionArray) ElementType() reflect.Type
func (AlertManagerDefinitionArray) ToAlertManagerDefinitionArrayOutput ¶ added in v4.27.0
func (i AlertManagerDefinitionArray) ToAlertManagerDefinitionArrayOutput() AlertManagerDefinitionArrayOutput
func (AlertManagerDefinitionArray) ToAlertManagerDefinitionArrayOutputWithContext ¶ added in v4.27.0
func (i AlertManagerDefinitionArray) ToAlertManagerDefinitionArrayOutputWithContext(ctx context.Context) AlertManagerDefinitionArrayOutput
type AlertManagerDefinitionArrayInput ¶ added in v4.27.0
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 ¶ added in v4.27.0
type AlertManagerDefinitionArrayOutput struct{ *pulumi.OutputState }
func (AlertManagerDefinitionArrayOutput) ElementType ¶ added in v4.27.0
func (AlertManagerDefinitionArrayOutput) ElementType() reflect.Type
func (AlertManagerDefinitionArrayOutput) Index ¶ added in v4.27.0
func (o AlertManagerDefinitionArrayOutput) Index(i pulumi.IntInput) AlertManagerDefinitionOutput
func (AlertManagerDefinitionArrayOutput) ToAlertManagerDefinitionArrayOutput ¶ added in v4.27.0
func (o AlertManagerDefinitionArrayOutput) ToAlertManagerDefinitionArrayOutput() AlertManagerDefinitionArrayOutput
func (AlertManagerDefinitionArrayOutput) ToAlertManagerDefinitionArrayOutputWithContext ¶ added in v4.27.0
func (o AlertManagerDefinitionArrayOutput) ToAlertManagerDefinitionArrayOutputWithContext(ctx context.Context) AlertManagerDefinitionArrayOutput
type AlertManagerDefinitionInput ¶ added in v4.27.0
type AlertManagerDefinitionInput interface { pulumi.Input ToAlertManagerDefinitionOutput() AlertManagerDefinitionOutput ToAlertManagerDefinitionOutputWithContext(ctx context.Context) AlertManagerDefinitionOutput }
type AlertManagerDefinitionMap ¶ added in v4.27.0
type AlertManagerDefinitionMap map[string]AlertManagerDefinitionInput
func (AlertManagerDefinitionMap) ElementType ¶ added in v4.27.0
func (AlertManagerDefinitionMap) ElementType() reflect.Type
func (AlertManagerDefinitionMap) ToAlertManagerDefinitionMapOutput ¶ added in v4.27.0
func (i AlertManagerDefinitionMap) ToAlertManagerDefinitionMapOutput() AlertManagerDefinitionMapOutput
func (AlertManagerDefinitionMap) ToAlertManagerDefinitionMapOutputWithContext ¶ added in v4.27.0
func (i AlertManagerDefinitionMap) ToAlertManagerDefinitionMapOutputWithContext(ctx context.Context) AlertManagerDefinitionMapOutput
type AlertManagerDefinitionMapInput ¶ added in v4.27.0
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 ¶ added in v4.27.0
type AlertManagerDefinitionMapOutput struct{ *pulumi.OutputState }
func (AlertManagerDefinitionMapOutput) ElementType ¶ added in v4.27.0
func (AlertManagerDefinitionMapOutput) ElementType() reflect.Type
func (AlertManagerDefinitionMapOutput) MapIndex ¶ added in v4.27.0
func (o AlertManagerDefinitionMapOutput) MapIndex(k pulumi.StringInput) AlertManagerDefinitionOutput
func (AlertManagerDefinitionMapOutput) ToAlertManagerDefinitionMapOutput ¶ added in v4.27.0
func (o AlertManagerDefinitionMapOutput) ToAlertManagerDefinitionMapOutput() AlertManagerDefinitionMapOutput
func (AlertManagerDefinitionMapOutput) ToAlertManagerDefinitionMapOutputWithContext ¶ added in v4.27.0
func (o AlertManagerDefinitionMapOutput) ToAlertManagerDefinitionMapOutputWithContext(ctx context.Context) AlertManagerDefinitionMapOutput
type AlertManagerDefinitionOutput ¶ added in v4.27.0
type AlertManagerDefinitionOutput struct{ *pulumi.OutputState }
func (AlertManagerDefinitionOutput) ElementType ¶ added in v4.27.0
func (AlertManagerDefinitionOutput) ElementType() reflect.Type
func (AlertManagerDefinitionOutput) ToAlertManagerDefinitionOutput ¶ added in v4.27.0
func (o AlertManagerDefinitionOutput) ToAlertManagerDefinitionOutput() AlertManagerDefinitionOutput
func (AlertManagerDefinitionOutput) ToAlertManagerDefinitionOutputWithContext ¶ added in v4.27.0
func (o AlertManagerDefinitionOutput) ToAlertManagerDefinitionOutputWithContext(ctx context.Context) AlertManagerDefinitionOutput
func (AlertManagerDefinitionOutput) ToAlertManagerDefinitionPtrOutput ¶ added in v4.27.0
func (o AlertManagerDefinitionOutput) ToAlertManagerDefinitionPtrOutput() AlertManagerDefinitionPtrOutput
func (AlertManagerDefinitionOutput) ToAlertManagerDefinitionPtrOutputWithContext ¶ added in v4.27.0
func (o AlertManagerDefinitionOutput) ToAlertManagerDefinitionPtrOutputWithContext(ctx context.Context) AlertManagerDefinitionPtrOutput
type AlertManagerDefinitionPtrInput ¶ added in v4.27.0
type AlertManagerDefinitionPtrInput interface { pulumi.Input ToAlertManagerDefinitionPtrOutput() AlertManagerDefinitionPtrOutput ToAlertManagerDefinitionPtrOutputWithContext(ctx context.Context) AlertManagerDefinitionPtrOutput }
type AlertManagerDefinitionPtrOutput ¶ added in v4.27.0
type AlertManagerDefinitionPtrOutput struct{ *pulumi.OutputState }
func (AlertManagerDefinitionPtrOutput) Elem ¶ added in v4.27.0
func (o AlertManagerDefinitionPtrOutput) Elem() AlertManagerDefinitionOutput
func (AlertManagerDefinitionPtrOutput) ElementType ¶ added in v4.27.0
func (AlertManagerDefinitionPtrOutput) ElementType() reflect.Type
func (AlertManagerDefinitionPtrOutput) ToAlertManagerDefinitionPtrOutput ¶ added in v4.27.0
func (o AlertManagerDefinitionPtrOutput) ToAlertManagerDefinitionPtrOutput() AlertManagerDefinitionPtrOutput
func (AlertManagerDefinitionPtrOutput) ToAlertManagerDefinitionPtrOutputWithContext ¶ added in v4.27.0
func (o AlertManagerDefinitionPtrOutput) ToAlertManagerDefinitionPtrOutputWithContext(ctx context.Context) AlertManagerDefinitionPtrOutput
type AlertManagerDefinitionState ¶ added in v4.27.0
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 // The id of the prometheus workspace the alert manager definition should be linked to WorkspaceId pulumi.StringPtrInput }
func (AlertManagerDefinitionState) ElementType ¶ added in v4.27.0
func (AlertManagerDefinitionState) ElementType() reflect.Type
type RuleGroupNamespace ¶ added in v4.27.0
type RuleGroupNamespace struct { pulumi.CustomResourceState // the rule group namespace data that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-Ruler.html). Data pulumi.StringOutput `pulumi:"data"` // The name of the rule group namespace Name pulumi.StringOutput `pulumi:"name"` // The 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 (
"fmt" "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/amp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { demoWorkspace, err := amp.NewWorkspace(ctx, "demoWorkspace", nil) if err != nil { return err } _, err = amp.NewRuleGroupNamespace(ctx, "demoRuleGroupNamespace", &.RuleGroupNamespaceArgs{ WorkspaceId: demoWorkspace.ID(), Data: pulumi.String(fmt.Sprintf("%v%v%v%v%v", "groups:\n", " - name: test\n", " rules:\n", " - record: metric:recording_rule\n", " expr: avg(rate(container_cpu_usage_seconds_total[5m]))\n")), }) if err != nil { return err } return nil }) }
```
## Import
The prometheus rule group namespace can be imported using the arn, e.g.,
```sh
$ pulumi import aws:amp/ruleGroupNamespace:RuleGroupNamespace demo arn:aws:aps:us-west-2:123456789012:rulegroupsnamespace/IDstring/namespace_name
```
func GetRuleGroupNamespace ¶ added in v4.27.0
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 ¶ added in v4.27.0
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 ¶ added in v4.27.0
func (*RuleGroupNamespace) ElementType() reflect.Type
func (*RuleGroupNamespace) ToRuleGroupNamespaceOutput ¶ added in v4.27.0
func (i *RuleGroupNamespace) ToRuleGroupNamespaceOutput() RuleGroupNamespaceOutput
func (*RuleGroupNamespace) ToRuleGroupNamespaceOutputWithContext ¶ added in v4.27.0
func (i *RuleGroupNamespace) ToRuleGroupNamespaceOutputWithContext(ctx context.Context) RuleGroupNamespaceOutput
func (*RuleGroupNamespace) ToRuleGroupNamespacePtrOutput ¶ added in v4.27.0
func (i *RuleGroupNamespace) ToRuleGroupNamespacePtrOutput() RuleGroupNamespacePtrOutput
func (*RuleGroupNamespace) ToRuleGroupNamespacePtrOutputWithContext ¶ added in v4.27.0
func (i *RuleGroupNamespace) ToRuleGroupNamespacePtrOutputWithContext(ctx context.Context) RuleGroupNamespacePtrOutput
type RuleGroupNamespaceArgs ¶ added in v4.27.0
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 // The 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 ¶ added in v4.27.0
func (RuleGroupNamespaceArgs) ElementType() reflect.Type
type RuleGroupNamespaceArray ¶ added in v4.27.0
type RuleGroupNamespaceArray []RuleGroupNamespaceInput
func (RuleGroupNamespaceArray) ElementType ¶ added in v4.27.0
func (RuleGroupNamespaceArray) ElementType() reflect.Type
func (RuleGroupNamespaceArray) ToRuleGroupNamespaceArrayOutput ¶ added in v4.27.0
func (i RuleGroupNamespaceArray) ToRuleGroupNamespaceArrayOutput() RuleGroupNamespaceArrayOutput
func (RuleGroupNamespaceArray) ToRuleGroupNamespaceArrayOutputWithContext ¶ added in v4.27.0
func (i RuleGroupNamespaceArray) ToRuleGroupNamespaceArrayOutputWithContext(ctx context.Context) RuleGroupNamespaceArrayOutput
type RuleGroupNamespaceArrayInput ¶ added in v4.27.0
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 ¶ added in v4.27.0
type RuleGroupNamespaceArrayOutput struct{ *pulumi.OutputState }
func (RuleGroupNamespaceArrayOutput) ElementType ¶ added in v4.27.0
func (RuleGroupNamespaceArrayOutput) ElementType() reflect.Type
func (RuleGroupNamespaceArrayOutput) Index ¶ added in v4.27.0
func (o RuleGroupNamespaceArrayOutput) Index(i pulumi.IntInput) RuleGroupNamespaceOutput
func (RuleGroupNamespaceArrayOutput) ToRuleGroupNamespaceArrayOutput ¶ added in v4.27.0
func (o RuleGroupNamespaceArrayOutput) ToRuleGroupNamespaceArrayOutput() RuleGroupNamespaceArrayOutput
func (RuleGroupNamespaceArrayOutput) ToRuleGroupNamespaceArrayOutputWithContext ¶ added in v4.27.0
func (o RuleGroupNamespaceArrayOutput) ToRuleGroupNamespaceArrayOutputWithContext(ctx context.Context) RuleGroupNamespaceArrayOutput
type RuleGroupNamespaceInput ¶ added in v4.27.0
type RuleGroupNamespaceInput interface { pulumi.Input ToRuleGroupNamespaceOutput() RuleGroupNamespaceOutput ToRuleGroupNamespaceOutputWithContext(ctx context.Context) RuleGroupNamespaceOutput }
type RuleGroupNamespaceMap ¶ added in v4.27.0
type RuleGroupNamespaceMap map[string]RuleGroupNamespaceInput
func (RuleGroupNamespaceMap) ElementType ¶ added in v4.27.0
func (RuleGroupNamespaceMap) ElementType() reflect.Type
func (RuleGroupNamespaceMap) ToRuleGroupNamespaceMapOutput ¶ added in v4.27.0
func (i RuleGroupNamespaceMap) ToRuleGroupNamespaceMapOutput() RuleGroupNamespaceMapOutput
func (RuleGroupNamespaceMap) ToRuleGroupNamespaceMapOutputWithContext ¶ added in v4.27.0
func (i RuleGroupNamespaceMap) ToRuleGroupNamespaceMapOutputWithContext(ctx context.Context) RuleGroupNamespaceMapOutput
type RuleGroupNamespaceMapInput ¶ added in v4.27.0
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 ¶ added in v4.27.0
type RuleGroupNamespaceMapOutput struct{ *pulumi.OutputState }
func (RuleGroupNamespaceMapOutput) ElementType ¶ added in v4.27.0
func (RuleGroupNamespaceMapOutput) ElementType() reflect.Type
func (RuleGroupNamespaceMapOutput) MapIndex ¶ added in v4.27.0
func (o RuleGroupNamespaceMapOutput) MapIndex(k pulumi.StringInput) RuleGroupNamespaceOutput
func (RuleGroupNamespaceMapOutput) ToRuleGroupNamespaceMapOutput ¶ added in v4.27.0
func (o RuleGroupNamespaceMapOutput) ToRuleGroupNamespaceMapOutput() RuleGroupNamespaceMapOutput
func (RuleGroupNamespaceMapOutput) ToRuleGroupNamespaceMapOutputWithContext ¶ added in v4.27.0
func (o RuleGroupNamespaceMapOutput) ToRuleGroupNamespaceMapOutputWithContext(ctx context.Context) RuleGroupNamespaceMapOutput
type RuleGroupNamespaceOutput ¶ added in v4.27.0
type RuleGroupNamespaceOutput struct{ *pulumi.OutputState }
func (RuleGroupNamespaceOutput) ElementType ¶ added in v4.27.0
func (RuleGroupNamespaceOutput) ElementType() reflect.Type
func (RuleGroupNamespaceOutput) ToRuleGroupNamespaceOutput ¶ added in v4.27.0
func (o RuleGroupNamespaceOutput) ToRuleGroupNamespaceOutput() RuleGroupNamespaceOutput
func (RuleGroupNamespaceOutput) ToRuleGroupNamespaceOutputWithContext ¶ added in v4.27.0
func (o RuleGroupNamespaceOutput) ToRuleGroupNamespaceOutputWithContext(ctx context.Context) RuleGroupNamespaceOutput
func (RuleGroupNamespaceOutput) ToRuleGroupNamespacePtrOutput ¶ added in v4.27.0
func (o RuleGroupNamespaceOutput) ToRuleGroupNamespacePtrOutput() RuleGroupNamespacePtrOutput
func (RuleGroupNamespaceOutput) ToRuleGroupNamespacePtrOutputWithContext ¶ added in v4.27.0
func (o RuleGroupNamespaceOutput) ToRuleGroupNamespacePtrOutputWithContext(ctx context.Context) RuleGroupNamespacePtrOutput
type RuleGroupNamespacePtrInput ¶ added in v4.27.0
type RuleGroupNamespacePtrInput interface { pulumi.Input ToRuleGroupNamespacePtrOutput() RuleGroupNamespacePtrOutput ToRuleGroupNamespacePtrOutputWithContext(ctx context.Context) RuleGroupNamespacePtrOutput }
type RuleGroupNamespacePtrOutput ¶ added in v4.27.0
type RuleGroupNamespacePtrOutput struct{ *pulumi.OutputState }
func (RuleGroupNamespacePtrOutput) Elem ¶ added in v4.27.0
func (o RuleGroupNamespacePtrOutput) Elem() RuleGroupNamespaceOutput
func (RuleGroupNamespacePtrOutput) ElementType ¶ added in v4.27.0
func (RuleGroupNamespacePtrOutput) ElementType() reflect.Type
func (RuleGroupNamespacePtrOutput) ToRuleGroupNamespacePtrOutput ¶ added in v4.27.0
func (o RuleGroupNamespacePtrOutput) ToRuleGroupNamespacePtrOutput() RuleGroupNamespacePtrOutput
func (RuleGroupNamespacePtrOutput) ToRuleGroupNamespacePtrOutputWithContext ¶ added in v4.27.0
func (o RuleGroupNamespacePtrOutput) ToRuleGroupNamespacePtrOutputWithContext(ctx context.Context) RuleGroupNamespacePtrOutput
type RuleGroupNamespaceState ¶ added in v4.27.0
type RuleGroupNamespaceState struct { // the rule group namespace data that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-Ruler.html). Data pulumi.StringPtrInput // The name of the rule group namespace Name pulumi.StringPtrInput // The id of the prometheus workspace the rule group namespace should be linked to WorkspaceId pulumi.StringPtrInput }
func (RuleGroupNamespaceState) ElementType ¶ added in v4.27.0
func (RuleGroupNamespaceState) ElementType() reflect.Type
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"` // Prometheus endpoint available for this workspace. PrometheusEndpoint pulumi.StringOutput `pulumi:"prometheusEndpoint"` }
Manages an Amazon Managed Service for Prometheus (AMP) Workspace.
> **NOTE:** This AWS functionality is in Preview and may change before General Availability release. Backwards compatibility is not guaranteed between provider releases.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/amp" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := amp.NewWorkspace(ctx, "demo", &.WorkspaceArgs{ Alias: pulumi.String("prometheus-test"), }) if err != nil { return err } return nil }) }
```
## Import
AMP Workspaces can be imported using the identifier, e.g.,
```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) ToWorkspaceOutput ¶
func (i *Workspace) ToWorkspaceOutput() WorkspaceOutput
func (*Workspace) ToWorkspaceOutputWithContext ¶
func (i *Workspace) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput
func (*Workspace) ToWorkspacePtrOutput ¶
func (i *Workspace) ToWorkspacePtrOutput() WorkspacePtrOutput
func (*Workspace) ToWorkspacePtrOutputWithContext ¶
func (i *Workspace) ToWorkspacePtrOutputWithContext(ctx context.Context) WorkspacePtrOutput
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 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 (o WorkspaceArrayOutput) Index(i pulumi.IntInput) WorkspaceOutput
func (WorkspaceArrayOutput) ToWorkspaceArrayOutput ¶
func (o WorkspaceArrayOutput) ToWorkspaceArrayOutput() WorkspaceArrayOutput
func (WorkspaceArrayOutput) ToWorkspaceArrayOutputWithContext ¶
func (o WorkspaceArrayOutput) ToWorkspaceArrayOutputWithContext(ctx context.Context) WorkspaceArrayOutput
type WorkspaceInput ¶
type WorkspaceInput interface { pulumi.Input ToWorkspaceOutput() WorkspaceOutput ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput }
type 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 (o WorkspaceMapOutput) MapIndex(k pulumi.StringInput) WorkspaceOutput
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) ElementType ¶
func (WorkspaceOutput) ElementType() reflect.Type
func (WorkspaceOutput) ToWorkspaceOutput ¶
func (o WorkspaceOutput) ToWorkspaceOutput() WorkspaceOutput
func (WorkspaceOutput) ToWorkspaceOutputWithContext ¶
func (o WorkspaceOutput) ToWorkspaceOutputWithContext(ctx context.Context) WorkspaceOutput
func (WorkspaceOutput) ToWorkspacePtrOutput ¶
func (o WorkspaceOutput) ToWorkspacePtrOutput() WorkspacePtrOutput
func (WorkspaceOutput) ToWorkspacePtrOutputWithContext ¶
func (o WorkspaceOutput) ToWorkspacePtrOutputWithContext(ctx context.Context) WorkspacePtrOutput
type WorkspacePtrInput ¶
type WorkspacePtrInput interface { pulumi.Input ToWorkspacePtrOutput() WorkspacePtrOutput ToWorkspacePtrOutputWithContext(ctx context.Context) WorkspacePtrOutput }
type WorkspacePtrOutput ¶
type WorkspacePtrOutput struct{ *pulumi.OutputState }
func (WorkspacePtrOutput) Elem ¶ added in v4.15.0
func (o WorkspacePtrOutput) Elem() WorkspaceOutput
func (WorkspacePtrOutput) ElementType ¶
func (WorkspacePtrOutput) ElementType() reflect.Type
func (WorkspacePtrOutput) ToWorkspacePtrOutput ¶
func (o WorkspacePtrOutput) ToWorkspacePtrOutput() WorkspacePtrOutput
func (WorkspacePtrOutput) ToWorkspacePtrOutputWithContext ¶
func (o WorkspacePtrOutput) ToWorkspacePtrOutputWithContext(ctx context.Context) WorkspacePtrOutput
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 // Prometheus endpoint available for this workspace. PrometheusEndpoint pulumi.StringPtrInput }
func (WorkspaceState) ElementType ¶
func (WorkspaceState) ElementType() reflect.Type