Struct aws_sdk_iam::model::service_last_accessed::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for ServiceLastAccessed
Implementations
sourceimpl Builder
impl Builder
sourcepub fn service_name(self, input: impl Into<String>) -> Self
pub fn service_name(self, input: impl Into<String>) -> Self
The name of the service in which access was attempted.
sourcepub fn set_service_name(self, input: Option<String>) -> Self
pub fn set_service_name(self, input: Option<String>) -> Self
The name of the service in which access was attempted.
sourcepub fn last_authenticated(self, input: DateTime) -> Self
pub fn last_authenticated(self, input: DateTime) -> Self
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 set_last_authenticated(self, input: Option<DateTime>) -> Self
pub fn set_last_authenticated(self, input: Option<DateTime>) -> Self
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, input: impl Into<String>) -> Self
pub fn service_namespace(self, input: impl Into<String>) -> Self
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 set_service_namespace(self, input: Option<String>) -> Self
pub fn set_service_namespace(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn last_authenticated_entity(self, input: impl Into<String>) -> Self
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 set_last_authenticated_entity(self, input: Option<String>) -> Self
pub fn set_last_authenticated_entity(self, input: Option<String>) -> Self
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, input: impl Into<String>) -> Self
pub fn last_authenticated_region(self, input: impl Into<String>) -> Self
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 set_last_authenticated_region(self, input: Option<String>) -> Self
pub fn set_last_authenticated_region(self, input: Option<String>) -> Self
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, input: i32) -> Self
pub fn total_authenticated_entities(self, input: i32) -> Self
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 set_total_authenticated_entities(self, input: Option<i32>) -> Self
pub fn set_total_authenticated_entities(self, input: Option<i32>) -> Self
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,
input: TrackedActionLastAccessed
) -> Self
pub fn tracked_actions_last_accessed(
self,
input: TrackedActionLastAccessed
) -> Self
Appends an item to tracked_actions_last_accessed
.
To override the contents of this collection use set_tracked_actions_last_accessed
.
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
.
sourcepub fn set_tracked_actions_last_accessed(
self,
input: Option<Vec<TrackedActionLastAccessed>>
) -> Self
pub fn set_tracked_actions_last_accessed(
self,
input: Option<Vec<TrackedActionLastAccessed>>
) -> Self
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
.
sourcepub fn build(self) -> ServiceLastAccessed
pub fn build(self) -> ServiceLastAccessed
Consumes the builder and constructs a ServiceLastAccessed
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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