Struct aws_sdk_eksauth::types::Credentials
source · #[non_exhaustive]pub struct Credentials {
pub session_token: String,
pub secret_access_key: String,
pub access_key_id: String,
pub expiration: DateTime,
}Expand description
The Amazon Web Services Signature Version 4 type of temporary credentials.
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.session_token: StringThe token that applications inside the pods must pass to any service API to use the temporary credentials.
secret_access_key: StringThe secret access key that applications inside the pods use to sign requests.
access_key_id: StringThe access key ID that identifies the temporary security credentials.
expiration: DateTimeThe Unix epoch timestamp in seconds when the current credentials expire.
Implementations§
source§impl Credentials
impl Credentials
sourcepub fn session_token(&self) -> &str
pub fn session_token(&self) -> &str
The token that applications inside the pods must pass to any service API to use the temporary credentials.
sourcepub fn secret_access_key(&self) -> &str
pub fn secret_access_key(&self) -> &str
The secret access key that applications inside the pods use to sign requests.
sourcepub fn access_key_id(&self) -> &str
pub fn access_key_id(&self) -> &str
The access key ID that identifies the temporary security credentials.
sourcepub fn expiration(&self) -> &DateTime
pub fn expiration(&self) -> &DateTime
The Unix epoch timestamp in seconds when the current credentials expire.
source§impl Credentials
impl Credentials
sourcepub fn builder() -> CredentialsBuilder
pub fn builder() -> CredentialsBuilder
Creates a new builder-style object to manufacture Credentials.
Trait Implementations§
source§impl Clone for Credentials
impl Clone for Credentials
source§fn clone(&self) -> Credentials
fn clone(&self) -> Credentials
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for Credentials
impl Debug for Credentials
source§impl PartialEq for Credentials
impl PartialEq for Credentials
source§fn eq(&self, other: &Credentials) -> bool
fn eq(&self, other: &Credentials) -> bool
self and other values to be equal, and is used
by ==.