Created
September 17, 2018 09:10
-
-
Save tecmaverick/e29852276771855ce9fdeb5031282ddf to your computer and use it in GitHub Desktop.
List all AWS Service APIs names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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