aws_sdk_connect/client/
list_bots.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 [`ListBots`](crate::operation::list_bots::builders::ListBotsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_bots::builders::ListBotsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`instance_id(impl Into<String>)`](crate::operation::list_bots::builders::ListBotsFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::list_bots::builders::ListBotsFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p><br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_bots::builders::ListBotsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_bots::builders::ListBotsFluentBuilder::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>
9    ///   - [`max_results(i32)`](crate::operation::list_bots::builders::ListBotsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_bots::builders::ListBotsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page.</p><br>
10    ///   - [`lex_version(LexVersion)`](crate::operation::list_bots::builders::ListBotsFluentBuilder::lex_version) / [`set_lex_version(Option<LexVersion>)`](crate::operation::list_bots::builders::ListBotsFluentBuilder::set_lex_version):<br>required: **true**<br><p>The version of Amazon Lex or Amazon Lex V2.</p><br>
11    /// - On success, responds with [`ListBotsOutput`](crate::operation::list_bots::ListBotsOutput) with field(s):
12    ///   - [`lex_bots(Option<Vec::<LexBotConfig>>)`](crate::operation::list_bots::ListBotsOutput::lex_bots): <p>The names and Amazon Web Services Regions of the Amazon Lex or Amazon Lex V2 bots associated with the specified instance.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::list_bots::ListBotsOutput::next_token): <p>If there are additional results, this is the token for the next set of results.</p>
14    /// - On failure, responds with [`SdkError<ListBotsError>`](crate::operation::list_bots::ListBotsError)
15    pub fn list_bots(&self) -> crate::operation::list_bots::builders::ListBotsFluentBuilder {
16        crate::operation::list_bots::builders::ListBotsFluentBuilder::new(self.handle.clone())
17    }
18}