Skip to main content

aws_sdk_glue/operation/
list_column_statistics_task_runs.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `ListColumnStatisticsTaskRuns`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct ListColumnStatisticsTaskRuns;
6impl ListColumnStatisticsTaskRuns {
7    /// Creates a new `ListColumnStatisticsTaskRuns`
8    pub fn new() -> Self {
9        Self
10    }
11    /// The schema for this operation's input shape.
12    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> =
13        crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsInput::SCHEMA;
14    /// The schema for this operation's output shape.
15    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> =
16        crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsOutput::SCHEMA;
17    pub(crate) async fn orchestrate(
18        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
19        input: crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsInput,
20    ) -> ::std::result::Result<
21        crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsOutput,
22        ::aws_smithy_runtime_api::client::result::SdkError<
23            crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsError,
24            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
25        >,
26    > {
27        let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
28            ::aws_smithy_runtime_api::client::interceptors::context::Error,
29            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
30        >| {
31            err.map_service_error(|err| {
32                err.downcast::<crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsError>()
33                    .expect("correct error type")
34            })
35        };
36        let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
37            .await
38            .map_err(map_err)?;
39        let output = context.finalize().map_err(map_err)?;
40        ::std::result::Result::Ok(
41            output
42                .downcast::<crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsOutput>()
43                .expect("correct output type"),
44        )
45    }
46
47    pub(crate) async fn orchestrate_with_stop_point(
48        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
49        input: crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsInput,
50        stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
51    ) -> ::std::result::Result<
52        ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
53        ::aws_smithy_runtime_api::client::result::SdkError<
54            ::aws_smithy_runtime_api::client::interceptors::context::Error,
55            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
56        >,
57    > {
58        let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
59        use ::tracing::Instrument;
60        ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("Glue", "ListColumnStatisticsTaskRuns", input, runtime_plugins, stop_point)
61            // Create a parent span for the entire operation. Includes a random, internal-only,
62            // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
63            .instrument(::tracing::debug_span!(
64                "Glue.ListColumnStatisticsTaskRuns",
65                "rpc.service" = "Glue",
66                "rpc.method" = "ListColumnStatisticsTaskRuns",
67                "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
68                "rpc.system" = "aws-api",
69            ))
70            .await
71    }
72
73    pub(crate) fn operation_runtime_plugins(
74        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
75        client_config: &crate::config::Config,
76        config_override: ::std::option::Option<crate::config::Builder>,
77    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
78        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
79
80        if let ::std::option::Option::Some(config_override) = config_override {
81            for plugin in config_override.runtime_plugins.iter().cloned() {
82                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
83            }
84            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
85                config_override,
86                client_config.config.clone(),
87                &client_config.runtime_components,
88            ));
89        }
90        runtime_plugins
91    }
92}
93/// Per-operation error registry. Contains an entry for every modeled
94/// error this operation can throw.
95///
96/// Used by the schema-serde error path as the operation-scoped lookup
97/// for registry-backed error reification: an error code that does not
98/// match one of the operation's modeled errors directly is resolved
99/// against this registry first, then widened to the service-wide error
100/// registry.
101pub(crate) mod error_registry {
102    pub(crate) static REGISTRY: ::std::sync::LazyLock<::aws_smithy_schema::registry::TypeRegistry> = ::std::sync::LazyLock::new(|| {
103        ::aws_smithy_schema::registry::TypeRegistry::builder()
104                            .insert_error_shape(
105                        crate::types::error::OperationTimeoutException::SCHEMA,
106                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
107                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::OperationTimeoutException::deserialize(d)?))
108                        },
109                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
110                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::OperationTimeoutException::deserialize(d)?))
111                        },
112                    )
113                            .build()
114    });
115}
116impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ListColumnStatisticsTaskRuns {
117    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
118        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("ListColumnStatisticsTaskRuns");
119
120        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
121            ListColumnStatisticsTaskRunsRequestSerializer,
122        ));
123        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
124            ListColumnStatisticsTaskRunsResponseDeserializer,
125        ));
126
127        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
128            crate::config::auth::Params::builder()
129                .operation_name("ListColumnStatisticsTaskRuns")
130                .build()
131                .expect("required fields set"),
132        ));
133
134        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
135            "ListColumnStatisticsTaskRuns",
136            "Glue",
137        ));
138        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
139        signing_options.double_uri_encode = true;
140        signing_options.content_sha256_header = false;
141        signing_options.normalize_uri_path = true;
142        signing_options.payload_override = None;
143
144        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
145            signing_options,
146            ..::std::default::Default::default()
147        });
148
149        ::std::option::Option::Some(cfg.freeze())
150    }
151
152    fn runtime_components(
153        &self,
154        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
155    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
156        #[allow(unused_mut)]
157        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("ListColumnStatisticsTaskRuns")
158            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
159                ListColumnStatisticsTaskRunsTelemetryInputCaptureInterceptor,
160            ))
161            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
162                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
163            ))
164            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
165                ListColumnStatisticsTaskRunsEndpointParamsInterceptor,
166            ))
167            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
168                crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsError,
169            >::new())
170            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
171                crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsError,
172            >::new())
173            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
174                crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsError,
175            >::new())
176            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
177                crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsError,
178            >::new());
179
180        ::std::borrow::Cow::Owned(rcb)
181    }
182}
183
184#[derive(Debug)]
185struct ListColumnStatisticsTaskRunsTelemetryInputCaptureInterceptor;
186
187#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
188impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListColumnStatisticsTaskRunsTelemetryInputCaptureInterceptor {
189    fn name(&self) -> &'static str {
190        "ListColumnStatisticsTaskRunsTelemetryInputCaptureInterceptor"
191    }
192
193    fn read_before_execution(
194        &self,
195        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
196            '_,
197            ::aws_smithy_runtime_api::client::interceptors::context::Input,
198            ::aws_smithy_runtime_api::client::interceptors::context::Output,
199            ::aws_smithy_runtime_api::client::interceptors::context::Error,
200        >,
201        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
202    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
203        // Nothing to do unless the customer opted in by naming members to record.
204        let ::std::option::Option::Some(requested) = cfg
205            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
206            .filter(|r| !r.is_empty())
207        else {
208            return ::std::result::Result::Ok(());
209        };
210
211        let ::std::option::Option::Some(input) = context.input().downcast_ref::<ListColumnStatisticsTaskRunsInput>() else {
212            // A mismatched input is not this interceptor's concern; skip quietly.
213            return ::std::result::Result::Ok(());
214        };
215
216        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
217        if requested.should_capture("NextToken") {
218            if let ::std::option::Option::Some(value) = input.next_token.as_deref() {
219                captured.insert("NextToken", value);
220            }
221        }
222
223        cfg.interceptor_state().store_put(captured);
224        ::std::result::Result::Ok(())
225    }
226}
227#[derive(Debug)]
228struct ListColumnStatisticsTaskRunsResponseDeserializer;
229impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListColumnStatisticsTaskRunsResponseDeserializer {
230    fn deserialize_nonstreaming_with_config(
231        &self,
232        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
233        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
234    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
235        let (success, status) = (response.status().is_success(), response.status().as_u16());
236        // Load body and headers BEFORE BeforeParseResponse so customizations
237        // (e.g., S3's `body_is_error` check that detects errors returned with
238        // HTTP 200) can inspect them. The legacy non-streaming path also
239        // loads `body` before firing this hook.
240        #[allow(unused_variables)]
241        let body = response.body().bytes().expect("body loaded");
242        let headers = response.headers();
243        #[allow(unused_mut)]
244        let mut force_error = false;
245        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
246        if !success && status != 200 || force_error {
247            let protocol = _cfg
248                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
249                .expect("a SharedClientProtocol is required");
250            #[allow(unused_mut)]
251            let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
252                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
253            })?;
254            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
255            let generic = generic_builder.build();
256            let error_code = match generic.code() {
257                ::std::option::Option::Some(code) => code,
258                ::std::option::Option::None => {
259                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
260                        ::aws_smithy_runtime_api::box_error::BoxError::from(
261                            crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsError::unhandled(generic),
262                        ),
263                    ))
264                }
265            };
266            let _error_message = generic.message().map(|msg| msg.to_owned());
267            let err = match error_code {
268                "OperationTimeoutException" => {
269                    crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsError::OperationTimeoutException({
270                        let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
271                            ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
272                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
273                            )
274                        })?;
275                        let mut tmp = <crate::types::error::builders::OperationTimeoutExceptionBuilder>::default();
276                        tmp.deserialize_members(&mut *deser).map_err(|e| {
277                            ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
278                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
279                            )
280                        })?;
281                        if tmp.message.is_none() {
282                            tmp.message = _error_message;
283                        }
284                        let tmp = tmp.meta(generic);
285                        tmp.build()
286                    })
287                }
288                _ => {
289                    // Registry-backed, operation-scoped reification of an error whose
290                    // code this operation does not model directly: the operation's own
291                    // error registry is consulted first, then the lookup widens to the
292                    // service-wide error registry. On a hit, the reified error is attached
293                    // as the source of the returned unhandled error while its metadata
294                    // (code, message, request id) is preserved; on a miss the generic
295                    // error is returned unchanged.
296                    match protocol
297                        .deserialize_error_response(response, _cfg)
298                        .ok()
299                        .and_then(|mut deser| {
300                            ::aws_smithy_schema::registry::reify_error(
301                                crate::operation::list_column_statistics_task_runs::error_registry::REGISTRY
302                                    .or(&crate::error_type_registry::REGISTRY),
303                                error_code,
304                                &mut *deser,
305                            )
306                        }) {
307                        ::std::option::Option::Some(source) => <crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
308                        ::std::option::Option::None => crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsError::generic(generic),
309                    }
310                }
311            };
312            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
313                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
314            ))
315        } else {
316            let protocol = _cfg
317                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
318                .expect("a SharedClientProtocol is required");
319            let mut deser = protocol
320                .deserialize_response(response, ListColumnStatisticsTaskRuns::OUTPUT_SCHEMA, _cfg)
321                .map_err(|e| {
322                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
323                })?;
324            // `headers` is already in scope from the top of the function; alias it as
325            // `_response_headers` so MutateOutput customizations have a stable name to
326            // read from.
327            let _response_headers = headers;
328            // `mut` is required because `deserialize_members` and the `MutateOutput`
329            // builder setters take `&mut self`. Marked `allow(unused_mut)` because an
330            // empty output has no members and no customizations to run.
331            #[allow(unused_mut)]
332            let mut output = <crate::operation::list_column_statistics_task_runs::builders::ListColumnStatisticsTaskRunsOutputBuilder>::default();
333            output.deserialize_members(&mut *deser).map_err(|e| {
334                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
335            })?;
336            output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
337            let output = output.build();
338            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
339        }
340    }
341}
342#[derive(Debug)]
343struct ListColumnStatisticsTaskRunsRequestSerializer;
344impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListColumnStatisticsTaskRunsRequestSerializer {
345    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
346    fn serialize_input(
347        &self,
348        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
349        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
350    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
351        let input = input
352            .downcast::<crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsInput>()
353            .expect("correct type");
354
355        let protocol = _cfg
356            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
357            .expect("a SharedClientProtocol is required");
358        let mut request = protocol
359            .serialize_request(&input, ListColumnStatisticsTaskRuns::INPUT_SCHEMA, "/", _cfg)
360            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
361
362        return ::std::result::Result::Ok(request);
363    }
364}
365#[derive(Debug)]
366struct ListColumnStatisticsTaskRunsEndpointParamsInterceptor;
367
368#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
369impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListColumnStatisticsTaskRunsEndpointParamsInterceptor {
370    fn name(&self) -> &'static str {
371        "ListColumnStatisticsTaskRunsEndpointParamsInterceptor"
372    }
373
374    fn read_before_execution(
375        &self,
376        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
377            '_,
378            ::aws_smithy_runtime_api::client::interceptors::context::Input,
379            ::aws_smithy_runtime_api::client::interceptors::context::Output,
380            ::aws_smithy_runtime_api::client::interceptors::context::Error,
381        >,
382        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
383    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
384        let _input = context
385            .input()
386            .downcast_ref::<ListColumnStatisticsTaskRunsInput>()
387            .ok_or("failed to downcast to ListColumnStatisticsTaskRunsInput")?;
388
389        let params = crate::config::endpoint::Params::builder()
390            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
391            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
392            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
393            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
394            .build()
395            .map_err(|err| {
396                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
397            })?;
398        cfg.interceptor_state()
399            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
400        ::std::result::Result::Ok(())
401    }
402}
403
404// The get_* functions below are generated from JMESPath expressions in the
405// operationContextParams trait. They target the operation's input shape.
406
407/// Error type for the `ListColumnStatisticsTaskRunsError` operation.
408#[non_exhaustive]
409#[derive(::std::fmt::Debug)]
410pub enum ListColumnStatisticsTaskRunsError {
411    /// <p>The operation timed out.</p>
412    OperationTimeoutException(crate::types::error::OperationTimeoutException),
413    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
414    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
415    variable wildcard pattern and check `.code()`:
416     \
417    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
418     \
419    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ListColumnStatisticsTaskRunsError) for what information is available for the error.")]
420    Unhandled(crate::error::sealed_unhandled::Unhandled),
421}
422impl ListColumnStatisticsTaskRunsError {
423    /// Creates the `ListColumnStatisticsTaskRunsError::Unhandled` variant from any error type.
424    pub fn unhandled(
425        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
426    ) -> Self {
427        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
428            source: err.into(),
429            meta: ::std::default::Default::default(),
430        })
431    }
432
433    /// Creates the `ListColumnStatisticsTaskRunsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
434    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
435        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
436            source: err.clone().into(),
437            meta: err,
438        })
439    }
440    ///
441    /// Returns error metadata, which includes the error code, message,
442    /// request ID, and potentially additional information.
443    ///
444    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
445        match self {
446            Self::OperationTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
447            Self::Unhandled(e) => &e.meta,
448        }
449    }
450    /// Returns `true` if the error kind is `ListColumnStatisticsTaskRunsError::OperationTimeoutException`.
451    pub fn is_operation_timeout_exception(&self) -> bool {
452        matches!(self, Self::OperationTimeoutException(_))
453    }
454}
455impl ::std::error::Error for ListColumnStatisticsTaskRunsError {
456    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
457        match self {
458            Self::OperationTimeoutException(_inner) => ::std::option::Option::Some(_inner),
459            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
460        }
461    }
462}
463impl ::std::fmt::Display for ListColumnStatisticsTaskRunsError {
464    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
465        match self {
466            Self::OperationTimeoutException(_inner) => _inner.fmt(f),
467            Self::Unhandled(_inner) => {
468                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
469                    write!(f, "unhandled error ({code})")
470                } else {
471                    f.write_str("unhandled error")
472                }
473            }
474        }
475    }
476}
477impl ::aws_smithy_types::retry::ProvideErrorKind for ListColumnStatisticsTaskRunsError {
478    fn code(&self) -> ::std::option::Option<&str> {
479        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
480    }
481    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
482        ::std::option::Option::None
483    }
484}
485impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ListColumnStatisticsTaskRunsError {
486    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
487        match self {
488            Self::OperationTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
489            Self::Unhandled(_inner) => &_inner.meta,
490        }
491    }
492}
493impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ListColumnStatisticsTaskRunsError {
494    fn create_unhandled_error(
495        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
496        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
497    ) -> Self {
498        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
499            source,
500            meta: meta.unwrap_or_default(),
501        })
502    }
503}
504impl ::aws_types::request_id::RequestId for crate::operation::list_column_statistics_task_runs::ListColumnStatisticsTaskRunsError {
505    fn request_id(&self) -> Option<&str> {
506        self.meta().request_id()
507    }
508}
509
510pub use crate::operation::list_column_statistics_task_runs::_list_column_statistics_task_runs_input::ListColumnStatisticsTaskRunsInput;
511
512pub use crate::operation::list_column_statistics_task_runs::_list_column_statistics_task_runs_output::ListColumnStatisticsTaskRunsOutput;
513
514mod _list_column_statistics_task_runs_input;
515
516mod _list_column_statistics_task_runs_output;
517
518/// Builders
519pub mod builders;
520
521/// Paginator for this operation
522pub mod paginator;