aws_sdk_fms/client/
list_discovered_resources.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 [`ListDiscoveredResources`](crate::operation::list_discovered_resources::builders::ListDiscoveredResourcesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`member_account_ids(impl Into<String>)`](crate::operation::list_discovered_resources::builders::ListDiscoveredResourcesFluentBuilder::member_account_ids) / [`set_member_account_ids(Option<Vec::<String>>)`](crate::operation::list_discovered_resources::builders::ListDiscoveredResourcesFluentBuilder::set_member_account_ids):<br>required: **true**<br><p>The Amazon Web Services account IDs to discover resources in. Only one account is supported per request. The account must be a member of your organization.</p><br>
7    ///   - [`resource_type(impl Into<String>)`](crate::operation::list_discovered_resources::builders::ListDiscoveredResourcesFluentBuilder::resource_type) / [`set_resource_type(Option<String>)`](crate::operation::list_discovered_resources::builders::ListDiscoveredResourcesFluentBuilder::set_resource_type):<br>required: **true**<br><p>The type of resources to discover.</p><br>
8    ///   - [`max_results(i32)`](crate::operation::list_discovered_resources::builders::ListDiscoveredResourcesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_discovered_resources::builders::ListDiscoveredResourcesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a <code>NextToken</code> value that you can use in a subsequent call to get the next batch of objects.</p><br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::list_discovered_resources::builders::ListDiscoveredResourcesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_discovered_resources::builders::ListDiscoveredResourcesFluentBuilder::set_next_token):<br>required: **false**<br><p>When you request a list of objects with a <code>MaxResults</code> setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a <code>NextToken</code> value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.</p><br>
10    /// - On success, responds with [`ListDiscoveredResourcesOutput`](crate::operation::list_discovered_resources::ListDiscoveredResourcesOutput) with field(s):
11    ///   - [`items(Option<Vec::<DiscoveredResource>>)`](crate::operation::list_discovered_resources::ListDiscoveredResourcesOutput::items): <p>Details of the resources that were discovered.</p>
12    ///   - [`next_token(Option<String>)`](crate::operation::list_discovered_resources::ListDiscoveredResourcesOutput::next_token): <p>When you request a list of objects with a <code>MaxResults</code> setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a <code>NextToken</code> value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.</p>
13    /// - On failure, responds with [`SdkError<ListDiscoveredResourcesError>`](crate::operation::list_discovered_resources::ListDiscoveredResourcesError)
14    pub fn list_discovered_resources(&self) -> crate::operation::list_discovered_resources::builders::ListDiscoveredResourcesFluentBuilder {
15        crate::operation::list_discovered_resources::builders::ListDiscoveredResourcesFluentBuilder::new(self.handle.clone())
16    }
17}