Created
December 6, 2019 03:46
-
-
Save GeneralTesler/66cfc64c7a62f01cf8096778f1c8d04d to your computer and use it in GitHub Desktop.
boto3 list available operations per service
This file contains 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 | |
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