Slide 7
Slide 7 text
© 2021, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
JSON (ASL) でワークフローを書くのが大変?
{
"StartAt": "Check Stock Price",
"Comment": "An example of itegrating lambda functtions in Step Functions state machine.",
"States": {
"Check Stock Price": {
"Type": "Task",
"Resource": "",
"Next": "Generate Buy/Sell recommendation"
},
"Generate Buy/Sell recommendation": {
"Type": "Task",
"Resource": "",
"ResultPath": "$.recommended_type",
"Next": "Request Human Approval"
},
"Request Human Approval": {
"Type": "Task",
"Resource": "arn::states:::sqs:sendMessage.waitForTaskToken",
"Parameters": {
"QueueUrl": "",
"MessageBody": {
"Input.$": "$",
"TaskToken.$": "$$.Task.Token"
}
},
"ResultPath": null,
"Next": "Buy or Sell?"
},
"Buy or Sell?": {
"Type": "Choice",
"Choices": [
{
"Variable": "$.recommended_type",
"StringEquals": "buy",
"Next": "Buy Stock"
},
{
"Variable": "$.recommended_type",
"StringEquals": "sell",
"Next": "Sell Stock"
}
]
},
"Buy Stock": {
"Type": "Task",