Class CfnAnomalySubscription.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnomalySubscription>
- Enclosing class:
CfnAnomalySubscription
CfnAnomalySubscription
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The frequency that anomaly notifications are sent.monitorArnList
(List<String> monitorArnList) A list of cost anomaly monitors.resourceTags
(List<? extends Object> resourceTags) Tags to assign to subscription.resourceTags
(IResolvable resourceTags) Tags to assign to subscription.subscribers
(List<? extends Object> subscribers) A list of subscribers to notify.subscribers
(IResolvable subscribers) A list of subscribers to notify.subscriptionName
(String subscriptionName) The name for the subscription.(deprecated).thresholdExpression
(String thresholdExpression) An Expression object in JSON string format used to specify the anomalies that you want to generate alerts for.
-
Method Details
-
create
@Stability(Stable) public static CfnAnomalySubscription.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnAnomalySubscription.Builder
.
-
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 .
- Parameters:
frequency
- The frequency that anomaly notifications are sent. This parameter is required.- Returns:
this
- See Also:
-
monitorArnList
@Stability(Stable) public CfnAnomalySubscription.Builder monitorArnList(List<String> monitorArnList) A list of cost anomaly monitors.- Parameters:
monitorArnList
- A list of cost anomaly monitors. This parameter is required.- Returns:
this
- See Also:
-
subscribers
A list of subscribers to notify.- Parameters:
subscribers
- A list of subscribers to notify. This parameter is required.- Returns:
this
- See Also:
-
subscribers
@Stability(Stable) public CfnAnomalySubscription.Builder subscribers(List<? extends Object> subscribers) A list of subscribers to notify.- Parameters:
subscribers
- A list of subscribers to notify. This parameter is required.- Returns:
this
- See Also:
-
subscriptionName
The name for the subscription.- Parameters:
subscriptionName
- The name for the subscription. This parameter is required.- Returns:
this
- See Also:
-
resourceTags
Tags to assign to subscription.- Parameters:
resourceTags
- Tags to assign to subscription. This parameter is required.- Returns:
this
- See Also:
-
resourceTags
@Stability(Stable) public CfnAnomalySubscription.Builder resourceTags(List<? extends Object> resourceTags) Tags to assign to subscription.- Parameters:
resourceTags
- Tags to assign to subscription. This parameter is required.- Returns:
this
- See Also:
-
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.- Parameters:
threshold
- (deprecated). This parameter is required.- Returns:
this
- See Also:
-
thresholdExpression
@Stability(Stable) public CfnAnomalySubscription.Builder thresholdExpression(String 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_ABSOLUTE
andANOMALY_TOTAL_IMPACT_PERCENTAGE
, corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types areAND
andOR
. The match optionGREATER_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.
- 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_ABSOLUTE
andANOMALY_TOTAL_IMPACT_PERCENTAGE
, corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see Impact for more details). The supported nested expression types areAND
andOR
. The match optionGREATER_THAN_OR_EQUAL
is required. Values must be numbers between 0 and 10,000,000,000 in string format. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAnomalySubscription>
- Returns:
- a newly built instance of
CfnAnomalySubscription
.
-