1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListTypeVersions`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`r#type(RegistryType)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::type) / [`set_type(Option<RegistryType>)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::set_type):<br>required: **false**<br><p>The kind of the extension.</p> <p>Conditional: You must specify either <code>TypeName</code> and <code>Type</code>, or <code>Arn</code>.</p><br>
    ///   - [`type_name(impl Into<String>)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::type_name) / [`set_type_name(Option<String>)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::set_type_name):<br>required: **false**<br><p>The name of the extension for which you want version summary information.</p> <p>Conditional: You must specify either <code>TypeName</code> and <code>Type</code>, or <code>Arn</code>.</p><br>
    ///   - [`arn(impl Into<String>)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::set_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the extension for which you want version summary information.</p> <p>Conditional: You must specify either <code>TypeName</code> and <code>Type</code>, or <code>Arn</code>.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a <code>NextToken</code> value that you can assign to the <code>NextToken</code> request parameter to get the next set of results.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::set_next_token):<br>required: **false**<br><p>If the previous paginated request didn't return all of the remaining results, the response object's <code>NextToken</code> parameter value is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's <code>NextToken</code> parameter. If there are no remaining results, the previous response object's <code>NextToken</code> parameter is set to <code>null</code>.</p><br>
    ///   - [`deprecated_status(DeprecatedStatus)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::deprecated_status) / [`set_deprecated_status(Option<DeprecatedStatus>)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::set_deprecated_status):<br>required: **false**<br><p>The deprecation status of the extension versions that you want to get summary information about.</p> <p>Valid values include:</p> <ul>  <li>   <p><code>LIVE</code>: The extension version is registered and can be used in CloudFormation operations, dependent on its provisioning behavior and visibility scope.</p></li>  <li>   <p><code>DEPRECATED</code>: The extension version has been deregistered and can no longer be used in CloudFormation operations.</p></li> </ul> <p>The default is <code>LIVE</code>.</p><br>
    ///   - [`publisher_id(impl Into<String>)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::publisher_id) / [`set_publisher_id(Option<String>)`](crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::set_publisher_id):<br>required: **false**<br><p>The publisher ID of the extension publisher.</p> <p>Extensions published by Amazon aren't assigned a publisher ID.</p><br>
    /// - On success, responds with [`ListTypeVersionsOutput`](crate::operation::list_type_versions::ListTypeVersionsOutput) with field(s):
    ///   - [`type_version_summaries(Option<Vec::<TypeVersionSummary>>)`](crate::operation::list_type_versions::ListTypeVersionsOutput::type_version_summaries): <p>A list of <code>TypeVersionSummary</code> structures that contain information about the specified extension's versions.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_type_versions::ListTypeVersionsOutput::next_token): <p>If the request doesn't return all of the remaining results, <code>NextToken</code> is set to a token. To retrieve the next set of results, call this action again and assign that token to the request object's <code>NextToken</code> parameter. If the request returns all results, <code>NextToken</code> is set to <code>null</code>.</p>
    /// - On failure, responds with [`SdkError<ListTypeVersionsError>`](crate::operation::list_type_versions::ListTypeVersionsError)
    pub fn list_type_versions(&self) -> crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder {
        crate::operation::list_type_versions::builders::ListTypeVersionsFluentBuilder::new(self.handle.clone())
    }
}