Struct aws_sdk_s3::types::SessionCredentials
source · #[non_exhaustive]pub struct SessionCredentials {
pub access_key_id: String,
pub secret_access_key: String,
pub session_token: String,
pub expiration: DateTime,
}
Expand description
The established temporary security credentials of the session.
Directory buckets - These session credentials are only supported for the authentication and authorization of Zonal endpoint APIs on directory buckets.
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: String
A unique identifier that's associated with a secret access key. The access key ID and the secret access key are used together to sign programmatic Amazon Web Services requests cryptographically.
secret_access_key: String
A key that's used with the access key ID to cryptographically sign programmatic Amazon Web Services requests. Signing a request identifies the sender and prevents the request from being altered.
session_token: String
A part of the temporary security credentials. The session token is used to validate the temporary security credentials.
expiration: DateTime
Temporary security credentials expire after a specified interval. After temporary credentials expire, any calls that you make with those credentials will fail. So you must generate a new set of temporary credentials. Temporary credentials cannot be extended or refreshed beyond the original specified interval.
Implementations§
source§impl SessionCredentials
impl SessionCredentials
sourcepub fn access_key_id(&self) -> &str
pub fn access_key_id(&self) -> &str
A unique identifier that's associated with a secret access key. The access key ID and the secret access key are used together to sign programmatic Amazon Web Services requests cryptographically.
sourcepub fn secret_access_key(&self) -> &str
pub fn secret_access_key(&self) -> &str
A key that's used with the access key ID to cryptographically sign programmatic Amazon Web Services requests. Signing a request identifies the sender and prevents the request from being altered.
sourcepub fn session_token(&self) -> &str
pub fn session_token(&self) -> &str
A part of the temporary security credentials. The session token is used to validate the temporary security credentials.
sourcepub fn expiration(&self) -> &DateTime
pub fn expiration(&self) -> &DateTime
Temporary security credentials expire after a specified interval. After temporary credentials expire, any calls that you make with those credentials will fail. So you must generate a new set of temporary credentials. Temporary credentials cannot be extended or refreshed beyond the original specified interval.
source§impl SessionCredentials
impl SessionCredentials
sourcepub fn builder() -> SessionCredentialsBuilder
pub fn builder() -> SessionCredentialsBuilder
Creates a new builder-style object to manufacture SessionCredentials
.
Trait Implementations§
source§impl Clone for SessionCredentials
impl Clone for SessionCredentials
source§fn clone(&self) -> SessionCredentials
fn clone(&self) -> SessionCredentials
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SessionCredentials
impl Debug for SessionCredentials
source§impl PartialEq for SessionCredentials
impl PartialEq for SessionCredentials
source§impl TryFrom<SessionCredentials> for Credentials
impl TryFrom<SessionCredentials> for Credentials
impl StructuralPartialEq for SessionCredentials
Auto Trait Implementations§
impl Freeze for SessionCredentials
impl RefUnwindSafe for SessionCredentials
impl Send for SessionCredentials
impl Sync for SessionCredentials
impl Unpin for SessionCredentials
impl UnwindSafe for SessionCredentials
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
)