aws-stepfunctions-tasks: Allow setting task name #26887
Labels
@aws-cdk/aws-stepfunctions-tasks
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Describe the feature
When defining step function tasks, the api accepts
scope
andid
as inputs, and the id is used as the name of the task.e.g:
results to a definition like:
You can imagine a stack having multiple state machines with a task named
Publish Fail Status
but since cdk uses the id arg for the construct, it can't be reused.We should clearly be able to set construct id, separate from the name of the task.
e.g
Use Case
I need this feature, cause it's annoying to have to come up with a unique task name per state machine, and it hurts the readability of the definition in the UI.
Proposed Solution
Allow a
taskName
prop in the task properties.If supplied use it as the task name, If not, cdk should use the id to ensure this feature is backwards compatible
Acknowledgements
CDK version used
2.93.0
Environment details (OS name and version, etc.)
Mac OS 13.5.1
The text was updated successfully, but these errors were encountered: