Struct rusoto_credential::StaticProvider
source · pub struct StaticProvider { /* private fields */ }
Expand description
Provides AWS credentials from statically/programmatically provided strings.
Implementations
sourceimpl StaticProvider
impl StaticProvider
sourcepub fn new(
access_key: String,
secret_access_key: String,
token: Option<String>,
valid_for: Option<i64>
) -> StaticProvider
pub fn new(
access_key: String,
secret_access_key: String,
token: Option<String>,
valid_for: Option<i64>
) -> StaticProvider
Creates a new Static Provider. This should be used when you want to statically, or programmatically provide access to AWS.
valid_for
is the number of seconds for which issued tokens are valid.
sourcepub fn new_minimal(
access_key: String,
secret_access_key: String
) -> StaticProvider
pub fn new_minimal(
access_key: String,
secret_access_key: String
) -> StaticProvider
Creates a new minimal Static Provider. This will set the token as optional none.
sourcepub fn get_aws_access_key_id(&self) -> &str
pub fn get_aws_access_key_id(&self) -> &str
Gets the AWS Access Key ID for this Static Provider.
sourcepub fn get_aws_secret_access_key(&self) -> &str
pub fn get_aws_secret_access_key(&self) -> &str
Gets the AWS Secret Access Key for this Static Provider.
sourcepub fn is_valid_for(&self) -> &Option<i64>
pub fn is_valid_for(&self) -> &Option<i64>
Returns the length in seconds this Static Provider will be valid for.
Trait Implementations
sourceimpl Clone for StaticProvider
impl Clone for StaticProvider
sourcefn clone(&self) -> StaticProvider
fn clone(&self) -> StaticProvider
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StaticProvider
impl Debug for StaticProvider
sourceimpl ProvideAwsCredentials for StaticProvider
impl ProvideAwsCredentials for StaticProvider
type Future = FutureResult<AwsCredentials, CredentialsError>
type Future = FutureResult<AwsCredentials, CredentialsError>
The future response value.
sourcefn credentials(&self) -> Self::Future
fn credentials(&self) -> Self::Future
Produce a new
AwsCredentials
future.Auto Trait Implementations
impl RefUnwindSafe for StaticProvider
impl Send for StaticProvider
impl Sync for StaticProvider
impl Unpin for StaticProvider
impl UnwindSafe for StaticProvider
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more