Skip to main content

aws_sdk_networkfirewall/client/
list_container_associations.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 [`ListContainerAssociations`](crate::operation::list_container_associations::builders::ListContainerAssociationsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_container_associations::builders::ListContainerAssociationsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`max_results(i32)`](crate::operation::list_container_associations::builders::ListContainerAssociationsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_container_associations::builders::ListContainerAssociationsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of objects that you want Network Firewall to return for this request. If more objects are available, in the response, Network Firewall provides a <code>NextToken</code> value that you can use in a subsequent call to get the next batch of objects.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_container_associations::builders::ListContainerAssociationsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_container_associations::builders::ListContainerAssociationsFluentBuilder::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, Network Firewall 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>
9    /// - On success, responds with [`ListContainerAssociationsOutput`](crate::operation::list_container_associations::ListContainerAssociationsOutput) with field(s):
10    ///   - [`container_associations(Option<Vec::<ContainerAssociationSummary>>)`](crate::operation::list_container_associations::ListContainerAssociationsOutput::container_associations): <p>The container association metadata objects.</p>
11    ///   - [`next_token(Option<String>)`](crate::operation::list_container_associations::ListContainerAssociationsOutput::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, Network Firewall 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>
12    /// - On failure, responds with [`SdkError<ListContainerAssociationsError>`](crate::operation::list_container_associations::ListContainerAssociationsError)
13    pub fn list_container_associations(&self) -> crate::operation::list_container_associations::builders::ListContainerAssociationsFluentBuilder {
14        crate::operation::list_container_associations::builders::ListContainerAssociationsFluentBuilder::new(self.handle.clone())
15    }
16}