Skip to main content

sqsHandler

Callable

  • sqsHandler<Configuration, Service, Profile, Payload, D>(definition: D & SQSHandler<Configuration, Service, Profile, Payload>, options?: { _kernel?: <Configuration, Service, Profile, Payload>(handler: SQSHandler<Configuration, Service, Profile, Payload>, events: SqsRecordSchema[], context: LambdaContext<Configuration, Service, Profile>) => Promise<SQSBatchResponse | void> }): D & EventHandlerFn<Configuration, Service, Profile>
  • sqsHandler<Configuration, Service, Profile, D>(definition: SQSEnvelopeHandler<Configuration, Service, Profile>, options?: { _kernel?: <Configuration, Service, Profile, Payload>(handler: SQSHandler<Configuration, Service, Profile, Payload>, events: SqsRecordSchema[], context: LambdaContext<Configuration, Service, Profile>) => Promise<SQSBatchResponse | void> }): D & EventHandlerFn<Configuration, Service, Profile>

  • Type parameters

    Parameters

    • definition: D & SQSHandler<Configuration, Service, Profile, Payload>
    • optionaloptions: { _kernel?: <Configuration, Service, Profile, Payload>(handler: SQSHandler<Configuration, Service, Profile, Payload>, events: SqsRecordSchema[], context: LambdaContext<Configuration, Service, Profile>) => Promise<SQSBatchResponse | void> }

    Returns D & EventHandlerFn<Configuration, Service, Profile>