Created
December 6, 2019 03:18
-
-
Save GeneralTesler/d7c5ff87214a23df2e92327b3b2882a3 to your computer and use it in GitHub Desktop.
boto3 list EC2 instance APIs using resource handler
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 | |
if __name__ == "__main__": | |
session = boto3.session.Session(region_name="us-east-1") | |
resource = session.resource("ec2") | |
operations = resource.instances._handler.service_context.service_model.operation_names | |
[print(op) for op in operations] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment