-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(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.
Comments
wong-a
added
feature-request
A feature should be added or improved.
needs-triage
This issue or PR still needs to be triaged.
labels
Jul 20, 2023
github-actions
bot
added
the
@aws-cdk/aws-stepfunctions
Related to AWS StepFunctions
label
Jul 20, 2023
wong-a
changed the title
(aws_stepfunctions): Expose StateMachineRevisionId attribute from StateMachine L2 construct
(stepfunctions): Expose StateMachineRevisionId attribute from StateMachine L2 construct
Jul 20, 2023
mergify bot
pushed a commit
that referenced
this issue
Jul 20, 2023
…ine (#26443) Expose `stateMachineRevisionId` as a readonly property to StateMachine whose value is a reference to the `StateMachineRevisionId` attribute of the underlying CloudFormation resource. Closes #26440 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
bmoffatt
pushed a commit
to bmoffatt/aws-cdk
that referenced
this issue
Jul 29, 2023
…ine (aws#26443) Expose `stateMachineRevisionId` as a readonly property to StateMachine whose value is a reference to the `StateMachineRevisionId` attribute of the underlying CloudFormation resource. Closes aws#26440 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:/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: