Struct aws_sdk_iam::types::AccessDetail
source · #[non_exhaustive]pub struct AccessDetail {
pub service_name: String,
pub service_namespace: String,
pub region: Option<String>,
pub entity_path: Option<String>,
pub last_authenticated_time: Option<DateTime>,
pub total_authenticated_entities: Option<i32>,
}
Expand description
An object that contains details about when a principal in the reported Organizations entity last attempted to access an Amazon Web Services service. A principal can be an IAM user, an IAM role, or the Amazon Web Services account root user within the reported Organizations entity.
This data type is a response element in the GetOrganizationsAccessReport
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.
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.
region: Option<String>
The Region where the last service access attempt occurred.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
entity_path: Option<String>
The path of the Organizations entity (root, organizational unit, or account) from which an authenticated principal last attempted to access the service. Amazon Web Services does not report unauthenticated requests.
This field is null if no principals (IAM users, IAM roles, or root user) in the reported Organizations entity attempted to access the service within the tracking period.
last_authenticated_time: Option<DateTime>
The date and time, in ISO 8601 date-time format, when an authenticated principal most recently attempted to access the service. Amazon Web Services does not report unauthenticated requests.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
total_authenticated_entities: Option<i32>
The number of accounts with authenticated principals (root user, IAM users, and IAM roles) that attempted to access the service in the tracking period.
Implementations§
source§impl AccessDetail
impl AccessDetail
sourcepub fn service_name(&self) -> &str
pub fn service_name(&self) -> &str
The name of the service in which access was attempted.
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 region(&self) -> Option<&str>
pub fn region(&self) -> Option<&str>
The Region where the last service access attempt occurred.
This field is null if no principals in the reported Organizations entity attempted to access the service within the tracking period.
sourcepub fn entity_path(&self) -> Option<&str>
pub fn entity_path(&self) -> Option<&str>
The path of the Organizations entity (root, organizational unit, or account) from which an authenticated principal last attempted to access the service. Amazon Web Services does not report unauthenticated requests.
This field is null if no principals (IAM users, IAM roles, or root user) in the reported Organizations entity attempted to access the service within the tracking period.
sourcepub fn last_authenticated_time(&self) -> Option<&DateTime>
pub fn last_authenticated_time(&self) -> Option<&DateTime>
The date and time, in ISO 8601 date-time format, when an authenticated principal most recently attempted to access the service. Amazon Web Services does not report unauthenticated requests.
This field is null if no principals in the reported Organizations entity 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 number of accounts with authenticated principals (root user, IAM users, and IAM roles) that attempted to access the service in the tracking period.
source§impl AccessDetail
impl AccessDetail
sourcepub fn builder() -> AccessDetailBuilder
pub fn builder() -> AccessDetailBuilder
Creates a new builder-style object to manufacture AccessDetail
.
Trait Implementations§
source§impl Clone for AccessDetail
impl Clone for AccessDetail
source§fn clone(&self) -> AccessDetail
fn clone(&self) -> AccessDetail
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccessDetail
impl Debug for AccessDetail
source§impl PartialEq for AccessDetail
impl PartialEq for AccessDetail
source§fn eq(&self, other: &AccessDetail) -> bool
fn eq(&self, other: &AccessDetail) -> bool
self
and other
values to be equal, and is used
by ==
.