Skip to content

Instantly share code, notes, and snippets.

@tecmaverick
Created September 17, 2018 09:10
Show Gist options
  • Save tecmaverick/e29852276771855ce9fdeb5031282ddf to your computer and use it in GitHub Desktop.
Save tecmaverick/e29852276771855ce9fdeb5031282ddf to your computer and use it in GitHub Desktop.
List all AWS Service APIs names
import boto3
s = boto3.Session()
with open("aws_service_apis.csv","wt") as f:
for session in s.get_available_services():
client = boto3.client(session)
x = dir(client)
for method_name in x:
if not "__" in method_name and \
not method_name[0] == "_" and \
not method_name == "meta" and \
not method_name == "waiter_names" and \
not method_name == "get_waiter":
APIName = str(method_name).title().replace("_","")
record = str(session) + "," + str(APIName)
f.write(record + '\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment