Skip to main content

snsHandler

Callable

  • snsHandler<D, Configuration, Service, Profile, Payload>(definition: D & SNSHandler<Configuration, Service, Profile, Payload>, __namedParameters?: { _kernel?: <Configuration, Service, Profile, Payload>(handler: SNSHandler<Configuration, Service, Profile, Payload>, events: SnsRecordSchema[], context: LambdaContext<Configuration, Service, Profile>) => Promise<Try<void>> }): D & EventHandlerFn<Configuration, Service, Profile>

  • Type parameters

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

    Parameters

    • definition: D & SNSHandler<Configuration, Service, Profile, Payload>
    • __namedParameters: { _kernel?: <Configuration, Service, Profile, Payload>(handler: SNSHandler<Configuration, Service, Profile, Payload>, events: SnsRecordSchema[], context: LambdaContext<Configuration, Service, Profile>) => Promise<Try<void>> } = {}
      • optional_kernel: <Configuration, Service, Profile, Payload>(handler: SNSHandler<Configuration, Service, Profile, Payload>, events: SnsRecordSchema[], context: LambdaContext<Configuration, Service, Profile>) => Promise<Try<void>> = handleSNSEvent

    Returns D & EventHandlerFn<Configuration, Service, Profile>