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.
Usage
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('bhttps://foix.execute-api.us-east-1.amazonaws.com/dev/')
>> 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.
Metadata
Release files for apigw-iam-client 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| apigw_iam_client-0.1.tar.gz | 2.2 kB | Details |
Release files / apigw_iam_client-0.1.tar.gz
| Download URL | apigw_iam_client-0.1.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
921f6062916426277fc617c36fef94ca258ccc3fe4c198a634b760a3040be9a6
|
|
BLAKE2b-256 checksum How to use checksums |
83a604058cfc10a396475f0345b526bfeeb69b7c83481d490854040acbfa4027
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|