Struct rusoto_credential::StaticProvider [−][src]
Provides AWS credentials from statically/programmatically provided strings.
Implementations
impl StaticProvider
[src]
pub fn new(
access_key: String,
secret_access_key: String,
token: Option<String>,
valid_for: Option<i64>
) -> StaticProvider
[src]
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.
pub fn new_minimal(
access_key: String,
secret_access_key: String
) -> StaticProvider
[src]
access_key: String,
secret_access_key: String
) -> StaticProvider
Creates a new minimal Static Provider. This will set the token as optional none.
pub fn get_aws_access_key_id(&self) -> &str
[src]
Gets the AWS Access Key ID for this Static Provider.
pub fn get_aws_secret_access_key(&self) -> &str
[src]
Gets the AWS Secret Access Key for this Static Provider.
pub fn has_token(&self) -> bool
[src]
Determines if this Static Provider was given a Token.
pub fn get_token(&self) -> &Option<String>
[src]
Gets The Token this Static Provider was given.
pub fn is_valid_for(&self) -> &Option<i64>
[src]
Returns the length in seconds this Static Provider will be valid for.
Trait Implementations
impl Clone for StaticProvider
[src]
fn clone(&self) -> StaticProvider
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StaticProvider
[src]
impl From<AwsCredentials> for StaticProvider
[src]
fn from(credentials: AwsCredentials) -> Self
[src]
impl ProvideAwsCredentials for StaticProvider
[src]
fn credentials<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<AwsCredentials, CredentialsError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,