Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12231

Convert Step Function Json to Definition object using Activity

$
0
0

I am new to CDK L2 construct. I am trying to create L2 construct for one of my step function definition. Currently it is in JSON Format want to make it to code. I tried using stepFunction.Activity but it is not taking Resource i.e. arn, Comment, Retry and catch attributes. Can someone help me out on functions usage. Read through the documentation but could not get the right function.

JSON :

{"Comment": "random-user-to-role-workflow","StartAt": "Notification Fail","States": {"Notification Fail": {"Next": "Failure","Resource": "arn:aws:states:us-india-1:8898762019:activity:Notification","Comment": "Failure Notification","Retry": [                {"ErrorEquals": ["States.ALL"                    ],"MaxAttempts": 3,"BackoffRate": 2                }            ],"Catch": [                {"ResultPath": "$.error","Next": "Failure","ErrorEquals": ["States.ALL"                    ]                }            ],"Type": "Task"        },"Success": {"Type": "Succeed"        },"Failure": {"Type": "Fail"        }    }}

Viewing all articles
Browse latest Browse all 12231

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>