# Copyright (c) 2020, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.

from . import AWSObject


class CostCategory(AWSObject):
    resource_type = "AWS::CE::CostCategory"

    props = {
        'Name': (basestring, True),
        'Rules': (basestring, True),
        'RuleVersion': (basestring, True),
    }

# Copyright (c) 2012-2021, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
# Resource specification version: 31.0.0


from . import AWSObject
from . import AWSProperty
from .validators import double


class AnomalyMonitor(AWSObject):
    resource_type = "AWS::CE::AnomalyMonitor"

    props = {
        'MonitorDimension': (basestring, False),
        'MonitorName': (basestring, True),
        'MonitorSpecification': (basestring, False),
        'MonitorType': (basestring, True),
    }


class Subscriber(AWSProperty):
    props = {
        'Address': (basestring, True),
        'Status': (basestring, False),
        'Type': (basestring, True),
    }


class AnomalySubscription(AWSObject):
    resource_type = "AWS::CE::AnomalySubscription"

    props = {
        'Frequency': (basestring, True),
        'MonitorArnList': ([basestring], True),
        'Subscribers': ([Subscriber], True),
        'SubscriptionName': (basestring, True),
        'Threshold': (double, True),
    }


class CostCategory(AWSObject):
    resource_type = "AWS::CE::CostCategory"

    props = {
        'Name': (basestring, True),
        'RuleVersion': (basestring, True),
        'Rules': (basestring, True),
    }

Update CE per 2021-03-11 changes