import { ResourceBase } from '../resource' ; import { Value , List } from '../dataTypes' ; export class MetricTransformation { DefaultValue ? : Value < number > ; MetricName ! : Value < string > ; MetricNamespace ! : Value < string > ; MetricValue ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface MetricFilterProperties { FilterPattern : Value < string > ; LogGroupName : Value < string > ; MetricTransformations : List < MetricTransformation > ; } export default class MetricFilter extends ResourceBase < MetricFilterProperties > { static MetricTransformation = MetricTransformation ; constructor ( properties ) { super ( 'AWS::Logs::MetricFilter' , properties ) ; } }