import { ResourceBase } from '../resource' ; import { Value , List } from '../dataTypes' ; export class Range { EndTime ! : Value < string > ; StartTime ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class Dimension { Value ! : Value < string > ; Name ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class Configuration { MetricTimeZone ? : Value < string > ; ExcludedTimeRanges ? : List < Range > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface AnomalyDetectorProperties { MetricName : Value < string > ; Stat : Value < string > ; Configuration ? : Configuration ; Dimensions ? : List < Dimension > ; Namespace : Value < string > ; } export default class AnomalyDetector extends ResourceBase < AnomalyDetectorProperties > { static Range = Range ; static Dimension = Dimension ; static Configuration = Configuration ; constructor ( properties ) { super ( 'AWS::CloudWatch::AnomalyDetector' , properties ) ; } }