1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
0
If you return the count in a header from the Lambda function you can just reference it using integration.response.header.header-name
.
To return a header from the Lambda function just return something like this:
{
"statusCode": 200,
"headers": {
"header1Name": "header1Value",
"header2Name": "header2Value",
},
"body": "...",
}
For more information see here. You will see that it describes that only headers from the backend can be mapped to headers in the response.
Contenido relevante
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 2 años