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

<span id="atoti_ai_amazon_bedrock.ConnectionConfig" />

> atoti\_ai\_amazon\_bedrock.ConnectionConfig(<br />
>     \*,<br />
>     *aws\_access\_key*: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None) = `None`,<br />
>     *aws\_secret\_key*: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None) = `None`,<br />
>     *aws\_session\_token*: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None) = `None`,<br />
>     *aws\_region*: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None) = `None`,<br />
>     *timeout*: [timedelta](https://docs.python.org/3/library/datetime.html#datetime.timedelta) | [None](https://docs.python.org/3/library/constants.html#None) = `None`,<br />
>     *connection\_timeout*: [timedelta](https://docs.python.org/3/library/datetime.html#datetime.timedelta) | [None](https://docs.python.org/3/library/constants.html#None) = `None`,<br />
>     *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`,<br />
>     *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`,<br />
> )

Configuration for connecting to Amazon Bedrock.

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

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

### Attributes

<h4 id="atoti_ai_amazon_bedrock.ConnectionConfig.aws_access_key">
  *aws\_access\_key*
</h4>

AWS access key ID for authentication.

<h4 id="atoti_ai_amazon_bedrock.ConnectionConfig.aws_secret_key">
  *aws\_secret\_key*
</h4>

AWS secret access key for authentication.

<h4 id="atoti_ai_amazon_bedrock.ConnectionConfig.aws_session_token">
  *aws\_session\_token*
</h4>

Optional AWS session token for temporary credentials.

<h4 id="atoti_ai_amazon_bedrock.ConnectionConfig.aws_region">
  *aws\_region*
</h4>

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

<h4 id="atoti_ai_amazon_bedrock.ConnectionConfig.timeout">
  *timeout*
</h4>

Timeout for Bedrock API requests.

<h4 id="atoti_ai_amazon_bedrock.ConnectionConfig.connection_timeout">
  *connection\_timeout*
</h4>

Timeout for establishing connections to Bedrock.

<h4 id="atoti_ai_amazon_bedrock.ConnectionConfig.connection_acquisition_timeout">
  *connection\_acquisition\_timeout*
</h4>

Timeout for acquiring a connection from the pool.

<h4 id="atoti_ai_amazon_bedrock.ConnectionConfig.async_read_timeout">
  *async\_read\_timeout*
</h4>

Timeout for reading asynchronous responses.
