Session

These are the main modules that connect to AWS. Since AwAws was orginally intended to be used from Lamda functions, these modules implement caching techniques to take adavanatge of Lambda function warm starts.

Generally speaking, the modules here are only used by other modules in the AwAws package. That said, this module can be used directly to connect to AWS using either boto3 or botocore. The advantage is that you still get to take advantage of the caching which can give a significant speed improvement when using lambda functions.

Session

Manage AWS client sessions - usually built directly through botocore.

class AwAws.Session.session.Session(region_name=None, role_arn=None)
get_client(service)

set up an AWS session

set_region(region_name=None)

we need to set a region if it is unset at this point

Resource

Manage AWS resource session - these are usually implemented through boto3.

class AwAws.Session.resource.Resource(region_name=None)
get_resource(resource)

set up and AWS resource

set_region_name(region_name=None)

we need to set a region name if it is not set yet