Struct aws_sdk_sso::types::RoleCredentials
source · #[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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)