boto / boto3

AWS SDK for Python
https://aws.amazon.com/sdk-for-python/
Apache License 2.0
8.99k stars 1.86k forks source link

Port datapipline CLI list-runs command to boto #1029

Closed curenando closed 7 years ago

curenando commented 7 years ago

I've been trying to find documentation on the CLI list-runs equivalent in boto.

So far I haven't seen one or any applicable functionality in other methods.

This is needed in order to check on the status of particular components of a pipeline. For example, if I have a sqlActivity that goes into the "WAITING_ON_DEPENDENCIES" state I want to be able to alert and throw errors on that status.

Right now it appears the only option would be to bundle in the AWS CLI with my boto code and try to run the CLI command and regex the results.

dstufft commented 7 years ago

Hi there!

Under the covers the cli list-runscode is using query_objects and describe_objects, you can see that code at awscli/customizations/datapipeline/__init__.py#L390-L400.