Skip to main content

aws_sdk_glue/operation/
run_statement.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `RunStatement`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct RunStatement;
6impl RunStatement {
7    /// Creates a new `RunStatement`
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> = crate::operation::run_statement::RunStatementInput::SCHEMA;
13    /// The schema for this operation's output shape.
14    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::run_statement::RunStatementOutput::SCHEMA;
15    pub(crate) async fn orchestrate(
16        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
17        input: crate::operation::run_statement::RunStatementInput,
18    ) -> ::std::result::Result<
19        crate::operation::run_statement::RunStatementOutput,
20        ::aws_smithy_runtime_api::client::result::SdkError<
21            crate::operation::run_statement::RunStatementError,
22            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
23        >,
24    > {
25        let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
26            ::aws_smithy_runtime_api::client::interceptors::context::Error,
27            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
28        >| {
29            err.map_service_error(|err| {
30                err.downcast::<crate::operation::run_statement::RunStatementError>()
31                    .expect("correct error type")
32            })
33        };
34        let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
35            .await
36            .map_err(map_err)?;
37        let output = context.finalize().map_err(map_err)?;
38        ::std::result::Result::Ok(
39            output
40                .downcast::<crate::operation::run_statement::RunStatementOutput>()
41                .expect("correct output type"),
42        )
43    }
44
45    pub(crate) async fn orchestrate_with_stop_point(
46        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
47        input: crate::operation::run_statement::RunStatementInput,
48        stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
49    ) -> ::std::result::Result<
50        ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
51        ::aws_smithy_runtime_api::client::result::SdkError<
52            ::aws_smithy_runtime_api::client::interceptors::context::Error,
53            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
54        >,
55    > {
56        let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
57        use ::tracing::Instrument;
58        ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("Glue", "RunStatement", input, runtime_plugins, stop_point)
59            // Create a parent span for the entire operation. Includes a random, internal-only,
60            // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
61            .instrument(::tracing::debug_span!(
62                "Glue.RunStatement",
63                "rpc.service" = "Glue",
64                "rpc.method" = "RunStatement",
65                "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
66                "rpc.system" = "aws-api",
67            ))
68            .await
69    }
70
71    pub(crate) fn operation_runtime_plugins(
72        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
73        client_config: &crate::config::Config,
74        config_override: ::std::option::Option<crate::config::Builder>,
75    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
76        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
77
78        if let ::std::option::Option::Some(config_override) = config_override {
79            for plugin in config_override.runtime_plugins.iter().cloned() {
80                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
81            }
82            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
83                config_override,
84                client_config.config.clone(),
85                &client_config.runtime_components,
86            ));
87        }
88        runtime_plugins
89    }
90}
91/// Per-operation error registry. Contains an entry for every modeled
92/// error this operation can throw.
93///
94/// Used by the schema-serde error path as the operation-scoped lookup
95/// for registry-backed error reification: an error code that does not
96/// match one of the operation's modeled errors directly is resolved
97/// against this registry first, then widened to the service-wide error
98/// registry.
99pub(crate) mod error_registry {
100    pub(crate) static REGISTRY: ::std::sync::LazyLock<::aws_smithy_schema::registry::TypeRegistry> = ::std::sync::LazyLock::new(|| {
101        ::aws_smithy_schema::registry::TypeRegistry::builder()
102                            .insert_error_shape(
103                        crate::types::error::AccessDeniedException::SCHEMA,
104                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
105                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::AccessDeniedException::deserialize(d)?))
106                        },
107                        |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> {
108                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::AccessDeniedException::deserialize(d)?))
109                        },
110                    )
111.insert_error_shape(
112                        crate::types::error::EntityNotFoundException::SCHEMA,
113                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
114                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::EntityNotFoundException::deserialize(d)?))
115                        },
116                        |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> {
117                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::EntityNotFoundException::deserialize(d)?))
118                        },
119                    )
120.insert_error_shape(
121                        crate::types::error::IllegalSessionStateException::SCHEMA,
122                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
123                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::IllegalSessionStateException::deserialize(d)?))
124                        },
125                        |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> {
126                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::IllegalSessionStateException::deserialize(d)?))
127                        },
128                    )
129.insert_error_shape(
130                        crate::types::error::InternalServiceException::SCHEMA,
131                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
132                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InternalServiceException::deserialize(d)?))
133                        },
134                        |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> {
135                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InternalServiceException::deserialize(d)?))
136                        },
137                    )
138.insert_error_shape(
139                        crate::types::error::InvalidInputException::SCHEMA,
140                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
141                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InvalidInputException::deserialize(d)?))
142                        },
143                        |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> {
144                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InvalidInputException::deserialize(d)?))
145                        },
146                    )
147.insert_error_shape(
148                        crate::types::error::OperationNotSupportedException::SCHEMA,
149                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
150                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::OperationNotSupportedException::deserialize(d)?))
151                        },
152                        |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> {
153                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::OperationNotSupportedException::deserialize(d)?))
154                        },
155                    )
156.insert_error_shape(
157                        crate::types::error::OperationTimeoutException::SCHEMA,
158                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
159                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::OperationTimeoutException::deserialize(d)?))
160                        },
161                        |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> {
162                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::OperationTimeoutException::deserialize(d)?))
163                        },
164                    )
165.insert_error_shape(
166                        crate::types::error::ResourceNumberLimitExceededException::SCHEMA,
167                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
168                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::ResourceNumberLimitExceededException::deserialize(d)?))
169                        },
170                        |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> {
171                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::ResourceNumberLimitExceededException::deserialize(d)?))
172                        },
173                    )
174.insert_error_shape(
175                        crate::types::error::SessionBusyException::SCHEMA,
176                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
177                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::SessionBusyException::deserialize(d)?))
178                        },
179                        |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> {
180                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::SessionBusyException::deserialize(d)?))
181                        },
182                    )
183.insert_error_shape(
184                        crate::types::error::ValidationException::SCHEMA,
185                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
186                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::ValidationException::deserialize(d)?))
187                        },
188                        |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> {
189                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::ValidationException::deserialize(d)?))
190                        },
191                    )
192                            .build()
193    });
194}
195impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for RunStatement {
196    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
197        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("RunStatement");
198
199        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
200            RunStatementRequestSerializer,
201        ));
202        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
203            RunStatementResponseDeserializer,
204        ));
205
206        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
207            crate::config::auth::Params::builder()
208                .operation_name("RunStatement")
209                .build()
210                .expect("required fields set"),
211        ));
212
213        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("RunStatement", "Glue"));
214        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
215        signing_options.double_uri_encode = true;
216        signing_options.content_sha256_header = false;
217        signing_options.normalize_uri_path = true;
218        signing_options.payload_override = None;
219
220        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
221            signing_options,
222            ..::std::default::Default::default()
223        });
224
225        ::std::option::Option::Some(cfg.freeze())
226    }
227
228    fn runtime_components(
229        &self,
230        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
231    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
232        #[allow(unused_mut)]
233        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("RunStatement")
234            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
235                RunStatementTelemetryInputCaptureInterceptor,
236            ))
237            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
238                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
239            ))
240            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
241                RunStatementEndpointParamsInterceptor,
242            ))
243            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
244                crate::operation::run_statement::RunStatementError,
245            >::new())
246            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
247                crate::operation::run_statement::RunStatementError,
248            >::new())
249            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
250                crate::operation::run_statement::RunStatementError,
251            >::new())
252            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
253                crate::operation::run_statement::RunStatementError,
254            >::new());
255
256        ::std::borrow::Cow::Owned(rcb)
257    }
258}
259
260#[derive(Debug)]
261struct RunStatementTelemetryInputCaptureInterceptor;
262
263#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
264impl ::aws_smithy_runtime_api::client::interceptors::Intercept for RunStatementTelemetryInputCaptureInterceptor {
265    fn name(&self) -> &'static str {
266        "RunStatementTelemetryInputCaptureInterceptor"
267    }
268
269    fn read_before_execution(
270        &self,
271        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
272            '_,
273            ::aws_smithy_runtime_api::client::interceptors::context::Input,
274            ::aws_smithy_runtime_api::client::interceptors::context::Output,
275            ::aws_smithy_runtime_api::client::interceptors::context::Error,
276        >,
277        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
278    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
279        // Nothing to do unless the customer opted in by naming members to record.
280        let ::std::option::Option::Some(requested) = cfg
281            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
282            .filter(|r| !r.is_empty())
283        else {
284            return ::std::result::Result::Ok(());
285        };
286
287        let ::std::option::Option::Some(input) = context.input().downcast_ref::<RunStatementInput>() else {
288            // A mismatched input is not this interceptor's concern; skip quietly.
289            return ::std::result::Result::Ok(());
290        };
291
292        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
293        if requested.should_capture("SessionId") {
294            if let ::std::option::Option::Some(value) = input.session_id.as_deref() {
295                captured.insert("SessionId", value);
296            }
297        }
298        if requested.should_capture("Code") {
299            if let ::std::option::Option::Some(value) = input.code.as_deref() {
300                captured.insert("Code", value);
301            }
302        }
303        if requested.should_capture("RequestOrigin") {
304            if let ::std::option::Option::Some(value) = input.request_origin.as_deref() {
305                captured.insert("RequestOrigin", value);
306            }
307        }
308
309        cfg.interceptor_state().store_put(captured);
310        ::std::result::Result::Ok(())
311    }
312}
313#[derive(Debug)]
314struct RunStatementResponseDeserializer;
315impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for RunStatementResponseDeserializer {
316    fn deserialize_nonstreaming_with_config(
317        &self,
318        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
319        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
320    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
321        let (success, status) = (response.status().is_success(), response.status().as_u16());
322        // Load body and headers BEFORE BeforeParseResponse so customizations
323        // (e.g., S3's `body_is_error` check that detects errors returned with
324        // HTTP 200) can inspect them. The legacy non-streaming path also
325        // loads `body` before firing this hook.
326        #[allow(unused_variables)]
327        let body = response.body().bytes().expect("body loaded");
328        let headers = response.headers();
329        #[allow(unused_mut)]
330        let mut force_error = false;
331        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
332        if !success && status != 200 || force_error {
333            let protocol = _cfg
334                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
335                .expect("a SharedClientProtocol is required");
336            #[allow(unused_mut)]
337            let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
338                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
339            })?;
340            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
341            let generic = generic_builder.build();
342            let error_code = match generic.code() {
343                ::std::option::Option::Some(code) => code,
344                ::std::option::Option::None => {
345                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
346                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::run_statement::RunStatementError::unhandled(generic)),
347                    ))
348                }
349            };
350            let _error_message = generic.message().map(|msg| msg.to_owned());
351            let err = match error_code {
352                "AccessDeniedException" => crate::operation::run_statement::RunStatementError::AccessDeniedException({
353                    let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
354                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
355                            e,
356                        ))
357                    })?;
358                    let mut tmp = <crate::types::error::builders::AccessDeniedExceptionBuilder>::default();
359                    tmp.deserialize_members(&mut *deser).map_err(|e| {
360                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
361                            e,
362                        ))
363                    })?;
364                    if tmp.message.is_none() {
365                        tmp.message = _error_message;
366                    }
367                    let tmp = tmp.meta(generic);
368                    tmp.build()
369                }),
370                "EntityNotFoundException" => crate::operation::run_statement::RunStatementError::EntityNotFoundException({
371                    let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
372                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
373                            e,
374                        ))
375                    })?;
376                    let mut tmp = <crate::types::error::builders::EntityNotFoundExceptionBuilder>::default();
377                    tmp.deserialize_members(&mut *deser).map_err(|e| {
378                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
379                            e,
380                        ))
381                    })?;
382                    if tmp.message.is_none() {
383                        tmp.message = _error_message;
384                    }
385                    let tmp = tmp.meta(generic);
386                    tmp.build()
387                }),
388                "IllegalSessionStateException" => crate::operation::run_statement::RunStatementError::IllegalSessionStateException({
389                    let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
390                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
391                            e,
392                        ))
393                    })?;
394                    let mut tmp = <crate::types::error::builders::IllegalSessionStateExceptionBuilder>::default();
395                    tmp.deserialize_members(&mut *deser).map_err(|e| {
396                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
397                            e,
398                        ))
399                    })?;
400                    if tmp.message.is_none() {
401                        tmp.message = _error_message;
402                    }
403                    let tmp = tmp.meta(generic);
404                    tmp.build()
405                }),
406                "InternalServiceException" => crate::operation::run_statement::RunStatementError::InternalServiceException({
407                    let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
408                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
409                            e,
410                        ))
411                    })?;
412                    let mut tmp = <crate::types::error::builders::InternalServiceExceptionBuilder>::default();
413                    tmp.deserialize_members(&mut *deser).map_err(|e| {
414                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
415                            e,
416                        ))
417                    })?;
418                    if tmp.message.is_none() {
419                        tmp.message = _error_message;
420                    }
421                    let tmp = tmp.meta(generic);
422                    tmp.build()
423                }),
424                "InvalidInputException" => crate::operation::run_statement::RunStatementError::InvalidInputException({
425                    let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
426                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
427                            e,
428                        ))
429                    })?;
430                    let mut tmp = <crate::types::error::builders::InvalidInputExceptionBuilder>::default();
431                    tmp.deserialize_members(&mut *deser).map_err(|e| {
432                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
433                            e,
434                        ))
435                    })?;
436                    if tmp.message.is_none() {
437                        tmp.message = _error_message;
438                    }
439                    let tmp = tmp.meta(generic);
440                    tmp.build()
441                }),
442                "OperationNotSupportedException" => crate::operation::run_statement::RunStatementError::OperationNotSupportedException({
443                    let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
444                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
445                            e,
446                        ))
447                    })?;
448                    let mut tmp = <crate::types::error::builders::OperationNotSupportedExceptionBuilder>::default();
449                    tmp.deserialize_members(&mut *deser).map_err(|e| {
450                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
451                            e,
452                        ))
453                    })?;
454                    if tmp.message.is_none() {
455                        tmp.message = _error_message;
456                    }
457                    let tmp = tmp.meta(generic);
458                    tmp.build()
459                }),
460                "OperationTimeoutException" => crate::operation::run_statement::RunStatementError::OperationTimeoutException({
461                    let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
462                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
463                            e,
464                        ))
465                    })?;
466                    let mut tmp = <crate::types::error::builders::OperationTimeoutExceptionBuilder>::default();
467                    tmp.deserialize_members(&mut *deser).map_err(|e| {
468                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
469                            e,
470                        ))
471                    })?;
472                    if tmp.message.is_none() {
473                        tmp.message = _error_message;
474                    }
475                    let tmp = tmp.meta(generic);
476                    tmp.build()
477                }),
478                "ResourceNumberLimitExceededException" => crate::operation::run_statement::RunStatementError::ResourceNumberLimitExceededException({
479                    let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
480                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
481                            e,
482                        ))
483                    })?;
484                    let mut tmp = <crate::types::error::builders::ResourceNumberLimitExceededExceptionBuilder>::default();
485                    tmp.deserialize_members(&mut *deser).map_err(|e| {
486                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
487                            e,
488                        ))
489                    })?;
490                    if tmp.message.is_none() {
491                        tmp.message = _error_message;
492                    }
493                    let tmp = tmp.meta(generic);
494                    tmp.build()
495                }),
496                "SessionBusyException" => crate::operation::run_statement::RunStatementError::SessionBusyException({
497                    let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
498                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
499                            e,
500                        ))
501                    })?;
502                    let mut tmp = <crate::types::error::builders::SessionBusyExceptionBuilder>::default();
503                    tmp.deserialize_members(&mut *deser).map_err(|e| {
504                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
505                            e,
506                        ))
507                    })?;
508                    if tmp.message.is_none() {
509                        tmp.message = _error_message;
510                    }
511                    let tmp = tmp.meta(generic);
512                    tmp.build()
513                }),
514                "ValidationException" => crate::operation::run_statement::RunStatementError::ValidationException({
515                    let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
516                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
517                            e,
518                        ))
519                    })?;
520                    let mut tmp = <crate::types::error::builders::ValidationExceptionBuilder>::default();
521                    tmp.deserialize_members(&mut *deser).map_err(|e| {
522                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
523                            e,
524                        ))
525                    })?;
526                    if tmp.message.is_none() {
527                        tmp.message = _error_message;
528                    }
529                    let tmp = tmp.meta(generic);
530                    tmp.build()
531                }),
532                _ => {
533                    // Registry-backed, operation-scoped reification of an error whose
534                    // code this operation does not model directly: the operation's own
535                    // error registry is consulted first, then the lookup widens to the
536                    // service-wide error registry. On a hit, the reified error is attached
537                    // as the source of the returned unhandled error while its metadata
538                    // (code, message, request id) is preserved; on a miss the generic
539                    // error is returned unchanged.
540                    match protocol
541                        .deserialize_error_response(response, _cfg)
542                        .ok()
543                        .and_then(|mut deser| {
544                            ::aws_smithy_schema::registry::reify_error(
545                                crate::operation::run_statement::error_registry::REGISTRY
546                                    .or(&crate::error_type_registry::REGISTRY),
547                                error_code,
548                                &mut *deser,
549                            )
550                        }) {
551                        ::std::option::Option::Some(source) => <crate::operation::run_statement::RunStatementError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
552                        ::std::option::Option::None => crate::operation::run_statement::RunStatementError::generic(generic),
553                    }
554                }
555            };
556            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
557                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
558            ))
559        } else {
560            let protocol = _cfg
561                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
562                .expect("a SharedClientProtocol is required");
563            let mut deser = protocol.deserialize_response(response, RunStatement::OUTPUT_SCHEMA, _cfg).map_err(|e| {
564                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
565            })?;
566            // `headers` is already in scope from the top of the function; alias it as
567            // `_response_headers` so MutateOutput customizations have a stable name to
568            // read from.
569            let _response_headers = headers;
570            // `mut` is required because `deserialize_members` and the `MutateOutput`
571            // builder setters take `&mut self`. Marked `allow(unused_mut)` because an
572            // empty output has no members and no customizations to run.
573            #[allow(unused_mut)]
574            let mut output = <crate::operation::run_statement::builders::RunStatementOutputBuilder>::default();
575            output.deserialize_members(&mut *deser).map_err(|e| {
576                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
577            })?;
578            output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
579            let output = output.build();
580            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
581        }
582    }
583}
584#[derive(Debug)]
585struct RunStatementRequestSerializer;
586impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for RunStatementRequestSerializer {
587    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
588    fn serialize_input(
589        &self,
590        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
591        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
592    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
593        let input = input
594            .downcast::<crate::operation::run_statement::RunStatementInput>()
595            .expect("correct type");
596
597        let protocol = _cfg
598            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
599            .expect("a SharedClientProtocol is required");
600        let mut request = protocol
601            .serialize_request(&input, RunStatement::INPUT_SCHEMA, "/", _cfg)
602            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
603
604        return ::std::result::Result::Ok(request);
605    }
606}
607#[derive(Debug)]
608struct RunStatementEndpointParamsInterceptor;
609
610#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
611impl ::aws_smithy_runtime_api::client::interceptors::Intercept for RunStatementEndpointParamsInterceptor {
612    fn name(&self) -> &'static str {
613        "RunStatementEndpointParamsInterceptor"
614    }
615
616    fn read_before_execution(
617        &self,
618        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
619            '_,
620            ::aws_smithy_runtime_api::client::interceptors::context::Input,
621            ::aws_smithy_runtime_api::client::interceptors::context::Output,
622            ::aws_smithy_runtime_api::client::interceptors::context::Error,
623        >,
624        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
625    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
626        let _input = context
627            .input()
628            .downcast_ref::<RunStatementInput>()
629            .ok_or("failed to downcast to RunStatementInput")?;
630
631        let params = crate::config::endpoint::Params::builder()
632            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
633            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
634            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
635            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
636            .build()
637            .map_err(|err| {
638                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
639            })?;
640        cfg.interceptor_state()
641            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
642        ::std::result::Result::Ok(())
643    }
644}
645
646// The get_* functions below are generated from JMESPath expressions in the
647// operationContextParams trait. They target the operation's input shape.
648
649/// Error type for the `RunStatementError` operation.
650#[non_exhaustive]
651#[derive(::std::fmt::Debug)]
652pub enum RunStatementError {
653    /// <p>Access to a resource was denied.</p>
654    AccessDeniedException(crate::types::error::AccessDeniedException),
655    /// <p>A specified entity does not exist</p>
656    EntityNotFoundException(crate::types::error::EntityNotFoundException),
657    /// <p>The session is in an invalid state to perform a requested operation.</p>
658    IllegalSessionStateException(crate::types::error::IllegalSessionStateException),
659    /// <p>An internal service error occurred.</p>
660    InternalServiceException(crate::types::error::InternalServiceException),
661    /// <p>The input provided was not valid.</p>
662    InvalidInputException(crate::types::error::InvalidInputException),
663    /// <p>The operation is not available in the region.</p>
664    OperationNotSupportedException(crate::types::error::OperationNotSupportedException),
665    /// <p>The operation timed out.</p>
666    OperationTimeoutException(crate::types::error::OperationTimeoutException),
667    /// <p>A resource numerical limit was exceeded.</p>
668    ResourceNumberLimitExceededException(crate::types::error::ResourceNumberLimitExceededException),
669    /// <p>The session is currently busy processing another request and cannot accept new operations.</p>
670    SessionBusyException(crate::types::error::SessionBusyException),
671    /// <p>A value could not be validated.</p>
672    ValidationException(crate::types::error::ValidationException),
673    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
674    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
675    variable wildcard pattern and check `.code()`:
676     \
677    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
678     \
679    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-RunStatementError) for what information is available for the error.")]
680    Unhandled(crate::error::sealed_unhandled::Unhandled),
681}
682impl RunStatementError {
683    /// Creates the `RunStatementError::Unhandled` variant from any error type.
684    pub fn unhandled(
685        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
686    ) -> Self {
687        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
688            source: err.into(),
689            meta: ::std::default::Default::default(),
690        })
691    }
692
693    /// Creates the `RunStatementError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
694    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
695        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
696            source: err.clone().into(),
697            meta: err,
698        })
699    }
700    ///
701    /// Returns error metadata, which includes the error code, message,
702    /// request ID, and potentially additional information.
703    ///
704    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
705        match self {
706            Self::AccessDeniedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
707            Self::EntityNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
708            Self::IllegalSessionStateException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
709            Self::InternalServiceException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
710            Self::InvalidInputException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
711            Self::OperationNotSupportedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
712            Self::OperationTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
713            Self::ResourceNumberLimitExceededException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
714            Self::SessionBusyException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
715            Self::ValidationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
716            Self::Unhandled(e) => &e.meta,
717        }
718    }
719    /// Returns `true` if the error kind is `RunStatementError::AccessDeniedException`.
720    pub fn is_access_denied_exception(&self) -> bool {
721        matches!(self, Self::AccessDeniedException(_))
722    }
723    /// Returns `true` if the error kind is `RunStatementError::EntityNotFoundException`.
724    pub fn is_entity_not_found_exception(&self) -> bool {
725        matches!(self, Self::EntityNotFoundException(_))
726    }
727    /// Returns `true` if the error kind is `RunStatementError::IllegalSessionStateException`.
728    pub fn is_illegal_session_state_exception(&self) -> bool {
729        matches!(self, Self::IllegalSessionStateException(_))
730    }
731    /// Returns `true` if the error kind is `RunStatementError::InternalServiceException`.
732    pub fn is_internal_service_exception(&self) -> bool {
733        matches!(self, Self::InternalServiceException(_))
734    }
735    /// Returns `true` if the error kind is `RunStatementError::InvalidInputException`.
736    pub fn is_invalid_input_exception(&self) -> bool {
737        matches!(self, Self::InvalidInputException(_))
738    }
739    /// Returns `true` if the error kind is `RunStatementError::OperationNotSupportedException`.
740    pub fn is_operation_not_supported_exception(&self) -> bool {
741        matches!(self, Self::OperationNotSupportedException(_))
742    }
743    /// Returns `true` if the error kind is `RunStatementError::OperationTimeoutException`.
744    pub fn is_operation_timeout_exception(&self) -> bool {
745        matches!(self, Self::OperationTimeoutException(_))
746    }
747    /// Returns `true` if the error kind is `RunStatementError::ResourceNumberLimitExceededException`.
748    pub fn is_resource_number_limit_exceeded_exception(&self) -> bool {
749        matches!(self, Self::ResourceNumberLimitExceededException(_))
750    }
751    /// Returns `true` if the error kind is `RunStatementError::SessionBusyException`.
752    pub fn is_session_busy_exception(&self) -> bool {
753        matches!(self, Self::SessionBusyException(_))
754    }
755    /// Returns `true` if the error kind is `RunStatementError::ValidationException`.
756    pub fn is_validation_exception(&self) -> bool {
757        matches!(self, Self::ValidationException(_))
758    }
759}
760impl ::std::error::Error for RunStatementError {
761    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
762        match self {
763            Self::AccessDeniedException(_inner) => ::std::option::Option::Some(_inner),
764            Self::EntityNotFoundException(_inner) => ::std::option::Option::Some(_inner),
765            Self::IllegalSessionStateException(_inner) => ::std::option::Option::Some(_inner),
766            Self::InternalServiceException(_inner) => ::std::option::Option::Some(_inner),
767            Self::InvalidInputException(_inner) => ::std::option::Option::Some(_inner),
768            Self::OperationNotSupportedException(_inner) => ::std::option::Option::Some(_inner),
769            Self::OperationTimeoutException(_inner) => ::std::option::Option::Some(_inner),
770            Self::ResourceNumberLimitExceededException(_inner) => ::std::option::Option::Some(_inner),
771            Self::SessionBusyException(_inner) => ::std::option::Option::Some(_inner),
772            Self::ValidationException(_inner) => ::std::option::Option::Some(_inner),
773            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
774        }
775    }
776}
777impl ::std::fmt::Display for RunStatementError {
778    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
779        match self {
780            Self::AccessDeniedException(_inner) => _inner.fmt(f),
781            Self::EntityNotFoundException(_inner) => _inner.fmt(f),
782            Self::IllegalSessionStateException(_inner) => _inner.fmt(f),
783            Self::InternalServiceException(_inner) => _inner.fmt(f),
784            Self::InvalidInputException(_inner) => _inner.fmt(f),
785            Self::OperationNotSupportedException(_inner) => _inner.fmt(f),
786            Self::OperationTimeoutException(_inner) => _inner.fmt(f),
787            Self::ResourceNumberLimitExceededException(_inner) => _inner.fmt(f),
788            Self::SessionBusyException(_inner) => _inner.fmt(f),
789            Self::ValidationException(_inner) => _inner.fmt(f),
790            Self::Unhandled(_inner) => {
791                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
792                    write!(f, "unhandled error ({code})")
793                } else {
794                    f.write_str("unhandled error")
795                }
796            }
797        }
798    }
799}
800impl ::aws_smithy_types::retry::ProvideErrorKind for RunStatementError {
801    fn code(&self) -> ::std::option::Option<&str> {
802        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
803    }
804    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
805        ::std::option::Option::None
806    }
807}
808impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for RunStatementError {
809    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
810        match self {
811            Self::AccessDeniedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
812            Self::EntityNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
813            Self::IllegalSessionStateException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
814            Self::InternalServiceException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
815            Self::InvalidInputException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
816            Self::OperationNotSupportedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
817            Self::OperationTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
818            Self::ResourceNumberLimitExceededException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
819            Self::SessionBusyException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
820            Self::ValidationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
821            Self::Unhandled(_inner) => &_inner.meta,
822        }
823    }
824}
825impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for RunStatementError {
826    fn create_unhandled_error(
827        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
828        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
829    ) -> Self {
830        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
831            source,
832            meta: meta.unwrap_or_default(),
833        })
834    }
835}
836impl ::aws_types::request_id::RequestId for crate::operation::run_statement::RunStatementError {
837    fn request_id(&self) -> Option<&str> {
838        self.meta().request_id()
839    }
840}
841
842pub use crate::operation::run_statement::_run_statement_input::RunStatementInput;
843
844pub use crate::operation::run_statement::_run_statement_output::RunStatementOutput;
845
846mod _run_statement_input;
847
848mod _run_statement_output;
849
850/// Builders
851pub mod builders;