aws_sdk_dynamodb/operation/
update_continuous_backups.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `UpdateContinuousBackups`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct UpdateContinuousBackups;
6impl UpdateContinuousBackups {
7    /// Creates a new `UpdateContinuousBackups`
8    pub fn new() -> Self {
9        Self
10    }
11    /// The schema for this operation's input shape.
12                    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::update_continuous_backups::UpdateContinuousBackupsInput::SCHEMA;
13                    /// The schema for this operation's output shape.
14                    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput::SCHEMA;
15    pub(crate) async fn orchestrate(
16                        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
17                        input: crate::operation::update_continuous_backups::UpdateContinuousBackupsInput,
18                    ) -> ::std::result::Result<crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput, ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_continuous_backups::UpdateContinuousBackupsError, ::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::update_continuous_backups::UpdateContinuousBackupsError>().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::update_continuous_backups::UpdateContinuousBackupsOutput>().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::update_continuous_backups::UpdateContinuousBackupsInput,
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                            "UpdateContinuousBackups",
41                            input,
42                            runtime_plugins,
43                            stop_point
44                        )
45                        // Create a parent span for the entire operation. Includes a random, internal-only,
46                        // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
47                        .instrument(::tracing::debug_span!(
48                                "DynamoDB.UpdateContinuousBackups",
49                                "rpc.service" = "DynamoDB",
50                                "rpc.method" = "UpdateContinuousBackups",
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 UpdateContinuousBackups {
76                fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
77                    let mut cfg = ::aws_smithy_types::config_bag::Layer::new("UpdateContinuousBackups");
78
79                    cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(UpdateContinuousBackupsRequestSerializer));
80                    cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(UpdateContinuousBackupsResponseDeserializer));
81
82                    cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
83                        crate::config::auth::Params::builder()
84                            .operation_name("UpdateContinuousBackups")
85                            .build()
86                            .expect("required fields set")
87                    ));
88
89                    cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
90                            "UpdateContinuousBackups",
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("UpdateContinuousBackups")
110                            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
111.with_interceptor(UpdateContinuousBackupsEndpointParamsInterceptor)
112                            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<crate::operation::update_continuous_backups::UpdateContinuousBackupsError>::new())
113.with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<crate::operation::update_continuous_backups::UpdateContinuousBackupsError>::new())
114.with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<crate::operation::update_continuous_backups::UpdateContinuousBackupsError>::new());
115
116                    ::std::borrow::Cow::Owned(rcb)
117                }
118            }
119
120            
121#[derive(Debug)]
122            struct UpdateContinuousBackupsResponseDeserializer;
123            impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for UpdateContinuousBackupsResponseDeserializer {
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::update_continuous_backups::UpdateContinuousBackupsError::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"ContinuousBackupsUnavailableException" => crate::operation::update_continuous_backups::UpdateContinuousBackupsError::ContinuousBackupsUnavailableException({
148let mut tmp = match protocol.deserialize_response(response, crate::types::error::ContinuousBackupsUnavailableException::SCHEMA, _cfg)
149                        .and_then(|mut deser| crate::types::error::ContinuousBackupsUnavailableException::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"InternalServerError" => crate::operation::update_continuous_backups::UpdateContinuousBackupsError::InternalServerError({
161let mut tmp = match protocol.deserialize_response(response, crate::types::error::InternalServerError::SCHEMA, _cfg)
162                        .and_then(|mut deser| crate::types::error::InternalServerError::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"InvalidEndpointException" => crate::operation::update_continuous_backups::UpdateContinuousBackupsError::InvalidEndpointException({
174let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidEndpointException::SCHEMA, _cfg)
175                        .and_then(|mut deser| crate::types::error::InvalidEndpointException::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"TableNotFoundException" => crate::operation::update_continuous_backups::UpdateContinuousBackupsError::TableNotFoundException({
187let mut tmp = match protocol.deserialize_response(response, crate::types::error::TableNotFoundException::SCHEMA, _cfg)
188                        .and_then(|mut deser| crate::types::error::TableNotFoundException::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_ => crate::operation::update_continuous_backups::UpdateContinuousBackupsError::generic(generic)
200};
201                ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err)))
202} else {
203                let protocol = _cfg.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
204                    .expect("a SharedClientProtocol is required");
205                let mut deser = protocol.deserialize_response(response, UpdateContinuousBackups::OUTPUT_SCHEMA, _cfg)
206                    .map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
207                let body = response.body().bytes().expect("body loaded");
208                let output = crate::operation::update_continuous_backups::UpdateContinuousBackupsOutput::deserialize_with_response(
209                    &mut *deser,
210                    response.headers(),
211                    response.status().into(),
212                    body,
213                ).map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
214                ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
215            }
216                }
217            }
218#[derive(Debug)]
219            struct UpdateContinuousBackupsRequestSerializer;
220            impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for UpdateContinuousBackupsRequestSerializer {
221                #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
222                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> {
223                    let input = input.downcast::<crate::operation::update_continuous_backups::UpdateContinuousBackupsInput>().expect("correct type");
224                    let protocol = _cfg.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
225                        .expect("a SharedClientProtocol is required");
226                    let mut request = protocol.serialize_request(
227                            &input, UpdateContinuousBackups::INPUT_SCHEMA, "", _cfg,
228                        ).map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
229                        
230                        return ::std::result::Result::Ok(request);
231                }
232            }
233#[derive(Debug)]
234            struct UpdateContinuousBackupsEndpointParamsInterceptor;
235
236            impl ::aws_smithy_runtime_api::client::interceptors::Intercept for UpdateContinuousBackupsEndpointParamsInterceptor {
237                fn name(&self) -> &'static str {
238                    "UpdateContinuousBackupsEndpointParamsInterceptor"
239                }
240
241                fn read_before_execution(
242                    &self,
243                    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>,
244                    cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
245                ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
246                    let _input = context.input()
247                        .downcast_ref::<UpdateContinuousBackupsInput>()
248                        .ok_or("failed to downcast to UpdateContinuousBackupsInput")?;
249
250                    
251
252                    let params = crate::config::endpoint::Params::builder()
253                        .set_region(cfg.load::<::aws_types::region::Region>().map(|r|r.as_ref().to_owned()))
254.set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
255.set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
256.set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
257.set_account_id_endpoint_mode(::std::option::Option::Some(cfg.load::<::aws_types::endpoint_config::AccountIdEndpointMode>().cloned().unwrap_or_default().to_string()))
258.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"))?))
259                        .build()
260                        .map_err(|err| ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err))?;
261                    cfg.interceptor_state().store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
262                    ::std::result::Result::Ok(())
263                }
264            }
265
266            // The get_* functions below are generated from JMESPath expressions in the
267            // operationContextParams trait. They target the operation's input shape.
268
269            
270
271/// Error type for the `UpdateContinuousBackupsError` operation.
272#[non_exhaustive]
273#[derive(::std::fmt::Debug)]
274pub enum UpdateContinuousBackupsError {
275    /// <p>Backups have not yet been enabled for this table.</p>
276    ContinuousBackupsUnavailableException(crate::types::error::ContinuousBackupsUnavailableException),
277    /// <p>An error occurred on the server side.</p>
278    InternalServerError(crate::types::error::InternalServerError),
279    #[allow(missing_docs)] // documentation missing in model
280    InvalidEndpointException(crate::types::error::InvalidEndpointException),
281    /// <p>A source table with the name <code>TableName</code> does not currently exist within the subscriber's account or the subscriber is operating in the wrong Amazon Web Services Region.</p>
282    TableNotFoundException(crate::types::error::TableNotFoundException),
283    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
284                    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
285    variable wildcard pattern and check `.code()`:
286     \
287    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
288     \
289    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-UpdateContinuousBackupsError) for what information is available for the error.")]
290                    Unhandled(crate::error::sealed_unhandled::Unhandled),
291}
292impl UpdateContinuousBackupsError {
293    /// Creates the `UpdateContinuousBackupsError::Unhandled` variant from any error type.
294                    pub fn unhandled(err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>) -> Self {
295                        Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source: err.into(), meta: ::std::default::Default::default() })
296                    }
297    
298                    /// Creates the `UpdateContinuousBackupsError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
299                    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
300                        Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source: err.clone().into(), meta: err })
301                    }
302    /// 
303    /// Returns error metadata, which includes the error code, message,
304    /// request ID, and potentially additional information.
305    /// 
306    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
307        match self {
308            Self::ContinuousBackupsUnavailableException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
309            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
310            Self::InvalidEndpointException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
311            Self::TableNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
312            Self::Unhandled(e) => &e.meta,
313        }
314    }
315    /// Returns `true` if the error kind is `UpdateContinuousBackupsError::ContinuousBackupsUnavailableException`.
316    pub fn is_continuous_backups_unavailable_exception(&self) -> bool {
317        matches!(self, Self::ContinuousBackupsUnavailableException(_))
318    }
319    /// Returns `true` if the error kind is `UpdateContinuousBackupsError::InternalServerError`.
320    pub fn is_internal_server_error(&self) -> bool {
321        matches!(self, Self::InternalServerError(_))
322    }
323    /// Returns `true` if the error kind is `UpdateContinuousBackupsError::InvalidEndpointException`.
324    pub fn is_invalid_endpoint_exception(&self) -> bool {
325        matches!(self, Self::InvalidEndpointException(_))
326    }
327    /// Returns `true` if the error kind is `UpdateContinuousBackupsError::TableNotFoundException`.
328    pub fn is_table_not_found_exception(&self) -> bool {
329        matches!(self, Self::TableNotFoundException(_))
330    }
331}
332impl ::std::error::Error for UpdateContinuousBackupsError {
333    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
334        match self {
335            Self::ContinuousBackupsUnavailableException(_inner) =>
336            ::std::option::Option::Some(_inner)
337            ,
338            Self::InternalServerError(_inner) =>
339            ::std::option::Option::Some(_inner)
340            ,
341            Self::InvalidEndpointException(_inner) =>
342            ::std::option::Option::Some(_inner)
343            ,
344            Self::TableNotFoundException(_inner) =>
345            ::std::option::Option::Some(_inner)
346            ,
347            Self::Unhandled(_inner) => {
348                ::std::option::Option::Some(&*_inner.source)
349            }
350        }
351    }
352}
353impl ::std::fmt::Display for UpdateContinuousBackupsError {
354    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
355        match self {
356            Self::ContinuousBackupsUnavailableException(_inner) =>
357            _inner.fmt(f)
358            ,
359            Self::InternalServerError(_inner) =>
360            _inner.fmt(f)
361            ,
362            Self::InvalidEndpointException(_inner) =>
363            _inner.fmt(f)
364            ,
365            Self::TableNotFoundException(_inner) =>
366            _inner.fmt(f)
367            ,
368            Self::Unhandled(_inner) => {
369                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
370                                                        write!(f, "unhandled error ({code})")
371                                                    } else {
372                                                        f.write_str("unhandled error")
373                                                    }
374            }
375        }
376    }
377}
378impl ::aws_smithy_types::retry::ProvideErrorKind for UpdateContinuousBackupsError {
379    fn code(&self) -> ::std::option::Option<&str> {
380        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
381    }
382    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
383        ::std::option::Option::None
384    }
385}
386impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for UpdateContinuousBackupsError {
387    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
388        match self {
389            Self::ContinuousBackupsUnavailableException(_inner) =>
390            ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
391            ,
392            Self::InternalServerError(_inner) =>
393            ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
394            ,
395            Self::InvalidEndpointException(_inner) =>
396            ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
397            ,
398            Self::TableNotFoundException(_inner) =>
399            ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
400            ,
401            Self::Unhandled(_inner) => {
402                &_inner.meta
403            }
404        }
405    }
406}
407impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for UpdateContinuousBackupsError {
408    fn create_unhandled_error(
409                        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
410                        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>
411                    ) -> Self {
412        Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source, meta: meta.unwrap_or_default() })
413    }
414}
415impl ::aws_types::request_id::RequestId for crate::operation::update_continuous_backups::UpdateContinuousBackupsError {
416                                fn request_id(&self) -> Option<&str> {
417                                    self.meta().request_id()
418                                }
419                            }
420
421pub use crate::operation::update_continuous_backups::_update_continuous_backups_input::UpdateContinuousBackupsInput;
422
423pub use crate::operation::update_continuous_backups::_update_continuous_backups_output::UpdateContinuousBackupsOutput;
424
425mod _update_continuous_backups_input;
426
427mod _update_continuous_backups_output;
428
429/// Builders
430pub mod builders;
431