// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GenerateServiceLastAccessedDetails`](crate::operation::generate_service_last_accessed_details::builders::GenerateServiceLastAccessedDetailsFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`arn(impl Into<String>)`](crate::operation::generate_service_last_accessed_details::builders::GenerateServiceLastAccessedDetailsFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::generate_service_last_accessed_details::builders::GenerateServiceLastAccessedDetailsFluentBuilder::set_arn):<br>required: **true**<br><p>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.</p><br>
/// - [`granularity(AccessAdvisorUsageGranularityType)`](crate::operation::generate_service_last_accessed_details::builders::GenerateServiceLastAccessedDetailsFluentBuilder::granularity) / [`set_granularity(Option<AccessAdvisorUsageGranularityType>)`](crate::operation::generate_service_last_accessed_details::builders::GenerateServiceLastAccessedDetailsFluentBuilder::set_granularity):<br>required: **false**<br><p>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.</p><br>
/// - On success, responds with [`GenerateServiceLastAccessedDetailsOutput`](crate::operation::generate_service_last_accessed_details::GenerateServiceLastAccessedDetailsOutput) with field(s):
/// - [`job_id(Option<String>)`](crate::operation::generate_service_last_accessed_details::GenerateServiceLastAccessedDetailsOutput::job_id): <p>The <code>JobId</code> that you can use in the <code>GetServiceLastAccessedDetails</code> or <code>GetServiceLastAccessedDetailsWithEntities</code> operations. The <code>JobId</code> returned by <code>GenerateServiceLastAccessedDetail</code> must be used by the same role within a session, or by the same user when used to call <code>GetServiceLastAccessedDetail</code>.</p>
/// - On failure, responds with [`SdkError<GenerateServiceLastAccessedDetailsError>`](crate::operation::generate_service_last_accessed_details::GenerateServiceLastAccessedDetailsError)
pub fn generate_service_last_accessed_details(
&self,
) -> crate::operation::generate_service_last_accessed_details::builders::GenerateServiceLastAccessedDetailsFluentBuilder {
crate::operation::generate_service_last_accessed_details::builders::GenerateServiceLastAccessedDetailsFluentBuilder::new(self.handle.clone())
}
}