pub struct AwsConfig {Show 16 fields
pub config_file: String,
pub shared_credentials_file: String,
pub profile: String,
pub region: Option<String>,
pub sts_regional_endpoints: String,
pub access_key_id: Option<String>,
pub secret_access_key: Option<String>,
pub session_token: Option<String>,
pub role_arn: Option<String>,
pub role_session_name: String,
pub duration_seconds: Option<usize>,
pub external_id: Option<String>,
pub tags: Option<Vec<(String, String)>>,
pub web_identity_token_file: Option<String>,
pub ec2_metadata_disabled: bool,
pub endpoint_url: Option<String>,
}
Expand description
Config for aws services.
Fields§
§config_file: String
config_file
will be load from:
- env value: [
AWS_CONFIG_FILE
] - default to:
~/.aws/config
shared_credentials_file
will be loaded from:
- env value: [
AWS_SHARED_CREDENTIALS_FILE
] - default to:
~/.aws/credentials
profile: String
profile
will be loaded from:
- this field if it’s
is_some
- env value: [
AWS_PROFILE
] - default to:
default
region: Option<String>
region
will be loaded from:
- this field if it’s
is_some
- env value: [
AWS_REGION
] - profile config:
region
sts_regional_endpoints: String
sts_regional_endpoints
will be loaded from:
- env value: [
AWS_STS_REGIONAL_ENDPOINTS
] - profile config:
sts_regional_endpoints
- default to
legacy
access_key_id: Option<String>
access_key_id
will be loaded from
- this field if it’s
is_some
- env value: [
AWS_ACCESS_KEY_ID
] - profile config:
aws_access_key_id
secret_access_key: Option<String>
secret_access_key
will be loaded from
- this field if it’s
is_some
- env value: [
AWS_SECRET_ACCESS_KEY
] - profile config:
aws_secret_access_key
session_token: Option<String>
session_token
will be loaded from
- this field if it’s
is_some
- env value: [
AWS_SESSION_TOKEN
] - profile config:
aws_session_token
role_arn: Option<String>
role_arn
value will be load from:
- this field if it’s
is_some
. - env value: [
AWS_ROLE_ARN
] - profile config:
role_arn
role_session_name: String
role_session_name
value will be load from:
- env value: [
AWS_ROLE_SESSION_NAME
] - profile config:
role_session_name
- default to
reqsign
.
duration_seconds: Option<usize>
duration_seconds
value will be load from:
- this field if it’s
is_some
. - profile config:
duration_seconds
- default to
3600
.
external_id: Option<String>
external_id
value will be load from:
- this field if it’s
is_some
. - profile config:
external_id
tags
value will be loaded from:
- this field if it’s
is_some
web_identity_token_file: Option<String>
web_identity_token_file
value will be loaded from:
- this field if it’s
is_some
- env value: [
AWS_WEB_IDENTITY_TOKEN_FILE
] - profile config:
web_identity_token_file
ec2_metadata_disabled: bool
ec2_metadata_disabled
value will be loaded from:
- this field
- env value: [
AWS_EC2_METADATA_DISABLED
]
endpoint_url: Option<String>
endpoint_url
value will be loaded from:
- this field
- env value: [
AWS_ENDPOINT_URL
]
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more