Skip to content

Instantly share code, notes, and snippets.

@GeneralTesler
Created December 6, 2019 03:46
Show Gist options
  • Save GeneralTesler/66cfc64c7a62f01cf8096778f1c8d04d to your computer and use it in GitHub Desktop.
Save GeneralTesler/66cfc64c7a62f01cf8096778f1c8d04d to your computer and use it in GitHub Desktop.
boto3 list available operations per service
import boto3
import json
if __name__ == "__main__":
apis = []
session = boto3.session.Session(region_name="us-east-1")
[
apis.append({service: list(session.client(service)._PY_TO_OP_NAME.values())})
for service in session.get_available_services()
]
print(json.dumps(apis, indent=4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment