CfnAnomalySubscriptionProps
- class aws_cdk.aws_ce.CfnAnomalySubscriptionProps(*, frequency, monitor_arn_list, subscribers, subscription_name, resource_tags=None, threshold=None, threshold_expression=None)
Bases:
object
Properties for defining a
CfnAnomalySubscription
.- Parameters:
frequency (
str
) – 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 .monitor_arn_list (
Sequence
[str
]) – A list of cost anomaly monitors.subscribers (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,SubscriberProperty
,Dict
[str
,Any
]]]]) – A list of subscribers to notify.subscription_name (
str
) – The name for the subscription.resource_tags (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,ResourceTagProperty
,Dict
[str
,Any
]]],None
]) – Tags to assign to subscription.threshold (
Union
[int
,float
,None
]) – (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 forAWS::CE::AnomalySubscription
. You cannot specify both.threshold_expression (
Optional
[str
]) –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
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 forAWS::CE::AnomalySubscription
. You cannot specify both. For further information, see the Examples section of this page.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_ce as ce cfn_anomaly_subscription_props = ce.CfnAnomalySubscriptionProps( frequency="frequency", monitor_arn_list=["monitorArnList"], subscribers=[ce.CfnAnomalySubscription.SubscriberProperty( address="address", type="type", # the properties below are optional status="status" )], subscription_name="subscriptionName", # the properties below are optional resource_tags=[ce.CfnAnomalySubscription.ResourceTagProperty( key="key", value="value" )], threshold=123, threshold_expression="thresholdExpression" )
Attributes
- 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 .
- monitor_arn_list
A list of cost anomaly monitors.
- resource_tags
Tags to assign to subscription.
- subscribers
A list of subscribers to notify.
- subscription_name
The name for the subscription.
- 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.
- threshold_expression
//docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_Impact.html>`_ for more details). The supported nested expression types are
AND
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.
- See:
- Type:
An `Expression <https
- Type:
//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
andANOMALY_TOTAL_IMPACT_PERCENTAGE
, corresponding to an anomaly’s TotalImpact and TotalImpactPercentage, respectively (see `Impact <https