Created
July 31, 2013 06:54
-
-
Save siroken3/6119893 to your computer and use it in GitHub Desktop.
AWSのサポートケース一覧を取得するためのbotocoreコード。AWS_SECRET_KEYと AWS_ACCESS_KEYを切り替えれば(他にもbotocoreに渡す方法がある)複数AWSアカウントにまたがって取得することも可能
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 botocore.session | |
| s = botocore.session.get_session() | |
| support = s.get_service('support') | |
| ep = support.get_endpoint('ap-northeast-1') | |
| op = support.get_operation('DescribeCases') | |
| code, data = op.call(ep, includeResolvedCases=True, maxResults=100, language='ja') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment