aws_sdk_codeartifact/client/list_associated_packages.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 [`ListAssociatedPackages`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`domain(impl Into<String>)`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::domain) / [`set_domain(Option<String>)`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::set_domain):<br>required: **true**<br><p>The name of the domain that contains the package group from which to list associated packages.</p><br>
8 /// - [`domain_owner(impl Into<String>)`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::domain_owner) / [`set_domain_owner(Option<String>)`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::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 /// - [`package_group(impl Into<String>)`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::package_group) / [`set_package_group(Option<String>)`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::set_package_group):<br>required: **true**<br><p>The pattern of the package group from which to list associated packages.</p><br>
10 /// - [`max_results(i32)`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page.</p><br>
11 /// - [`next_token(impl Into<String>)`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::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>
12 /// - [`preview(bool)`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::preview) / [`set_preview(Option<bool>)`](crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::set_preview):<br>required: **false**<br><p>When this flag is included, <code>ListAssociatedPackages</code> will return a list of packages that would be associated with a package group, even if it does not exist.</p><br>
13 /// - On success, responds with [`ListAssociatedPackagesOutput`](crate::operation::list_associated_packages::ListAssociatedPackagesOutput) with field(s):
14 /// - [`packages(Option<Vec::<AssociatedPackage>>)`](crate::operation::list_associated_packages::ListAssociatedPackagesOutput::packages): <p>The list of packages associated with the requested package group.</p>
15 /// - [`next_token(Option<String>)`](crate::operation::list_associated_packages::ListAssociatedPackagesOutput::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>
16 /// - On failure, responds with [`SdkError<ListAssociatedPackagesError>`](crate::operation::list_associated_packages::ListAssociatedPackagesError)
17 pub fn list_associated_packages(&self) -> crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder {
18 crate::operation::list_associated_packages::builders::ListAssociatedPackagesFluentBuilder::new(self.handle.clone())
19 }
20}