Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "Comment": "Sample Step function using activity",
- "StartAt": "ChoiceActivity1",
- "States": {
- "ChoiceActivity1": {
- "Type" : "Choice",
- "Choices": [
- {
- "Variable": "$.skipActivity1",
- "BooleanEquals": true,
- "Next": "SkipActivity1"
- }
- ],
- "Default": "Lambda1"
- },
- "Lambda1": {
- "Type": "Task",
- "Resource": "arn:aws:lambda:ap-northeast-1: xxxxxx:function:sample-step-function-start-1",
- "Next": "Activity1"
- },
- "Activity1": {
- "Type": "Task",
- "Resource": "arn:aws:states:ap-northeast-1: xxxxxx:activity:dmt-sample-activity1",
- "Next": "Lambda1-2"
- },
- "Lambda1-2": {
- "Type": "Task",
- "Resource": "arn:aws:lambda:ap-northeast-1: xxxxxx:function:sample-step-function-start-1",
- "Next": "ChoiceActivity2"
- },
- "SkipActivity1": {
- "Type": "Pass",
- "Next": "ChoiceActivity2"
- },
- "ChoiceActivity2": {
- "Type" : "Choice",
- "Choices": [
- {
- "Variable": "$.skipActivity2",
- "BooleanEquals": true,
- "Next": "SkipActivity2"
- }
- ],
- "Default": "Lambda2"
- },
- "Lambda2": {
- "Type": "Task",
- "Resource": "arn:aws:lambda:ap-northeast-1: xxxxxx:function:sample-step-function-2",
- "Next": "Activity2"
- },
- "Activity2": {
- "Type": "Task",
- "Resource": "arn:aws:states:ap-northeast-1: xxxxxx:activity:dmt-sample-activity2",
- "Next": "Lambda3"
- },
- "SkipActivity2": {
- "Type": "Pass",
- "Next": "Lambda3"
- },
- "Lambda3": {
- "Type": "Task",
- "Resource": "arn:aws:lambda:ap-northeast-1: xxxxxx:function:sample-step-function-3",
- "End": true
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement