aws-doc-sdk-examples icon indicating copy to clipboard operation
aws-doc-sdk-examples copied to clipboard

Python - AWS Batch - Add snippets for submit job in Batch (onboard to SoS)

Open smgh2901 opened this issue 1 year ago • 2 comments

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

smgh2901 avatar Dec 07 '23 18:12 smgh2901

Possible duplicate of the issue from our Epic on this example: https://github.com/awsdocs/aws-doc-sdk-examples/issues/5757

rlhagerm avatar Dec 07 '23 18:12 rlhagerm

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.

ford-at-aws avatar Dec 20 '23 17:12 ford-at-aws