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 argparse | |
import boto3 | |
def get_value_for_quota_name(quotas, quota_name): | |
for quota in quotas: | |
if quota['QuotaName'] == quota_name: | |
return quota['Value'], quota['QuotaCode'] | |
return None, None |