yera.providers.aws_common

Shared AWS credential and logging helpers.

Symbols

def build_bedrock_runtime_client — Build a Bedrock runtime client from an AWSConnection config.
def build_boto3_session — Build a boto3 Session pinned to a specific profile and region.
def suppress_aws_logging — Silence chatty INFO/DEBUG logs from the AWS SDK chain.

build_bedrock_runtime_client

build_bedrock_runtime_client(
    connection: AWSConnection,
) → BaseClient

Build a Bedrock runtime client from an AWSConnection config.

Parameters

connection
type: AWSConnection

The AWS connection config supplying the profile and region used to construct the underlying boto3 session.

Returns

type: BaseClient

A boto3 BaseClient targeting the bedrock-runtime service, pinned to the connection's region and credential profile.

build_boto3_session

build_boto3_session(
    profile: str | None,
    region: str,
) → boto3.Session

Build a boto3 Session pinned to a specific profile and region.

Profile-level role assumption (source_profile + role_arn in ~/.aws/config) is handled by boto3.

suppress_aws_logging

suppress_aws_logging() → None

Silence chatty INFO/DEBUG logs from the AWS SDK chain.