CfnAnomalySubscriptionProps Struct
Properties for defining a CfnAnomalySubscription.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ce as ce } from 'aws-cdk-lib';
const cfnAnomalySubscriptionProps: ce.CfnAnomalySubscriptionProps = {
frequency: 'frequency',
monitorArnList: ['monitorArnList'],
subscribers: [{
address: 'address',
type: 'type',
// the properties below are optional
status: 'status',
}],
subscriptionName: 'subscriptionName',
// the properties below are optional
resourceTags: [{
key: 'key',
value: 'value',
}],
threshold: 123,
thresholdExpression: 'thresholdExpression',
};
Properties
notes
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 .
monitorArnListstring | IAnomalyMonitorRef[]monitor_arn_listtyping.List[typing.Union[str, IAnomalyMonitorRef]]monitorArnListList<String>MonitorArnListstring[]MonitorArnList*[]interface{}required#resourceTagsCfnAnomalySubscription.ResourceTagProperty[]resource_tagstyping.List[ResourceTagProperty]resourceTagsList<ResourceTagProperty>ResourceTagsResourceTagProperty[]ResourceTags*[]ResourceTagProperty#subscribersIResolvable | IResolvable | CfnAnomalySubscription.SubscriberProperty[]subscriberstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SubscriberProperty]]]subscribersIResolvableSubscribersIResolvableSubscribersinterface{}required#subscriptionNamestringsubscription_namestrsubscriptionNameStringSubscriptionNamestringSubscriptionName*stringrequired#notes
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.
thresholdExpressionstringthreshold_expressionstrthresholdExpressionStringThresholdExpressionstringThresholdExpression*string#notes
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.