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 ==
.