Skip to content

Instantly share code, notes, and snippets.

Created December 6, 2019 03:46
What would you like to do?
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