aws_sdk_bedrock/client/
list_imported_models.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 [`ListImportedModels`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`creation_time_before(DateTime)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::creation_time_before) / [`set_creation_time_before(Option<DateTime>)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::set_creation_time_before):<br>required: **false**<br><p>Return imported models that created before the specified time.</p><br>
8    ///   - [`creation_time_after(DateTime)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::creation_time_after) / [`set_creation_time_after(Option<DateTime>)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::set_creation_time_after):<br>required: **false**<br><p>Return imported models that were created after the specified time.</p><br>
9    ///   - [`name_contains(impl Into<String>)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::name_contains) / [`set_name_contains(Option<String>)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::set_name_contains):<br>required: **false**<br><p>Return imported models only if the model name contains these characters.</p><br>
10    ///   - [`max_results(i32)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the <code>nextToken</code> field when making another request to return the next batch of results.</p><br>
11    ///   - [`next_token(impl Into<String>)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::set_next_token):<br>required: **false**<br><p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, enter the token returned in the <code>nextToken</code> field in the response in this field to return the next batch of results.</p><br>
12    ///   - [`sort_by(SortModelsBy)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::sort_by) / [`set_sort_by(Option<SortModelsBy>)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::set_sort_by):<br>required: **false**<br><p>The field to sort by in the returned list of imported models.</p><br>
13    ///   - [`sort_order(SortOrder)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::sort_order) / [`set_sort_order(Option<SortOrder>)`](crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::set_sort_order):<br>required: **false**<br><p>Specifies whetehr to sort the results in ascending or descending order.</p><br>
14    /// - On success, responds with [`ListImportedModelsOutput`](crate::operation::list_imported_models::ListImportedModelsOutput) with field(s):
15    ///   - [`next_token(Option<String>)`](crate::operation::list_imported_models::ListImportedModelsOutput::next_token): <p>If the total number of results is greater than the <code>maxResults</code> value provided in the request, use this token when making another request in the <code>nextToken</code> field to return the next batch of results.</p>
16    ///   - [`model_summaries(Option<Vec::<ImportedModelSummary>>)`](crate::operation::list_imported_models::ListImportedModelsOutput::model_summaries): <p>Model summaries.</p>
17    /// - On failure, responds with [`SdkError<ListImportedModelsError>`](crate::operation::list_imported_models::ListImportedModelsError)
18    pub fn list_imported_models(&self) -> crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder {
19        crate::operation::list_imported_models::builders::ListImportedModelsFluentBuilder::new(self.handle.clone())
20    }
21}