Struct aws_sdk_s3::types::builders::SessionCredentialsBuilder
source · #[non_exhaustive]pub struct SessionCredentialsBuilder { /* private fields */ }
Expand description
A builder for SessionCredentials
.
Implementations§
source§impl SessionCredentialsBuilder
impl SessionCredentialsBuilder
sourcepub fn access_key_id(self, input: impl Into<String>) -> Self
pub fn access_key_id(self, input: impl Into<String>) -> Self
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.
This field is required.sourcepub fn set_access_key_id(self, input: Option<String>) -> Self
pub fn set_access_key_id(self, input: Option<String>) -> Self
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 get_access_key_id(&self) -> &Option<String>
pub fn get_access_key_id(&self) -> &Option<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.
sourcepub fn secret_access_key(self, input: impl Into<String>) -> Self
pub fn secret_access_key(self, input: impl Into<String>) -> Self
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.
This field is required.sourcepub fn set_secret_access_key(self, input: Option<String>) -> Self
pub fn set_secret_access_key(self, input: Option<String>) -> Self
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 get_secret_access_key(&self) -> &Option<String>
pub fn get_secret_access_key(&self) -> &Option<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.
sourcepub fn session_token(self, input: impl Into<String>) -> Self
pub fn session_token(self, input: impl Into<String>) -> Self
A part of the temporary security credentials. The session token is used to validate the temporary security credentials.
This field is required.sourcepub fn set_session_token(self, input: Option<String>) -> Self
pub fn set_session_token(self, input: Option<String>) -> Self
A part of the temporary security credentials. The session token is used to validate the temporary security credentials.
sourcepub fn get_session_token(&self) -> &Option<String>
pub fn get_session_token(&self) -> &Option<String>
A part of the temporary security credentials. The session token is used to validate the temporary security credentials.
sourcepub fn expiration(self, input: DateTime) -> Self
pub fn expiration(self, input: DateTime) -> Self
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.
This field is required.sourcepub fn set_expiration(self, input: Option<DateTime>) -> Self
pub fn set_expiration(self, input: Option<DateTime>) -> Self
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.
sourcepub fn get_expiration(&self) -> &Option<DateTime>
pub fn get_expiration(&self) -> &Option<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.
sourcepub fn build(self) -> Result<SessionCredentials, BuildError>
pub fn build(self) -> Result<SessionCredentials, BuildError>
Consumes the builder and constructs a SessionCredentials
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SessionCredentialsBuilder
impl Clone for SessionCredentialsBuilder
source§fn clone(&self) -> SessionCredentialsBuilder
fn clone(&self) -> SessionCredentialsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SessionCredentialsBuilder
impl Debug for SessionCredentialsBuilder
source§impl Default for SessionCredentialsBuilder
impl Default for SessionCredentialsBuilder
source§fn default() -> SessionCredentialsBuilder
fn default() -> SessionCredentialsBuilder
source§impl PartialEq for SessionCredentialsBuilder
impl PartialEq for SessionCredentialsBuilder
source§fn eq(&self, other: &SessionCredentialsBuilder) -> bool
fn eq(&self, other: &SessionCredentialsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.