Commit 7df954c
authored
feat(stepfunctions-tasks): support dynamic values for Glue Job Worker Type (#32453)
### Issue # (if applicable)
Closes #32359
### Reason for this change
Now, I can't put the workers type dynamic from payload input in the state machine because it only accept a enum type workerType that its a enum and only accepts the define workers. If i pass a string that references the payload input it shows an error.
### Description of changes
Turn the ENUM type `WorkerType` to a class-based implementation. This should be backward compatible as there's no change on user side.
### Description of how you validated changes
New integ tests that use dynamic value for Worker type. When invoking StateMachine with the JSON payload, it will fetch the data correctly and invoke the Glue job with the current worker type and number of workers.
### Checklist
- [ ] 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*1 parent 9d5ad93 commit 7df954c
File tree
14 files changed
+33139
-6
lines changed- packages
- @aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/glue
- integ.start-job-run-dynamic-worker-type.js.snapshot
- asset.14d52bdadae57c6ec2c7b715c5420ae5c3001a8252558f7219f6207e4f405a97.bundle
- aws-cdk-lib/aws-stepfunctions-tasks
- lib/glue
- test/glue
14 files changed
+33139
-6
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments