Struct aws_sdk_iam::model::ServiceLastAccessed
source · [−]#[non_exhaustive]pub struct ServiceLastAccessed {
pub service_name: Option<String>,
pub last_authenticated: Option<DateTime>,
pub service_namespace: Option<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: Option<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 reporting period.
service_namespace: Option<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 reporting 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 reporting 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 reporting 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 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
.
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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ServiceLastAccessed
impl Debug for ServiceLastAccessed
sourceimpl PartialEq<ServiceLastAccessed> for ServiceLastAccessed
impl PartialEq<ServiceLastAccessed> for ServiceLastAccessed
sourcefn eq(&self, other: &ServiceLastAccessed) -> bool
fn eq(&self, other: &ServiceLastAccessed) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ServiceLastAccessed) -> bool
fn ne(&self, other: &ServiceLastAccessed) -> bool
This method tests for !=
.
impl StructuralPartialEq for ServiceLastAccessed
Auto Trait Implementations
impl RefUnwindSafe for ServiceLastAccessed
impl Send for ServiceLastAccessed
impl Sync for ServiceLastAccessed
impl Unpin for ServiceLastAccessed
impl UnwindSafe for ServiceLastAccessed
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more