import { ResourceBase } from '../resource' ; import { Value , List } from '../dataTypes' ; export class WafAction { Type ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class ActivatedRule { Action ? : WafAction ; Priority ! : Value < number > ; RuleId ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface WebACLProperties { DefaultAction : WafAction ; MetricName : Value < string > ; Name : Value < string > ; Rules ? : List < ActivatedRule > ; } export default class WebACL extends ResourceBase < WebACLProperties > { static WafAction = WafAction ; static ActivatedRule = ActivatedRule ; constructor ( properties ) { super ( 'AWS::WAF::WebACL' , properties ) ; } }