idea-aws
    Preparing search index...

    Class GenericControllerAbstract

    An abstract class to inherit to manage some resources with an AWS Lambda function.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    event: any
    logger: LambdaLogger = ...

    Methods

    • Default ending function for the Lambda.

      Parameters

      • error: any = null
      • Optionalres: any

      Returns any

    • Get the current log level for the current Lambda function's logger. Note: "FATAL" means that no log will be printed.

      Returns "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL"

    • The main function (to override), that handles the request and must terminate invoking the method done.

      Returns Promise<any>

    • Set the log level for the current Lambda function's logger.

      Parameters

      • logLevel: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR" | "FATAL"

      Returns void

    • Raise the log level of the current Lambda function's logger to "FATAL", hence avoiding printing any log.

      Returns void