Slide 37
Slide 37 text
© 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
In Partnership with
リトライとエラーハンドリングの例
"ReleaseInventory": {
"Comment": "Task to release order items back to inventory",
"Type": "Task",
"Resource": "${ReleaseInventoryFunction.Arn}",
"TimeoutSeconds": 10,
"Retry": [{
"ErrorEquals": ["States.ALL"],
"IntervalSeconds": 1,
"MaxAttempts": 2,
"BackoffRate": 2.0
}],
"Catch": [{
"ErrorEquals": ["ErrReleaseInventory"],
"ResultPath": "$.error",
"Next": "sns:NotifyReleaseInventoryFail"
}],
"Next": "ProcessRefund"
},