feat: porting scripts to python
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3
|
||||
r"""
|
||||
Documentation
|
||||
|
||||
License: This program is released under the MIT License
|
||||
"""
|
||||
|
||||
# Imports
|
||||
import boto3
|
||||
|
||||
|
||||
# Main function
|
||||
def main() -> None:
|
||||
client = boto3.client('apigateway')
|
||||
response = client.get_rest_apis()
|
||||
|
||||
print("RestAPIName,Scope")
|
||||
for i in response['items']:
|
||||
print(f'{i["name"]}, {i["endpointConfiguration"]["types"][0]}')
|
||||
|
||||
# Call main function
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user