aws_sdk_greengrass/client/list_groups.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 [`ListGroups`](crate::operation::list_groups::builders::ListGroupsFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`max_results(impl Into<String>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::max_results) / [`set_max_results(Option<String>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::set_max_results):<br>required: **false**<br>The maximum number of results to be returned per request.<br>
7 /// - [`next_token(impl Into<String>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_groups::builders::ListGroupsFluentBuilder::set_next_token):<br>required: **false**<br>The token for the next set of results, or ''null'' if there are no additional results.<br>
8 /// - On success, responds with [`ListGroupsOutput`](crate::operation::list_groups::ListGroupsOutput) with field(s):
9 /// - [`groups(Option<Vec::<GroupInformation>>)`](crate::operation::list_groups::ListGroupsOutput::groups): Information about a group.
10 /// - [`next_token(Option<String>)`](crate::operation::list_groups::ListGroupsOutput::next_token): The token for the next set of results, or ''null'' if there are no additional results.
11 /// - On failure, responds with [`SdkError<ListGroupsError>`](crate::operation::list_groups::ListGroupsError)
12 pub fn list_groups(&self) -> crate::operation::list_groups::builders::ListGroupsFluentBuilder {
13 crate::operation::list_groups::builders::ListGroupsFluentBuilder::new(self.handle.clone())
14 }
15}