Struct aws_sdk_iam::types::builders::AccessKeyBuilder
source · #[non_exhaustive]pub struct AccessKeyBuilder { /* private fields */ }
Expand description
A builder for AccessKey
.
Implementations§
source§impl AccessKeyBuilder
impl AccessKeyBuilder
sourcepub fn user_name(self, input: impl Into<String>) -> Self
pub fn user_name(self, input: impl Into<String>) -> Self
The name of the IAM user that the access key is associated with.
sourcepub fn set_user_name(self, input: Option<String>) -> Self
pub fn set_user_name(self, input: Option<String>) -> Self
The name of the IAM user that the access key is associated with.
sourcepub fn access_key_id(self, input: impl Into<String>) -> Self
pub fn access_key_id(self, input: impl Into<String>) -> Self
The ID for this access key.
sourcepub fn set_access_key_id(self, input: Option<String>) -> Self
pub fn set_access_key_id(self, input: Option<String>) -> Self
The ID for this access key.
sourcepub fn status(self, input: StatusType) -> Self
pub fn status(self, input: StatusType) -> Self
The status of the access key. Active
means that the key is valid for API calls, while Inactive
means it is not.
sourcepub fn set_status(self, input: Option<StatusType>) -> Self
pub fn set_status(self, input: Option<StatusType>) -> Self
The status of the access key. Active
means that the key is valid for API calls, while Inactive
means it is not.
sourcepub fn secret_access_key(self, input: impl Into<String>) -> Self
pub fn secret_access_key(self, input: impl Into<String>) -> Self
The secret key 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 key used to sign requests.
sourcepub fn create_date(self, input: DateTime) -> Self
pub fn create_date(self, input: DateTime) -> Self
The date when the access key was created.
sourcepub fn set_create_date(self, input: Option<DateTime>) -> Self
pub fn set_create_date(self, input: Option<DateTime>) -> Self
The date when the access key was created.
Trait Implementations§
source§impl Clone for AccessKeyBuilder
impl Clone for AccessKeyBuilder
source§fn clone(&self) -> AccessKeyBuilder
fn clone(&self) -> AccessKeyBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AccessKeyBuilder
impl Debug for AccessKeyBuilder
source§impl Default for AccessKeyBuilder
impl Default for AccessKeyBuilder
source§fn default() -> AccessKeyBuilder
fn default() -> AccessKeyBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<AccessKeyBuilder> for AccessKeyBuilder
impl PartialEq<AccessKeyBuilder> for AccessKeyBuilder
source§fn eq(&self, other: &AccessKeyBuilder) -> bool
fn eq(&self, other: &AccessKeyBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.