aws-doc-sdk-examples
aws-doc-sdk-examples copied to clipboard
Python - AWS Batch - Add snippets for submit job in Batch (onboard to SoS)
Background story
I am looking for a way to call AWS Batch from a react button click event from the UI. I was directed to https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/batch/BatchClient.html and https://docs.aws.amazon.com/code-library/latest/ug/s3_example_cross_PAM_section.html for reference from stackoverflow but I couldn't see any example for this in Python.
Would be nice if an example code to trigger AWS batch from a Python SDK is provided that can then be used from a react UI.
Thanks
What does this example accomplish?
I want to call AWS Batch from a react app UI on a button click event.
Which AWS service(s)?
aws batch
Which AWS SDKs or tools?
- [ ] All languages
- [ ] .NET
- [ ] C++
- [ ] Go (v2)
- [ ] Java
- [ ] Java (v2)
- [ ] JavaScript
- [ ] JavaScript (v3)
- [ ] Kotlin
- [ ] PHP
- [X] Python
- [ ] Ruby
- [ ] Rust
- [ ] Swift
- [ ] Not applicable
Are there existing code examples to leverage?
No response
Do you have any reference code?
No response
Possible duplicate of the issue from our Epic on this example: https://github.com/awsdocs/aws-doc-sdk-examples/issues/5757
Hey! We cannot build buttons, but I will add a working code snippet showing how to submit a job using the Batch API via the Python SDK.