Struct aws_sdk_iam::model::ServiceLastAccessed
source · [−]#[non_exhaustive]pub struct ServiceLastAccessed { /* private fields */ }Expand description
Contains details about the most recent attempt to access the service.
This data type is used as a response element in the GetServiceLastAccessedDetails operation.
Implementations
sourceimpl ServiceLastAccessed
impl ServiceLastAccessed
sourcepub fn service_name(&self) -> Option<&str>
pub fn service_name(&self) -> Option<&str>
The name of the service in which access was attempted.
sourcepub fn last_authenticated(&self) -> Option<&DateTime>
pub fn last_authenticated(&self) -> Option<&DateTime>
The date and time, in ISO 8601 date-time format, when an authenticated entity most recently attempted to access the service. Amazon Web Services does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
sourcepub fn service_namespace(&self) -> Option<&str>
pub fn service_namespace(&self) -> Option<&str>
The namespace of the service in which access was attempted.
To learn the service namespace of a service, see Actions, resources, and condition keys for Amazon Web Services services in the Service Authorization Reference. Choose the name of the service to view details for that service. In the first paragraph, find the service prefix. For example, (service prefix: a4b). For more information about service namespaces, see Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.
sourcepub fn last_authenticated_entity(&self) -> Option<&str>
pub fn last_authenticated_entity(&self) -> Option<&str>
The ARN of the authenticated entity (user or role) that last attempted to access the service. Amazon Web Services does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
sourcepub fn last_authenticated_region(&self) -> Option<&str>
pub fn last_authenticated_region(&self) -> Option<&str>
The Region from which the authenticated entity (user or role) last attempted to access the service. Amazon Web Services does not report unauthenticated requests.
This field is null if no IAM entities attempted to access the service within the reporting period.
sourcepub fn total_authenticated_entities(&self) -> Option<i32>
pub fn total_authenticated_entities(&self) -> Option<i32>
The total number of authenticated principals (root user, IAM users, or IAM roles) that have attempted to access the service.
This field is null if no principals attempted to access the service within the reporting period.
sourcepub fn tracked_actions_last_accessed(
&self
) -> Option<&[TrackedActionLastAccessed]>
pub fn tracked_actions_last_accessed(
&self
) -> Option<&[TrackedActionLastAccessed]>
An object that contains details about the most recent attempt to access a tracked action within the service.
This field is null if there no tracked actions or if the principal did not use the tracked actions within the reporting period. This field is also null if the report was generated at the service level and not the action level. For more information, see the Granularity field in GenerateServiceLastAccessedDetails.
sourceimpl ServiceLastAccessed
impl ServiceLastAccessed
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ServiceLastAccessed.
Trait Implementations
sourceimpl Clone for ServiceLastAccessed
impl Clone for ServiceLastAccessed
sourcefn clone(&self) -> ServiceLastAccessed
fn clone(&self) -> ServiceLastAccessed
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more