> ## 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.

# atoti_ai_amazon_bedrock.ConnectionConfig

### *final class* atoti\_ai\_amazon\_bedrock.ConnectionConfig

Configuration for connecting to Amazon Bedrock.

<Warning>
  This feature is [`experimental`](./atoti.experimental#atoti.experimental), its key is `"ai"`.
</Warning>

### Example

```pycon theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
>>> import os
>>> from atoti_ai import AiConfig
>>> from atoti_ai_amazon_bedrock import ConnectionConfig, ChatConfig
```

```pycon theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
>>> with tt.experimental({"ai"}):
...     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.mistral.pixtral-large-2502-v1:0",
...     )
...     ai_config = AiConfig(connection=connection_config, chat=chat_config)
```

<Callout icon="link">
  **See also**:
  The other [`ConnectionConfig`](./atoti_ai.connection_config#atoti_ai.ConnectionConfig) implementations.
</Callout>

#### async\_read\_timeout *: [timedelta](https://docs.python.org/3/library/datetime.html#datetime.timedelta) | [None](https://docs.python.org/3/library/constants.html#None)* *= None*

Timeout for reading asynchronous responses.

#### aws\_access\_key *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)* *= None*

#### aws\_region *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)* *= None*

#### aws\_secret\_key *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)* *= None*

#### aws\_session\_token *: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None)* *= None*

Optional AWS session token for temporary credentials.

#### connection\_acquisition\_timeout *: [timedelta](https://docs.python.org/3/library/datetime.html#datetime.timedelta) | [None](https://docs.python.org/3/library/constants.html#None)* *= None*

Timeout for acquiring a connection from the pool.

#### connection\_timeout *: [timedelta](https://docs.python.org/3/library/datetime.html#datetime.timedelta) | [None](https://docs.python.org/3/library/constants.html#None)* *= None*

Timeout for establishing connections to Bedrock.

#### timeout *: [timedelta](https://docs.python.org/3/library/datetime.html#datetime.timedelta) | [None](https://docs.python.org/3/library/constants.html#None)* *= None*

Timeout for Bedrock API requests.
