1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetServiceLastAccessedDetails`](crate::operation::get_service_last_accessed_details::builders::GetServiceLastAccessedDetailsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`job_id(impl Into<String>)`](crate::operation::get_service_last_accessed_details::builders::GetServiceLastAccessedDetailsFluentBuilder::job_id) / [`set_job_id(Option<String>)`](crate::operation::get_service_last_accessed_details::builders::GetServiceLastAccessedDetailsFluentBuilder::set_job_id):<br>required: **true**<br><p>The ID of the request generated by the <code>GenerateServiceLastAccessedDetails</code> operation. 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><br>
    ///   - [`max_items(i32)`](crate::operation::get_service_last_accessed_details::builders::GetServiceLastAccessedDetailsFluentBuilder::max_items) / [`set_max_items(Option<i32>)`](crate::operation::get_service_last_accessed_details::builders::GetServiceLastAccessedDetailsFluentBuilder::set_max_items):<br>required: **false**<br><p>Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>.</p>  <p>If you do not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the <code>IsTruncated</code> response element returns <code>true</code>, and <code>Marker</code> contains a value to include in the subsequent call that tells the service where to continue from.</p><br>
    ///   - [`marker(impl Into<String>)`](crate::operation::get_service_last_accessed_details::builders::GetServiceLastAccessedDetailsFluentBuilder::marker) / [`set_marker(Option<String>)`](crate::operation::get_service_last_accessed_details::builders::GetServiceLastAccessedDetailsFluentBuilder::set_marker):<br>required: **false**<br><p>Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the <code>Marker</code> element in the response that you received to indicate where the next call should start.</p><br>
    /// - On success, responds with [`GetServiceLastAccessedDetailsOutput`](crate::operation::get_service_last_accessed_details::GetServiceLastAccessedDetailsOutput) with field(s):
    ///   - [`job_status(JobStatusType)`](crate::operation::get_service_last_accessed_details::GetServiceLastAccessedDetailsOutput::job_status): <p>The status of the job.</p>
    ///   - [`job_type(Option<AccessAdvisorUsageGranularityType>)`](crate::operation::get_service_last_accessed_details::GetServiceLastAccessedDetailsOutput::job_type): <p>The type of job. Service jobs return information about when each service was last accessed. Action jobs also include information about when tracked actions within the service were last accessed.</p>
    ///   - [`job_creation_date(DateTime)`](crate::operation::get_service_last_accessed_details::GetServiceLastAccessedDetailsOutput::job_creation_date): <p>The date and time, in&nbsp;<a href="http://www.iso.org/iso/iso8601">ISO 8601 date-time format</a>, when the report job was created.</p>
    ///   - [`services_last_accessed(Vec::<ServiceLastAccessed>)`](crate::operation::get_service_last_accessed_details::GetServiceLastAccessedDetailsOutput::services_last_accessed): <p> A&nbsp;<code>ServiceLastAccessed</code> object that contains details about the most recent attempt to access the service.</p>
    ///   - [`job_completion_date(DateTime)`](crate::operation::get_service_last_accessed_details::GetServiceLastAccessedDetailsOutput::job_completion_date): <p>The date and time, in&nbsp;<a href="http://www.iso.org/iso/iso8601">ISO 8601 date-time format</a>, when the generated report job was completed or failed.</p>  <p>This field is null if the job is still in progress, as indicated by a job status value of <code>IN_PROGRESS</code>.</p>
    ///   - [`is_truncated(bool)`](crate::operation::get_service_last_accessed_details::GetServiceLastAccessedDetailsOutput::is_truncated): <p>A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the <code>Marker</code> request parameter to retrieve more items. Note that IAM might return fewer than the <code>MaxItems</code> number of results even when there are more results available. We recommend that you check <code>IsTruncated</code> after every call to ensure that you receive all your results.</p>
    ///   - [`marker(Option<String>)`](crate::operation::get_service_last_accessed_details::GetServiceLastAccessedDetailsOutput::marker): <p>When <code>IsTruncated</code> is <code>true</code>, this element is present and contains the value to use for the <code>Marker</code> parameter in a subsequent pagination request.</p>
    ///   - [`error(Option<ErrorDetails>)`](crate::operation::get_service_last_accessed_details::GetServiceLastAccessedDetailsOutput::error): <p>An object that contains details about the reason the operation failed.</p>
    /// - On failure, responds with [`SdkError<GetServiceLastAccessedDetailsError>`](crate::operation::get_service_last_accessed_details::GetServiceLastAccessedDetailsError)
    pub fn get_service_last_accessed_details(
        &self,
    ) -> crate::operation::get_service_last_accessed_details::builders::GetServiceLastAccessedDetailsFluentBuilder {
        crate::operation::get_service_last_accessed_details::builders::GetServiceLastAccessedDetailsFluentBuilder::new(self.handle.clone())
    }
}