aws_sdk_macie2/client/
list_resource_profile_detections.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ListResourceProfileDetections`](crate::operation::list_resource_profile_detections::builders::ListResourceProfileDetectionsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_resource_profile_detections::builders::ListResourceProfileDetectionsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`max_results(i32)`](crate::operation::list_resource_profile_detections::builders::ListResourceProfileDetectionsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_resource_profile_detections::builders::ListResourceProfileDetectionsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to include in each page of a paginated response.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_resource_profile_detections::builders::ListResourceProfileDetectionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_resource_profile_detections::builders::ListResourceProfileDetectionsFluentBuilder::set_next_token):<br>required: **false**<br><p>The nextToken string that specifies which page of results to return in a paginated response.</p><br>
9    ///   - [`resource_arn(impl Into<String>)`](crate::operation::list_resource_profile_detections::builders::ListResourceProfileDetectionsFluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::list_resource_profile_detections::builders::ListResourceProfileDetectionsFluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the S3 bucket that the request applies to.</p><br>
10    /// - On success, responds with [`ListResourceProfileDetectionsOutput`](crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsOutput) with field(s):
11    ///   - [`detections(Option<Vec::<Detection>>)`](crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsOutput::detections): <p>An array of objects, one for each type of sensitive data that Amazon Macie found in the bucket. Each object reports the number of occurrences of the specified type and provides information about the custom data identifier or managed data identifier that detected the data.</p>
12    ///   - [`next_token(Option<String>)`](crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsOutput::next_token): <p>The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.</p>
13    /// - On failure, responds with [`SdkError<ListResourceProfileDetectionsError>`](crate::operation::list_resource_profile_detections::ListResourceProfileDetectionsError)
14    pub fn list_resource_profile_detections(
15        &self,
16    ) -> crate::operation::list_resource_profile_detections::builders::ListResourceProfileDetectionsFluentBuilder {
17        crate::operation::list_resource_profile_detections::builders::ListResourceProfileDetectionsFluentBuilder::new(self.handle.clone())
18    }
19}