Search code examples
javaamazon-web-servicesaws-sdkaws-step-functions

Get ARN from AWS Step Functions Activity Name


Is there a way to get ARN of a Step Functions "Activity" from the "Name" of the activity using Java? For example, the ARN is in the following format:

arn:aws:states:us-east-1:acct-number:activity:activity-name

Is there an API available that looks something like this: getActivityArn(activityName)


Solution

  • There is no function like that, but you could use listActivities(), which returns a list of activities including their Name and ARN. You could then filter/iterate the list to extract an ARN given a Name.