aws_sdk_backup/operation/
get_recovery_point_restore_metadata.rs1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct GetRecoveryPointRestoreMetadata;
6impl GetRecoveryPointRestoreMetadata {
7 pub fn new() -> Self {
9 Self
10 }
11 pub(crate) async fn orchestrate(
12 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
13 input: crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataInput,
14 ) -> ::std::result::Result<
15 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataOutput,
16 ::aws_smithy_runtime_api::client::result::SdkError<
17 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError,
18 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
19 >,
20 > {
21 let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
22 ::aws_smithy_runtime_api::client::interceptors::context::Error,
23 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
24 >| {
25 err.map_service_error(|err| {
26 err.downcast::<crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError>()
27 .expect("correct error type")
28 })
29 };
30 let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
31 .await
32 .map_err(map_err)?;
33 let output = context.finalize().map_err(map_err)?;
34 ::std::result::Result::Ok(
35 output
36 .downcast::<crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataOutput>()
37 .expect("correct output type"),
38 )
39 }
40
41 pub(crate) async fn orchestrate_with_stop_point(
42 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
43 input: crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataInput,
44 stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
45 ) -> ::std::result::Result<
46 ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
47 ::aws_smithy_runtime_api::client::result::SdkError<
48 ::aws_smithy_runtime_api::client::interceptors::context::Error,
49 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
50 >,
51 > {
52 let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
53 use ::tracing::Instrument;
54 ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point(
55 "Backup",
56 "GetRecoveryPointRestoreMetadata",
57 input,
58 runtime_plugins,
59 stop_point,
60 )
61 .instrument(::tracing::debug_span!(
64 "Backup.GetRecoveryPointRestoreMetadata",
65 "rpc.service" = "Backup",
66 "rpc.method" = "GetRecoveryPointRestoreMetadata",
67 "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
68 "rpc.system" = "aws-api",
69 ))
70 .await
71 }
72
73 pub(crate) fn operation_runtime_plugins(
74 client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
75 client_config: &crate::config::Config,
76 config_override: ::std::option::Option<crate::config::Builder>,
77 ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
78 let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
79
80 if let ::std::option::Option::Some(config_override) = config_override {
81 for plugin in config_override.runtime_plugins.iter().cloned() {
82 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
83 }
84 runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
85 config_override,
86 client_config.config.clone(),
87 &client_config.runtime_components,
88 ));
89 }
90 runtime_plugins
91 }
92}
93impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for GetRecoveryPointRestoreMetadata {
94 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
95 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("GetRecoveryPointRestoreMetadata");
96
97 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
98 GetRecoveryPointRestoreMetadataRequestSerializer,
99 ));
100 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
101 GetRecoveryPointRestoreMetadataResponseDeserializer,
102 ));
103
104 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
105 crate::config::auth::Params::builder()
106 .operation_name("GetRecoveryPointRestoreMetadata")
107 .build()
108 .expect("required fields set"),
109 ));
110
111 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::SensitiveOutput);
112 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
113 "GetRecoveryPointRestoreMetadata",
114 "Backup",
115 ));
116 let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
117 signing_options.double_uri_encode = true;
118 signing_options.content_sha256_header = false;
119 signing_options.normalize_uri_path = true;
120 signing_options.payload_override = None;
121
122 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
123 signing_options,
124 ..::std::default::Default::default()
125 });
126
127 ::std::option::Option::Some(cfg.freeze())
128 }
129
130 fn runtime_components(
131 &self,
132 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
133 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
134 #[allow(unused_mut)]
135 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("GetRecoveryPointRestoreMetadata")
136 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
137 GetRecoveryPointRestoreMetadataTelemetryInputCaptureInterceptor,
138 ))
139 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
140 ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
141 ))
142 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
143 GetRecoveryPointRestoreMetadataEndpointParamsInterceptor,
144 ))
145 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
146 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError,
147 >::new())
148 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
149 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError,
150 >::new())
151 .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
152 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError,
153 >::new())
154 .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
155 crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError,
156 >::new());
157
158 ::std::borrow::Cow::Owned(rcb)
159 }
160}
161
162#[derive(Debug)]
163struct GetRecoveryPointRestoreMetadataTelemetryInputCaptureInterceptor;
164
165#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
166impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetRecoveryPointRestoreMetadataTelemetryInputCaptureInterceptor {
167 fn name(&self) -> &'static str {
168 "GetRecoveryPointRestoreMetadataTelemetryInputCaptureInterceptor"
169 }
170
171 fn read_before_execution(
172 &self,
173 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
174 '_,
175 ::aws_smithy_runtime_api::client::interceptors::context::Input,
176 ::aws_smithy_runtime_api::client::interceptors::context::Output,
177 ::aws_smithy_runtime_api::client::interceptors::context::Error,
178 >,
179 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
180 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
181 let ::std::option::Option::Some(requested) = cfg
183 .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
184 .filter(|r| !r.is_empty())
185 else {
186 return ::std::result::Result::Ok(());
187 };
188
189 let ::std::option::Option::Some(input) = context.input().downcast_ref::<GetRecoveryPointRestoreMetadataInput>() else {
190 return ::std::result::Result::Ok(());
192 };
193
194 let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
195 if requested.should_capture("BackupVaultName") {
196 if let ::std::option::Option::Some(value) = input.backup_vault_name.as_deref() {
197 captured.insert("BackupVaultName", value);
198 }
199 }
200 if requested.should_capture("RecoveryPointArn") {
201 if let ::std::option::Option::Some(value) = input.recovery_point_arn.as_deref() {
202 captured.insert("RecoveryPointArn", value);
203 }
204 }
205 if requested.should_capture("BackupVaultAccountId") {
206 if let ::std::option::Option::Some(value) = input.backup_vault_account_id.as_deref() {
207 captured.insert("BackupVaultAccountId", value);
208 }
209 }
210
211 cfg.interceptor_state().store_put(captured);
212 ::std::result::Result::Ok(())
213 }
214}
215#[derive(Debug)]
216struct GetRecoveryPointRestoreMetadataResponseDeserializer;
217impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for GetRecoveryPointRestoreMetadataResponseDeserializer {
218 fn deserialize_nonstreaming_with_config(
219 &self,
220 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
221 _cfg: &::aws_smithy_types::config_bag::ConfigBag,
222 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
223 let (success, status) = (response.status().is_success(), response.status().as_u16());
224 let headers = response.headers();
225 let body = response.body().bytes().expect("body loaded");
226 #[allow(unused_mut)]
227 let mut force_error = false;
228 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
229 let parse_result = if !success && status != 200 || force_error {
230 crate::protocol_serde::shape_get_recovery_point_restore_metadata::de_get_recovery_point_restore_metadata_http_error(status, headers, body)
231 } else {
232 crate::protocol_serde::shape_get_recovery_point_restore_metadata::de_get_recovery_point_restore_metadata_http_response(
233 status, headers, body,
234 )
235 };
236 crate::protocol_serde::type_erase_result(parse_result)
237 }
238}
239#[derive(Debug)]
240struct GetRecoveryPointRestoreMetadataRequestSerializer;
241impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for GetRecoveryPointRestoreMetadataRequestSerializer {
242 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
243 fn serialize_input(
244 &self,
245 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
246 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
247 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
248 let input = input
249 .downcast::<crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataInput>()
250 .expect("correct type");
251 let _header_serialization_settings = _cfg
252 .load::<crate::serialization_settings::HeaderSerializationSettings>()
253 .cloned()
254 .unwrap_or_default();
255 let mut request_builder = {
256 #[allow(clippy::uninlined_format_args)]
257 fn uri_base(
258 _input: &crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataInput,
259 output: &mut ::std::string::String,
260 ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
261 use ::std::fmt::Write as _;
262 let input_1 = &_input.backup_vault_name;
263 let input_1 = input_1.as_ref().ok_or_else(|| {
264 ::aws_smithy_types::error::operation::BuildError::missing_field("backup_vault_name", "cannot be empty or unset")
265 })?;
266 let backup_vault_name = ::aws_smithy_http::label::fmt_string(input_1, ::aws_smithy_http::label::EncodingStrategy::Default);
267 if backup_vault_name.is_empty() {
268 return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
269 "backup_vault_name",
270 "cannot be empty or unset",
271 ));
272 }
273 let input_2 = &_input.recovery_point_arn;
274 let input_2 = input_2.as_ref().ok_or_else(|| {
275 ::aws_smithy_types::error::operation::BuildError::missing_field("recovery_point_arn", "cannot be empty or unset")
276 })?;
277 let recovery_point_arn = ::aws_smithy_http::label::fmt_string(input_2, ::aws_smithy_http::label::EncodingStrategy::Default);
278 if recovery_point_arn.is_empty() {
279 return ::std::result::Result::Err(::aws_smithy_types::error::operation::BuildError::missing_field(
280 "recovery_point_arn",
281 "cannot be empty or unset",
282 ));
283 }
284 ::std::write!(
285 output,
286 "/backup-vaults/{BackupVaultName}/recovery-points/{RecoveryPointArn}/restore-metadata",
287 BackupVaultName = backup_vault_name,
288 RecoveryPointArn = recovery_point_arn
289 )
290 .expect("formatting should succeed");
291 ::std::result::Result::Ok(())
292 }
293 fn uri_query(
294 _input: &crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataInput,
295 mut output: &mut ::std::string::String,
296 ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
297 let mut query = ::aws_smithy_http::query::Writer::new(output);
298 if let ::std::option::Option::Some(inner_3) = &_input.backup_vault_account_id {
299 {
300 query.push_kv("backupVaultAccountId", &::aws_smithy_http::query::fmt_string(inner_3));
301 }
302 }
303 ::std::result::Result::Ok(())
304 }
305 #[allow(clippy::unnecessary_wraps)]
306 fn update_http_builder(
307 input: &crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataInput,
308 builder: ::http_1x::request::Builder,
309 ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
310 let mut uri = ::std::string::String::new();
311 uri_base(input, &mut uri)?;
312 uri_query(input, &mut uri)?;
313 ::std::result::Result::Ok(builder.method("GET").uri(uri))
314 }
315 let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
316 builder
317 };
318 let body = ::aws_smithy_types::body::SdkBody::from("");
319
320 ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
321 }
322}
323#[derive(Debug)]
324struct GetRecoveryPointRestoreMetadataEndpointParamsInterceptor;
325
326#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
327impl ::aws_smithy_runtime_api::client::interceptors::Intercept for GetRecoveryPointRestoreMetadataEndpointParamsInterceptor {
328 fn name(&self) -> &'static str {
329 "GetRecoveryPointRestoreMetadataEndpointParamsInterceptor"
330 }
331
332 fn read_before_execution(
333 &self,
334 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
335 '_,
336 ::aws_smithy_runtime_api::client::interceptors::context::Input,
337 ::aws_smithy_runtime_api::client::interceptors::context::Output,
338 ::aws_smithy_runtime_api::client::interceptors::context::Error,
339 >,
340 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
341 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
342 let _input = context
343 .input()
344 .downcast_ref::<GetRecoveryPointRestoreMetadataInput>()
345 .ok_or("failed to downcast to GetRecoveryPointRestoreMetadataInput")?;
346
347 let params = crate::config::endpoint::Params::builder()
348 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
349 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
350 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
351 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
352 .build()
353 .map_err(|err| {
354 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
355 })?;
356 cfg.interceptor_state()
357 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
358 ::std::result::Result::Ok(())
359 }
360}
361
362#[non_exhaustive]
367#[derive(::std::fmt::Debug)]
368pub enum GetRecoveryPointRestoreMetadataError {
369 InvalidParameterValueException(crate::types::error::InvalidParameterValueException),
371 MissingParameterValueException(crate::types::error::MissingParameterValueException),
373 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
375 ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
377 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
379 variable wildcard pattern and check `.code()`:
380 \
381 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
382 \
383 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-GetRecoveryPointRestoreMetadataError) for what information is available for the error.")]
384 Unhandled(crate::error::sealed_unhandled::Unhandled),
385}
386impl GetRecoveryPointRestoreMetadataError {
387 pub fn unhandled(
389 err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
390 ) -> Self {
391 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
392 source: err.into(),
393 meta: ::std::default::Default::default(),
394 })
395 }
396
397 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
399 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
400 source: err.clone().into(),
401 meta: err,
402 })
403 }
404 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
409 match self {
410 Self::InvalidParameterValueException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
411 Self::MissingParameterValueException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
412 Self::ResourceNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
413 Self::ServiceUnavailableException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
414 Self::Unhandled(e) => &e.meta,
415 }
416 }
417 pub fn is_invalid_parameter_value_exception(&self) -> bool {
419 matches!(self, Self::InvalidParameterValueException(_))
420 }
421 pub fn is_missing_parameter_value_exception(&self) -> bool {
423 matches!(self, Self::MissingParameterValueException(_))
424 }
425 pub fn is_resource_not_found_exception(&self) -> bool {
427 matches!(self, Self::ResourceNotFoundException(_))
428 }
429 pub fn is_service_unavailable_exception(&self) -> bool {
431 matches!(self, Self::ServiceUnavailableException(_))
432 }
433}
434impl ::std::error::Error for GetRecoveryPointRestoreMetadataError {
435 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
436 match self {
437 Self::InvalidParameterValueException(_inner) => ::std::option::Option::Some(_inner),
438 Self::MissingParameterValueException(_inner) => ::std::option::Option::Some(_inner),
439 Self::ResourceNotFoundException(_inner) => ::std::option::Option::Some(_inner),
440 Self::ServiceUnavailableException(_inner) => ::std::option::Option::Some(_inner),
441 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
442 }
443 }
444}
445impl ::std::fmt::Display for GetRecoveryPointRestoreMetadataError {
446 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
447 match self {
448 Self::InvalidParameterValueException(_inner) => _inner.fmt(f),
449 Self::MissingParameterValueException(_inner) => _inner.fmt(f),
450 Self::ResourceNotFoundException(_inner) => _inner.fmt(f),
451 Self::ServiceUnavailableException(_inner) => _inner.fmt(f),
452 Self::Unhandled(_inner) => {
453 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
454 write!(f, "unhandled error ({code})")
455 } else {
456 f.write_str("unhandled error")
457 }
458 }
459 }
460 }
461}
462impl ::aws_smithy_types::retry::ProvideErrorKind for GetRecoveryPointRestoreMetadataError {
463 fn code(&self) -> ::std::option::Option<&str> {
464 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
465 }
466 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
467 ::std::option::Option::None
468 }
469}
470impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for GetRecoveryPointRestoreMetadataError {
471 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
472 match self {
473 Self::InvalidParameterValueException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
474 Self::MissingParameterValueException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
475 Self::ResourceNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
476 Self::ServiceUnavailableException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
477 Self::Unhandled(_inner) => &_inner.meta,
478 }
479 }
480}
481impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for GetRecoveryPointRestoreMetadataError {
482 fn create_unhandled_error(
483 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
484 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
485 ) -> Self {
486 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
487 source,
488 meta: meta.unwrap_or_default(),
489 })
490 }
491}
492impl ::aws_types::request_id::RequestId for crate::operation::get_recovery_point_restore_metadata::GetRecoveryPointRestoreMetadataError {
493 fn request_id(&self) -> Option<&str> {
494 self.meta().request_id()
495 }
496}
497
498pub use crate::operation::get_recovery_point_restore_metadata::_get_recovery_point_restore_metadata_input::GetRecoveryPointRestoreMetadataInput;
499
500pub use crate::operation::get_recovery_point_restore_metadata::_get_recovery_point_restore_metadata_output::GetRecoveryPointRestoreMetadataOutput;
501
502mod _get_recovery_point_restore_metadata_input;
503
504mod _get_recovery_point_restore_metadata_output;
505
506pub mod builders;