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 | Provenance | Actions |
|---|---|---|---|---|
| apigw_iam_client-0.1.tar.gz | 2.2 kB | Without provenance | Details for apigw_iam_client-0.1.tar.gz |
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
|
Security for apigw-iam-client 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.