costmanagement

package
v5.37.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 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 AnomalyAlert

type AnomalyAlert struct {
	pulumi.CustomResourceState

	// The display name which should be used for this Cost Anomaly Alert.
	DisplayName pulumi.StringOutput `pulumi:"displayName"`
	// Specifies a list of email addresses which the Anomaly Alerts are send to.
	EmailAddresses pulumi.StringArrayOutput `pulumi:"emailAddresses"`
	// The email subject of the Cost Anomaly Alerts. Maximum length of the subject is 70.
	EmailSubject pulumi.StringOutput `pulumi:"emailSubject"`
	// The message of the Cost Anomaly Alert. Maximum length of the message is 250.
	Message pulumi.StringPtrOutput `pulumi:"message"`
	// The name which should be used for this Cost Anomaly Alert. Changing this forces a new resource to be created. The name can contain only lowercase letters, numbers and hyphens.
	Name pulumi.StringOutput `pulumi:"name"`
}

Manages a Cost Anomaly Alert.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/costmanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := costmanagement.NewAnomalyAlert(ctx, "example", &costmanagement.AnomalyAlertArgs{
			DisplayName: pulumi.String("Alert DisplayName"),
			EmailAddresses: pulumi.StringArray{
				pulumi.String("example@test.net"),
			},
			EmailSubject: pulumi.String("My Test Anomaly Alert"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cost Anomaly Alerts can be imported using the `resource id`, e.g.

```sh

$ pulumi import azure:costmanagement/anomalyAlert:AnomalyAlert example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.CostManagement/scheduledActions/dailyanomalybyresourcegroup

```

func GetAnomalyAlert

func GetAnomalyAlert(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AnomalyAlertState, opts ...pulumi.ResourceOption) (*AnomalyAlert, error)

GetAnomalyAlert gets an existing AnomalyAlert 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 NewAnomalyAlert

func NewAnomalyAlert(ctx *pulumi.Context,
	name string, args *AnomalyAlertArgs, opts ...pulumi.ResourceOption) (*AnomalyAlert, error)

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

func (*AnomalyAlert) ElementType

func (*AnomalyAlert) ElementType() reflect.Type

func (*AnomalyAlert) ToAnomalyAlertOutput

func (i *AnomalyAlert) ToAnomalyAlertOutput() AnomalyAlertOutput

func (*AnomalyAlert) ToAnomalyAlertOutputWithContext

func (i *AnomalyAlert) ToAnomalyAlertOutputWithContext(ctx context.Context) AnomalyAlertOutput

type AnomalyAlertArgs

type AnomalyAlertArgs struct {
	// The display name which should be used for this Cost Anomaly Alert.
	DisplayName pulumi.StringInput
	// Specifies a list of email addresses which the Anomaly Alerts are send to.
	EmailAddresses pulumi.StringArrayInput
	// The email subject of the Cost Anomaly Alerts. Maximum length of the subject is 70.
	EmailSubject pulumi.StringInput
	// The message of the Cost Anomaly Alert. Maximum length of the message is 250.
	Message pulumi.StringPtrInput
	// The name which should be used for this Cost Anomaly Alert. Changing this forces a new resource to be created. The name can contain only lowercase letters, numbers and hyphens.
	Name pulumi.StringPtrInput
}

The set of arguments for constructing a AnomalyAlert resource.

func (AnomalyAlertArgs) ElementType

func (AnomalyAlertArgs) ElementType() reflect.Type

type AnomalyAlertArray

type AnomalyAlertArray []AnomalyAlertInput

func (AnomalyAlertArray) ElementType

func (AnomalyAlertArray) ElementType() reflect.Type

func (AnomalyAlertArray) ToAnomalyAlertArrayOutput

func (i AnomalyAlertArray) ToAnomalyAlertArrayOutput() AnomalyAlertArrayOutput

func (AnomalyAlertArray) ToAnomalyAlertArrayOutputWithContext

func (i AnomalyAlertArray) ToAnomalyAlertArrayOutputWithContext(ctx context.Context) AnomalyAlertArrayOutput

type AnomalyAlertArrayInput

type AnomalyAlertArrayInput interface {
	pulumi.Input

	ToAnomalyAlertArrayOutput() AnomalyAlertArrayOutput
	ToAnomalyAlertArrayOutputWithContext(context.Context) AnomalyAlertArrayOutput
}

AnomalyAlertArrayInput is an input type that accepts AnomalyAlertArray and AnomalyAlertArrayOutput values. You can construct a concrete instance of `AnomalyAlertArrayInput` via:

AnomalyAlertArray{ AnomalyAlertArgs{...} }

type AnomalyAlertArrayOutput

type AnomalyAlertArrayOutput struct{ *pulumi.OutputState }

func (AnomalyAlertArrayOutput) ElementType

func (AnomalyAlertArrayOutput) ElementType() reflect.Type

func (AnomalyAlertArrayOutput) Index

func (AnomalyAlertArrayOutput) ToAnomalyAlertArrayOutput

func (o AnomalyAlertArrayOutput) ToAnomalyAlertArrayOutput() AnomalyAlertArrayOutput

func (AnomalyAlertArrayOutput) ToAnomalyAlertArrayOutputWithContext

func (o AnomalyAlertArrayOutput) ToAnomalyAlertArrayOutputWithContext(ctx context.Context) AnomalyAlertArrayOutput

type AnomalyAlertInput

type AnomalyAlertInput interface {
	pulumi.Input

	ToAnomalyAlertOutput() AnomalyAlertOutput
	ToAnomalyAlertOutputWithContext(ctx context.Context) AnomalyAlertOutput
}

type AnomalyAlertMap

type AnomalyAlertMap map[string]AnomalyAlertInput

func (AnomalyAlertMap) ElementType

func (AnomalyAlertMap) ElementType() reflect.Type

func (AnomalyAlertMap) ToAnomalyAlertMapOutput

func (i AnomalyAlertMap) ToAnomalyAlertMapOutput() AnomalyAlertMapOutput

func (AnomalyAlertMap) ToAnomalyAlertMapOutputWithContext

func (i AnomalyAlertMap) ToAnomalyAlertMapOutputWithContext(ctx context.Context) AnomalyAlertMapOutput

type AnomalyAlertMapInput

type AnomalyAlertMapInput interface {
	pulumi.Input

	ToAnomalyAlertMapOutput() AnomalyAlertMapOutput
	ToAnomalyAlertMapOutputWithContext(context.Context) AnomalyAlertMapOutput
}

AnomalyAlertMapInput is an input type that accepts AnomalyAlertMap and AnomalyAlertMapOutput values. You can construct a concrete instance of `AnomalyAlertMapInput` via:

AnomalyAlertMap{ "key": AnomalyAlertArgs{...} }

type AnomalyAlertMapOutput

type AnomalyAlertMapOutput struct{ *pulumi.OutputState }

func (AnomalyAlertMapOutput) ElementType

func (AnomalyAlertMapOutput) ElementType() reflect.Type

func (AnomalyAlertMapOutput) MapIndex

func (AnomalyAlertMapOutput) ToAnomalyAlertMapOutput

func (o AnomalyAlertMapOutput) ToAnomalyAlertMapOutput() AnomalyAlertMapOutput

func (AnomalyAlertMapOutput) ToAnomalyAlertMapOutputWithContext

func (o AnomalyAlertMapOutput) ToAnomalyAlertMapOutputWithContext(ctx context.Context) AnomalyAlertMapOutput

type AnomalyAlertOutput

type AnomalyAlertOutput struct{ *pulumi.OutputState }

func (AnomalyAlertOutput) DisplayName

func (o AnomalyAlertOutput) DisplayName() pulumi.StringOutput

The display name which should be used for this Cost Anomaly Alert.

func (AnomalyAlertOutput) ElementType

func (AnomalyAlertOutput) ElementType() reflect.Type

func (AnomalyAlertOutput) EmailAddresses

func (o AnomalyAlertOutput) EmailAddresses() pulumi.StringArrayOutput

Specifies a list of email addresses which the Anomaly Alerts are send to.

func (AnomalyAlertOutput) EmailSubject

func (o AnomalyAlertOutput) EmailSubject() pulumi.StringOutput

The email subject of the Cost Anomaly Alerts. Maximum length of the subject is 70.

func (AnomalyAlertOutput) Message

The message of the Cost Anomaly Alert. Maximum length of the message is 250.

func (AnomalyAlertOutput) Name

The name which should be used for this Cost Anomaly Alert. Changing this forces a new resource to be created. The name can contain only lowercase letters, numbers and hyphens.

func (AnomalyAlertOutput) ToAnomalyAlertOutput

func (o AnomalyAlertOutput) ToAnomalyAlertOutput() AnomalyAlertOutput

func (AnomalyAlertOutput) ToAnomalyAlertOutputWithContext

func (o AnomalyAlertOutput) ToAnomalyAlertOutputWithContext(ctx context.Context) AnomalyAlertOutput

type AnomalyAlertState

type AnomalyAlertState struct {
	// The display name which should be used for this Cost Anomaly Alert.
	DisplayName pulumi.StringPtrInput
	// Specifies a list of email addresses which the Anomaly Alerts are send to.
	EmailAddresses pulumi.StringArrayInput
	// The email subject of the Cost Anomaly Alerts. Maximum length of the subject is 70.
	EmailSubject pulumi.StringPtrInput
	// The message of the Cost Anomaly Alert. Maximum length of the message is 250.
	Message pulumi.StringPtrInput
	// The name which should be used for this Cost Anomaly Alert. Changing this forces a new resource to be created. The name can contain only lowercase letters, numbers and hyphens.
	Name pulumi.StringPtrInput
}

func (AnomalyAlertState) ElementType

func (AnomalyAlertState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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