import { ResourceBase } from '../resource' ; import { Value , List } from '../dataTypes' ; export class Condition { Type ? : Value < string > ; Value ? : Value < string > ; Key ? : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface EventBusPolicyProperties { EventBusName ? : Value < string > ; Condition ? : Condition ; Action ? : Value < string > ; StatementId : Value < string > ; Statement ? : { [ key ] : any ; } ; Principal ? : Value < string > ; } export default class EventBusPolicy extends ResourceBase < EventBusPolicyProperties > { static Condition = Condition ; constructor ( properties ) { super ( 'AWS::Events::EventBusPolicy' , properties ) ; } }