Skip to main content

aws_sdk_omics/operation/
list_runs.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `ListRuns`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct ListRuns;
6impl ListRuns {
7    /// Creates a new `ListRuns`
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_runs::ListRunsInput,
14    ) -> ::std::result::Result<
15        crate::operation::list_runs::ListRunsOutput,
16        ::aws_smithy_runtime_api::client::result::SdkError<
17            crate::operation::list_runs::ListRunsError,
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_runs::ListRunsError>().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_runs::ListRunsOutput>()
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_runs::ListRunsInput,
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("Omics", "ListRuns", 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                "Omics.ListRuns",
55                "rpc.service" = "Omics",
56                "rpc.method" = "ListRuns",
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 ListRuns {
84    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
85        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("ListRuns");
86
87        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
88            ListRunsRequestSerializer,
89        ));
90        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
91            ListRunsResponseDeserializer,
92        ));
93
94        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
95            crate::config::auth::Params::builder()
96                .operation_name("ListRuns")
97                .build()
98                .expect("required fields set"),
99        ));
100
101        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("ListRuns", "Omics"));
102        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
103        signing_options.double_uri_encode = true;
104        signing_options.content_sha256_header = false;
105        signing_options.normalize_uri_path = true;
106        signing_options.payload_override = None;
107
108        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
109            signing_options,
110            ..::std::default::Default::default()
111        });
112
113        ::std::option::Option::Some(cfg.freeze())
114    }
115
116    fn runtime_components(
117        &self,
118        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
119    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
120        #[allow(unused_mut)]
121        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("ListRuns")
122            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
123                ListRunsTelemetryInputCaptureInterceptor,
124            ))
125            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
126                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
127            ))
128            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
129                ListRunsEndpointParamsInterceptor,
130            ))
131            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
132                crate::operation::list_runs::ListRunsError,
133            >::new())
134            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
135                crate::operation::list_runs::ListRunsError,
136            >::new())
137            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
138                crate::operation::list_runs::ListRunsError,
139            >::new());
140
141        ::std::borrow::Cow::Owned(rcb)
142    }
143}
144
145#[derive(Debug)]
146struct ListRunsTelemetryInputCaptureInterceptor;
147
148#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
149impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListRunsTelemetryInputCaptureInterceptor {
150    fn name(&self) -> &'static str {
151        "ListRunsTelemetryInputCaptureInterceptor"
152    }
153
154    fn read_before_execution(
155        &self,
156        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
157            '_,
158            ::aws_smithy_runtime_api::client::interceptors::context::Input,
159            ::aws_smithy_runtime_api::client::interceptors::context::Output,
160            ::aws_smithy_runtime_api::client::interceptors::context::Error,
161        >,
162        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
163    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
164        // Nothing to do unless the customer opted in by naming members to record.
165        let ::std::option::Option::Some(requested) = cfg
166            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
167            .filter(|r| !r.is_empty())
168        else {
169            return ::std::result::Result::Ok(());
170        };
171
172        let ::std::option::Option::Some(input) = context.input().downcast_ref::<ListRunsInput>() else {
173            // A mismatched input is not this interceptor's concern; skip quietly.
174            return ::std::result::Result::Ok(());
175        };
176
177        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
178        if requested.should_capture("name") {
179            if let ::std::option::Option::Some(value) = input.name.as_deref() {
180                captured.insert("name", value);
181            }
182        }
183        if requested.should_capture("runGroupId") {
184            if let ::std::option::Option::Some(value) = input.run_group_id.as_deref() {
185                captured.insert("runGroupId", value);
186            }
187        }
188        if requested.should_capture("batchId") {
189            if let ::std::option::Option::Some(value) = input.batch_id.as_deref() {
190                captured.insert("batchId", value);
191            }
192        }
193        if requested.should_capture("startingToken") {
194            if let ::std::option::Option::Some(value) = input.starting_token.as_deref() {
195                captured.insert("startingToken", value);
196            }
197        }
198
199        cfg.interceptor_state().store_put(captured);
200        ::std::result::Result::Ok(())
201    }
202}
203#[derive(Debug)]
204struct ListRunsResponseDeserializer;
205impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListRunsResponseDeserializer {
206    fn deserialize_nonstreaming_with_config(
207        &self,
208        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
209        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
210    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
211        let (success, status) = (response.status().is_success(), response.status().as_u16());
212        let headers = response.headers();
213        let body = response.body().bytes().expect("body loaded");
214        #[allow(unused_mut)]
215        let mut force_error = false;
216        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
217        let parse_result = if !success && status != 200 || force_error {
218            crate::protocol_serde::shape_list_runs::de_list_runs_http_error(status, headers, body)
219        } else {
220            crate::protocol_serde::shape_list_runs::de_list_runs_http_response(status, headers, body)
221        };
222        crate::protocol_serde::type_erase_result(parse_result)
223    }
224}
225#[derive(Debug)]
226struct ListRunsRequestSerializer;
227impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListRunsRequestSerializer {
228    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
229    fn serialize_input(
230        &self,
231        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
232        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
233    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
234        let input = input.downcast::<crate::operation::list_runs::ListRunsInput>().expect("correct type");
235        let _header_serialization_settings = _cfg
236            .load::<crate::serialization_settings::HeaderSerializationSettings>()
237            .cloned()
238            .unwrap_or_default();
239        let mut request_builder = {
240            #[allow(clippy::uninlined_format_args)]
241            fn uri_base(
242                _input: &crate::operation::list_runs::ListRunsInput,
243                output: &mut ::std::string::String,
244            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
245                use ::std::fmt::Write as _;
246                ::std::write!(output, "/run").expect("formatting should succeed");
247                ::std::result::Result::Ok(())
248            }
249            fn uri_query(
250                _input: &crate::operation::list_runs::ListRunsInput,
251                mut output: &mut ::std::string::String,
252            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
253                let mut query = ::aws_smithy_http::query::Writer::new(output);
254                if let ::std::option::Option::Some(inner_1) = &_input.name {
255                    {
256                        query.push_kv("name", &::aws_smithy_http::query::fmt_string(inner_1));
257                    }
258                }
259                if let ::std::option::Option::Some(inner_2) = &_input.run_group_id {
260                    {
261                        query.push_kv("runGroupId", &::aws_smithy_http::query::fmt_string(inner_2));
262                    }
263                }
264                if let ::std::option::Option::Some(inner_3) = &_input.batch_id {
265                    {
266                        query.push_kv("batchId", &::aws_smithy_http::query::fmt_string(inner_3));
267                    }
268                }
269                if let ::std::option::Option::Some(inner_4) = &_input.starting_token {
270                    {
271                        query.push_kv("startingToken", &::aws_smithy_http::query::fmt_string(inner_4));
272                    }
273                }
274                if let ::std::option::Option::Some(inner_5) = &_input.max_results {
275                    {
276                        query.push_kv("maxResults", ::aws_smithy_types::primitive::Encoder::from(*inner_5).encode());
277                    }
278                }
279                if let ::std::option::Option::Some(inner_6) = &_input.status {
280                    {
281                        query.push_kv("status", &::aws_smithy_http::query::fmt_string(inner_6.as_str()));
282                    }
283                }
284                ::std::result::Result::Ok(())
285            }
286            #[allow(clippy::unnecessary_wraps)]
287            fn update_http_builder(
288                input: &crate::operation::list_runs::ListRunsInput,
289                builder: ::http_1x::request::Builder,
290            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
291                let mut uri = ::std::string::String::new();
292                uri_base(input, &mut uri)?;
293                uri_query(input, &mut uri)?;
294                ::std::result::Result::Ok(builder.method("GET").uri(uri))
295            }
296            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
297            builder
298        };
299        let body = ::aws_smithy_types::body::SdkBody::from("");
300
301        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
302    }
303}
304#[derive(Debug)]
305struct ListRunsEndpointParamsInterceptor;
306
307#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
308impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListRunsEndpointParamsInterceptor {
309    fn name(&self) -> &'static str {
310        "ListRunsEndpointParamsInterceptor"
311    }
312
313    fn read_before_execution(
314        &self,
315        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
316            '_,
317            ::aws_smithy_runtime_api::client::interceptors::context::Input,
318            ::aws_smithy_runtime_api::client::interceptors::context::Output,
319            ::aws_smithy_runtime_api::client::interceptors::context::Error,
320        >,
321        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
322    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
323        let _input = context
324            .input()
325            .downcast_ref::<ListRunsInput>()
326            .ok_or("failed to downcast to ListRunsInput")?;
327
328        let endpoint_prefix = ::aws_smithy_runtime_api::client::endpoint::EndpointPrefix::new("workflows-").map_err(|err| {
329            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint prefix could not be built", err)
330        })?;
331        cfg.interceptor_state().store_put(endpoint_prefix);
332
333        let params = crate::config::endpoint::Params::builder()
334            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
335            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
336            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
337            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
338            .build()
339            .map_err(|err| {
340                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
341            })?;
342        cfg.interceptor_state()
343            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
344        ::std::result::Result::Ok(())
345    }
346}
347
348// The get_* functions below are generated from JMESPath expressions in the
349// operationContextParams trait. They target the operation's input shape.
350
351/// Error type for the `ListRunsError` operation.
352#[non_exhaustive]
353#[derive(::std::fmt::Debug)]
354pub enum ListRunsError {
355    /// <p>You do not have sufficient access to perform this action.</p>
356    AccessDeniedException(crate::types::error::AccessDeniedException),
357    /// <p>The request cannot be applied to the target resource in its current state.</p>
358    ConflictException(crate::types::error::ConflictException),
359    /// <p>An unexpected error occurred. Try the request again.</p>
360    InternalServerException(crate::types::error::InternalServerException),
361    /// <p>The request timed out.</p>
362    RequestTimeoutException(crate::types::error::RequestTimeoutException),
363    /// <p>The target resource was not found in the current Region.</p>
364    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
365    /// <p>The request exceeds a service quota.</p>
366    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
367    /// <p>The request was denied due to request throttling.</p>
368    ThrottlingException(crate::types::error::ThrottlingException),
369    /// <p>The input fails to satisfy the constraints specified by an AWS service.</p>
370    ValidationException(crate::types::error::ValidationException),
371    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
372    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
373    variable wildcard pattern and check `.code()`:
374     \
375    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
376     \
377    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ListRunsError) for what information is available for the error.")]
378    Unhandled(crate::error::sealed_unhandled::Unhandled),
379}
380impl ListRunsError {
381    /// Creates the `ListRunsError::Unhandled` variant from any error type.
382    pub fn unhandled(
383        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
384    ) -> Self {
385        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
386            source: err.into(),
387            meta: ::std::default::Default::default(),
388        })
389    }
390
391    /// Creates the `ListRunsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
392    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
393        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
394            source: err.clone().into(),
395            meta: err,
396        })
397    }
398    ///
399    /// Returns error metadata, which includes the error code, message,
400    /// request ID, and potentially additional information.
401    ///
402    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
403        match self {
404            Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
405            Self::ConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
406            Self::InternalServerException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
407            Self::RequestTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
408            Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
409            Self::ServiceQuotaExceededException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
410            Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
411            Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
412            Self::Unhandled(e) => &e.meta,
413        }
414    }
415    /// Returns `true` if the error kind is `ListRunsError::AccessDeniedException`.
416    pub fn is_access_denied_exception(&self) -> bool {
417        matches!(self, Self::AccessDeniedException(_))
418    }
419    /// Returns `true` if the error kind is `ListRunsError::ConflictException`.
420    pub fn is_conflict_exception(&self) -> bool {
421        matches!(self, Self::ConflictException(_))
422    }
423    /// Returns `true` if the error kind is `ListRunsError::InternalServerException`.
424    pub fn is_internal_server_exception(&self) -> bool {
425        matches!(self, Self::InternalServerException(_))
426    }
427    /// Returns `true` if the error kind is `ListRunsError::RequestTimeoutException`.
428    pub fn is_request_timeout_exception(&self) -> bool {
429        matches!(self, Self::RequestTimeoutException(_))
430    }
431    /// Returns `true` if the error kind is `ListRunsError::ResourceNotFoundException`.
432    pub fn is_resource_not_found_exception(&self) -> bool {
433        matches!(self, Self::ResourceNotFoundException(_))
434    }
435    /// Returns `true` if the error kind is `ListRunsError::ServiceQuotaExceededException`.
436    pub fn is_service_quota_exceeded_exception(&self) -> bool {
437        matches!(self, Self::ServiceQuotaExceededException(_))
438    }
439    /// Returns `true` if the error kind is `ListRunsError::ThrottlingException`.
440    pub fn is_throttling_exception(&self) -> bool {
441        matches!(self, Self::ThrottlingException(_))
442    }
443    /// Returns `true` if the error kind is `ListRunsError::ValidationException`.
444    pub fn is_validation_exception(&self) -> bool {
445        matches!(self, Self::ValidationException(_))
446    }
447}
448impl ::std::error::Error for ListRunsError {
449    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
450        match self {
451            Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner),
452            Self::ConflictException(_inner) => ::std::option::Option::Some(_inner),
453            Self::InternalServerException(_inner) => ::std::option::Option::Some(_inner),
454            Self::RequestTimeoutException(_inner) => ::std::option::Option::Some(_inner),
455            Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner),
456            Self::ServiceQuotaExceededException(_inner) => ::std::option::Option::Some(_inner),
457            Self::ThrottlingException(_inner) => ::std::option::Option::Some(_inner),
458            Self::ValidationException(_inner) => ::std::option::Option::Some(_inner),
459            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
460        }
461    }
462}
463impl ::std::fmt::Display for ListRunsError {
464    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
465        match self {
466            Self::AccessDeniedException(_inner) => _inner.fmt(f),
467            Self::ConflictException(_inner) => _inner.fmt(f),
468            Self::InternalServerException(_inner) => _inner.fmt(f),
469            Self::RequestTimeoutException(_inner) => _inner.fmt(f),
470            Self::ResourceNotFoundException(_inner) => _inner.fmt(f),
471            Self::ServiceQuotaExceededException(_inner) => _inner.fmt(f),
472            Self::ThrottlingException(_inner) => _inner.fmt(f),
473            Self::ValidationException(_inner) => _inner.fmt(f),
474            Self::Unhandled(_inner) => {
475                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
476                    write!(f, "unhandled error ({code})")
477                } else {
478                    f.write_str("unhandled error")
479                }
480            }
481        }
482    }
483}
484impl ::aws_smithy_types::retry::ProvideErrorKind for ListRunsError {
485    fn code(&self) -> ::std::option::Option<&str> {
486        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
487    }
488    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
489        match self {
490            Self::InternalServerException(inner) => ::std::option::Option::Some(inner.retryable_error_kind()),
491            Self::ThrottlingException(inner) => ::std::option::Option::Some(inner.retryable_error_kind()),
492            _ => ::std::option::Option::None,
493        }
494    }
495}
496impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ListRunsError {
497    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
498        match self {
499            Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
500            Self::ConflictException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
501            Self::InternalServerException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
502            Self::RequestTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
503            Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
504            Self::ServiceQuotaExceededException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
505            Self::ThrottlingException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
506            Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
507            Self::Unhandled(_inner) => &_inner.meta,
508        }
509    }
510}
511impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ListRunsError {
512    fn create_unhandled_error(
513        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
514        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
515    ) -> Self {
516        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
517            source,
518            meta: meta.unwrap_or_default(),
519        })
520    }
521}
522impl ::aws_types::request_id::RequestId for crate::operation::list_runs::ListRunsError {
523    fn request_id(&self) -> Option<&str> {
524        self.meta().request_id()
525    }
526}
527
528pub use crate::operation::list_runs::_list_runs_input::ListRunsInput;
529
530pub use crate::operation::list_runs::_list_runs_output::ListRunsOutput;
531
532mod _list_runs_input;
533
534mod _list_runs_output;
535
536/// Builders
537pub mod builders;
538
539/// Paginator for this operation
540pub mod paginator;