Struct sts_profile_auth::StsInstance [−][src]
pub struct StsInstance { /* fields omitted */ }
Expand description
StsInstance
contains an StsClient
instance, and metadata used to create
it (region, keys, role arn)
Implementations
Create a new StsInstance
, either specifying a profile name, using the
AWS_PROFILE
environment variable, or using default
pub fn get_provider(
&self
) -> Result<Option<AutoRefreshingProvider<StsAssumeRoleSessionCredentialsProvider>>, StsClientError>
pub fn get_provider(
&self
) -> Result<Option<AutoRefreshingProvider<StsAssumeRoleSessionCredentialsProvider>>, StsClientError>
Get an auto-refreshing credential provider
Get an instance of rusoto_core::Client
which can be used to
instantiate any other rusoto client type.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for StsInstance
impl Send for StsInstance
impl Sync for StsInstance
impl Unpin for StsInstance
impl !UnwindSafe for StsInstance
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self