Skip to main content

sqsHandler

Callable

  • sqsHandler<D, Configuration, Service, Profile, Payload>(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

    • D
    • Configuration = undefined
    • Service: undefined | DefaultServices = undefined
    • Profile: MaybeGenericParser = undefined
    • Payload: MaybeGenericParser = undefined

    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> }
      • optional_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>