aws_sdk_elasticsearch/client/
get_package_version_history.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 [`GetPackageVersionHistory`](crate::operation::get_package_version_history::builders::GetPackageVersionHistoryFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_package_version_history::builders::GetPackageVersionHistoryFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`package_id(impl Into<String>)`](crate::operation::get_package_version_history::builders::GetPackageVersionHistoryFluentBuilder::package_id) / [`set_package_id(Option<String>)`](crate::operation::get_package_version_history::builders::GetPackageVersionHistoryFluentBuilder::set_package_id):<br>required: **true**<br><p>Returns an audit history of versions of the package.</p><br>
8    ///   - [`max_results(i32)`](crate::operation::get_package_version_history::builders::GetPackageVersionHistoryFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_package_version_history::builders::GetPackageVersionHistoryFluentBuilder::set_max_results):<br>required: **false**<br><p>Limits results to a maximum number of versions.</p><br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::get_package_version_history::builders::GetPackageVersionHistoryFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_package_version_history::builders::GetPackageVersionHistoryFluentBuilder::set_next_token):<br>required: **false**<br><p>Used for pagination. Only necessary if a previous API call includes a non-null NextToken value. If provided, returns results for the next page.</p><br>
10    /// - On success, responds with [`GetPackageVersionHistoryOutput`](crate::operation::get_package_version_history::GetPackageVersionHistoryOutput) with field(s):
11    ///   - [`package_id(Option<String>)`](crate::operation::get_package_version_history::GetPackageVersionHistoryOutput::package_id): (undocumented)
12    ///   - [`package_version_history_list(Option<Vec::<PackageVersionHistory>>)`](crate::operation::get_package_version_history::GetPackageVersionHistoryOutput::package_version_history_list): <p>List of <code>PackageVersionHistory</code> objects.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::get_package_version_history::GetPackageVersionHistoryOutput::next_token): (undocumented)
14    /// - On failure, responds with [`SdkError<GetPackageVersionHistoryError>`](crate::operation::get_package_version_history::GetPackageVersionHistoryError)
15    pub fn get_package_version_history(&self) -> crate::operation::get_package_version_history::builders::GetPackageVersionHistoryFluentBuilder {
16        crate::operation::get_package_version_history::builders::GetPackageVersionHistoryFluentBuilder::new(self.handle.clone())
17    }
18}