public static final class CfnAnomalySubscriptionProps.Builder
extends java.lang.Object
CfnAnomalySubscriptionProps
Constructor and Description |
---|
Builder() |
public CfnAnomalySubscriptionProps.Builder frequency(java.lang.String frequency)
CfnAnomalySubscriptionProps.getFrequency()
frequency
- The frequency that anomaly notifications are sent. This parameter is required.
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 .this
public CfnAnomalySubscriptionProps.Builder monitorArnList(java.util.List<java.lang.String> monitorArnList)
CfnAnomalySubscriptionProps.getMonitorArnList()
monitorArnList
- A list of cost anomaly monitors. This parameter is required.this
public CfnAnomalySubscriptionProps.Builder subscribers(IResolvable subscribers)
CfnAnomalySubscriptionProps.getSubscribers()
subscribers
- A list of subscribers to notify. This parameter is required.this
public CfnAnomalySubscriptionProps.Builder subscribers(java.util.List<? extends java.lang.Object> subscribers)
CfnAnomalySubscriptionProps.getSubscribers()
subscribers
- A list of subscribers to notify. This parameter is required.this
public CfnAnomalySubscriptionProps.Builder subscriptionName(java.lang.String subscriptionName)
CfnAnomalySubscriptionProps.getSubscriptionName()
subscriptionName
- The name for the subscription. This parameter is required.this
public CfnAnomalySubscriptionProps.Builder resourceTags(IResolvable resourceTags)
CfnAnomalySubscriptionProps.getResourceTags()
resourceTags
- `AWS::CE::AnomalySubscription.ResourceTags`.this
public CfnAnomalySubscriptionProps.Builder resourceTags(java.util.List<? extends java.lang.Object> resourceTags)
CfnAnomalySubscriptionProps.getResourceTags()
resourceTags
- `AWS::CE::AnomalySubscription.ResourceTags`.this
public CfnAnomalySubscriptionProps.Builder threshold(java.lang.Number threshold)
CfnAnomalySubscriptionProps.getThreshold()
threshold
- (deprecated).
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.
this
public CfnAnomalySubscriptionProps.Builder thresholdExpression(java.lang.String thresholdExpression)
CfnAnomalySubscriptionProps.getThresholdExpression()
thresholdExpression
- An [Expression](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Expression.html) 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](https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Impact.html) 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.
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.
this
public CfnAnomalySubscriptionProps build()
CfnAnomalySubscriptionProps
java.lang.NullPointerException
- if any required attribute was not provided