Struct aws_sdk_sts::model::credentials::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Credentials
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn access_key_id(self, input: impl Into<String>) -> Self
pub fn access_key_id(self, input: impl Into<String>) -> Self
The access key ID that identifies the temporary security credentials.
sourcepub fn set_access_key_id(self, input: Option<String>) -> Self
pub fn set_access_key_id(self, input: Option<String>) -> Self
The access key ID that identifies the temporary security credentials.
sourcepub fn secret_access_key(self, input: impl Into<String>) -> Self
pub fn secret_access_key(self, input: impl Into<String>) -> Self
The secret access key that can be used to sign requests.
sourcepub fn set_secret_access_key(self, input: Option<String>) -> Self
pub fn set_secret_access_key(self, input: Option<String>) -> Self
The secret access key that can be used to sign requests.
sourcepub fn session_token(self, input: impl Into<String>) -> Self
pub fn session_token(self, input: impl Into<String>) -> Self
The token that users must pass to the service API to use the temporary credentials.
sourcepub fn set_session_token(self, input: Option<String>) -> Self
pub fn set_session_token(self, input: Option<String>) -> Self
The token that users must pass to the service API to use the temporary credentials.
sourcepub fn expiration(self, input: DateTime) -> Self
pub fn expiration(self, input: DateTime) -> Self
The date on which the current credentials expire.
sourcepub fn set_expiration(self, input: Option<DateTime>) -> Self
pub fn set_expiration(self, input: Option<DateTime>) -> Self
The date on which the current credentials expire.
sourcepub fn build(self) -> Credentials
pub fn build(self) -> Credentials
Consumes the builder and constructs a Credentials
.