Pyjo.AWS - Amazon Web Services for Pyjoyment¶
import Pyjo.AWS.Client
import Pyjo.AWS.Protocol.Query
import Pyjo.AWS.Protocol.RestJSON
sts = Pyjo.AWS.Client.new(service='sts')
print(sts.call(Pyjo.AWS.Protocol.Query.new('GetCallerIdentity', version='2011-06-15')).at('Arn').text)
lambda_ = Pyjo.AWS.Client.new(service='lambda', region='eu-central-1')
print(lambda_.call(Pyjo.AWS.Protocol.RestJSON.new('GET', '/2018-10-31/layers'))['Layers'])
Pyjo.AWS is the namespace of the APIs of Amazon Web Services for
Pyjoyment, which Pyjo.UserAgent calls, without an SDK:
Pyjo.AWS.Client calls them, blocking and non-blocking, with the
protocols of Pyjo.AWS.Protocol, Pyjo.AWS.SigV4 signs its
requests, with the credentials of
Pyjo.AWS.Credentials, which Pyjo.AWS.Credentials.Chain finds as
the SDKs of AWS do, and Pyjo.AWS.Config reads the shared configuration
files of AWS.
It is for a program that needs a few calls of AWS and no dependency for them, not a replacement of the SDKs of AWS, which have every API.
See also¶
Pyjo.AWS.Client, Pyjo.AWS.SigV4, Pyjo.AWS.Credentials,
Pyjo.AWS.Config, Pyjo.UserAgent, Pyjoyment, https://github.com/pyjoyment/Pyjoyment.
API
- Pyjo.AWS.Client - Client of an API of AWS
- Pyjo.AWS.Config - Shared configuration files of AWS
- Pyjo.AWS.Credentials - Credentials of AWS
- Pyjo.AWS.Credentials.AssumeRole - Credentials of a role of STS
- Pyjo.AWS.Credentials.Chain - Chain of the providers of credentials
- Pyjo.AWS.Credentials.Container - Credentials of a container of ECS or EKS
- Pyjo.AWS.Credentials.Environment - Credentials of the environment
- Pyjo.AWS.Credentials.InstanceMetadata - Credentials of the instance metadata of EC2
- Pyjo.AWS.Credentials.Login - Credentials of aws login
- Pyjo.AWS.Credentials.Process - Credentials of an external program
- Pyjo.AWS.Credentials.Profile - Credentials of a profile of the shared files
- Pyjo.AWS.Credentials.Provider - Base class of the providers of credentials
- Pyjo.AWS.Credentials.SSO - Credentials of IAM Identity Center
- Pyjo.AWS.Credentials.Static - Credentials that do not change
- Pyjo.AWS.Credentials.WebIdentity - Credentials of a role of a web identity
- Pyjo.AWS.ECDSA - Signatures of ES256 of a key of P-256
- Pyjo.AWS.Error - Error of an API of AWS
- Pyjo.AWS.Protocol - Base class of the calls of the protocols of AWS
- Pyjo.AWS.Protocol.JSON - Call of the JSON protocol of AWS
- Pyjo.AWS.Protocol.Query - Call of the query protocol of AWS
- Pyjo.AWS.Protocol.RestJSON - Call of the REST-JSON protocol of AWS
- Pyjo.AWS.Protocol.RestXML - Call of the REST-XML protocol of AWS
- Pyjo.AWS.SigV4 - Signature Version 4 of AWS