Struct aws_sdk_iam::types::ServiceLastAccessed
source · #[non_exhaustive]pub struct ServiceLastAccessed {
pub service_name: String,
pub last_authenticated: Option<DateTime>,
pub service_namespace: String,
pub last_authenticated_entity: Option<String>,
pub last_authenticated_region: Option<String>,
pub total_authenticated_entities: Option<i32>,
pub tracked_actions_last_accessed: Option<Vec<TrackedActionLastAccessed>>,
}
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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.service_name: String
The name of the service in which access was attempted.
last_authenticated: 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 tracking period.
service_namespace: String
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.
last_authenticated_entity: Option<String>
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 tracking period.
last_authenticated_region: Option<String>
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 tracking period.
total_authenticated_entities: 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 tracking period.
tracked_actions_last_accessed: Option<Vec<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 tracking 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
.
Implementations§
source§impl ServiceLastAccessed
impl ServiceLastAccessed
sourcepub fn service_name(&self) -> &str
pub fn service_name(&self) -> &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 tracking period.
sourcepub fn service_namespace(&self) -> &str
pub fn service_namespace(&self) -> &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 tracking 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 tracking 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 tracking period.
sourcepub fn tracked_actions_last_accessed(&self) -> &[TrackedActionLastAccessed]
pub fn tracked_actions_last_accessed(&self) -> &[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 tracking 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
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tracked_actions_last_accessed.is_none()
.
source§impl ServiceLastAccessed
impl ServiceLastAccessed
sourcepub fn builder() -> ServiceLastAccessedBuilder
pub fn builder() -> ServiceLastAccessedBuilder
Creates a new builder-style object to manufacture ServiceLastAccessed
.
Trait Implementations§
source§impl Clone for ServiceLastAccessed
impl Clone for ServiceLastAccessed
source§fn clone(&self) -> ServiceLastAccessed
fn clone(&self) -> ServiceLastAccessed
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServiceLastAccessed
impl Debug for ServiceLastAccessed
source§impl PartialEq for ServiceLastAccessed
impl PartialEq for ServiceLastAccessed
source§fn eq(&self, other: &ServiceLastAccessed) -> bool
fn eq(&self, other: &ServiceLastAccessed) -> bool
self
and other
values to be equal, and is used
by ==
.