20 lines
511 B
JSON
20 lines
511 B
JSON
{
|
|
"Comment": "SERVICE_SQS_SEND_AND_WAIT_FOR_TASK_TOKEN_WITH_HEARTBEAT",
|
|
"StartAt": "SendMessageWithWait",
|
|
"States": {
|
|
"SendMessageWithWait": {
|
|
"Type": "Task",
|
|
"Resource": "arn:aws:states:::sqs:sendMessage.waitForTaskToken",
|
|
"TimeoutSeconds": 60,
|
|
"HeartbeatSeconds": 5,
|
|
"Parameters": {
|
|
"QueueUrl.$": "$.QueueUrl",
|
|
"MessageBody": {
|
|
"Message.$": "$.Message",
|
|
"TaskToken.$": "$$.Task.Token"
|
|
}
|
|
},
|
|
"End": true
|
|
}
|
|
}
|
|
} |