Skip to main content

aws_sdk_chime/operation/
list_bots.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `ListBots`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct ListBots;
6impl ListBots {
7    /// Creates a new `ListBots`
8    pub fn new() -> Self {
9        Self
10    }
11    pub(crate) async fn orchestrate(
12        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
13        input: crate::operation::list_bots::ListBotsInput,
14    ) -> ::std::result::Result<
15        crate::operation::list_bots::ListBotsOutput,
16        ::aws_smithy_runtime_api::client::result::SdkError<
17            crate::operation::list_bots::ListBotsError,
18            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
19        >,
20    > {
21        let map_err =
22            |err: ::aws_smithy_runtime_api::client::result::SdkError<
23                ::aws_smithy_runtime_api::client::interceptors::context::Error,
24                ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
25            >| { err.map_service_error(|err| err.downcast::<crate::operation::list_bots::ListBotsError>().expect("correct error type")) };
26        let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
27            .await
28            .map_err(map_err)?;
29        let output = context.finalize().map_err(map_err)?;
30        ::std::result::Result::Ok(
31            output
32                .downcast::<crate::operation::list_bots::ListBotsOutput>()
33                .expect("correct output type"),
34        )
35    }
36
37    pub(crate) async fn orchestrate_with_stop_point(
38        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
39        input: crate::operation::list_bots::ListBotsInput,
40        stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
41    ) -> ::std::result::Result<
42        ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
43        ::aws_smithy_runtime_api::client::result::SdkError<
44            ::aws_smithy_runtime_api::client::interceptors::context::Error,
45            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
46        >,
47    > {
48        let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
49        use ::tracing::Instrument;
50        ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("Chime", "ListBots", input, runtime_plugins, stop_point)
51            // Create a parent span for the entire operation. Includes a random, internal-only,
52            // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
53            .instrument(::tracing::debug_span!(
54                "Chime.ListBots",
55                "rpc.service" = "Chime",
56                "rpc.method" = "ListBots",
57                "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
58                "rpc.system" = "aws-api",
59            ))
60            .await
61    }
62
63    pub(crate) fn operation_runtime_plugins(
64        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
65        client_config: &crate::config::Config,
66        config_override: ::std::option::Option<crate::config::Builder>,
67    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
68        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
69
70        if let ::std::option::Option::Some(config_override) = config_override {
71            for plugin in config_override.runtime_plugins.iter().cloned() {
72                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
73            }
74            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
75                config_override,
76                client_config.config.clone(),
77                &client_config.runtime_components,
78            ));
79        }
80        runtime_plugins
81    }
82}
83impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ListBots {
84    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
85        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("ListBots");
86
87        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
88            ListBotsRequestSerializer,
89        ));
90        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
91            ListBotsResponseDeserializer,
92        ));
93
94        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
95            crate::config::auth::Params::builder()
96                .operation_name("ListBots")
97                .build()
98                .expect("required fields set"),
99        ));
100
101        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::SensitiveOutput);
102        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("ListBots", "Chime"));
103        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
104        signing_options.double_uri_encode = true;
105        signing_options.content_sha256_header = false;
106        signing_options.normalize_uri_path = true;
107        signing_options.payload_override = None;
108
109        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
110            signing_options,
111            ..::std::default::Default::default()
112        });
113
114        ::std::option::Option::Some(cfg.freeze())
115    }
116
117    fn runtime_components(
118        &self,
119        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
120    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
121        #[allow(unused_mut)]
122        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("ListBots")
123            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
124                ListBotsTelemetryInputCaptureInterceptor,
125            ))
126            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
127                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
128            ))
129            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
130                ListBotsEndpointParamsInterceptor,
131            ))
132            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
133                crate::operation::list_bots::ListBotsError,
134            >::new())
135            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
136                crate::operation::list_bots::ListBotsError,
137            >::new())
138            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
139                crate::operation::list_bots::ListBotsError,
140            >::new());
141
142        ::std::borrow::Cow::Owned(rcb)
143    }
144}
145
146#[derive(Debug)]
147struct ListBotsTelemetryInputCaptureInterceptor;
148
149#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
150impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListBotsTelemetryInputCaptureInterceptor {
151    fn name(&self) -> &'static str {
152        "ListBotsTelemetryInputCaptureInterceptor"
153    }
154
155    fn read_before_execution(
156        &self,
157        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
158            '_,
159            ::aws_smithy_runtime_api::client::interceptors::context::Input,
160            ::aws_smithy_runtime_api::client::interceptors::context::Output,
161            ::aws_smithy_runtime_api::client::interceptors::context::Error,
162        >,
163        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
164    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
165        // Nothing to do unless the customer opted in by naming members to record.
166        let ::std::option::Option::Some(requested) = cfg
167            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
168            .filter(|r| !r.is_empty())
169        else {
170            return ::std::result::Result::Ok(());
171        };
172
173        let ::std::option::Option::Some(input) = context.input().downcast_ref::<ListBotsInput>() else {
174            // A mismatched input is not this interceptor's concern; skip quietly.
175            return ::std::result::Result::Ok(());
176        };
177
178        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
179        if requested.should_capture("AccountId") {
180            if let ::std::option::Option::Some(value) = input.account_id.as_deref() {
181                captured.insert("AccountId", value);
182            }
183        }
184        if requested.should_capture("NextToken") {
185            if let ::std::option::Option::Some(value) = input.next_token.as_deref() {
186                captured.insert("NextToken", value);
187            }
188        }
189
190        cfg.interceptor_state().store_put(captured);
191        ::std::result::Result::Ok(())
192    }
193}
194#[derive(Debug)]
195struct ListBotsResponseDeserializer;
196impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListBotsResponseDeserializer {
197    fn deserialize_nonstreaming_with_config(
198        &self,
199        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
200        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
201    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
202        let (success, status) = (response.status().is_success(), response.status().as_u16());
203        let headers = response.headers();
204        let body = response.body().bytes().expect("body loaded");
205        #[allow(unused_mut)]
206        let mut force_error = false;
207        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
208        let parse_result = if !success && status != 200 || force_error {
209            crate::protocol_serde::shape_list_bots::de_list_bots_http_error(status, headers, body)
210        } else {
211            crate::protocol_serde::shape_list_bots::de_list_bots_http_response(status, headers, body)
212        };
213        crate::protocol_serde::type_erase_result(parse_result)
214    }
215}
216#[derive(Debug)]
217struct ListBotsRequestSerializer;
218impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListBotsRequestSerializer {
219    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
220    fn serialize_input(
221        &self,
222        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
223        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
224    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
225        let input = input.downcast::<crate::operation::list_bots::ListBotsInput>().expect("correct type");
226        let _header_serialization_settings = _cfg
227            .load::<crate::serialization_settings::HeaderSerializationSettings>()
228            .cloned()
229            .unwrap_or_default();
230        let mut request_builder = {
231            #[allow(clippy::uninlined_format_args)]
232            fn uri_base(
233                _input: &crate::operation::list_bots::ListBotsInput,
234                output: &mut ::std::string::String,
235            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
236                use ::std::fmt::Write as _;
237                let input_1 = &_input.account_id;
238                let input_1 = input_1
239                    .as_ref()
240                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("account_id", "cannot be empty or unset"))?;
241                let account_id = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
242                if account_id.is_empty() {
243                    return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
244                        "account_id",
245                        "cannot be empty or unset",
246                    ));
247                }
248                ::std::write!(output, "/accounts/{AccountId}/bots", AccountId = account_id).expect("formatting should succeed");
249                ::std::result::Result::Ok(())
250            }
251            fn uri_query(
252                _input: &crate::operation::list_bots::ListBotsInput,
253                mut output: &mut ::std::string::String,
254            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
255                let mut query = ::aws_smithy_http::query::Writer::new(output);
256                if let ::std::option::Option::Some(inner_2) = &_input.max_results {
257                    {
258                        query.push_kv("max-results", ::aws_smithy_types::primitive::Encoder::from(*inner_2).encode());
259                    }
260                }
261                if let ::std::option::Option::Some(inner_3) = &_input.next_token {
262                    {
263                        query.push_kv("next-token", &::aws_smithy_http::query::fmt_string(inner_3));
264                    }
265                }
266                ::std::result::Result::Ok(())
267            }
268            #[allow(clippy::unnecessary_wraps)]
269            fn update_http_builder(
270                input: &crate::operation::list_bots::ListBotsInput,
271                builder: ::http_1x::request::Builder,
272            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
273                let mut uri = ::std::string::String::new();
274                uri_base(input, &mut uri)?;
275                uri_query(input, &mut uri)?;
276                ::std::result::Result::Ok(builder.method("GET").uri(uri))
277            }
278            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
279            builder
280        };
281        let body = ::aws_smithy_types::body::SdkBody::from("");
282
283        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
284    }
285}
286#[derive(Debug)]
287struct ListBotsEndpointParamsInterceptor;
288
289#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
290impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListBotsEndpointParamsInterceptor {
291    fn name(&self) -> &'static str {
292        "ListBotsEndpointParamsInterceptor"
293    }
294
295    fn read_before_execution(
296        &self,
297        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
298            '_,
299            ::aws_smithy_runtime_api::client::interceptors::context::Input,
300            ::aws_smithy_runtime_api::client::interceptors::context::Output,
301            ::aws_smithy_runtime_api::client::interceptors::context::Error,
302        >,
303        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
304    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
305        let _input = context
306            .input()
307            .downcast_ref::<ListBotsInput>()
308            .ok_or("failed to downcast to ListBotsInput")?;
309
310        let params = crate::config::endpoint::Params::builder()
311            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
312            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
313            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
314            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
315            .build()
316            .map_err(|err| {
317                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
318            })?;
319        cfg.interceptor_state()
320            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
321        ::std::result::Result::Ok(())
322    }
323}
324
325// The get_* functions below are generated from JMESPath expressions in the
326// operationContextParams trait. They target the operation's input shape.
327
328/// Error type for the `ListBotsError` operation.
329#[non_exhaustive]
330#[derive(::std::fmt::Debug)]
331pub enum ListBotsError {
332    /// <p>The input parameters don't match the service's restrictions.</p>
333    BadRequestException(crate::types::error::BadRequestException),
334    /// <p>The client is permanently forbidden from making the request.</p>
335    ForbiddenException(crate::types::error::ForbiddenException),
336    /// <p>One or more of the resources in the request does not exist in the system.</p>
337    NotFoundException(crate::types::error::NotFoundException),
338    /// <p>The service encountered an unexpected error.</p>
339    ServiceFailureException(crate::types::error::ServiceFailureException),
340    /// <p>The service is currently unavailable.</p>
341    ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
342    /// <p>The client exceeded its request rate limit.</p>
343    ThrottledClientException(crate::types::error::ThrottledClientException),
344    /// <p>The client is not currently authorized to make the request.</p>
345    UnauthorizedClientException(crate::types::error::UnauthorizedClientException),
346    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
347    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
348    variable wildcard pattern and check `.code()`:
349     \
350    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
351     \
352    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ListBotsError) for what information is available for the error.")]
353    Unhandled(crate::error::sealed_unhandled::Unhandled),
354}
355impl ListBotsError {
356    /// Creates the `ListBotsError::Unhandled` variant from any error type.
357    pub fn unhandled(
358        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
359    ) -> Self {
360        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
361            source: err.into(),
362            meta: ::std::default::Default::default(),
363        })
364    }
365
366    /// Creates the `ListBotsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
367    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
368        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
369            source: err.clone().into(),
370            meta: err,
371        })
372    }
373    ///
374    /// Returns error metadata, which includes the error code, message,
375    /// request ID, and potentially additional information.
376    ///
377    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
378        match self {
379            Self::BadRequestException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
380            Self::ForbiddenException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
381            Self::NotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
382            Self::ServiceFailureException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
383            Self::ServiceUnavailableException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
384            Self::ThrottledClientException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
385            Self::UnauthorizedClientException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
386            Self::Unhandled(e) => &e.meta,
387        }
388    }
389    /// Returns `true` if the error kind is `ListBotsError::BadRequestException`.
390    pub fn is_bad_request_exception(&self) -> bool {
391        matches!(self, Self::BadRequestException(_))
392    }
393    /// Returns `true` if the error kind is `ListBotsError::ForbiddenException`.
394    pub fn is_forbidden_exception(&self) -> bool {
395        matches!(self, Self::ForbiddenException(_))
396    }
397    /// Returns `true` if the error kind is `ListBotsError::NotFoundException`.
398    pub fn is_not_found_exception(&self) -> bool {
399        matches!(self, Self::NotFoundException(_))
400    }
401    /// Returns `true` if the error kind is `ListBotsError::ServiceFailureException`.
402    pub fn is_service_failure_exception(&self) -> bool {
403        matches!(self, Self::ServiceFailureException(_))
404    }
405    /// Returns `true` if the error kind is `ListBotsError::ServiceUnavailableException`.
406    pub fn is_service_unavailable_exception(&self) -> bool {
407        matches!(self, Self::ServiceUnavailableException(_))
408    }
409    /// Returns `true` if the error kind is `ListBotsError::ThrottledClientException`.
410    pub fn is_throttled_client_exception(&self) -> bool {
411        matches!(self, Self::ThrottledClientException(_))
412    }
413    /// Returns `true` if the error kind is `ListBotsError::UnauthorizedClientException`.
414    pub fn is_unauthorized_client_exception(&self) -> bool {
415        matches!(self, Self::UnauthorizedClientException(_))
416    }
417}
418impl ::std::error::Error for ListBotsError {
419    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
420        match self {
421            Self::BadRequestException(_inner) => ::std::option::Option::Some(_inner),
422            Self::ForbiddenException(_inner) => ::std::option::Option::Some(_inner),
423            Self::NotFoundException(_inner) => ::std::option::Option::Some(_inner),
424            Self::ServiceFailureException(_inner) => ::std::option::Option::Some(_inner),
425            Self::ServiceUnavailableException(_inner) => ::std::option::Option::Some(_inner),
426            Self::ThrottledClientException(_inner) => ::std::option::Option::Some(_inner),
427            Self::UnauthorizedClientException(_inner) => ::std::option::Option::Some(_inner),
428            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
429        }
430    }
431}
432impl ::std::fmt::Display for ListBotsError {
433    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
434        match self {
435            Self::BadRequestException(_inner) => _inner.fmt(f),
436            Self::ForbiddenException(_inner) => _inner.fmt(f),
437            Self::NotFoundException(_inner) => _inner.fmt(f),
438            Self::ServiceFailureException(_inner) => _inner.fmt(f),
439            Self::ServiceUnavailableException(_inner) => _inner.fmt(f),
440            Self::ThrottledClientException(_inner) => _inner.fmt(f),
441            Self::UnauthorizedClientException(_inner) => _inner.fmt(f),
442            Self::Unhandled(_inner) => {
443                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
444                    write!(f, "unhandled error ({code})")
445                } else {
446                    f.write_str("unhandled error")
447                }
448            }
449        }
450    }
451}
452impl ::aws_smithy_types::retry::ProvideErrorKind for ListBotsError {
453    fn code(&self) -> ::std::option::Option<&str> {
454        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
455    }
456    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
457        ::std::option::Option::None
458    }
459}
460impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ListBotsError {
461    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
462        match self {
463            Self::BadRequestException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
464            Self::ForbiddenException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
465            Self::NotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
466            Self::ServiceFailureException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
467            Self::ServiceUnavailableException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
468            Self::ThrottledClientException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
469            Self::UnauthorizedClientException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
470            Self::Unhandled(_inner) => &_inner.meta,
471        }
472    }
473}
474impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ListBotsError {
475    fn create_unhandled_error(
476        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
477        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
478    ) -> Self {
479        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
480            source,
481            meta: meta.unwrap_or_default(),
482        })
483    }
484}
485impl ::aws_types::request_id::RequestId for crate::operation::list_bots::ListBotsError {
486    fn request_id(&self) -> Option<&str> {
487        self.meta().request_id()
488    }
489}
490
491pub use crate::operation::list_bots::_list_bots_input::ListBotsInput;
492
493pub use crate::operation::list_bots::_list_bots_output::ListBotsOutput;
494
495mod _list_bots_input;
496
497mod _list_bots_output;
498
499/// Builders
500pub mod builders;
501
502/// Paginator for this operation
503pub mod paginator;