1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct BatchGetBlueprints;
6impl BatchGetBlueprints {
7 pub fn new() -> Self {
9 Self
10 }
11 pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::batch_get_blueprints::BatchGetBlueprintsInput::SCHEMA;
13 pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::batch_get_blueprints::BatchGetBlueprintsOutput::SCHEMA;
15 pub(crate) async fn orchestrate(
16 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
17 input: crate::operation::batch_get_blueprints::BatchGetBlueprintsInput,
18 ) -> ::std::result::Result<
19 crate::operation::batch_get_blueprints::BatchGetBlueprintsOutput,
20 ::aws_smithy_runtime_api::client::result::SdkError<
21 crate::operation::batch_get_blueprints::BatchGetBlueprintsError,
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::batch_get_blueprints::BatchGetBlueprintsError>()
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::batch_get_blueprints::BatchGetBlueprintsOutput>()
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::batch_get_blueprints::BatchGetBlueprintsInput,
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", "BatchGetBlueprints", input, runtime_plugins, stop_point)
59 .instrument(::tracing::debug_span!(
62 "Glue.BatchGetBlueprints",
63 "rpc.service" = "Glue",
64 "rpc.method" = "BatchGetBlueprints",
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}
91pub(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::InternalServiceException::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::InternalServiceException::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::InternalServiceException::deserialize(d)?))
109 },
110 )
111.insert_error_shape(
112 crate::types::error::InvalidInputException::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::InvalidInputException::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::InvalidInputException::deserialize(d)?))
118 },
119 )
120.insert_error_shape(
121 crate::types::error::OperationTimeoutException::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::OperationTimeoutException::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::OperationTimeoutException::deserialize(d)?))
127 },
128 )
129 .build()
130 });
131}
132impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for BatchGetBlueprints {
133 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
134 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("BatchGetBlueprints");
135
136 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
137 BatchGetBlueprintsRequestSerializer,
138 ));
139 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
140 BatchGetBlueprintsResponseDeserializer,
141 ));
142
143 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
144 crate::config::auth::Params::builder()
145 .operation_name("BatchGetBlueprints")
146 .build()
147 .expect("required fields set"),
148 ));
149
150 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
151 "BatchGetBlueprints",
152 "Glue",
153 ));
154 let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
155 signing_options.double_uri_encode = true;
156 signing_options.content_sha256_header = false;
157 signing_options.normalize_uri_path = true;
158 signing_options.payload_override = None;
159
160 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
161 signing_options,
162 ..::std::default::Default::default()
163 });
164
165 ::std::option::Option::Some(cfg.freeze())
166 }
167
168 fn runtime_components(
169 &self,
170 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
171 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
172 #[allow(unused_mut)]
173 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("BatchGetBlueprints")
174 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
175 ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
176 ))
177 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
178 BatchGetBlueprintsEndpointParamsInterceptor,
179 ))
180 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
181 crate::operation::batch_get_blueprints::BatchGetBlueprintsError,
182 >::new())
183 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
184 crate::operation::batch_get_blueprints::BatchGetBlueprintsError,
185 >::new())
186 .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
187 crate::operation::batch_get_blueprints::BatchGetBlueprintsError,
188 >::new())
189 .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
190 crate::operation::batch_get_blueprints::BatchGetBlueprintsError,
191 >::new());
192
193 ::std::borrow::Cow::Owned(rcb)
194 }
195}
196
197#[derive(Debug)]
198struct BatchGetBlueprintsResponseDeserializer;
199impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for BatchGetBlueprintsResponseDeserializer {
200 fn deserialize_nonstreaming_with_config(
201 &self,
202 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
203 _cfg: &::aws_smithy_types::config_bag::ConfigBag,
204 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
205 let (success, status) = (response.status().is_success(), response.status().as_u16());
206 #[allow(unused_variables)]
211 let body = response.body().bytes().expect("body loaded");
212 let headers = response.headers();
213 #[allow(unused_mut)]
214 let mut force_error = false;
215 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
216 if !success && status != 200 || force_error {
217 let protocol = _cfg
218 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
219 .expect("a SharedClientProtocol is required");
220 #[allow(unused_mut)]
221 let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
222 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
223 })?;
224 generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
225 let generic = generic_builder.build();
226 let error_code = match generic.code() {
227 ::std::option::Option::Some(code) => code,
228 ::std::option::Option::None => {
229 return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
230 ::aws_smithy_runtime_api::box_error::BoxError::from(
231 crate::operation::batch_get_blueprints::BatchGetBlueprintsError::unhandled(generic),
232 ),
233 ))
234 }
235 };
236 let _error_message = generic.message().map(|msg| msg.to_owned());
237 let err = match error_code {
238 "InternalServiceException" => crate::operation::batch_get_blueprints::BatchGetBlueprintsError::InternalServiceException({
239 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
240 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
241 e,
242 ))
243 })?;
244 let mut tmp = <crate::types::error::builders::InternalServiceExceptionBuilder>::default();
245 tmp.deserialize_members(&mut *deser).map_err(|e| {
246 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
247 e,
248 ))
249 })?;
250 if tmp.message.is_none() {
251 tmp.message = _error_message;
252 }
253 let tmp = tmp.meta(generic);
254 tmp.build()
255 }),
256 "InvalidInputException" => crate::operation::batch_get_blueprints::BatchGetBlueprintsError::InvalidInputException({
257 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
258 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
259 e,
260 ))
261 })?;
262 let mut tmp = <crate::types::error::builders::InvalidInputExceptionBuilder>::default();
263 tmp.deserialize_members(&mut *deser).map_err(|e| {
264 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
265 e,
266 ))
267 })?;
268 if tmp.message.is_none() {
269 tmp.message = _error_message;
270 }
271 let tmp = tmp.meta(generic);
272 tmp.build()
273 }),
274 "OperationTimeoutException" => crate::operation::batch_get_blueprints::BatchGetBlueprintsError::OperationTimeoutException({
275 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
276 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
277 e,
278 ))
279 })?;
280 let mut tmp = <crate::types::error::builders::OperationTimeoutExceptionBuilder>::default();
281 tmp.deserialize_members(&mut *deser).map_err(|e| {
282 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
283 e,
284 ))
285 })?;
286 if tmp.message.is_none() {
287 tmp.message = _error_message;
288 }
289 let tmp = tmp.meta(generic);
290 tmp.build()
291 }),
292 _ => {
293 match protocol
301 .deserialize_error_response(response, _cfg)
302 .ok()
303 .and_then(|mut deser| {
304 ::aws_smithy_schema::registry::reify_error(
305 crate::operation::batch_get_blueprints::error_registry::REGISTRY
306 .or(&crate::error_type_registry::REGISTRY),
307 error_code,
308 &mut *deser,
309 )
310 }) {
311 ::std::option::Option::Some(source) => <crate::operation::batch_get_blueprints::BatchGetBlueprintsError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
312 ::std::option::Option::None => crate::operation::batch_get_blueprints::BatchGetBlueprintsError::generic(generic),
313 }
314 }
315 };
316 ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
317 ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
318 ))
319 } else {
320 let protocol = _cfg
321 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
322 .expect("a SharedClientProtocol is required");
323 let mut deser = protocol
324 .deserialize_response(response, BatchGetBlueprints::OUTPUT_SCHEMA, _cfg)
325 .map_err(|e| {
326 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
327 })?;
328 let _response_headers = headers;
332 #[allow(unused_mut)]
336 let mut output = <crate::operation::batch_get_blueprints::builders::BatchGetBlueprintsOutputBuilder>::default();
337 output.deserialize_members(&mut *deser).map_err(|e| {
338 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
339 })?;
340 output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
341 let output = output.build();
342 ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
343 }
344 }
345}
346#[derive(Debug)]
347struct BatchGetBlueprintsRequestSerializer;
348impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for BatchGetBlueprintsRequestSerializer {
349 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
350 fn serialize_input(
351 &self,
352 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
353 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
354 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
355 let input = input
356 .downcast::<crate::operation::batch_get_blueprints::BatchGetBlueprintsInput>()
357 .expect("correct type");
358
359 let protocol = _cfg
360 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
361 .expect("a SharedClientProtocol is required");
362 let mut request = protocol
363 .serialize_request(&input, BatchGetBlueprints::INPUT_SCHEMA, "/", _cfg)
364 .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
365
366 return ::std::result::Result::Ok(request);
367 }
368}
369#[derive(Debug)]
370struct BatchGetBlueprintsEndpointParamsInterceptor;
371
372#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
373impl ::aws_smithy_runtime_api::client::interceptors::Intercept for BatchGetBlueprintsEndpointParamsInterceptor {
374 fn name(&self) -> &'static str {
375 "BatchGetBlueprintsEndpointParamsInterceptor"
376 }
377
378 fn read_before_execution(
379 &self,
380 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
381 '_,
382 ::aws_smithy_runtime_api::client::interceptors::context::Input,
383 ::aws_smithy_runtime_api::client::interceptors::context::Output,
384 ::aws_smithy_runtime_api::client::interceptors::context::Error,
385 >,
386 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
387 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
388 let _input = context
389 .input()
390 .downcast_ref::<BatchGetBlueprintsInput>()
391 .ok_or("failed to downcast to BatchGetBlueprintsInput")?;
392
393 let params = crate::config::endpoint::Params::builder()
394 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
395 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
396 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
397 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
398 .build()
399 .map_err(|err| {
400 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
401 })?;
402 cfg.interceptor_state()
403 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
404 ::std::result::Result::Ok(())
405 }
406}
407
408#[non_exhaustive]
413#[derive(::std::fmt::Debug)]
414pub enum BatchGetBlueprintsError {
415 InternalServiceException(crate::types::error::InternalServiceException),
417 InvalidInputException(crate::types::error::InvalidInputException),
419 OperationTimeoutException(crate::types::error::OperationTimeoutException),
421 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
423 variable wildcard pattern and check `.code()`:
424 \
425 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
426 \
427 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-BatchGetBlueprintsError) for what information is available for the error.")]
428 Unhandled(crate::error::sealed_unhandled::Unhandled),
429}
430impl BatchGetBlueprintsError {
431 pub fn unhandled(
433 err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
434 ) -> Self {
435 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
436 source: err.into(),
437 meta: ::std::default::Default::default(),
438 })
439 }
440
441 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
443 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
444 source: err.clone().into(),
445 meta: err,
446 })
447 }
448 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
453 match self {
454 Self::InternalServiceException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
455 Self::InvalidInputException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
456 Self::OperationTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
457 Self::Unhandled(e) => &e.meta,
458 }
459 }
460 pub fn is_internal_service_exception(&self) -> bool {
462 matches!(self, Self::InternalServiceException(_))
463 }
464 pub fn is_invalid_input_exception(&self) -> bool {
466 matches!(self, Self::InvalidInputException(_))
467 }
468 pub fn is_operation_timeout_exception(&self) -> bool {
470 matches!(self, Self::OperationTimeoutException(_))
471 }
472}
473impl ::std::error::Error for BatchGetBlueprintsError {
474 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
475 match self {
476 Self::InternalServiceException(_inner) => ::std::option::Option::Some(_inner),
477 Self::InvalidInputException(_inner) => ::std::option::Option::Some(_inner),
478 Self::OperationTimeoutException(_inner) => ::std::option::Option::Some(_inner),
479 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
480 }
481 }
482}
483impl ::std::fmt::Display for BatchGetBlueprintsError {
484 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
485 match self {
486 Self::InternalServiceException(_inner) => _inner.fmt(f),
487 Self::InvalidInputException(_inner) => _inner.fmt(f),
488 Self::OperationTimeoutException(_inner) => _inner.fmt(f),
489 Self::Unhandled(_inner) => {
490 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
491 write!(f, "unhandled error ({code})")
492 } else {
493 f.write_str("unhandled error")
494 }
495 }
496 }
497 }
498}
499impl ::aws_smithy_types::retry::ProvideErrorKind for BatchGetBlueprintsError {
500 fn code(&self) -> ::std::option::Option<&str> {
501 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
502 }
503 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
504 ::std::option::Option::None
505 }
506}
507impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for BatchGetBlueprintsError {
508 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
509 match self {
510 Self::InternalServiceException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
511 Self::InvalidInputException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
512 Self::OperationTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
513 Self::Unhandled(_inner) => &_inner.meta,
514 }
515 }
516}
517impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for BatchGetBlueprintsError {
518 fn create_unhandled_error(
519 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
520 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
521 ) -> Self {
522 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
523 source,
524 meta: meta.unwrap_or_default(),
525 })
526 }
527}
528impl ::aws_types::request_id::RequestId for crate::operation::batch_get_blueprints::BatchGetBlueprintsError {
529 fn request_id(&self) -> Option<&str> {
530 self.meta().request_id()
531 }
532}
533
534pub use crate::operation::batch_get_blueprints::_batch_get_blueprints_input::BatchGetBlueprintsInput;
535
536pub use crate::operation::batch_get_blueprints::_batch_get_blueprints_output::BatchGetBlueprintsOutput;
537
538mod _batch_get_blueprints_input;
539
540mod _batch_get_blueprints_output;
541
542pub mod builders;