#[non_exhaustive]pub struct RoleCredentials {
pub access_key_id: Option<String>,
pub secret_access_key: Option<String>,
pub session_token: Option<String>,
pub expiration: i64,
}
Expand description
Provides information about the role credentials that are assigned to the user.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.access_key_id: Option<String>
The identifier used for the temporary security credentials. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
secret_access_key: Option<String>
The key that is used to sign the request. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
session_token: Option<String>
The token used for temporary credentials. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
expiration: i64
The date on which temporary security credentials expire.
Implementations§
Source§impl RoleCredentials
impl RoleCredentials
Sourcepub fn access_key_id(&self) -> Option<&str>
pub fn access_key_id(&self) -> Option<&str>
The identifier used for the temporary security credentials. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
Sourcepub fn secret_access_key(&self) -> Option<&str>
pub fn secret_access_key(&self) -> Option<&str>
The key that is used to sign the request. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
Sourcepub fn session_token(&self) -> Option<&str>
pub fn session_token(&self) -> Option<&str>
The token used for temporary credentials. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the AWS IAM User Guide.
Sourcepub fn expiration(&self) -> i64
pub fn expiration(&self) -> i64
The date on which temporary security credentials expire.
Source§impl RoleCredentials
impl RoleCredentials
Sourcepub fn builder() -> RoleCredentialsBuilder
pub fn builder() -> RoleCredentialsBuilder
Creates a new builder-style object to manufacture RoleCredentials
.
Trait Implementations§
Source§impl Clone for RoleCredentials
impl Clone for RoleCredentials
Source§fn clone(&self) -> RoleCredentials
fn clone(&self) -> RoleCredentials
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RoleCredentials
impl Debug for RoleCredentials
Source§impl PartialEq for RoleCredentials
impl PartialEq for RoleCredentials
impl StructuralPartialEq for RoleCredentials
Auto Trait Implementations§
impl Freeze for RoleCredentials
impl RefUnwindSafe for RoleCredentials
impl Send for RoleCredentials
impl Sync for RoleCredentials
impl Unpin for RoleCredentials
impl UnwindSafe for RoleCredentials
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)