aws_sdk_dynamodb/operation/
export_table_to_point_in_time.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `ExportTableToPointInTime`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct ExportTableToPointInTime;
6impl ExportTableToPointInTime {
7    /// Creates a new `ExportTableToPointInTime`
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::export_table_to_point_in_time::ExportTableToPointInTimeInput::SCHEMA;
13                    /// The schema for this operation's output shape.
14                    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema = crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeOutput::SCHEMA;
15    pub(crate) async fn orchestrate(
16                        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
17                        input: crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeInput,
18                    ) -> ::std::result::Result<crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeOutput, ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeError, ::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::export_table_to_point_in_time::ExportTableToPointInTimeError>().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::export_table_to_point_in_time::ExportTableToPointInTimeOutput>().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::export_table_to_point_in_time::ExportTableToPointInTimeInput,
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                            "ExportTableToPointInTime",
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.ExportTableToPointInTime",
49                                "rpc.service" = "DynamoDB",
50                                "rpc.method" = "ExportTableToPointInTime",
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                        runtime_plugins = runtime_plugins
64                                        .with_operation_plugin(crate::client_idempotency_token::IdempotencyTokenRuntimePlugin::new(|token_provider, input| {
65                                    let input: &mut crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeInput = input.downcast_mut().expect("correct type");
66                                    if input.client_token.is_none() {
67                                        input.client_token = ::std::option::Option::Some(token_provider.make_idempotency_token());
68                                    }
69                                }));
70                        if let ::std::option::Option::Some(config_override) = config_override {
71                            for plugin in config_override.runtime_plugins.iter().cloned() {
72                                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
73                            }
74                            runtime_plugins = runtime_plugins.with_operation_plugin(
75                                crate::config::ConfigOverrideRuntimePlugin::new(config_override, client_config.config.clone(), &client_config.runtime_components)
76                            );
77                        }
78                        runtime_plugins
79                    }
80}
81impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ExportTableToPointInTime {
82                fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
83                    let mut cfg = ::aws_smithy_types::config_bag::Layer::new("ExportTableToPointInTime");
84
85                    cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(ExportTableToPointInTimeRequestSerializer));
86                    cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(ExportTableToPointInTimeResponseDeserializer));
87
88                    cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
89                        crate::config::auth::Params::builder()
90                            .operation_name("ExportTableToPointInTime")
91                            .build()
92                            .expect("required fields set")
93                    ));
94
95                    cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
96                            "ExportTableToPointInTime",
97                            "DynamoDB",
98                        ));
99let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
100                            signing_options.double_uri_encode = true;
101                            signing_options.content_sha256_header = false;
102                            signing_options.normalize_uri_path = true;
103                            signing_options.payload_override = None;
104
105                            cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
106                                signing_options,
107                                ..::std::default::Default::default()
108                            });
109
110                    ::std::option::Option::Some(cfg.freeze())
111                }
112
113                fn runtime_components(&self, _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
114                    #[allow(unused_mut)]
115                    let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("ExportTableToPointInTime")
116                            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
117.with_interceptor(ExportTableToPointInTimeEndpointParamsInterceptor)
118                            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeError>::new())
119.with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeError>::new())
120.with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeError>::new());
121
122                    ::std::borrow::Cow::Owned(rcb)
123                }
124            }
125
126            
127#[derive(Debug)]
128            struct ExportTableToPointInTimeResponseDeserializer;
129            impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ExportTableToPointInTimeResponseDeserializer {
130                
131
132                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 {
133                    let (success, status) = (response.status().is_success(), response.status().as_u16());
134            #[allow(unused_mut)]
135            let mut force_error = false;
136            ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
137            if !success && status != 200 || force_error {
138                let headers = response.headers();
139                let body = response.body().bytes().expect("body loaded");
140#[allow(unused_mut)]
141            let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(status, headers, body)
142                .map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
143            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
144            let generic = generic_builder.build();
145let error_code = match generic.code() {
146                    ::std::option::Option::Some(code) => code,
147                    ::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::export_table_to_point_in_time::ExportTableToPointInTimeError::unhandled(generic)))),
148                };
149                let _error_message = generic.message().map(|msg| msg.to_owned());
150                let protocol = _cfg.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
151                    .expect("a SharedClientProtocol is required");
152let err = match error_code {
153"ExportConflictException" => crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeError::ExportConflictException({
154let mut tmp = match protocol.deserialize_response(response, crate::types::error::ExportConflictException::SCHEMA, _cfg)
155                        .and_then(|mut deser| crate::types::error::ExportConflictException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
156                    {
157                        ::std::result::Result::Ok(val) => val,
158                        ::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))),
159                    };
160                    tmp.meta = generic;
161if tmp.message.is_none() {
162                                tmp.message = _error_message;
163                            }
164tmp
165}),
166"InternalServerError" => crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeError::InternalServerError({
167let mut tmp = match protocol.deserialize_response(response, crate::types::error::InternalServerError::SCHEMA, _cfg)
168                        .and_then(|mut deser| crate::types::error::InternalServerError::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
169                    {
170                        ::std::result::Result::Ok(val) => val,
171                        ::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))),
172                    };
173                    tmp.meta = generic;
174if tmp.message.is_none() {
175                                tmp.message = _error_message;
176                            }
177tmp
178}),
179"InvalidExportTimeException" => crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeError::InvalidExportTimeException({
180let mut tmp = match protocol.deserialize_response(response, crate::types::error::InvalidExportTimeException::SCHEMA, _cfg)
181                        .and_then(|mut deser| crate::types::error::InvalidExportTimeException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
182                    {
183                        ::std::result::Result::Ok(val) => val,
184                        ::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))),
185                    };
186                    tmp.meta = generic;
187if tmp.message.is_none() {
188                                tmp.message = _error_message;
189                            }
190tmp
191}),
192"LimitExceededException" => crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeError::LimitExceededException({
193let mut tmp = match protocol.deserialize_response(response, crate::types::error::LimitExceededException::SCHEMA, _cfg)
194                        .and_then(|mut deser| crate::types::error::LimitExceededException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
195                    {
196                        ::std::result::Result::Ok(val) => val,
197                        ::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))),
198                    };
199                    tmp.meta = generic;
200if tmp.message.is_none() {
201                                tmp.message = _error_message;
202                            }
203tmp
204}),
205"PointInTimeRecoveryUnavailableException" => crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeError::PointInTimeRecoveryUnavailableException({
206let mut tmp = match protocol.deserialize_response(response, crate::types::error::PointInTimeRecoveryUnavailableException::SCHEMA, _cfg)
207                        .and_then(|mut deser| crate::types::error::PointInTimeRecoveryUnavailableException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
208                    {
209                        ::std::result::Result::Ok(val) => val,
210                        ::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))),
211                    };
212                    tmp.meta = generic;
213if tmp.message.is_none() {
214                                tmp.message = _error_message;
215                            }
216tmp
217}),
218"TableNotFoundException" => crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeError::TableNotFoundException({
219let mut tmp = match protocol.deserialize_response(response, crate::types::error::TableNotFoundException::SCHEMA, _cfg)
220                        .and_then(|mut deser| crate::types::error::TableNotFoundException::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body))
221                    {
222                        ::std::result::Result::Ok(val) => val,
223                        ::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))),
224                    };
225                    tmp.meta = generic;
226if tmp.message.is_none() {
227                                tmp.message = _error_message;
228                            }
229tmp
230}),
231_ => crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeError::generic(generic)
232};
233                ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err)))
234} else {
235                let protocol = _cfg.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
236                    .expect("a SharedClientProtocol is required");
237                let mut deser = protocol.deserialize_response(response, ExportTableToPointInTime::OUTPUT_SCHEMA, _cfg)
238                    .map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
239                let body = response.body().bytes().expect("body loaded");
240                let output = crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeOutput::deserialize_with_response(
241                    &mut *deser,
242                    response.headers(),
243                    response.status().into(),
244                    body,
245                ).map_err(|e| ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e)))?;
246                ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
247            }
248                }
249            }
250#[derive(Debug)]
251            struct ExportTableToPointInTimeRequestSerializer;
252            impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ExportTableToPointInTimeRequestSerializer {
253                #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
254                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> {
255                    let input = input.downcast::<crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeInput>().expect("correct type");
256                    let protocol = _cfg.load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
257                        .expect("a SharedClientProtocol is required");
258                    let mut request = protocol.serialize_request(
259                            &input, ExportTableToPointInTime::INPUT_SCHEMA, "", _cfg,
260                        ).map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
261                        
262                        return ::std::result::Result::Ok(request);
263                }
264            }
265#[derive(Debug)]
266            struct ExportTableToPointInTimeEndpointParamsInterceptor;
267
268            impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ExportTableToPointInTimeEndpointParamsInterceptor {
269                fn name(&self) -> &'static str {
270                    "ExportTableToPointInTimeEndpointParamsInterceptor"
271                }
272
273                fn read_before_execution(
274                    &self,
275                    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>,
276                    cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
277                ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
278                    let _input = context.input()
279                        .downcast_ref::<ExportTableToPointInTimeInput>()
280                        .ok_or("failed to downcast to ExportTableToPointInTimeInput")?;
281
282                    
283
284                    let params = crate::config::endpoint::Params::builder()
285                        .set_region(cfg.load::<::aws_types::region::Region>().map(|r|r.as_ref().to_owned()))
286.set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
287.set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
288.set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
289.set_account_id_endpoint_mode(::std::option::Option::Some(cfg.load::<::aws_types::endpoint_config::AccountIdEndpointMode>().cloned().unwrap_or_default().to_string()))
290.set_resource_arn(Some(_input.table_arn.clone().filter(|f|!AsRef::<str>::as_ref(f).trim().is_empty()).ok_or_else(||::aws_smithy_types::error::operation::BuildError::missing_field("table_arn", "A required field was not set"))?))
291                        .build()
292                        .map_err(|err| ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err))?;
293                    cfg.interceptor_state().store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
294                    ::std::result::Result::Ok(())
295                }
296            }
297
298            // The get_* functions below are generated from JMESPath expressions in the
299            // operationContextParams trait. They target the operation's input shape.
300
301            
302
303/// Error type for the `ExportTableToPointInTimeError` operation.
304#[non_exhaustive]
305#[derive(::std::fmt::Debug)]
306pub enum ExportTableToPointInTimeError {
307    /// <p>There was a conflict when writing to the specified S3 bucket.</p>
308    ExportConflictException(crate::types::error::ExportConflictException),
309    /// <p>An error occurred on the server side.</p>
310    InternalServerError(crate::types::error::InternalServerError),
311    /// <p>The specified <code>ExportTime</code> is outside of the point in time recovery window.</p>
312    InvalidExportTimeException(crate::types::error::InvalidExportTimeException),
313    /// <p>There is no limit to the number of daily on-demand backups that can be taken.</p>
314    /// <p>For most purposes, up to 500 simultaneous table operations are allowed per account. These operations include <code>CreateTable</code>, <code>UpdateTable</code>, <code>DeleteTable</code>,<code>UpdateTimeToLive</code>, <code>RestoreTableFromBackup</code>, and <code>RestoreTableToPointInTime</code>.</p>
315    /// <p>When you are creating a table with one or more secondary indexes, you can have up to 250 such requests running at a time. However, if the table or index specifications are complex, then DynamoDB might temporarily reduce the number of concurrent operations.</p>
316    /// <p>When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.</p>
317    /// <p>There is a soft account quota of 2,500 tables.</p>
318    /// <p>GetRecords was called with a value of more than 1000 for the limit request parameter.</p>
319    /// <p>More than 2 processes are reading from the same streams shard at the same time. Exceeding this limit may result in request throttling.</p>
320    LimitExceededException(crate::types::error::LimitExceededException),
321    /// <p>Point in time recovery has not yet been enabled for this source table.</p>
322    PointInTimeRecoveryUnavailableException(crate::types::error::PointInTimeRecoveryUnavailableException),
323    /// <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>
324    TableNotFoundException(crate::types::error::TableNotFoundException),
325    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
326                    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
327    variable wildcard pattern and check `.code()`:
328     \
329    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
330     \
331    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ExportTableToPointInTimeError) for what information is available for the error.")]
332                    Unhandled(crate::error::sealed_unhandled::Unhandled),
333}
334impl ExportTableToPointInTimeError {
335    /// Creates the `ExportTableToPointInTimeError::Unhandled` variant from any error type.
336                    pub fn unhandled(err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>) -> Self {
337                        Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source: err.into(), meta: ::std::default::Default::default() })
338                    }
339    
340                    /// Creates the `ExportTableToPointInTimeError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
341                    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
342                        Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source: err.clone().into(), meta: err })
343                    }
344    /// 
345    /// Returns error metadata, which includes the error code, message,
346    /// request ID, and potentially additional information.
347    /// 
348    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
349        match self {
350            Self::ExportConflictException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
351            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
352            Self::InvalidExportTimeException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
353            Self::LimitExceededException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
354            Self::PointInTimeRecoveryUnavailableException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
355            Self::TableNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
356            Self::Unhandled(e) => &e.meta,
357        }
358    }
359    /// Returns `true` if the error kind is `ExportTableToPointInTimeError::ExportConflictException`.
360    pub fn is_export_conflict_exception(&self) -> bool {
361        matches!(self, Self::ExportConflictException(_))
362    }
363    /// Returns `true` if the error kind is `ExportTableToPointInTimeError::InternalServerError`.
364    pub fn is_internal_server_error(&self) -> bool {
365        matches!(self, Self::InternalServerError(_))
366    }
367    /// Returns `true` if the error kind is `ExportTableToPointInTimeError::InvalidExportTimeException`.
368    pub fn is_invalid_export_time_exception(&self) -> bool {
369        matches!(self, Self::InvalidExportTimeException(_))
370    }
371    /// Returns `true` if the error kind is `ExportTableToPointInTimeError::LimitExceededException`.
372    pub fn is_limit_exceeded_exception(&self) -> bool {
373        matches!(self, Self::LimitExceededException(_))
374    }
375    /// Returns `true` if the error kind is `ExportTableToPointInTimeError::PointInTimeRecoveryUnavailableException`.
376    pub fn is_point_in_time_recovery_unavailable_exception(&self) -> bool {
377        matches!(self, Self::PointInTimeRecoveryUnavailableException(_))
378    }
379    /// Returns `true` if the error kind is `ExportTableToPointInTimeError::TableNotFoundException`.
380    pub fn is_table_not_found_exception(&self) -> bool {
381        matches!(self, Self::TableNotFoundException(_))
382    }
383}
384impl ::std::error::Error for ExportTableToPointInTimeError {
385    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
386        match self {
387            Self::ExportConflictException(_inner) =>
388            ::std::option::Option::Some(_inner)
389            ,
390            Self::InternalServerError(_inner) =>
391            ::std::option::Option::Some(_inner)
392            ,
393            Self::InvalidExportTimeException(_inner) =>
394            ::std::option::Option::Some(_inner)
395            ,
396            Self::LimitExceededException(_inner) =>
397            ::std::option::Option::Some(_inner)
398            ,
399            Self::PointInTimeRecoveryUnavailableException(_inner) =>
400            ::std::option::Option::Some(_inner)
401            ,
402            Self::TableNotFoundException(_inner) =>
403            ::std::option::Option::Some(_inner)
404            ,
405            Self::Unhandled(_inner) => {
406                ::std::option::Option::Some(&*_inner.source)
407            }
408        }
409    }
410}
411impl ::std::fmt::Display for ExportTableToPointInTimeError {
412    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
413        match self {
414            Self::ExportConflictException(_inner) =>
415            _inner.fmt(f)
416            ,
417            Self::InternalServerError(_inner) =>
418            _inner.fmt(f)
419            ,
420            Self::InvalidExportTimeException(_inner) =>
421            _inner.fmt(f)
422            ,
423            Self::LimitExceededException(_inner) =>
424            _inner.fmt(f)
425            ,
426            Self::PointInTimeRecoveryUnavailableException(_inner) =>
427            _inner.fmt(f)
428            ,
429            Self::TableNotFoundException(_inner) =>
430            _inner.fmt(f)
431            ,
432            Self::Unhandled(_inner) => {
433                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
434                                                        write!(f, "unhandled error ({code})")
435                                                    } else {
436                                                        f.write_str("unhandled error")
437                                                    }
438            }
439        }
440    }
441}
442impl ::aws_smithy_types::retry::ProvideErrorKind for ExportTableToPointInTimeError {
443    fn code(&self) -> ::std::option::Option<&str> {
444        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
445    }
446    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
447        ::std::option::Option::None
448    }
449}
450impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ExportTableToPointInTimeError {
451    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
452        match self {
453            Self::ExportConflictException(_inner) =>
454            ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
455            ,
456            Self::InternalServerError(_inner) =>
457            ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
458            ,
459            Self::InvalidExportTimeException(_inner) =>
460            ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
461            ,
462            Self::LimitExceededException(_inner) =>
463            ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
464            ,
465            Self::PointInTimeRecoveryUnavailableException(_inner) =>
466            ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
467            ,
468            Self::TableNotFoundException(_inner) =>
469            ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
470            ,
471            Self::Unhandled(_inner) => {
472                &_inner.meta
473            }
474        }
475    }
476}
477impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ExportTableToPointInTimeError {
478    fn create_unhandled_error(
479                        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
480                        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>
481                    ) -> Self {
482        Self::Unhandled(crate::error::sealed_unhandled::Unhandled { source, meta: meta.unwrap_or_default() })
483    }
484}
485impl ::aws_types::request_id::RequestId for crate::operation::export_table_to_point_in_time::ExportTableToPointInTimeError {
486                                fn request_id(&self) -> Option<&str> {
487                                    self.meta().request_id()
488                                }
489                            }
490
491pub use crate::operation::export_table_to_point_in_time::_export_table_to_point_in_time_input::ExportTableToPointInTimeInput;
492
493pub use crate::operation::export_table_to_point_in_time::_export_table_to_point_in_time_output::ExportTableToPointInTimeOutput;
494
495mod _export_table_to_point_in_time_input;
496
497mod _export_table_to_point_in_time_output;
498
499/// Builders
500pub mod builders;
501