Skip to main content

AWSEventsHandler

@webda/aws


Interface: AWSEventsHandler

Defined in: aws/src/services/lambdaserver.service.ts:23

Handler for AWS Events definition

Any service implementing these two methods receives the AWS events that are not API Gateway requests

Methods​

handleAWSEvent()​

handleAWSEvent(source, events): Promise<void>

Defined in: aws/src/services/lambdaserver.service.ts:35

Process the event

Parameters​

source​

string

the event source (aws:s3, aws:sqs, ...)

events​

any

the raw event

Returns​

Promise<void>


isAWSEventHandled()​

isAWSEventHandled(source, events): boolean

Defined in: aws/src/services/lambdaserver.service.ts:29

Return true if event is handled

Parameters​

source​

string

the event source (aws:s3, aws:sqs, ...)

events​

any

the raw event

Returns​

boolean