CfnAnomalyMonitorPropsMixin

class aws_cdk.mixins_preview.aws_ce.mixins.CfnAnomalyMonitorPropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::CE::AnomalyMonitor resource is a Cost Explorer resource type that continuously inspects your account’s cost data for anomalies, based on MonitorType and MonitorSpecification .

The content consists of detailed metadata and the current status of the monitor object.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ce-anomalymonitor.html

CloudformationResource:

AWS::CE::AnomalyMonitor

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_monitor_props_mixin = ce_mixins.CfnAnomalyMonitorPropsMixin(ce_mixins.CfnAnomalyMonitorMixinProps(
    monitor_dimension="monitorDimension",
    monitor_name="monitorName",
    monitor_specification="monitorSpecification",
    monitor_type="monitorType",
    resource_tags=[ce_mixins.CfnAnomalyMonitorPropsMixin.ResourceTagProperty(
        key="key",
        value="value"
    )]
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::CE::AnomalyMonitor.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['monitorDimension', 'monitorName', 'monitorSpecification', 'monitorType', 'resourceTags']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

ResourceTagProperty

class CfnAnomalyMonitorPropsMixin.ResourceTagProperty(*, key=None, value=None)

Bases: object

The tag structure that contains a tag key and value.

Parameters:
  • key (Optional[str]) – The key that’s associated with the tag.

  • value (Optional[str]) – The value that’s associated with the tag.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ce-anomalymonitor-resourcetag.html

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.CfnAnomalyMonitorPropsMixin.ResourceTagProperty(
    key="key",
    value="value"
)

Attributes

key

The key that’s associated with the tag.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ce-anomalymonitor-resourcetag.html#cfn-ce-anomalymonitor-resourcetag-key

value

The value that’s associated with the tag.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ce-anomalymonitor-resourcetag.html#cfn-ce-anomalymonitor-resourcetag-value