1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Use a Choice state to check for existence of array[0]. Something like this:
{
"StartAt": "CheckArrayEmpty",
"States": {
"CheckArrayEmpty": {
"Type": "Choice",
"Choices": [
{
"Variable": "$.array[0]",
"IsPresent": true,
"Next": "NotEmpty"
}
],
"Default": "Empty"
},
"NotEmpty": {
"Type": "Pass",
"End": true
},
"Empty": {
"Type": "Pass",
"End": true
}
}
}
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 5 ans
Thank you for replying Uri. I came up with a work-around outside of this step function but I would still like to know about catching the error. Is this a bug in the service?