1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct Query;
6impl Query {
7 pub fn new() -> Self {
9 Self
10 }
11 pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::query::QueryInput::SCHEMA;
13 pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::query::QueryOutput::SCHEMA;
15 pub(crate) async fn orchestrate(
16 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
17 input: crate::operation::query::QueryInput,
18 ) -> ::std::result::Result<crate::operation::query::QueryOutput, ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query::QueryError, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>> {
19 let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<::aws_smithy_runtime_api::client::interceptors::context::Error, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>| {
20 err.map_service_error(|err| {
21 err.downcast::<crate::operation::query::QueryError>().expect("correct error type")
22 })
23 };
24 let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
25 .await
26 .map_err(map_err)?;
27 let output = context.finalize().map_err(map_err)?;
28 ::std::result::Result::Ok(output.downcast::<crate::operation::query::QueryOutput>().expect("correct output type"))
29 }
30
31 pub(crate) async fn orchestrate_with_stop_point(
32 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
33 input: crate::operation::query::QueryInput,
34 stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
35 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext, ::aws_smithy_runtime_api::client::result::SdkError<::aws_smithy_runtime_api::client::interceptors::context::Error, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>> {
36 let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
37 use ::tracing::Instrument;
38 ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point(
39 "DynamoDB",
40 "Query",
41 input,
42 runtime_plugins,
43 stop_point
44 )
45 .instrument(::tracing::debug_span!(
48 "DynamoDB.Query",
49 "rpc.service" = "DynamoDB",
50 "rpc.method" = "Query",
51 "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
52 "rpc.system" = "aws-api",
53 ))
54 .await
55 }
56
57 pub(crate) fn operation_runtime_plugins(
58 client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
59 client_config: &crate::config::Config,
60 config_override: ::std::option::Option<crate::config::Builder>,
61 ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
62 let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
63
64 if let ::std::option::Option::Some(config_override) = config_override {
65 for plugin in config_override.runtime_plugins.iter().cloned() {
66 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
67 }
68 runtime_plugins = runtime_plugins.with_operation_plugin(
69 crate::config::ConfigOverrideRuntimePlugin::new(config_override, client_config.config.clone(), &client_config.runtime_components)
70 );
71 }
72 runtime_plugins
73 }
74}
75impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for Query {
76 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
77 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("Query");
78
79 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(QueryRequestSerializer));
80 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(QueryResponseDeserializer));
81
82 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
83 crate::config::auth::Params::builder()
84 .operation_name("Query")
85 .build()
86 .expect("required fields set")
87 ));
88
89 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
90 "Query",
91 "DynamoDB",
92 ));
93let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
94 signing_options.double_uri_encode = true;
95 signing_options.content_sha256_header = false;
96 signing_options.normalize_uri_path = true;
97 signing_options.payload_override = None;
98
99 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
100 signing_options,
101 ..::std::default::Default::default()
102 });
103
104 ::std::option::Option::Some(cfg.freeze())
105 }
106
107 fn runtime_components(&self, _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
108 #[allow(unused_mut)]
109 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("Query")
110 .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
111.with_interceptor(QueryEndpointParamsInterceptor)
112 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<crate::operation::query::QueryError>::new())
113.with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<crate::operation::query::QueryError>::new())
114.with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<crate::operation::query::QueryError>::new());
115
116 ::std::borrow::Cow::Owned(rcb)
117 }
118 }
119
120
121#[derive(Debug)]
122 struct QueryResponseDeserializer;
123 impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for QueryResponseDeserializer {
124
125
126 fn deserialize_nonstreaming_with_config(&self, response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse, _cfg: &::aws_smithy_types::config_bag::ConfigBag) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
127 let (success, status) = (response.status().is_success(), response.status().as_u16());
128 #[allow(unused_mut)]
129 let mut force_error = false;
130 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
131 if !success && status != 200 || force_error {
132 let headers = response.headers();
133 let body = response.body().bytes().expect("body loaded");
134#[allow(unused_mut)]
135 let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body)
136 .map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
137 generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
138 let generic = generic_builder.build();
139let error_code = match generic.code() {
140 ::std::option::Option::Some(code) => code,
141 ::std::option::Option::None => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::query::QueryError::unhandled(generic)))),
142 };
143 let _error_message = generic.message().map(|msg| msg.to_owned());
144 let protocol = _cfg.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
145 .expect("a SharedClientProtocol is required");
146let err = match error_code {
147"InternalServerError" => crate::operation::query::QueryError::InternalServerError({
148let mut tmp = match protocol.deserialize_response(response, crate::types::error::InternalServerError::SCHEMA, _cfg)
149 .and_then(|mut deser| crate::types::error::InternalServerError::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
150 {
151 ::std::result::Result::Ok(val) => val,
152 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
153 };
154 tmp.meta = generic;
155if tmp.message.is_none() {
156 tmp.message = _error_message;
157 }
158tmp
159}),
160"InvalidEndpointException" => crate::operation::query::QueryError::InvalidEndpointException({
161let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
162 .and_then(|mut deser| crate::types::error::InvalidEndpointException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
163 {
164 ::std::result::Result::Ok(val) => val,
165 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
166 };
167 tmp.meta = generic;
168if tmp.message.is_none() {
169 tmp.message = _error_message;
170 }
171tmp
172}),
173"ProvisionedThroughputExceededException" => crate::operation::query::QueryError::ProvisionedThroughputExceededException({
174let mut tmp = match protocol.deserialize_response(response, crate::types::error::ProvisionedThroughputExceededException::SCHEMA, _cfg)
175 .and_then(|mut deser| crate::types::error::ProvisionedThroughputExceededException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
176 {
177 ::std::result::Result::Ok(val) => val,
178 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
179 };
180 tmp.meta = generic;
181if tmp.message.is_none() {
182 tmp.message = _error_message;
183 }
184tmp
185}),
186"RequestLimitExceeded" => crate::operation::query::QueryError::RequestLimitExceeded({
187let mut tmp = match protocol.deserialize_response(response, crate::types::error::RequestLimitExceeded::SCHEMA, _cfg)
188 .and_then(|mut deser| crate::types::error::RequestLimitExceeded::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
189 {
190 ::std::result::Result::Ok(val) => val,
191 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
192 };
193 tmp.meta = generic;
194if tmp.message.is_none() {
195 tmp.message = _error_message;
196 }
197tmp
198}),
199"ResourceNotFoundException" => crate::operation::query::QueryError::ResourceNotFoundException({
200let mut tmp = match protocol.deserialize_response(response, crate::types::error::ResourceNotFoundException::SCHEMA, _cfg)
201 .and_then(|mut deser| crate::types::error::ResourceNotFoundException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
202 {
203 ::std::result::Result::Ok(val) => val,
204 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
205 };
206 tmp.meta = generic;
207if tmp.message.is_none() {
208 tmp.message = _error_message;
209 }
210tmp
211}),
212"ThrottlingException" => crate::operation::query::QueryError::ThrottlingException({
213let mut tmp = match protocol.deserialize_response(response, crate::types::error::ThrottlingException::SCHEMA, _cfg)
214 .and_then(|mut deser| crate::types::error::ThrottlingException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
215 {
216 ::std::result::Result::Ok(val) => val,
217 ::std::result::Result::Err(e) => return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))),
218 };
219 tmp.meta = generic;
220if tmp.message.is_none() {
221 tmp.message = _error_message;
222 }
223tmp
224}),
225_ => crate::operation::query::QueryError::generic(generic)
226};
227 ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err)))
228} else {
229 let protocol = _cfg.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
230 .expect("a SharedClientProtocol is required");
231 let mut deser = protocol.deserialize_response(response, Query::OUTPUT_SCHEMA, _cfg)
232 .map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
233 let body = response.body().bytes().expect("body loaded");
234 let output = crate::operation::query::QueryOutput::deserialize_with_response(
235 &mut *deser,
236 response.headers(),
237 response.status().into(),
238 body,
239 ).map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
240 ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
241 }
242 }
243 }
244#[derive(Debug)]
245 struct QueryRequestSerializer;
246 impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for QueryRequestSerializer {
247 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
248 fn serialize_input(&self, input: ::aws_smithy_runtime_api::client::interceptors::context::Input, _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
249 let input = input.downcast::<crate::operation::query::QueryInput>().expect("correct type");
250 let protocol = _cfg.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
251 .expect("a SharedClientProtocol is required");
252 let mut request = protocol.serialize_request(
253 &input, Query::INPUT_SCHEMA, "", _cfg,
254 ).map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
255
256 return ::std::result::Result::Ok(request);
257 }
258 }
259#[derive(Debug)]
260 struct QueryEndpointParamsInterceptor;
261
262 impl ::aws_smithy_runtime_api::client::interceptors::Intercept for QueryEndpointParamsInterceptor {
263 fn name(&self) -> &'static str {
264 "QueryEndpointParamsInterceptor"
265 }
266
267 fn read_before_execution(
268 &self,
269 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<'_, ::aws_smithy_runtime_api::client::interceptors::context::Input, ::aws_smithy_runtime_api::client::interceptors::context::Output, ::aws_smithy_runtime_api::client::interceptors::context::Error>,
270 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
271 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
272 let _input = context.input()
273 .downcast_ref::<QueryInput>()
274 .ok_or("failed to downcast to QueryInput")?;
275
276
277
278 let params = crate::config::endpoint::Params::builder()
279 .set_region(cfg.load::<::aws_types::region::Region>().map(|r|r.as_ref().to_owned()))
280.set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
281.set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
282.set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
283.set_account_id_endpoint_mode(::std::option::Option::Some(cfg.load::<::aws_types::endpoint_config::AccountIdEndpointMode>().cloned().unwrap_or_default().to_string()))
284.set_resource_arn(Some(_input.table_name.clone().filter(|f|!AsRef::<str>::as_ref(f).trim().is_empty()).ok_or_else(||::aws_smithy_types::error::operation::BuildError::missing_field("table_name", "A required field was not set"))?))
285 .build()
286 .map_err(|err| ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err))?;
287 cfg.interceptor_state().store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
288 ::std::result::Result::Ok(())
289 }
290 }
291
292 #[non_exhaustive]
299#[derive(::std::fmt::Debug)]
300pub enum QueryError {
301 InternalServerError(crate::types::error::InternalServerError),
303 #[allow(missing_docs)] InvalidEndpointException(crate::types::error::InvalidEndpointException),
305 ProvisionedThroughputExceededException(crate::types::error::ProvisionedThroughputExceededException),
307 RequestLimitExceeded(crate::types::error::RequestLimitExceeded),
309 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
311 ThrottlingException(crate::types::error::ThrottlingException),
313 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
315 variable wildcard pattern and check `.code()`:
316 \
317 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
318 \
319 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-QueryError) for what information is available for the error.")]
320 Unhandled(crate::error::sealed_unhandled::Unhandled),
321}
322impl QueryError {
323 pub fn unhandled(err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>) -> Self {
325 Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source: err.into(), meta: ::std::default::Default::default() })
326 }
327
328 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
330 Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source: err.clone().into(), meta: err })
331 }
332 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
337 match self {
338 Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
339 Self::InvalidEndpointException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
340 Self::ProvisionedThroughputExceededException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
341 Self::RequestLimitExceeded(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
342 Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
343 Self::ThrottlingException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
344 Self::Unhandled(e) => &e.meta,
345 }
346 }
347 pub fn is_internal_server_error(&self) -> bool {
349 matches!(self, Self::InternalServerError(_))
350 }
351 pub fn is_invalid_endpoint_exception(&self) -> bool {
353 matches!(self, Self::InvalidEndpointException(_))
354 }
355 pub fn is_provisioned_throughput_exceeded_exception(&self) -> bool {
357 matches!(self, Self::ProvisionedThroughputExceededException(_))
358 }
359 pub fn is_request_limit_exceeded(&self) -> bool {
361 matches!(self, Self::RequestLimitExceeded(_))
362 }
363 pub fn is_resource_not_found_exception(&self) -> bool {
365 matches!(self, Self::ResourceNotFoundException(_))
366 }
367 pub fn is_throttling_exception(&self) -> bool {
369 matches!(self, Self::ThrottlingException(_))
370 }
371}
372impl ::std::error::Error for QueryError {
373 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
374 match self {
375 Self::InternalServerError(_inner) =>
376 ::std::option::Option::Some(_inner)
377 ,
378 Self::InvalidEndpointException(_inner) =>
379 ::std::option::Option::Some(_inner)
380 ,
381 Self::ProvisionedThroughputExceededException(_inner) =>
382 ::std::option::Option::Some(_inner)
383 ,
384 Self::RequestLimitExceeded(_inner) =>
385 ::std::option::Option::Some(_inner)
386 ,
387 Self::ResourceNotFoundException(_inner) =>
388 ::std::option::Option::Some(_inner)
389 ,
390 Self::ThrottlingException(_inner) =>
391 ::std::option::Option::Some(_inner)
392 ,
393 Self::Unhandled(_inner) => {
394 ::std::option::Option::Some(&*_inner.source)
395 }
396 }
397 }
398}
399impl ::std::fmt::Display for QueryError {
400 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
401 match self {
402 Self::InternalServerError(_inner) =>
403 _inner.fmt(f)
404 ,
405 Self::InvalidEndpointException(_inner) =>
406 _inner.fmt(f)
407 ,
408 Self::ProvisionedThroughputExceededException(_inner) =>
409 _inner.fmt(f)
410 ,
411 Self::RequestLimitExceeded(_inner) =>
412 _inner.fmt(f)
413 ,
414 Self::ResourceNotFoundException(_inner) =>
415 _inner.fmt(f)
416 ,
417 Self::ThrottlingException(_inner) =>
418 _inner.fmt(f)
419 ,
420 Self::Unhandled(_inner) => {
421 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
422 write!(f, "unhandled error ({code})")
423 } else {
424 f.write_str("unhandled error")
425 }
426 }
427 }
428 }
429}
430impl ::aws_smithy_types::retry::ProvideErrorKind for QueryError {
431 fn code(&self) -> ::std::option::Option<&str> {
432 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
433 }
434 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
435 ::std::option::Option::None
436 }
437}
438impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for QueryError {
439 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
440 match self {
441 Self::InternalServerError(_inner) =>
442 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
443 ,
444 Self::InvalidEndpointException(_inner) =>
445 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
446 ,
447 Self::ProvisionedThroughputExceededException(_inner) =>
448 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
449 ,
450 Self::RequestLimitExceeded(_inner) =>
451 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
452 ,
453 Self::ResourceNotFoundException(_inner) =>
454 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
455 ,
456 Self::ThrottlingException(_inner) =>
457 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
458 ,
459 Self::Unhandled(_inner) => {
460 &_inner.meta
461 }
462 }
463 }
464}
465impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for QueryError {
466 fn create_unhandled_error(
467 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
468 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>
469 ) -> Self {
470 Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source, meta: meta.unwrap_or_default() })
471 }
472}
473impl ::aws_types::request_id::RequestId for crate::operation::query::QueryError {
474 fn request_id(&self) -> Option<&str> {
475 self.meta().request_id()
476 }
477 }
478
479pub use crate::operation::query::_query_input::QueryInput;
480
481pub use crate::operation::query::_query_output::QueryOutput;
482
483mod _query_input;
484
485mod _query_output;
486
487pub mod builders;
489
490pub mod paginator;
492