pub struct AwsConfig {
pub profile: Option<String>,
pub region: Option<String>,
pub access_key_id: Option<String>,
pub secret_access_key: Option<String>,
pub session_token: Option<String>,
}Expand description
AWS credential and region settings for a bedrock provider endpoint.
When no explicit access key is given, the standard AWS credential chain
is used (env vars, shared config ~/.aws/config + ~/.aws/credentials,
SSO, ECS/IMDS) — the same behavior as the AWS CLI. profile selects a
named profile from the shared config, and region overrides the chain
default.
Fields§
§profile: Option<String>Named profile from ~/.aws/config / ~/.aws/credentials to use
(default: the AWS CLI default selection via AWS_PROFILE or
default).
region: Option<String>AWS region (default: AWS_REGION env or the profile’s region;
required if neither is set).
access_key_id: Option<String>Explicit access key id (bypasses the credential chain).
secret_access_key: Option<String>Explicit secret access key (with access_key_id).
session_token: Option<String>Optional session token for explicit temporary credentials.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AwsConfig
impl<'de> Deserialize<'de> for AwsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AwsConfig
impl RefUnwindSafe for AwsConfig
impl Send for AwsConfig
impl Sync for AwsConfig
impl Unpin for AwsConfig
impl UnsafeUnpin for AwsConfig
impl UnwindSafe for AwsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more