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) AWS::CE::AnomalySubscription.ResourceTags
.resourceTags
(IResolvable resourceTags) AWS::CE::AnomalySubscription.ResourceTags
.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
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
-
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
-
subscribers
A list of subscribers to notify.- Parameters:
subscribers
- A list of subscribers to notify. This parameter is required.- Returns:
this
-
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
-
subscriptionName
The name for the subscription.- Parameters:
subscriptionName
- The name for the subscription. This parameter is required.- Returns:
this
-
resourceTags
AWS::CE::AnomalySubscription.ResourceTags
.- Parameters:
resourceTags
-AWS::CE::AnomalySubscription.ResourceTags
. This parameter is required.- Returns:
this
-
resourceTags
@Stability(Stable) public CfnAnomalySubscription.Builder resourceTags(List<? extends Object> resourceTags) AWS::CE::AnomalySubscription.ResourceTags
.- Parameters:
resourceTags
-AWS::CE::AnomalySubscription.ResourceTags
. This parameter is required.- Returns:
this
-
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
-
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
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAnomalySubscription>
- Returns:
- a newly built instance of
CfnAnomalySubscription
.
-