Class CfnAnomalySubscriptionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ce.CfnAnomalySubscriptionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalySubscriptionMixinProps>
- Enclosing interface:
CfnAnomalySubscriptionMixinProps
@Stability(Stable)
public static final class CfnAnomalySubscriptionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnomalySubscriptionMixinProps>
A builder for
CfnAnomalySubscriptionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnAnomalySubscriptionMixinProps.getFrequency()monitorArnList(List<? extends Object> monitorArnList) Sets the value ofCfnAnomalySubscriptionMixinProps.getMonitorArnList()resourceTags(List<? extends CfnAnomalySubscriptionPropsMixin.ResourceTagProperty> resourceTags) Sets the value ofCfnAnomalySubscriptionMixinProps.getResourceTags()subscribers(List<? extends Object> subscribers) Sets the value ofCfnAnomalySubscriptionMixinProps.getSubscribers()subscribers(IResolvable subscribers) Sets the value ofCfnAnomalySubscriptionMixinProps.getSubscribers()subscriptionName(String subscriptionName) Sets the value ofCfnAnomalySubscriptionMixinProps.getSubscriptionName()Sets the value ofCfnAnomalySubscriptionMixinProps.getThreshold()thresholdExpression(String thresholdExpression) Sets the value ofCfnAnomalySubscriptionMixinProps.getThresholdExpression()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
frequency
Sets the value ofCfnAnomalySubscriptionMixinProps.getFrequency()- Parameters:
frequency- The frequency that anomaly notifications are sent. 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 .- Returns:
this
-
monitorArnList
@Stability(Stable) public CfnAnomalySubscriptionMixinProps.Builder monitorArnList(List<? extends Object> monitorArnList) Sets the value ofCfnAnomalySubscriptionMixinProps.getMonitorArnList()- Parameters:
monitorArnList- A list of cost anomaly monitors.- Returns:
this
-
resourceTags
@Stability(Stable) public CfnAnomalySubscriptionMixinProps.Builder resourceTags(List<? extends CfnAnomalySubscriptionPropsMixin.ResourceTagProperty> resourceTags) Sets the value ofCfnAnomalySubscriptionMixinProps.getResourceTags()- Parameters:
resourceTags- Tags to assign to subscription.- Returns:
this
-
subscribers
@Stability(Stable) public CfnAnomalySubscriptionMixinProps.Builder subscribers(IResolvable subscribers) Sets the value ofCfnAnomalySubscriptionMixinProps.getSubscribers()- Parameters:
subscribers- A list of subscribers to notify.- Returns:
this
-
subscribers
@Stability(Stable) public CfnAnomalySubscriptionMixinProps.Builder subscribers(List<? extends Object> subscribers) Sets the value ofCfnAnomalySubscriptionMixinProps.getSubscribers()- Parameters:
subscribers- A list of subscribers to notify.- Returns:
this
-
subscriptionName
@Stability(Stable) public CfnAnomalySubscriptionMixinProps.Builder subscriptionName(String subscriptionName) Sets the value ofCfnAnomalySubscriptionMixinProps.getSubscriptionName()- Parameters:
subscriptionName- The name for the subscription.- Returns:
this
-
threshold
Sets the value ofCfnAnomalySubscriptionMixinProps.getThreshold()- Parameters:
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.- Returns:
this
-
thresholdExpression
@Stability(Stable) public CfnAnomalySubscriptionMixinProps.Builder thresholdExpression(String thresholdExpression) Sets the value ofCfnAnomalySubscriptionMixinProps.getThresholdExpression()- Parameters:
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 areANOMALY_TOTAL_IMPACT_ABSOLUTEandANOMALY_TOTAL_IMPACT_PERCENTAGE, corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types areANDandOR. The match optionGREATER_THAN_OR_EQUALis required. Values must be numbers between 0 and 10,000,000,000 in string format. One of Threshold or ThresholdExpression is required forAWS::CE::AnomalySubscription. You cannot specify both.For further information, see the Examples section of this page.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnomalySubscriptionMixinProps>- Returns:
- a new instance of
CfnAnomalySubscriptionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-