# Path: aiobotocore/session.py
# def get_session(env_vars=None):
#     """
#     Return a new session object.
#     """
#     return AioSession(env_vars)


import uuid
import asyncio
from aiobotocore.session import get_session



async def go():
    session = get_session()
    async with session.create_client('dynamodb', region_name='us-west-2') as client:
        # Create random table name
        table_name = f'aiobotocore-{uuid.uuid4()}'

        print('Requesting table creation...')
        await client.create_table(
            TableName=table_name,
            AttributeDefinitions=[
                {
                    'AttributeName': 'testKey',
                    'AttributeType': 'S'
                },
            ],
            KeySchema=[
                {
                    'AttributeName': 'testKey',
                    'KeyType': 'HASH'
                },
            ],
            ProvisionedThroughput={
                'ReadCapacityUnits': 10,
                'WriteCapacityUnits': 10
            }
        )


# Path: aiobotocore/session.py
# def get_session(env_vars=None):
#     """
#     Return a new session object.
#     """
#     return AioSession(env_vars)


# Path: examples/dynamodb_create_table.py
import uuid
import asyncio
from aiobotocore.session import get_session




async def go():
    session = get_session()
    async with session.create_client('dynamodb', region_name='us-west-2') as client:
        # Create random table name
        table_name = f'aiobotocore-{uuid.uuid4()}'

        print('Requesting table creation...')
        await client.create_table(
            TableName=table_name,
            AttributeDefinitions=[
                {
                    'AttributeName': 'testKey',
                    'AttributeType': 'S'
                },
            ],
            KeySchema=[
                {
                    'AttributeName': 'testKey',
                    'KeyType': 'HASH'
                },
            ],
            ProvisionedThroughput={
                'ReadCapacityUnits': 10,
                'WriteCapacityUnits': 10
            }
        )


        print("Waiting for table to be created...")