Struct aws_sdk_iam::operation::generate_service_last_accessed_details::builders::GenerateServiceLastAccessedDetailsInputBuilder
source · #[non_exhaustive]pub struct GenerateServiceLastAccessedDetailsInputBuilder { /* private fields */ }Expand description
A builder for GenerateServiceLastAccessedDetailsInput.
Implementations§
source§impl GenerateServiceLastAccessedDetailsInputBuilder
impl GenerateServiceLastAccessedDetailsInputBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN of the IAM resource (user, group, role, or managed policy) used to generate information about when the resource was last used in an attempt to access an Amazon Web Services service.
This field is required.sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The ARN of the IAM resource (user, group, role, or managed policy) used to generate information about when the resource was last used in an attempt to access an Amazon Web Services service.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The ARN of the IAM resource (user, group, role, or managed policy) used to generate information about when the resource was last used in an attempt to access an Amazon Web Services service.
sourcepub fn granularity(self, input: AccessAdvisorUsageGranularityType) -> Self
pub fn granularity(self, input: AccessAdvisorUsageGranularityType) -> Self
The level of detail that you want to generate. You can specify whether you want to generate information about the last attempt to access services or actions. If you specify service-level granularity, this operation generates only service data. If you specify action-level granularity, it generates service and action data. If you don't include this optional parameter, the operation generates service data.
sourcepub fn set_granularity(
self,
input: Option<AccessAdvisorUsageGranularityType>
) -> Self
pub fn set_granularity( self, input: Option<AccessAdvisorUsageGranularityType> ) -> Self
The level of detail that you want to generate. You can specify whether you want to generate information about the last attempt to access services or actions. If you specify service-level granularity, this operation generates only service data. If you specify action-level granularity, it generates service and action data. If you don't include this optional parameter, the operation generates service data.
sourcepub fn get_granularity(&self) -> &Option<AccessAdvisorUsageGranularityType>
pub fn get_granularity(&self) -> &Option<AccessAdvisorUsageGranularityType>
The level of detail that you want to generate. You can specify whether you want to generate information about the last attempt to access services or actions. If you specify service-level granularity, this operation generates only service data. If you specify action-level granularity, it generates service and action data. If you don't include this optional parameter, the operation generates service data.
sourcepub fn build(
self
) -> Result<GenerateServiceLastAccessedDetailsInput, BuildError>
pub fn build( self ) -> Result<GenerateServiceLastAccessedDetailsInput, BuildError>
Consumes the builder and constructs a GenerateServiceLastAccessedDetailsInput.
source§impl GenerateServiceLastAccessedDetailsInputBuilder
impl GenerateServiceLastAccessedDetailsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GenerateServiceLastAccessedDetailsOutput, SdkError<GenerateServiceLastAccessedDetailsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GenerateServiceLastAccessedDetailsOutput, SdkError<GenerateServiceLastAccessedDetailsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GenerateServiceLastAccessedDetailsInputBuilder
impl Clone for GenerateServiceLastAccessedDetailsInputBuilder
source§fn clone(&self) -> GenerateServiceLastAccessedDetailsInputBuilder
fn clone(&self) -> GenerateServiceLastAccessedDetailsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for GenerateServiceLastAccessedDetailsInputBuilder
impl Default for GenerateServiceLastAccessedDetailsInputBuilder
source§fn default() -> GenerateServiceLastAccessedDetailsInputBuilder
fn default() -> GenerateServiceLastAccessedDetailsInputBuilder
source§impl PartialEq for GenerateServiceLastAccessedDetailsInputBuilder
impl PartialEq for GenerateServiceLastAccessedDetailsInputBuilder
source§fn eq(&self, other: &GenerateServiceLastAccessedDetailsInputBuilder) -> bool
fn eq(&self, other: &GenerateServiceLastAccessedDetailsInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GenerateServiceLastAccessedDetailsInputBuilder
Auto Trait Implementations§
impl Freeze for GenerateServiceLastAccessedDetailsInputBuilder
impl RefUnwindSafe for GenerateServiceLastAccessedDetailsInputBuilder
impl Send for GenerateServiceLastAccessedDetailsInputBuilder
impl Sync for GenerateServiceLastAccessedDetailsInputBuilder
impl Unpin for GenerateServiceLastAccessedDetailsInputBuilder
impl UnwindSafe for GenerateServiceLastAccessedDetailsInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more