Skip to main content

AWS API Gateway Client Lib for IAM Authorized APIs

Project description

AWS API Gateway IAM Authorizer Client

This provides a simple base class for AWS API Gateway clients to provide AWS V4 request signing for http requests when working against APIs using IAM Authorization.


Assuming the rest api endpoint

from apigw_iam_client import Client

class MyApi(Client):

   def list_oranges(self, store_id='all'):
       return self.get("%s/oranges" % store_id).json()
>> client = MyApi('b')
>> client.list_oranges()
{'version': '0.1.0', 'oranges': []}

The client also supports obtaining credentials via STS Role Assume to access the underlying api, by passing a role arn and optional session_name.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for apigw-iam-client, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size apigw_iam_client-0.1.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page