Show / Hide Table of Contents

Class CfnAnomalySubscriptionProps

Properties for defining a CfnAnomalySubscription.

Inheritance
object
CfnAnomalySubscriptionProps
Implements
ICfnAnomalySubscriptionProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.CE
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAnomalySubscriptionProps : ICfnAnomalySubscriptionProps
Syntax (vb)
Public Class CfnAnomalySubscriptionProps Implements ICfnAnomalySubscriptionProps
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalysubscription.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.CE;

             var cfnAnomalySubscriptionProps = new CfnAnomalySubscriptionProps {
                 Frequency = "frequency",
                 MonitorArnList = new [] { "monitorArnList" },
                 Subscribers = new [] { new SubscriberProperty {
                     Address = "address",
                     Type = "type",

                     // the properties below are optional
                     Status = "status"
                 } },
                 SubscriptionName = "subscriptionName",

                 // the properties below are optional
                 ResourceTags = new [] { new ResourceTagProperty {
                     Key = "key",
                     Value = "value"
                 } },
                 Threshold = 123,
                 ThresholdExpression = "thresholdExpression"
             };

Synopsis

Constructors

CfnAnomalySubscriptionProps()

Properties for defining a CfnAnomalySubscription.

Properties

Frequency

The frequency that anomaly notifications are sent.

MonitorArnList

A list of cost anomaly monitors.

ResourceTags

Tags to assign to subscription.

Subscribers

A list of subscribers to notify.

SubscriptionName

The name for the subscription.

Threshold

(deprecated).

ThresholdExpression

An Expression object in JSON string format used to specify the anomalies that you want to generate alerts for. This supports dimensions and nested expressions. The supported dimensions are ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE , corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types are AND and OR . The match option GREATER_THAN_OR_EQUAL is required. Values must be numbers between 0 and 10,000,000,000 in string format.

Constructors

CfnAnomalySubscriptionProps()

Properties for defining a CfnAnomalySubscription.

public CfnAnomalySubscriptionProps()
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalysubscription.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.CE;

             var cfnAnomalySubscriptionProps = new CfnAnomalySubscriptionProps {
                 Frequency = "frequency",
                 MonitorArnList = new [] { "monitorArnList" },
                 Subscribers = new [] { new SubscriberProperty {
                     Address = "address",
                     Type = "type",

                     // the properties below are optional
                     Status = "status"
                 } },
                 SubscriptionName = "subscriptionName",

                 // the properties below are optional
                 ResourceTags = new [] { new ResourceTagProperty {
                     Key = "key",
                     Value = "value"
                 } },
                 Threshold = 123,
                 ThresholdExpression = "thresholdExpression"
             };

Properties

Frequency

The frequency that anomaly notifications are sent.

public string Frequency { get; set; }
Property Value

string

Remarks

Notifications are sent either over email (for DAILY and WEEKLY frequencies) or SNS (for IMMEDIATE frequency). For more information, see Creating an Amazon SNS topic for anomaly notifications .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalysubscription.html#cfn-ce-anomalysubscription-frequency

MonitorArnList

A list of cost anomaly monitors.

public object[] MonitorArnList { get; set; }
Property Value

object[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalysubscription.html#cfn-ce-anomalysubscription-monitorarnlist

Type union: (either string or IAnomalyMonitorRef)[]

ResourceTags

Tags to assign to subscription.

public CfnAnomalySubscription.IResourceTagProperty[]? ResourceTags { get; set; }
Property Value

IResourceTagProperty[]

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalysubscription.html#cfn-ce-anomalysubscription-resourcetags

Subscribers

A list of subscribers to notify.

public object Subscribers { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalysubscription.html#cfn-ce-anomalysubscription-subscribers

Type union: either IResolvable or (either IResolvable or CfnAnomalySubscription.ISubscriberProperty)[]

SubscriptionName

The name for the subscription.

public string SubscriptionName { get; set; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalysubscription.html#cfn-ce-anomalysubscription-subscriptionname

Threshold

(deprecated).

public double? Threshold { get; set; }
Property Value

double?

Remarks

An absolute dollar value that must be exceeded by the anomaly's total impact (see Impact for more details) for an anomaly notification to be generated.

This field has been deprecated. To specify a threshold, use ThresholdExpression. Continued use of Threshold will be treated as shorthand syntax for a ThresholdExpression.

One of Threshold or ThresholdExpression is required for AWS::CE::AnomalySubscription . You cannot specify both.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalysubscription.html#cfn-ce-anomalysubscription-threshold

ThresholdExpression

An Expression object in JSON string format used to specify the anomalies that you want to generate alerts for. This supports dimensions and nested expressions. The supported dimensions are ANOMALY_TOTAL_IMPACT_ABSOLUTE and ANOMALY_TOTAL_IMPACT_PERCENTAGE , corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types are AND and OR . The match option GREATER_THAN_OR_EQUAL is required. Values must be numbers between 0 and 10,000,000,000 in string format.

public string? ThresholdExpression { get; set; }
Property Value

string

Remarks

One of Threshold or ThresholdExpression is required for AWS::CE::AnomalySubscription . You cannot specify both.

For further information, see the Examples section of this page.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalysubscription.html#cfn-ce-anomalysubscription-thresholdexpression

Implements

ICfnAnomalySubscriptionProps
Back to top Generated by DocFX