yera.providers.aws_common
Shared AWS credential and logging helpers.
Symbols
build_bedrock_openai_client
build_bedrock_openai_client(
connection: AWSConnection,
) → OpenAIBuild an OpenAI-compatible client for Amazon Bedrock Runtime.
Parameters
The AWS connection supplying the profile and region.
Returns
An OpenAI client using the regional Bedrock Runtime endpoint.
build_bedrock_runtime_client
build_bedrock_runtime_client(
connection: AWSConnection,
) → BaseClientBuild a Bedrock runtime client from an AWSConnection config.
Parameters
The AWS connection config supplying the profile and region used to construct the underlying boto3 session.
Returns
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.SessionBuild 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.
Parameters
AWS profile name, or None to use the default credential
chain.
AWS region for service requests.
Returns
A boto3 session configured for the selected profile and region.
suppress_aws_logging
suppress_aws_logging() → NoneSilence chatty INFO/DEBUG logs from the AWS SDK chain.