CfnAnomalySubscriptionPropsMixin
- class aws_cdk.mixins_preview.aws_ce.mixins.CfnAnomalySubscriptionPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::CE::AnomalySubscriptionresource (also referred to as an alert subscription) is a Cost Explorer resource type that sends notifications about specific anomalies that meet an alerting criteria defined by you.You can specify the frequency of the alerts and the subscribers to notify.
Anomaly subscriptions can be associated with one or more
`AWS::CE::AnomalyMonitor<https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalymonitor.html>`_ resources, and they only send notifications about anomalies detected by those associated monitors. You can also configure a threshold to further control which anomalies are included in the notifications.Anomalies that don’t exceed the chosen threshold and therefore don’t trigger notifications from an anomaly subscription will still be available on the console and from the
`GetAnomalies<https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_GetAnomalies.html>`_ API.- See:
- CloudformationResource:
AWS::CE::AnomalySubscription
- Mixin:
true
- 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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_ce import mixins as ce_mixins cfn_anomaly_subscription_props_mixin = ce_mixins.CfnAnomalySubscriptionPropsMixin(ce_mixins.CfnAnomalySubscriptionMixinProps( frequency="frequency", monitor_arn_list=["monitorArnList"], resource_tags=[ce_mixins.CfnAnomalySubscriptionPropsMixin.ResourceTagProperty( key="key", value="value" )], subscribers=[ce_mixins.CfnAnomalySubscriptionPropsMixin.SubscriberProperty( address="address", status="status", type="type" )], subscription_name="subscriptionName", threshold=123, threshold_expression="thresholdExpression" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::CE::AnomalySubscription.- Parameters:
props (
Union[CfnAnomalySubscriptionMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['frequency', 'monitorArnList', 'resourceTags', 'subscribers', 'subscriptionName', 'threshold', 'thresholdExpression']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
ResourceTagProperty
- class CfnAnomalySubscriptionPropsMixin.ResourceTagProperty(*, key=None, value=None)
Bases:
objectThe tag structure that contains a tag key and value.
Tagging is supported only for the following Cost Explorer resource types:
`AnomalyMonitor<https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalyMonitor.html>`_ ,`AnomalySubscription<https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_AnomalySubscription.html>`_ ,`CostCategory<https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_CostCategory.html>`_ .- Parameters:
key (
Optional[str]) – The key that’s associated with the tag.value (
Optional[str]) – The value that’s associated with the tag.
- 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.mixins_preview.aws_ce import mixins as ce_mixins resource_tag_property = ce_mixins.CfnAnomalySubscriptionPropsMixin.ResourceTagProperty( key="key", value="value" )
Attributes
- key
The key that’s associated with the tag.
- value
The value that’s associated with the tag.
SubscriberProperty
- class CfnAnomalySubscriptionPropsMixin.SubscriberProperty(*, address=None, status=None, type=None)
Bases:
objectThe recipient of
AnomalySubscriptionnotifications.- Parameters:
address (
Optional[str]) – The email address or SNS Topic Amazon Resource Name (ARN), depending on theType.status (
Optional[str]) – Indicates if the subscriber accepts the notifications.type (
Optional[str]) – The notification delivery channel.
- 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.mixins_preview.aws_ce import mixins as ce_mixins subscriber_property = ce_mixins.CfnAnomalySubscriptionPropsMixin.SubscriberProperty( address="address", status="status", type="type" )
Attributes
- address
The email address or SNS Topic Amazon Resource Name (ARN), depending on the
Type.
- status
Indicates if the subscriber accepts the notifications.
- type
The notification delivery channel.