Skip to content

Redefine response Mapping template #295

Closed
@dobeerman

Description

@dobeerman

This is a (Help needed)

Description

For feature proposals:

  • State machine execution should return a static object with some parameters

Additional Data

  • Framework Version: 1.60.1:
  • Plugin version: 2.16.0:

I trying to change response template, but seems it doesn't works.
So, I've added the following lines to serverless.yml:

stepFunctions:
  stateMachines:
    myStateMachine:
      name: myStateMachine-${self:provider.stage}
      events:
        - http:
            path: mypath
            method: post
            response:
              template:
                application/json: |
                  {
                    "status": 200,
                    "info": "OK"
                  }

Is there any additional settings I have to add?

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