Commit e0b725c
authored
feat(stepfunctions-tasks): add validations for EmrCreateCluster (#28529)
This PR adds validations for `EmrCreateCluster`.
## timeoutDurationMinutes
> Minimum value is 5 and maximum value is 1440.
https://docs.aws.amazon.com/emr/latest/APIReference/API_SpotProvisioningSpecification.html
## bidPrice and bidPriceAsPercentageOfOnDemandPrice
Both `bidPrice` and `bidPriceAsPercentageOfOnDemandPrice` are specified, the error occurs in Step Functions console.
```
Specify at most one of bidPrice or bidPriceAsPercentageOfOnDemandPrice value for the Spot Instance fleet : Master request. (Service: AmazonElasticMapReduce; Status Code: 400; Error Code: ValidationException; Request ID: xxxxxx; Proxy: null)
```
## targetOnDemandCapacity and targetSpotCapacity
> At least one of TargetSpotCapacity and TargetOnDemandCapacity should be greater than 0. For a master instance fleet, only one of TargetSpotCapacity and TargetOnDemandCapacity can be specified, and its value must be 1.
https://docs.aws.amazon.com/emr/latest/APIReference/API_InstanceFleetConfig.html
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*1 parent 9d8b06f commit e0b725c
20 files changed
Lines changed: 234 additions & 36 deletions
File tree
- packages
- @aws-cdk-testing/framework-integ/test/aws-lambda-nodejs/test/integ.latest.js.snapshot
- asset.eed45a32a57f32bc36031539054db0b27239d161061c528482bb55be51068664
- node_modules
- delay
- aws-cdk-lib/aws-stepfunctions-tasks
- lib/emr
- private
- test/emr
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments