Skip to content

Config schema: Define AWS "alb" function event properties #8020

Description

@medikoo

Use case description

It'll be nice to have alb event fully covered by schema validation

Proposed solution

  1. Define schema for following properties at provider level (that's part of Config schema: Define AWS "provider" properties #8022)
  • alb

Should be done directly in: lib/plugins/aws/provider/awsProvider.js:

// TODO: Complete schema, see https://github.com/serverless/serverless/issues/8016
serverless.configSchemaHandler.defineProvider('aws', {

  1. Define schema of all alb event properties

Should be done directly in: lib/plugins/aws/package/compile/events/alb/index.js:

// TODO: Complete schema, see https://github.com/serverless/serverless/issues/8020
this.serverless.configSchemaHandler.defineFunctionEvent('aws', 'alb', { type: 'object' });

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions