1. Packages
  2. Vantage Provider
  3. API Docs
  4. AnomalyNotification
vantage 0.1.50 published on Monday, Apr 7, 2025 by vantage-sh

vantage.AnomalyNotification

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vantage from "@pulumi/vantage";

const demoAnomalyNotification = new vantage.AnomalyNotification("demoAnomalyNotification", {
    costReportToken: "rpt_47c3254c790e9351",
    recipientChannels: ["#alerts"],
    threshold: 10,
});
Copy
import pulumi
import pulumi_vantage as vantage

demo_anomaly_notification = vantage.AnomalyNotification("demoAnomalyNotification",
    cost_report_token="rpt_47c3254c790e9351",
    recipient_channels=["#alerts"],
    threshold=10)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vantage/vantage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vantage.NewAnomalyNotification(ctx, "demoAnomalyNotification", &vantage.AnomalyNotificationArgs{
			CostReportToken: pulumi.String("rpt_47c3254c790e9351"),
			RecipientChannels: pulumi.StringArray{
				pulumi.String("#alerts"),
			},
			Threshold: pulumi.Float64(10),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vantage = Pulumi.Vantage;

return await Deployment.RunAsync(() => 
{
    var demoAnomalyNotification = new Vantage.AnomalyNotification("demoAnomalyNotification", new()
    {
        CostReportToken = "rpt_47c3254c790e9351",
        RecipientChannels = new[]
        {
            "#alerts",
        },
        Threshold = 10,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vantage.AnomalyNotification;
import com.pulumi.vantage.AnomalyNotificationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var demoAnomalyNotification = new AnomalyNotification("demoAnomalyNotification", AnomalyNotificationArgs.builder()
            .costReportToken("rpt_47c3254c790e9351")
            .recipientChannels("#alerts")
            .threshold(10)
            .build());

    }
}
Copy
resources:
  demoAnomalyNotification:
    type: vantage:AnomalyNotification
    properties:
      costReportToken: rpt_47c3254c790e9351
      recipientChannels:
        - '#alerts'
      threshold: 10
Copy

Create AnomalyNotification Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AnomalyNotification(name: string, args: AnomalyNotificationArgs, opts?: CustomResourceOptions);
@overload
def AnomalyNotification(resource_name: str,
                        args: AnomalyNotificationArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def AnomalyNotification(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        cost_report_token: Optional[str] = None,
                        recipient_channels: Optional[Sequence[str]] = None,
                        threshold: Optional[float] = None,
                        user_tokens: Optional[Sequence[str]] = None)
func NewAnomalyNotification(ctx *Context, name string, args AnomalyNotificationArgs, opts ...ResourceOption) (*AnomalyNotification, error)
public AnomalyNotification(string name, AnomalyNotificationArgs args, CustomResourceOptions? opts = null)
public AnomalyNotification(String name, AnomalyNotificationArgs args)
public AnomalyNotification(String name, AnomalyNotificationArgs args, CustomResourceOptions options)
type: vantage:AnomalyNotification
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AnomalyNotificationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AnomalyNotificationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AnomalyNotificationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AnomalyNotificationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AnomalyNotificationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var anomalyNotificationResource = new Vantage.AnomalyNotification("anomalyNotificationResource", new()
{
    CostReportToken = "string",
    RecipientChannels = new[]
    {
        "string",
    },
    Threshold = 0,
    UserTokens = new[]
    {
        "string",
    },
});
Copy
example, err := vantage.NewAnomalyNotification(ctx, "anomalyNotificationResource", &vantage.AnomalyNotificationArgs{
CostReportToken: pulumi.String("string"),
RecipientChannels: pulumi.StringArray{
pulumi.String("string"),
},
Threshold: pulumi.Float64(0),
UserTokens: pulumi.StringArray{
pulumi.String("string"),
},
})
Copy
var anomalyNotificationResource = new AnomalyNotification("anomalyNotificationResource", AnomalyNotificationArgs.builder()
    .costReportToken("string")
    .recipientChannels("string")
    .threshold(0)
    .userTokens("string")
    .build());
Copy
anomaly_notification_resource = vantage.AnomalyNotification("anomalyNotificationResource",
    cost_report_token="string",
    recipient_channels=["string"],
    threshold=0,
    user_tokens=["string"])
Copy
const anomalyNotificationResource = new vantage.AnomalyNotification("anomalyNotificationResource", {
    costReportToken: "string",
    recipientChannels: ["string"],
    threshold: 0,
    userTokens: ["string"],
});
Copy
type: vantage:AnomalyNotification
properties:
    costReportToken: string
    recipientChannels:
        - string
    threshold: 0
    userTokens:
        - string
Copy

AnomalyNotification Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AnomalyNotification resource accepts the following input properties:

CostReportToken This property is required. string
The token of the Cost Report folder that has the notification.
RecipientChannels List<string>
The Slack/MS Teams channels that receive the notification.
Threshold double
The threshold amount that must be met for the notification to fire.
UserTokens List<string>
The tokens of the users that receive the notification.
CostReportToken This property is required. string
The token of the Cost Report folder that has the notification.
RecipientChannels []string
The Slack/MS Teams channels that receive the notification.
Threshold float64
The threshold amount that must be met for the notification to fire.
UserTokens []string
The tokens of the users that receive the notification.
costReportToken This property is required. String
The token of the Cost Report folder that has the notification.
recipientChannels List<String>
The Slack/MS Teams channels that receive the notification.
threshold Double
The threshold amount that must be met for the notification to fire.
userTokens List<String>
The tokens of the users that receive the notification.
costReportToken This property is required. string
The token of the Cost Report folder that has the notification.
recipientChannels string[]
The Slack/MS Teams channels that receive the notification.
threshold number
The threshold amount that must be met for the notification to fire.
userTokens string[]
The tokens of the users that receive the notification.
cost_report_token This property is required. str
The token of the Cost Report folder that has the notification.
recipient_channels Sequence[str]
The Slack/MS Teams channels that receive the notification.
threshold float
The threshold amount that must be met for the notification to fire.
user_tokens Sequence[str]
The tokens of the users that receive the notification.
costReportToken This property is required. String
The token of the Cost Report folder that has the notification.
recipientChannels List<String>
The Slack/MS Teams channels that receive the notification.
threshold Number
The threshold amount that must be met for the notification to fire.
userTokens List<String>
The tokens of the users that receive the notification.

Outputs

All input properties are implicitly available as output properties. Additionally, the AnomalyNotification resource produces the following output properties:

CreatedAt string
The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.
Id string
The provider-assigned unique ID for this managed resource.
Token string
The token of the report alert
UpdatedAt string
The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.
CreatedAt string
The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.
Id string
The provider-assigned unique ID for this managed resource.
Token string
The token of the report alert
UpdatedAt string
The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.
createdAt String
The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.
id String
The provider-assigned unique ID for this managed resource.
token String
The token of the report alert
updatedAt String
The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.
createdAt string
The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.
id string
The provider-assigned unique ID for this managed resource.
token string
The token of the report alert
updatedAt string
The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.
created_at str
The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.
id str
The provider-assigned unique ID for this managed resource.
token str
The token of the report alert
updated_at str
The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.
createdAt String
The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.
id String
The provider-assigned unique ID for this managed resource.
token String
The token of the report alert
updatedAt String
The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.

Look up Existing AnomalyNotification Resource

Get an existing AnomalyNotification resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AnomalyNotificationState, opts?: CustomResourceOptions): AnomalyNotification
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cost_report_token: Optional[str] = None,
        created_at: Optional[str] = None,
        recipient_channels: Optional[Sequence[str]] = None,
        threshold: Optional[float] = None,
        token: Optional[str] = None,
        updated_at: Optional[str] = None,
        user_tokens: Optional[Sequence[str]] = None) -> AnomalyNotification
func GetAnomalyNotification(ctx *Context, name string, id IDInput, state *AnomalyNotificationState, opts ...ResourceOption) (*AnomalyNotification, error)
public static AnomalyNotification Get(string name, Input<string> id, AnomalyNotificationState? state, CustomResourceOptions? opts = null)
public static AnomalyNotification get(String name, Output<String> id, AnomalyNotificationState state, CustomResourceOptions options)
resources:  _:    type: vantage:AnomalyNotification    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CostReportToken string
The token of the Cost Report folder that has the notification.
CreatedAt string
The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.
RecipientChannels List<string>
The Slack/MS Teams channels that receive the notification.
Threshold double
The threshold amount that must be met for the notification to fire.
Token string
The token of the report alert
UpdatedAt string
The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.
UserTokens List<string>
The tokens of the users that receive the notification.
CostReportToken string
The token of the Cost Report folder that has the notification.
CreatedAt string
The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.
RecipientChannels []string
The Slack/MS Teams channels that receive the notification.
Threshold float64
The threshold amount that must be met for the notification to fire.
Token string
The token of the report alert
UpdatedAt string
The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.
UserTokens []string
The tokens of the users that receive the notification.
costReportToken String
The token of the Cost Report folder that has the notification.
createdAt String
The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.
recipientChannels List<String>
The Slack/MS Teams channels that receive the notification.
threshold Double
The threshold amount that must be met for the notification to fire.
token String
The token of the report alert
updatedAt String
The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.
userTokens List<String>
The tokens of the users that receive the notification.
costReportToken string
The token of the Cost Report folder that has the notification.
createdAt string
The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.
recipientChannels string[]
The Slack/MS Teams channels that receive the notification.
threshold number
The threshold amount that must be met for the notification to fire.
token string
The token of the report alert
updatedAt string
The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.
userTokens string[]
The tokens of the users that receive the notification.
cost_report_token str
The token of the Cost Report folder that has the notification.
created_at str
The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.
recipient_channels Sequence[str]
The Slack/MS Teams channels that receive the notification.
threshold float
The threshold amount that must be met for the notification to fire.
token str
The token of the report alert
updated_at str
The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.
user_tokens Sequence[str]
The tokens of the users that receive the notification.
costReportToken String
The token of the Cost Report folder that has the notification.
createdAt String
The date and time, in UTC, the AnomalyNotification was created. ISO 8601 Formatted.
recipientChannels List<String>
The Slack/MS Teams channels that receive the notification.
threshold Number
The threshold amount that must be met for the notification to fire.
token String
The token of the report alert
updatedAt String
The date and time, in UTC, the AnomalyNotification was last updated at. ISO 8601 Formatted.
userTokens List<String>
The tokens of the users that receive the notification.

Package Details

Repository
vantage vantage-sh/terraform-provider-vantage
License
Notes
This Pulumi package is based on the vantage Terraform Provider.