1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct GetBlueprintRun;
6impl GetBlueprintRun {
7 pub fn new() -> Self {
9 Self
10 }
11 pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::get_blueprint_run::GetBlueprintRunInput::SCHEMA;
13 pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::get_blueprint_run::GetBlueprintRunOutput::SCHEMA;
15 pub(crate) async fn orchestrate(
16 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
17 input: crate::operation::get_blueprint_run::GetBlueprintRunInput,
18 ) -> ::std::result::Result<
19 crate::operation::get_blueprint_run::GetBlueprintRunOutput,
20 ::aws_smithy_runtime_api::client::result::SdkError<
21 crate::operation::get_blueprint_run::GetBlueprintRunError,
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::get_blueprint_run::GetBlueprintRunError>()
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::get_blueprint_run::GetBlueprintRunOutput>()
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::get_blueprint_run::GetBlueprintRunInput,
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", "GetBlueprintRun", input, runtime_plugins, stop_point)
59 .instrument(::tracing::debug_span!(
62 "Glue.GetBlueprintRun",
63 "rpc.service" = "Glue",
64 "rpc.method" = "GetBlueprintRun",
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::EntityNotFoundException::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::EntityNotFoundException::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::EntityNotFoundException::deserialize(d)?))
109 },
110 )
111.insert_error_shape(
112 crate::types::error::InternalServiceException::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::InternalServiceException::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::InternalServiceException::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 GetBlueprintRun {
133 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
134 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("GetBlueprintRun");
135
136 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
137 GetBlueprintRunRequestSerializer,
138 ));
139 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
140 GetBlueprintRunResponseDeserializer,
141 ));
142
143 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
144 crate::config::auth::Params::builder()
145 .operation_name("GetBlueprintRun")
146 .build()
147 .expect("required fields set"),
148 ));
149
150 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("GetBlueprintRun", "Glue"));
151 let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
152 signing_options.double_uri_encode = true;
153 signing_options.content_sha256_header = false;
154 signing_options.normalize_uri_path = true;
155 signing_options.payload_override = None;
156
157 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
158 signing_options,
159 ..::std::default::Default::default()
160 });
161
162 ::std::option::Option::Some(cfg.freeze())
163 }
164
165 fn runtime_components(
166 &self,
167 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
168 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
169 #[allow(unused_mut)]
170 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("GetBlueprintRun")
171 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
172 GetBlueprintRunTelemetryInputCaptureInterceptor,
173 ))
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 GetBlueprintRunEndpointParamsInterceptor,
179 ))
180 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
181 crate::operation::get_blueprint_run::GetBlueprintRunError,
182 >::new())
183 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
184 crate::operation::get_blueprint_run::GetBlueprintRunError,
185 >::new())
186 .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
187 crate::operation::get_blueprint_run::GetBlueprintRunError,
188 >::new())
189 .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
190 crate::operation::get_blueprint_run::GetBlueprintRunError,
191 >::new());
192
193 ::std::borrow::Cow::Owned(rcb)
194 }
195}
196
197#[derive(Debug)]
198struct GetBlueprintRunTelemetryInputCaptureInterceptor;
199
200#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
201impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetBlueprintRunTelemetryInputCaptureInterceptor {
202 fn name(&self) -> &'static str {
203 "GetBlueprintRunTelemetryInputCaptureInterceptor"
204 }
205
206 fn read_before_execution(
207 &self,
208 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
209 '_,
210 ::aws_smithy_runtime_api::client::interceptors::context::Input,
211 ::aws_smithy_runtime_api::client::interceptors::context::Output,
212 ::aws_smithy_runtime_api::client::interceptors::context::Error,
213 >,
214 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
215 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
216 let ::std::option::Option::Some(requested) = cfg
218 .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
219 .filter(|r| !r.is_empty())
220 else {
221 return ::std::result::Result::Ok(());
222 };
223
224 let ::std::option::Option::Some(input) = context.input().downcast_ref::<GetBlueprintRunInput>() else {
225 return ::std::result::Result::Ok(());
227 };
228
229 let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
230 if requested.should_capture("BlueprintName") {
231 if let ::std::option::Option::Some(value) = input.blueprint_name.as_deref() {
232 captured.insert("BlueprintName", value);
233 }
234 }
235 if requested.should_capture("RunId") {
236 if let ::std::option::Option::Some(value) = input.run_id.as_deref() {
237 captured.insert("RunId", value);
238 }
239 }
240
241 cfg.interceptor_state().store_put(captured);
242 ::std::result::Result::Ok(())
243 }
244}
245#[derive(Debug)]
246struct GetBlueprintRunResponseDeserializer;
247impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetBlueprintRunResponseDeserializer {
248 fn deserialize_nonstreaming_with_config(
249 &self,
250 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
251 _cfg: &::aws_smithy_types::config_bag::ConfigBag,
252 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
253 let (success, status) = (response.status().is_success(), response.status().as_u16());
254 #[allow(unused_variables)]
259 let body = response.body().bytes().expect("body loaded");
260 let headers = response.headers();
261 #[allow(unused_mut)]
262 let mut force_error = false;
263 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
264 if !success && status != 200 || force_error {
265 let protocol = _cfg
266 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
267 .expect("a SharedClientProtocol is required");
268 #[allow(unused_mut)]
269 let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
270 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
271 })?;
272 generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
273 let generic = generic_builder.build();
274 let error_code = match generic.code() {
275 ::std::option::Option::Some(code) => code,
276 ::std::option::Option::None => {
277 return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
278 ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::get_blueprint_run::GetBlueprintRunError::unhandled(
279 generic,
280 )),
281 ))
282 }
283 };
284 let _error_message = generic.message().map(|msg| msg.to_owned());
285 let err = match error_code {
286 "EntityNotFoundException" => crate::operation::get_blueprint_run::GetBlueprintRunError::EntityNotFoundException({
287 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
288 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
289 e,
290 ))
291 })?;
292 let mut tmp = <crate::types::error::builders::EntityNotFoundExceptionBuilder>::default();
293 tmp.deserialize_members(&mut *deser).map_err(|e| {
294 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
295 e,
296 ))
297 })?;
298 if tmp.message.is_none() {
299 tmp.message = _error_message;
300 }
301 let tmp = tmp.meta(generic);
302 tmp.build()
303 }),
304 "InternalServiceException" => crate::operation::get_blueprint_run::GetBlueprintRunError::InternalServiceException({
305 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
306 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
307 e,
308 ))
309 })?;
310 let mut tmp = <crate::types::error::builders::InternalServiceExceptionBuilder>::default();
311 tmp.deserialize_members(&mut *deser).map_err(|e| {
312 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
313 e,
314 ))
315 })?;
316 if tmp.message.is_none() {
317 tmp.message = _error_message;
318 }
319 let tmp = tmp.meta(generic);
320 tmp.build()
321 }),
322 "OperationTimeoutException" => crate::operation::get_blueprint_run::GetBlueprintRunError::OperationTimeoutException({
323 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
324 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
325 e,
326 ))
327 })?;
328 let mut tmp = <crate::types::error::builders::OperationTimeoutExceptionBuilder>::default();
329 tmp.deserialize_members(&mut *deser).map_err(|e| {
330 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
331 e,
332 ))
333 })?;
334 if tmp.message.is_none() {
335 tmp.message = _error_message;
336 }
337 let tmp = tmp.meta(generic);
338 tmp.build()
339 }),
340 _ => {
341 match protocol
349 .deserialize_error_response(response, _cfg)
350 .ok()
351 .and_then(|mut deser| {
352 ::aws_smithy_schema::registry::reify_error(
353 crate::operation::get_blueprint_run::error_registry::REGISTRY
354 .or(&crate::error_type_registry::REGISTRY),
355 error_code,
356 &mut *deser,
357 )
358 }) {
359 ::std::option::Option::Some(source) => <crate::operation::get_blueprint_run::GetBlueprintRunError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
360 ::std::option::Option::None => crate::operation::get_blueprint_run::GetBlueprintRunError::generic(generic),
361 }
362 }
363 };
364 ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
365 ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
366 ))
367 } else {
368 let protocol = _cfg
369 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
370 .expect("a SharedClientProtocol is required");
371 let mut deser = protocol
372 .deserialize_response(response, GetBlueprintRun::OUTPUT_SCHEMA, _cfg)
373 .map_err(|e| {
374 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
375 })?;
376 let _response_headers = headers;
380 #[allow(unused_mut)]
384 let mut output = <crate::operation::get_blueprint_run::builders::GetBlueprintRunOutputBuilder>::default();
385 output.deserialize_members(&mut *deser).map_err(|e| {
386 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
387 })?;
388 output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
389 let output = output.build();
390 ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
391 }
392 }
393}
394#[derive(Debug)]
395struct GetBlueprintRunRequestSerializer;
396impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetBlueprintRunRequestSerializer {
397 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
398 fn serialize_input(
399 &self,
400 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
401 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
402 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
403 let input = input
404 .downcast::<crate::operation::get_blueprint_run::GetBlueprintRunInput>()
405 .expect("correct type");
406
407 let protocol = _cfg
408 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
409 .expect("a SharedClientProtocol is required");
410 let mut request = protocol
411 .serialize_request(&input, GetBlueprintRun::INPUT_SCHEMA, "/", _cfg)
412 .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
413
414 return ::std::result::Result::Ok(request);
415 }
416}
417#[derive(Debug)]
418struct GetBlueprintRunEndpointParamsInterceptor;
419
420#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
421impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetBlueprintRunEndpointParamsInterceptor {
422 fn name(&self) -> &'static str {
423 "GetBlueprintRunEndpointParamsInterceptor"
424 }
425
426 fn read_before_execution(
427 &self,
428 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
429 '_,
430 ::aws_smithy_runtime_api::client::interceptors::context::Input,
431 ::aws_smithy_runtime_api::client::interceptors::context::Output,
432 ::aws_smithy_runtime_api::client::interceptors::context::Error,
433 >,
434 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
435 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
436 let _input = context
437 .input()
438 .downcast_ref::<GetBlueprintRunInput>()
439 .ok_or("failed to downcast to GetBlueprintRunInput")?;
440
441 let params = crate::config::endpoint::Params::builder()
442 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
443 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
444 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
445 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
446 .build()
447 .map_err(|err| {
448 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
449 })?;
450 cfg.interceptor_state()
451 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
452 ::std::result::Result::Ok(())
453 }
454}
455
456#[non_exhaustive]
461#[derive(::std::fmt::Debug)]
462pub enum GetBlueprintRunError {
463 EntityNotFoundException(crate::types::error::EntityNotFoundException),
465 InternalServiceException(crate::types::error::InternalServiceException),
467 OperationTimeoutException(crate::types::error::OperationTimeoutException),
469 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
471 variable wildcard pattern and check `.code()`:
472 \
473 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
474 \
475 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-GetBlueprintRunError) for what information is available for the error.")]
476 Unhandled(crate::error::sealed_unhandled::Unhandled),
477}
478impl GetBlueprintRunError {
479 pub fn unhandled(
481 err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
482 ) -> Self {
483 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
484 source: err.into(),
485 meta: ::std::default::Default::default(),
486 })
487 }
488
489 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
491 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
492 source: err.clone().into(),
493 meta: err,
494 })
495 }
496 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
501 match self {
502 Self::EntityNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
503 Self::InternalServiceException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
504 Self::OperationTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
505 Self::Unhandled(e) => &e.meta,
506 }
507 }
508 pub fn is_entity_not_found_exception(&self) -> bool {
510 matches!(self, Self::EntityNotFoundException(_))
511 }
512 pub fn is_internal_service_exception(&self) -> bool {
514 matches!(self, Self::InternalServiceException(_))
515 }
516 pub fn is_operation_timeout_exception(&self) -> bool {
518 matches!(self, Self::OperationTimeoutException(_))
519 }
520}
521impl ::std::error::Error for GetBlueprintRunError {
522 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
523 match self {
524 Self::EntityNotFoundException(_inner) => ::std::option::Option::Some(_inner),
525 Self::InternalServiceException(_inner) => ::std::option::Option::Some(_inner),
526 Self::OperationTimeoutException(_inner) => ::std::option::Option::Some(_inner),
527 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
528 }
529 }
530}
531impl ::std::fmt::Display for GetBlueprintRunError {
532 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
533 match self {
534 Self::EntityNotFoundException(_inner) => _inner.fmt(f),
535 Self::InternalServiceException(_inner) => _inner.fmt(f),
536 Self::OperationTimeoutException(_inner) => _inner.fmt(f),
537 Self::Unhandled(_inner) => {
538 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
539 write!(f, "unhandled error ({code})")
540 } else {
541 f.write_str("unhandled error")
542 }
543 }
544 }
545 }
546}
547impl ::aws_smithy_types::retry::ProvideErrorKind for GetBlueprintRunError {
548 fn code(&self) -> ::std::option::Option<&str> {
549 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
550 }
551 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
552 ::std::option::Option::None
553 }
554}
555impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for GetBlueprintRunError {
556 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
557 match self {
558 Self::EntityNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
559 Self::InternalServiceException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
560 Self::OperationTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
561 Self::Unhandled(_inner) => &_inner.meta,
562 }
563 }
564}
565impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for GetBlueprintRunError {
566 fn create_unhandled_error(
567 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
568 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
569 ) -> Self {
570 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
571 source,
572 meta: meta.unwrap_or_default(),
573 })
574 }
575}
576impl ::aws_types::request_id::RequestId for crate::operation::get_blueprint_run::GetBlueprintRunError {
577 fn request_id(&self) -> Option<&str> {
578 self.meta().request_id()
579 }
580}
581
582pub use crate::operation::get_blueprint_run::_get_blueprint_run_input::GetBlueprintRunInput;
583
584pub use crate::operation::get_blueprint_run::_get_blueprint_run_output::GetBlueprintRunOutput;
585
586mod _get_blueprint_run_input;
587
588mod _get_blueprint_run_output;
589
590pub mod builders;