Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new aioboto context handler #10

Open
jmcgrath207 opened this issue May 27, 2020 · 0 comments
Open

new aioboto context handler #10

jmcgrath207 opened this issue May 27, 2020 · 0 comments

Comments

@jmcgrath207
Copy link

The new aioboto forces context handlers. This is the only way I could get it working.

aiobotocore==1.0.4


import aiobotocore
session = aiobotocore.get_session()


    async with session.create_client('kinesis', region_name='us-east-1', endpoint_url=aws_endpoint) as client:
        consumer = AsyncKinesisConsumer(
            stream_name='test-stream',
            custom_kinesis_client=client)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant