модуль 'botocore.client' не имеет атрибута 'TimestreamQuery'

У меня есть такая функция:

      def init_clients(profile:str, region:str) -> Tuple[
        botocore.client.TimestreamQuery,
        botocore.client.TimestreamWrite]:

    session = boto3.Session(profile_name='superuser', region_name='eu-west-1')
    query_client = session.client('timestream-query')
    write_client = session.client('timestream-write',
                                  config=Config(
                                      read_timeout=20,
                                      max_pool_connections = 5000,
                                      retries={'max_attempts': 10})
                                  )
    return query_client, write_client

При запуске кода я получил следующую ошибку:

      AttributeError: module 'botocore.client' has no attribute 'TimestreamQuery'

Однако печать type из query_client и write_client дает:

      <class 'botocore.client.TimestreamQuery'>
<class 'botocore.client.TimestreamWrite'>

Что мне не хватает?

0 ответов

Другие вопросы по тегам