Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. {
  2. "Comment": "Sample Step function using activity",
  3. "StartAt": "ChoiceActivity1",
  4. "States": {
  5. "ChoiceActivity1": {
  6. "Type" : "Choice",
  7. "Choices": [
  8. {
  9. "Variable": "$.skipActivity1",
  10. "BooleanEquals": true,
  11. "Next": "SkipActivity1"
  12. }
  13. ],
  14. "Default": "Lambda1"
  15. },
  16. "Lambda1": {
  17. "Type": "Task",
  18. "Resource": "arn:aws:lambda:ap-northeast-1: xxxxxx:function:sample-step-function-start-1",
  19. "Next": "Activity1"
  20. },
  21. "Activity1": {
  22. "Type": "Task",
  23. "Resource": "arn:aws:states:ap-northeast-1: xxxxxx:activity:dmt-sample-activity1",
  24. "Next": "Lambda1-2"
  25. },
  26. "Lambda1-2": {
  27. "Type": "Task",
  28. "Resource": "arn:aws:lambda:ap-northeast-1: xxxxxx:function:sample-step-function-start-1",
  29. "Next": "ChoiceActivity2"
  30. },
  31. "SkipActivity1": {
  32. "Type": "Pass",
  33. "Next": "ChoiceActivity2"
  34. },
  35. "ChoiceActivity2": {
  36. "Type" : "Choice",
  37. "Choices": [
  38. {
  39. "Variable": "$.skipActivity2",
  40. "BooleanEquals": true,
  41. "Next": "SkipActivity2"
  42. }
  43. ],
  44. "Default": "Lambda2"
  45. },
  46. "Lambda2": {
  47. "Type": "Task",
  48. "Resource": "arn:aws:lambda:ap-northeast-1: xxxxxx:function:sample-step-function-2",
  49. "Next": "Activity2"
  50. },
  51. "Activity2": {
  52. "Type": "Task",
  53. "Resource": "arn:aws:states:ap-northeast-1: xxxxxx:activity:dmt-sample-activity2",
  54. "Next": "Lambda3"
  55. },
  56. "SkipActivity2": {
  57. "Type": "Pass",
  58. "Next": "Lambda3"
  59. },
  60. "Lambda3": {
  61. "Type": "Task",
  62. "Resource": "arn:aws:lambda:ap-northeast-1: xxxxxx:function:sample-step-function-3",
  63. "End": true
  64. }
  65. }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement