aws_sdk_bedrock/client/
list_prompt_routers.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 [`ListPromptRouters`](crate::operation::list_prompt_routers::builders::ListPromptRoutersFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_prompt_routers::builders::ListPromptRoutersFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`max_results(i32)`](crate::operation::list_prompt_routers::builders::ListPromptRoutersFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_prompt_routers::builders::ListPromptRoutersFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of prompt routers to return in one page of results.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_prompt_routers::builders::ListPromptRoutersFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_prompt_routers::builders::ListPromptRoutersFluentBuilder::set_next_token):<br>required: **false**<br><p>Specify the pagination token from a previous request to retrieve the next page of results.</p><br>
9    ///   - [`r#type(PromptRouterType)`](crate::operation::list_prompt_routers::builders::ListPromptRoutersFluentBuilder::type) / [`set_type(Option<PromptRouterType>)`](crate::operation::list_prompt_routers::builders::ListPromptRoutersFluentBuilder::set_type):<br>required: **false**<br><p>The type of the prompt routers, such as whether it's default or custom.</p><br>
10    /// - On success, responds with [`ListPromptRoutersOutput`](crate::operation::list_prompt_routers::ListPromptRoutersOutput) with field(s):
11    ///   - [`prompt_router_summaries(Option<Vec::<PromptRouterSummary>>)`](crate::operation::list_prompt_routers::ListPromptRoutersOutput::prompt_router_summaries): <p>A list of prompt router summaries.</p>
12    ///   - [`next_token(Option<String>)`](crate::operation::list_prompt_routers::ListPromptRoutersOutput::next_token): <p>Specify the pagination token from a previous request to retrieve the next page of results.</p>
13    /// - On failure, responds with [`SdkError<ListPromptRoutersError>`](crate::operation::list_prompt_routers::ListPromptRoutersError)
14    pub fn list_prompt_routers(&self) -> crate::operation::list_prompt_routers::builders::ListPromptRoutersFluentBuilder {
15        crate::operation::list_prompt_routers::builders::ListPromptRoutersFluentBuilder::new(self.handle.clone())
16    }
17}