from api.config import aws_api
import boto3

# setup dynamodb table
class aws_instance():
    def __init__(self):
        self.session = None

    def _login(self):
        aws_region, aws_access_key_id, aws_access_secret = aws_api()
        return aws_region, aws_access_key_id, aws_access_secret

    def create_session(self):
        aws_region, aws_access_key_id, aws_access_secret = self._login()
        session = boto3.Session(region_name=aws_region,
                                aws_access_key_id=aws_access_key_id,
                                aws_secret_access_key=aws_access_secret)
        self.session = session

    def set_dynamodb_table(self, table):
        return self.session.resource('dynamodb').Table(table)

e2ff00e13c22b9adad54d1144629883e62e8a439
<mask token>


class aws_instance:
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class aws_instance:

    def __init__(self):
        self.session = None
    <mask token>

    def create_session(self):
        aws_region, aws_access_key_id, aws_access_secret = self._login()
        session = boto3.Session(region_name=aws_region, aws_access_key_id=
            aws_access_key_id, aws_secret_access_key=aws_access_secret)
        self.session = session

    def set_dynamodb_table(self, table):
        return self.session.resource('dynamodb').Table(table)

<mask token>


class aws_instance:

    def __init__(self):
        self.session = None

    def _login(self):
        aws_region, aws_access_key_id, aws_access_secret = aws_api()
        return aws_region, aws_access_key_id, aws_access_secret

    def create_session(self):
        aws_region, aws_access_key_id, aws_access_secret = self._login()
        session = boto3.Session(region_name=aws_region, aws_access_key_id=
            aws_access_key_id, aws_secret_access_key=aws_access_secret)
        self.session = session

    def set_dynamodb_table(self, table):
        return self.session.resource('dynamodb').Table(table)

from api.config import aws_api
import boto3


class aws_instance:

    def __init__(self):
        self.session = None

    def _login(self):
        aws_region, aws_access_key_id, aws_access_secret = aws_api()
        return aws_region, aws_access_key_id, aws_access_secret

    def create_session(self):
        aws_region, aws_access_key_id, aws_access_secret = self._login()
        session = boto3.Session(region_name=aws_region, aws_access_key_id=
            aws_access_key_id, aws_secret_access_key=aws_access_secret)
        self.session = session

    def set_dynamodb_table(self, table):
        return self.session.resource('dynamodb').Table(table)

from api.config import aws_api
import boto3

# setup dynamodb table
class aws_instance():
    def __init__(self):
        self.session = None

    def _login(self):
        aws_region, aws_access_key_id, aws_access_secret = aws_api()
        return aws_region, aws_access_key_id, aws_access_secret

    def create_session(self):
        aws_region, aws_access_key_id, aws_access_secret = self._login()
        session = boto3.Session(region_name=aws_region,
                                aws_access_key_id=aws_access_key_id,
                                aws_secret_access_key=aws_access_secret)
        self.session = session

    def set_dynamodb_table(self, table):
        return self.session.resource('dynamodb').Table(table)
