import { ResourceBase } from '../resource' ; import { Value , List } from '../dataTypes' ; export class OnFailure { Destination ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class OnSuccess { Destination ! : Value < string > ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export class DestinationConfig { OnSuccess ? : OnSuccess ; OnFailure ? : OnFailure ; constructor ( properties ) { Object . assign ( this , properties ) ; } } export interface EventInvokeConfigProperties { FunctionName : Value < string > ; MaximumRetryAttempts ? : Value < number > ; DestinationConfig ? : DestinationConfig ; Qualifier : Value < string > ; MaximumEventAgeInSeconds ? : Value < number > ; } export default class EventInvokeConfig extends ResourceBase < EventInvokeConfigProperties > { static OnFailure = OnFailure ; static OnSuccess = OnSuccess ; static DestinationConfig = DestinationConfig ; constructor ( properties ) { super ( 'AWS::Lambda::EventInvokeConfig' , properties ) ; } }