> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ConnectionConfig

> atoti\_ai\_amazon\_bedrock.ConnectionConfig(\
>
>     \*,\
>
>     *aws\_access\_key*: [str](https://docs.python.org/3/builtins/stdtypes.html#str) | [None](https://docs.python.org/3/builtins/constants.html#None) = `None`,\
>
>     *aws\_secret\_key*: [str](https://docs.python.org/3/builtins/stdtypes.html#str) | [None](https://docs.python.org/3/builtins/constants.html#None) = `None`,\
>
>     *aws\_session\_token*: [str](https://docs.python.org/3/builtins/stdtypes.html#str) | [None](https://docs.python.org/3/builtins/constants.html#None) = `None`,\
>
>     *aws\_region*: [str](https://docs.python.org/3/builtins/stdtypes.html#str) | [None](https://docs.python.org/3/builtins/constants.html#None) = `None`,\
>
>     *timeout*: [timedelta](https://docs.python.org/3/library/datetime.html#datetime.timedelta) | [None](https://docs.python.org/3/builtins/constants.html#None) = `None`,\
>
>     *connection\_timeout*: [timedelta](https://docs.python.org/3/library/datetime.html#datetime.timedelta) | [None](https://docs.python.org/3/builtins/constants.html#None) = `None`,\
>
>     *connection\_acquisition\_timeout*: [timedelta](https://docs.python.org/3/library/datetime.html#datetime.timedelta) | [None](https://docs.python.org/3/builtins/constants.html#None) = `None`,\
>
>     *async\_read\_timeout*: [timedelta](https://docs.python.org/3/library/datetime.html#datetime.timedelta) | [None](https://docs.python.org/3/builtins/constants.html#None) = `None`,\
>
> )

Configuration for connecting to Amazon Bedrock.

```pycon theme={"languages":{"custom":["/engine/python-sdk/6.2/languages/pycon.tmLanguage.json"]}}
>>> import atoti as tt
>>> import os
>>> from atoti_ai import AiConfig
>>> from atoti_ai_amazon_bedrock import ConnectionConfig, ChatConfig
>>> connection_config = ConnectionConfig(
...     aws_access_key=os.environ["AWS_ACCESS_KEY_ID"],
...     aws_secret_key=os.environ["AWS_SECRET_ACCESS_KEY"],
...     aws_region="eu-west-3",
... )
>>> chat_config = ChatConfig(
...     model="eu.anthropic.claude-sonnet-4-6",
... )
>>> ai_config = AiConfig(connection=connection_config, chat=chat_config)
>>> session_config = tt.SessionConfig(ai=ai_config)
```

**See also**:
The other [`ConnectionConfig`](./atoti_ai.config.ConnectionConfig#atoti_ai.ConnectionConfig) implementations.

### Attributes

#### *aws\_access\_key*

AWS access key ID for authentication.

#### *aws\_secret\_key*

AWS secret access key for authentication.

#### *aws\_session\_token*

Optional AWS session token for temporary credentials.

#### *aws\_region*

AWS region where Bedrock models are available (for example, `eu-west-3`).

#### *timeout*

Timeout for Bedrock API requests.

#### *connection\_timeout*

Timeout for establishing connections to Bedrock.

#### *connection\_acquisition\_timeout*

Timeout for acquiring a connection from the pool.

#### *async\_read\_timeout*

Timeout for reading asynchronous responses.
