2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
1
Value null at 'stateMachineArn' failed to satisfy constraint: Member must not be null"
The same problem raised for me while posting data to DynamoDB table through API Gateway.
How I solved that error: By adding a Body-Mapping template in the Integration Request
In the API > whatever resource > whatever method > Integration Request > Body mapping template, added a new template "application/json" as given below
{
"TableName": "yourTableName",
"Item": {
"inputField1": {
"S": "$input.path('$.tableItemAttribute1')"
},
"inputField2": {
"S": "$input.path('$.tableItemAttribute2')"
},
"inputField3": {
"S": "$input.path('$.tableItemAttribute3')"
}
}
}
con risposta un anno fa
0
Thank You Anirban for your reply. I've solved too adding a Body-Mapping template in the Integration Request.
{ "input": "$util.escapeJavaScript($input.json('$'))", "stateMachineArn": "arn:aws:MyStateMachine" } it works, you must remember to redeploy the api gateway. Thanks. Dryuyd
con risposta un anno fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata un anno fa
- AWS UFFICIALEAggiornata 2 anni fa