aws_sdk_codeartifact/client/list_package_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 [`ListPackageGroups`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`domain(impl Into<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::set_domain):<br>required: **true**<br><p>The domain for which you want to list package groups.</p><br>
8 /// - [`domain_owner(impl Into<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::domain_owner) / [`set_domain_owner(Option<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::set_domain_owner):<br>required: **false**<br><p>The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.</p><br>
9 /// - [`max_results(i32)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page.</p><br>
10 /// - [`next_token(impl Into<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p><br>
11 /// - [`prefix(impl Into<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::prefix) / [`set_prefix(Option<String>)`](crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::set_prefix):<br>required: **false**<br><p>A prefix for which to search package groups. When included, <code>ListPackageGroups</code> will return only package groups with patterns that match the prefix.</p><br>
12 /// - On success, responds with [`ListPackageGroupsOutput`](crate::operation::list_package_groups::ListPackageGroupsOutput) with field(s):
13 /// - [`package_groups(Option<Vec::<PackageGroupSummary>>)`](crate::operation::list_package_groups::ListPackageGroupsOutput::package_groups): <p>The list of package groups in the requested domain.</p>
14 /// - [`next_token(Option<String>)`](crate::operation::list_package_groups::ListPackageGroupsOutput::next_token): <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
15 /// - On failure, responds with [`SdkError<ListPackageGroupsError>`](crate::operation::list_package_groups::ListPackageGroupsError)
16 pub fn list_package_groups(&self) -> crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder {
17 crate::operation::list_package_groups::builders::ListPackageGroupsFluentBuilder::new(self.handle.clone())
18 }
19}