Skip to main content

Module auth

Module auth 

Source
Expand description

AWS credential loading and auth mode selection for the Bedrock provider.

Supports credentials from environment variables, ~/.aws/credentials, and region detection via env vars or ~/.aws/config.

§Examples

use codetether_agent::provider::bedrock::AwsCredentials;

// Load from env vars, falling back to ~/.aws/credentials
let creds = AwsCredentials::from_environment()
    .expect("no AWS credentials found");
let region = AwsCredentials::detect_region()
    .unwrap_or_else(|| "us-east-1".to_string());
assert!(!creds.access_key_id.is_empty());
assert!(!region.is_empty());

Structs§

AwsCredentials
AWS credentials used for SigV4 signing of Bedrock requests.

Enums§

BedrockAuth
Authentication mode for the Bedrock provider.