How to use the aioboto3.session.Session function in aioboto3

To help you get started, we’ve selected a few aioboto3 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github terrycain / aioboto3 / aioboto3 / session.py View on Github external
def resource(self, *args, **kwargs):
        result = super(Session, self).resource(*args, **kwargs)

        return result
github terrycain / aioboto3 / aioboto3 / __init__.py View on Github external
def setup_default_session(**kwargs):
    """
    Set up a default session, passing through any parameters to the session
    constructor. There is no need to call this unless you wish to pass custom
    parameters, because a default session will be created for you.
    """
    global DEFAULT_SESSION
    DEFAULT_SESSION = Session(**kwargs)