(stepfunctions): Expose StateMachineRevisionId attribute from StateMachine L2 construct #26440
Closed
1 of 2 tasks
Labels
@aws-cdk/aws-stepfunctions
Related to AWS StepFunctions
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
Describe the feature
AWS::StepFunctions::StateMachine
has aStateMachineRevisionId
read-only attribute which changes when the state machine is updated and produces a new revision. It can be used withCfnStateMachineVersion
to automatically create a new state machine version when there is a new revision.StateMachine should expose this property directly for convenience.
The current workaround is read the value from the L1. For example:
Use Case
StateMachineRevisionId is not accessible without using the L1. See above
Proposed Solution
Add a readonly property
stateMachineRevisionId
toStateMachine
's properties. It can be assigned a value after the constructor creates the CfnStateMachine instance here: https://github.com/aws/aws-cdk/blob/efb0a4c785bb794e3ee2e7444b29e4a00d7d28f1/packages/aws-cdk-lib/aws-stepfunctions/lib/state-machine.ts#L434C11-L442Other Information
No response
Acknowledgements
CDK version used
2.87.0
Environment details (OS name and version, etc.)
MacOS 12.6.5
The text was updated successfully, but these errors were encountered: