-
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
aws-stepfunctions-tasks: Enable creation of 'sync' states for AWS optimized integrations #21915
Comments
As always, we can use |
+1 on this issue. This would be a big help! |
From further research, the feature is already available yet not well documented. The way to define synchronous optimized integration steps (for those steps that support it) in CDK is by specifying the integration pattern property. See
import {IntegrationPattern} from "aws-cdk-lib/aws-stepfunctions";
// ...
{
// ...other params
integrationPattern: IntegrationPattern.RUN_JOB
} |
|
### Issue # (if applicable) Closes #21915 . (Doesn't close it, but solves a point that was mentioned here) ### Reason for this change The prop is pretty useful, but hasn't received enough documentation from my perspective. This adds documentation to the overview `README` as well it's own jsdoc. ### Description of changes Added a section for the `integrationPattern` into the README, and updated the jsdoc to include more detailed information. ### Description of how you validated changes No validation. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
### Issue # (if applicable) Closes #21915 . (Doesn't close it, but solves a point that was mentioned here) ### Reason for this change The prop is pretty useful, but hasn't received enough documentation from my perspective. This adds documentation to the overview `README` as well it's own jsdoc. ### Description of changes Added a section for the `integrationPattern` into the README, and updated the jsdoc to include more detailed information. ### Description of how you validated changes No validation. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
I've tried |
Describe the feature
For integrated services such as AWS Batch and Amazon ECS, Step Functions can wait for a request to complete before progressing to the next state. To have Step Functions wait, specify the "Resource" field in your task state definition with the .sync suffix appended after the resource URI.
https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync
This feature is not yet available in CDK.
Use Case
Creating synchronized state machines
Proposed Solution
Add
syncronized
property of typeboolean
to all optimized integration tasks that support it.If set, the resource key for the task will concatenate the
.sync
suffix at the end of the value.Example:
from
"Resource": "arn:aws:states:::batch:submitJob"
to (withsyncronized: true
)"Resource": "arn:aws:states:::batch:submitJob.sync"
,Other Information
No response
Acknowledgements
CDK version used
2.40.0 (build 56ba2ab)
Environment details (OS name and version, etc.)
Ubuntu 20.04.4 LTS
The text was updated successfully, but these errors were encountered: