Struct aws_sdk_iam::types::builders::AccessKeyLastUsedBuilder
source · #[non_exhaustive]pub struct AccessKeyLastUsedBuilder { /* private fields */ }
Expand description
A builder for AccessKeyLastUsed
.
Implementations§
source§impl AccessKeyLastUsedBuilder
impl AccessKeyLastUsedBuilder
sourcepub fn last_used_date(self, input: DateTime) -> Self
pub fn last_used_date(self, input: DateTime) -> Self
The date and time, in ISO 8601 date-time format, when the access key was most recently used. This field is null in the following situations:
-
The user does not have an access key.
-
An access key exists but has not been used since IAM began tracking this information.
-
There is no sign-in data associated with the user.
sourcepub fn set_last_used_date(self, input: Option<DateTime>) -> Self
pub fn set_last_used_date(self, input: Option<DateTime>) -> Self
The date and time, in ISO 8601 date-time format, when the access key was most recently used. This field is null in the following situations:
-
The user does not have an access key.
-
An access key exists but has not been used since IAM began tracking this information.
-
There is no sign-in data associated with the user.
sourcepub fn get_last_used_date(&self) -> &Option<DateTime>
pub fn get_last_used_date(&self) -> &Option<DateTime>
The date and time, in ISO 8601 date-time format, when the access key was most recently used. This field is null in the following situations:
-
The user does not have an access key.
-
An access key exists but has not been used since IAM began tracking this information.
-
There is no sign-in data associated with the user.
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the Amazon Web Services service with which this access key was most recently used. The value of this field is "N/A" in the following situations:
-
The user does not have an access key.
-
An access key exists but has not been used since IAM started tracking this information.
-
There is no sign-in data associated with the user.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the Amazon Web Services service with which this access key was most recently used. The value of this field is "N/A" in the following situations:
-
The user does not have an access key.
-
An access key exists but has not been used since IAM started tracking this information.
-
There is no sign-in data associated with the user.
sourcepub fn get_service_name(&self) -> &Option<String>
pub fn get_service_name(&self) -> &Option<String>
The name of the Amazon Web Services service with which this access key was most recently used. The value of this field is "N/A" in the following situations:
-
The user does not have an access key.
-
An access key exists but has not been used since IAM started tracking this information.
-
There is no sign-in data associated with the user.
sourcepub fn region(self, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region where this access key was most recently used. The value for this field is "N/A" in the following situations:
-
The user does not have an access key.
-
An access key exists but has not been used since IAM began tracking this information.
-
There is no sign-in data associated with the user.
For more information about Amazon Web Services Regions, see Regions and endpoints in the Amazon Web Services General Reference.
This field is required.sourcepub fn set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
The Amazon Web Services Region where this access key was most recently used. The value for this field is "N/A" in the following situations:
-
The user does not have an access key.
-
An access key exists but has not been used since IAM began tracking this information.
-
There is no sign-in data associated with the user.
For more information about Amazon Web Services Regions, see Regions and endpoints in the Amazon Web Services General Reference.
sourcepub fn get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &Option<String>
The Amazon Web Services Region where this access key was most recently used. The value for this field is "N/A" in the following situations:
-
The user does not have an access key.
-
An access key exists but has not been used since IAM began tracking this information.
-
There is no sign-in data associated with the user.
For more information about Amazon Web Services Regions, see Regions and endpoints in the Amazon Web Services General Reference.
sourcepub fn build(self) -> Result<AccessKeyLastUsed, BuildError>
pub fn build(self) -> Result<AccessKeyLastUsed, BuildError>
Consumes the builder and constructs a AccessKeyLastUsed
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AccessKeyLastUsedBuilder
impl Clone for AccessKeyLastUsedBuilder
source§fn clone(&self) -> AccessKeyLastUsedBuilder
fn clone(&self) -> AccessKeyLastUsedBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccessKeyLastUsedBuilder
impl Debug for AccessKeyLastUsedBuilder
source§impl Default for AccessKeyLastUsedBuilder
impl Default for AccessKeyLastUsedBuilder
source§fn default() -> AccessKeyLastUsedBuilder
fn default() -> AccessKeyLastUsedBuilder
source§impl PartialEq for AccessKeyLastUsedBuilder
impl PartialEq for AccessKeyLastUsedBuilder
source§fn eq(&self, other: &AccessKeyLastUsedBuilder) -> bool
fn eq(&self, other: &AccessKeyLastUsedBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.