yera.providers.aws_common
Shared AWS credential and logging helpers.
Symbols
build_bedrock_runtime_client
build_bedrock_runtime_client(
connection: AWSConnection,
) → BaseClientBuild 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.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.
suppress_aws_logging
suppress_aws_logging() → NoneSilence chatty INFO/DEBUG logs from the AWS SDK chain.