1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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
}
}
}
Contenido relevante
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 3 años
- OFICIAL DE AWSActualizada hace un año
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?