1 Risposta
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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.
Contenuto pertinente
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa