Skip to content

Commit 7df954c

Browse files
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

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/AwsSfnIntegTestDefaultTestDeployAssert8F32A58A.assets.json

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)