83 92 | runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
|
84 93 | }
|
85 94 | runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
|
86 95 | config_override,
|
87 96 | client_config.config.clone(),
|
88 97 | &client_config.runtime_components,
|
89 98 | ));
|
90 99 | }
|
91 100 | runtime_plugins
|
92 101 | }
|
102 + | /* OperationGenerator.kt:85 */
|
93 103 | }
|
104 + | /* OperationRuntimePluginGenerator.kt:55 */
|
94 105 | impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for RestoreTableToPointInTime {
|
95 106 | fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
|
96 107 | let mut cfg = ::aws_smithy_types::config_bag::Layer::new("RestoreTableToPointInTime");
|
97 108 |
|
98 109 | cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
|
99 110 | RestoreTableToPointInTimeRequestSerializer,
|
100 111 | ));
|
101 112 | cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
|
102 113 | RestoreTableToPointInTimeResponseDeserializer,
|
103 114 | ));
|
104 115 |
|
105 116 | cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
|
106 117 | ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
|
107 118 | ));
|
108 119 |
|
109 120 | cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
|
110 121 | "RestoreTableToPointInTime",
|
111 122 | "DynamoDB",
|
112 123 | ));
|
113 124 |
|
114 125 | ::std::option::Option::Some(cfg.freeze())
|
115 126 | }
|
116 127 |
|
117 128 | fn runtime_components(
|
118 129 | &self,
|
119 130 | _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
|
120 131 | ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
|
121 132 | #[allow(unused_mut)]
|
122 133 | let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("RestoreTableToPointInTime")
|
123 134 | .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
|
124 135 | .with_interceptor(RestoreTableToPointInTimeEndpointParamsInterceptor)
|
125 136 | .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
|
126 137 | crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError,
|
127 138 | >::new())
|
128 139 | .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
|
129 140 | crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError,
|
130 141 | >::new());
|
131 142 |
|
132 143 | ::std::borrow::Cow::Owned(rcb)
|
133 144 | }
|
134 145 | }
|
135 146 |
|
147 + | /* ResponseDeserializerGenerator.kt:64 */
|
136 148 | #[derive(Debug)]
|
137 149 | struct RestoreTableToPointInTimeResponseDeserializer;
|
138 150 | impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for RestoreTableToPointInTimeResponseDeserializer {
|
139 151 | fn deserialize_nonstreaming(
|
140 152 | &self,
|
141 153 | response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
142 154 | ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
|
143 155 | let (success, status) = (response.status().is_success(), response.status().as_u16());
|
144 156 | let headers = response.headers();
|
145 157 | let body = response.body().bytes().expect("body loaded");
|
146 158 | #[allow(unused_mut)]
|
147 159 | let mut force_error = false;
|
148 160 |
|
149 161 | let parse_result = if !success && status != 200 || force_error {
|
150 162 | crate::protocol_serde::shape_restore_table_to_point_in_time::de_restore_table_to_point_in_time_http_error(status, headers, body)
|
151 163 | } else {
|
152 164 | crate::protocol_serde::shape_restore_table_to_point_in_time::de_restore_table_to_point_in_time_http_response(status, headers, body)
|
153 165 | };
|
154 166 | crate::protocol_serde::type_erase_result(parse_result)
|
155 167 | }
|
156 168 | }
|
169 + | /* RequestSerializerGenerator.kt:67 */
|
157 170 | #[derive(Debug)]
|
158 171 | struct RestoreTableToPointInTimeRequestSerializer;
|
159 172 | impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for RestoreTableToPointInTimeRequestSerializer {
|
160 173 | #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
|
161 174 | fn serialize_input(
|
162 175 | &self,
|
163 176 | input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
164 177 | _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
165 178 | ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
|
166 179 | let input = input
|
167 180 | .downcast::<crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeInput>()
|
168 181 | .expect("correct type");
|
169 182 | let _header_serialization_settings = _cfg
|
170 183 | .load::<crate::serialization_settings::HeaderSerializationSettings>()
|
171 184 | .cloned()
|
172 185 | .unwrap_or_default();
|
173 186 | let mut request_builder = {
|
174 187 | fn uri_base(
|
175 188 | _input: &crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeInput,
|
176 189 | output: &mut ::std::string::String,
|
177 190 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
|
178 191 | use ::std::fmt::Write as _;
|
179 192 | ::std::write!(output, "/").expect("formatting should succeed");
|
180 193 | ::std::result::Result::Ok(())
|
181 194 | }
|
182 195 | #[allow(clippy::unnecessary_wraps)]
|
183 196 | fn update_http_builder(
|
184 197 | input: &crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeInput,
|
185 198 | builder: ::http::request::Builder,
|
186 199 | ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
187 200 | let mut uri = ::std::string::String::new();
|
188 201 | uri_base(input, &mut uri)?;
|
189 202 | ::std::result::Result::Ok(builder.method("POST").uri(uri))
|
190 203 | }
|
191 204 | let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
|
192 205 | builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-amz-json-1.0");
|
193 206 | builder = _header_serialization_settings.set_default_header(
|
194 207 | builder,
|
195 208 | ::http::header::HeaderName::from_static("x-amz-target"),
|
196 209 | "DynamoDB_20120810.RestoreTableToPointInTime",
|
197 210 | );
|
198 211 | builder
|
199 212 | };
|
200 213 | let body = ::aws_smithy_types::body::SdkBody::from(
|
201 214 | crate::protocol_serde::shape_restore_table_to_point_in_time::ser_restore_table_to_point_in_time_input(&input)?,
|
202 215 | );
|
203 216 | if let Some(content_length) = body.content_length() {
|
204 217 | let content_length = content_length.to_string();
|
205 218 | request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
|
206 219 | }
|
207 220 | ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
|
208 221 | }
|
209 222 | }
|
223 + | /* EndpointParamsInterceptorGenerator.kt:86 */
|
210 224 | #[derive(Debug)]
|
211 225 | struct RestoreTableToPointInTimeEndpointParamsInterceptor;
|
212 226 |
|
213 227 | impl ::aws_smithy_runtime_api::client::interceptors::Intercept for RestoreTableToPointInTimeEndpointParamsInterceptor {
|
214 228 | fn name(&self) -> &'static str {
|
215 229 | "RestoreTableToPointInTimeEndpointParamsInterceptor"
|
216 230 | }
|
217 231 |
|
218 232 | fn read_before_execution(
|
219 233 | &self,
|
220 234 | context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
|
221 235 | '_,
|
222 236 | ::aws_smithy_runtime_api::client::interceptors::context::Input,
|
223 237 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
224 238 | ::aws_smithy_runtime_api::client::interceptors::context::Error,
|
225 239 | >,
|
226 240 | cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
|
227 241 | ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
|
228 242 | let _input = context
|
229 243 | .input()
|
230 244 | .downcast_ref::<RestoreTableToPointInTimeInput>()
|
231 245 | .ok_or("failed to downcast to RestoreTableToPointInTimeInput")?;
|
232 246 |
|
233 247 | let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
|
234 248 | ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
|
235 249 | })?;
|
236 250 | cfg.interceptor_state()
|
237 251 | .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
|
238 252 | ::std::result::Result::Ok(())
|
239 253 | }
|
240 254 | }
|
241 255 |
|
242 256 | // The get_* functions below are generated from JMESPath expressions in the
|
243 257 | // operationContextParams trait. They target the operation's input shape.
|
244 258 |
|
259 + | /* OperationErrorGenerator.kt:79 */
|
245 260 | /// Error type for the `RestoreTableToPointInTimeError` operation.
|
261 + | /* RustType.kt:516 */
|
246 262 | #[non_exhaustive]
|
263 + | /* RustType.kt:516 */
|
247 264 | #[derive(::std::fmt::Debug)]
|
248 - | pub enum RestoreTableToPointInTimeError {
|
249 - | /// <p>An error occurred on the server side.</p>
|
265 + | pub /* OperationErrorGenerator.kt:81 */ enum RestoreTableToPointInTimeError {
|
266 + | /// /* OperationErrorGenerator.kt:83 */<p>An error occurred on the server side.</p>
|
267 + | /* OperationErrorGenerator.kt:86 */
|
250 268 | InternalServerError(crate::types::error::InternalServerError),
|
269 + | /* OperationErrorGenerator.kt:83 */
|
251 270 | #[allow(missing_docs)] // documentation missing in model
|
271 + | /* OperationErrorGenerator.kt:86 */
|
252 272 | InvalidEndpointError(crate::types::error::InvalidEndpointError),
|
253 - | /// <p>An invalid restore time was specified. RestoreDateTime must be between EarliestRestorableDateTime and LatestRestorableDateTime.</p>
|
273 + | /// /* OperationErrorGenerator.kt:83 */<p>An invalid restore time was specified. RestoreDateTime must be between EarliestRestorableDateTime and LatestRestorableDateTime.</p>
|
274 + | /* OperationErrorGenerator.kt:86 */
|
254 275 | InvalidRestoreTimeError(crate::types::error::InvalidRestoreTimeError),
|
255 - | /// <p>There is no limit to the number of daily on-demand backups that can be taken.</p>
|
276 + | /// /* OperationErrorGenerator.kt:83 */<p>There is no limit to the number of daily on-demand backups that can be taken.</p>
|
256 277 | /// <p>Up to 50 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>
|
257 278 | /// <p>The only exception is when you are creating a table with one or more secondary indexes. You can have up to 25 such requests running at a time; however, if the table or index specifications are complex, DynamoDB might temporarily reduce the number of concurrent operations.</p>
|
258 279 | /// <p>There is a soft account quota of 256 tables.</p>
|
280 + | /* OperationErrorGenerator.kt:86 */
|
259 281 | LimitExceededError(crate::types::error::LimitExceededError),
|
260 - | /// <p>Point in time recovery has not yet been enabled for this source table.</p>
|
282 + | /// /* OperationErrorGenerator.kt:83 */<p>Point in time recovery has not yet been enabled for this source table.</p>
|
283 + | /* OperationErrorGenerator.kt:86 */
|
261 284 | PointInTimeRecoveryUnavailableError(crate::types::error::PointInTimeRecoveryUnavailableError),
|
262 - | /// <p>A target table with the specified name already exists.</p>
|
285 + | /// /* OperationErrorGenerator.kt:83 */<p>A target table with the specified name already exists.</p>
|
286 + | /* OperationErrorGenerator.kt:86 */
|
263 287 | TableAlreadyExistsError(crate::types::error::TableAlreadyExistsError),
|
264 - | /// <p>A target table with the specified name is either being created or deleted.</p>
|
288 + | /// /* OperationErrorGenerator.kt:83 */<p>A target table with the specified name is either being created or deleted.</p>
|
289 + | /* OperationErrorGenerator.kt:86 */
|
265 290 | TableInUseError(crate::types::error::TableInUseError),
|
266 - | /// <p>A source table with the name <code>TableName</code> does not currently exist within the subscriber's account.</p>
|
291 + | /// /* OperationErrorGenerator.kt:83 */<p>A source table with the name <code>TableName</code> does not currently exist within the subscriber's account.</p>
|
292 + | /* OperationErrorGenerator.kt:86 */
|
267 293 | TableNotFoundError(crate::types::error::TableNotFoundError),
|
294 + | /* OperationErrorGenerator.kt:88 */
|
268 295 | /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
|
269 296 | #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
|
270 297 | variable wildcard pattern and check `.code()`:
|
271 298 | \
|
272 299 | `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
|
273 300 | \
|
274 301 | See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-RestoreTableToPointInTimeError) for what information is available for the error.")]
|
275 302 | Unhandled(crate::error::sealed_unhandled::Unhandled),
|
303 + | /* OperationErrorGenerator.kt:81 */
|
276 304 | }
|
305 + | /* OperationErrorGenerator.kt:218 */
|
277 306 | impl RestoreTableToPointInTimeError {
|
307 + | /* OperationErrorGenerator.kt:219 */
|
278 308 | /// Creates the `RestoreTableToPointInTimeError::Unhandled` variant from any error type.
|
279 309 | pub fn unhandled(
|
280 310 | err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
|
281 311 | ) -> Self {
|
282 312 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
283 313 | source: err.into(),
|
284 314 | meta: ::std::default::Default::default(),
|
285 315 | })
|
286 316 | }
|
287 317 |
|
288 318 | /// Creates the `RestoreTableToPointInTimeError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
|
289 319 | pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
|
290 320 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
291 321 | source: err.clone().into(),
|
292 322 | meta: err,
|
293 323 | })
|
294 324 | }
|
295 - | ///
|
325 + | /// /* OperationErrorGenerator.kt:236 */
|
296 326 | /// Returns error metadata, which includes the error code, message,
|
297 327 | /// request ID, and potentially additional information.
|
298 328 | ///
|
329 + | /* OperationErrorGenerator.kt:242 */
|
299 330 | pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
331 + | /* OperationErrorGenerator.kt:243 */
|
300 332 | match self {
|
333 + | /* OperationErrorGenerator.kt:246 */
|
301 334 | Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
335 + | /* OperationErrorGenerator.kt:246 */
|
302 336 | Self::InvalidEndpointError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
337 + | /* OperationErrorGenerator.kt:246 */
|
303 338 | Self::InvalidRestoreTimeError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
339 + | /* OperationErrorGenerator.kt:246 */
|
304 340 | Self::LimitExceededError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
341 + | /* OperationErrorGenerator.kt:246 */
|
305 342 | Self::PointInTimeRecoveryUnavailableError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
343 + | /* OperationErrorGenerator.kt:246 */
|
306 344 | Self::TableAlreadyExistsError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
307 - | Self::TableInUseError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
345 + | /* OperationErrorGenerator.kt:246 */ Self::TableInUseError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
346 + | /* OperationErrorGenerator.kt:246 */
|
308 347 | Self::TableNotFoundError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
|
309 - | Self::Unhandled(e) => &e.meta,
|
348 + | /* OperationErrorGenerator.kt:251 */ Self::Unhandled(e) => &e.meta,
|
349 + | /* OperationErrorGenerator.kt:243 */
|
310 350 | }
|
351 + | /* OperationErrorGenerator.kt:242 */
|
311 352 | }
|
353 + | /* OperationErrorGenerator.kt:257 */
|
312 354 | /// Returns `true` if the error kind is `RestoreTableToPointInTimeError::InternalServerError`.
|
355 + | /* OperationErrorGenerator.kt:258 */
|
313 356 | pub fn is_internal_server_error(&self) -> bool {
|
357 + | /* OperationErrorGenerator.kt:259 */
|
314 358 | matches!(self, Self::InternalServerError(_))
|
359 + | /* OperationErrorGenerator.kt:258 */
|
315 360 | }
|
361 + | /* OperationErrorGenerator.kt:257 */
|
316 362 | /// Returns `true` if the error kind is `RestoreTableToPointInTimeError::InvalidEndpointError`.
|
363 + | /* OperationErrorGenerator.kt:258 */
|
317 364 | pub fn is_invalid_endpoint_error(&self) -> bool {
|
365 + | /* OperationErrorGenerator.kt:259 */
|
318 366 | matches!(self, Self::InvalidEndpointError(_))
|
367 + | /* OperationErrorGenerator.kt:258 */
|
319 368 | }
|
369 + | /* OperationErrorGenerator.kt:257 */
|
320 370 | /// Returns `true` if the error kind is `RestoreTableToPointInTimeError::InvalidRestoreTimeError`.
|
371 + | /* OperationErrorGenerator.kt:258 */
|
321 372 | pub fn is_invalid_restore_time_error(&self) -> bool {
|
373 + | /* OperationErrorGenerator.kt:259 */
|
322 374 | matches!(self, Self::InvalidRestoreTimeError(_))
|
375 + | /* OperationErrorGenerator.kt:258 */
|
323 376 | }
|
377 + | /* OperationErrorGenerator.kt:257 */
|
324 378 | /// Returns `true` if the error kind is `RestoreTableToPointInTimeError::LimitExceededError`.
|
379 + | /* OperationErrorGenerator.kt:258 */
|
325 380 | pub fn is_limit_exceeded_error(&self) -> bool {
|
381 + | /* OperationErrorGenerator.kt:259 */
|
326 382 | matches!(self, Self::LimitExceededError(_))
|
383 + | /* OperationErrorGenerator.kt:258 */
|
327 384 | }
|
385 + | /* OperationErrorGenerator.kt:257 */
|
328 386 | /// Returns `true` if the error kind is `RestoreTableToPointInTimeError::PointInTimeRecoveryUnavailableError`.
|
387 + | /* OperationErrorGenerator.kt:258 */
|
329 388 | pub fn is_point_in_time_recovery_unavailable_error(&self) -> bool {
|
389 + | /* OperationErrorGenerator.kt:259 */
|
330 390 | matches!(self, Self::PointInTimeRecoveryUnavailableError(_))
|
391 + | /* OperationErrorGenerator.kt:258 */
|
331 392 | }
|
393 + | /* OperationErrorGenerator.kt:257 */
|
332 394 | /// Returns `true` if the error kind is `RestoreTableToPointInTimeError::TableAlreadyExistsError`.
|
395 + | /* OperationErrorGenerator.kt:258 */
|
333 396 | pub fn is_table_already_exists_error(&self) -> bool {
|
397 + | /* OperationErrorGenerator.kt:259 */
|
334 398 | matches!(self, Self::TableAlreadyExistsError(_))
|
399 + | /* OperationErrorGenerator.kt:258 */
|
335 400 | }
|
401 + | /* OperationErrorGenerator.kt:257 */
|
336 402 | /// Returns `true` if the error kind is `RestoreTableToPointInTimeError::TableInUseError`.
|
403 + | /* OperationErrorGenerator.kt:258 */
|
337 404 | pub fn is_table_in_use_error(&self) -> bool {
|
405 + | /* OperationErrorGenerator.kt:259 */
|
338 406 | matches!(self, Self::TableInUseError(_))
|
407 + | /* OperationErrorGenerator.kt:258 */
|
339 408 | }
|
409 + | /* OperationErrorGenerator.kt:257 */
|
340 410 | /// Returns `true` if the error kind is `RestoreTableToPointInTimeError::TableNotFoundError`.
|
411 + | /* OperationErrorGenerator.kt:258 */
|
341 412 | pub fn is_table_not_found_error(&self) -> bool {
|
413 + | /* OperationErrorGenerator.kt:259 */
|
342 414 | matches!(self, Self::TableNotFoundError(_))
|
415 + | /* OperationErrorGenerator.kt:258 */
|
343 416 | }
|
417 + | /* OperationErrorGenerator.kt:218 */
|
344 418 | }
|
419 + | /* OperationErrorGenerator.kt:269 */
|
345 420 | impl ::std::error::Error for RestoreTableToPointInTimeError {
|
421 + | /* OperationErrorGenerator.kt:270 */
|
346 422 | fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
|
423 + | /* OperationErrorGenerator.kt:318 */
|
347 424 | match self {
|
348 - | Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
|
349 - | Self::InvalidEndpointError(_inner) => ::std::option::Option::Some(_inner),
|
350 - | Self::InvalidRestoreTimeError(_inner) => ::std::option::Option::Some(_inner),
|
351 - | Self::LimitExceededError(_inner) => ::std::option::Option::Some(_inner),
|
352 - | Self::PointInTimeRecoveryUnavailableError(_inner) => ::std::option::Option::Some(_inner),
|
353 - | Self::TableAlreadyExistsError(_inner) => ::std::option::Option::Some(_inner),
|
354 - | Self::TableInUseError(_inner) => ::std::option::Option::Some(_inner),
|
355 - | Self::TableNotFoundError(_inner) => ::std::option::Option::Some(_inner),
|
356 - | Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
|
425 + | /* OperationErrorGenerator.kt:321 */
|
426 + | Self::InternalServerError(_inner) =>
|
427 + | /* OperationErrorGenerator.kt:283 */
|
428 + | {
|
429 + | ::std::option::Option::Some(_inner)
|
430 + | }
|
431 + | ,
|
432 + | /* OperationErrorGenerator.kt:321 */
|
433 + | Self::InvalidEndpointError(_inner) =>
|
434 + | /* OperationErrorGenerator.kt:283 */
|
435 + | {
|
436 + | ::std::option::Option::Some(_inner)
|
437 + | }
|
438 + | ,
|
439 + | /* OperationErrorGenerator.kt:321 */
|
440 + | Self::InvalidRestoreTimeError(_inner) =>
|
441 + | /* OperationErrorGenerator.kt:283 */
|
442 + | {
|
443 + | ::std::option::Option::Some(_inner)
|
444 + | }
|
445 + | ,
|
446 + | /* OperationErrorGenerator.kt:321 */
|
447 + | Self::LimitExceededError(_inner) =>
|
448 + | /* OperationErrorGenerator.kt:283 */
|
449 + | {
|
450 + | ::std::option::Option::Some(_inner)
|
451 + | }
|
452 + | ,
|
453 + | /* OperationErrorGenerator.kt:321 */
|
454 + | Self::PointInTimeRecoveryUnavailableError(_inner) =>
|
455 + | /* OperationErrorGenerator.kt:283 */
|
456 + | {
|
457 + | ::std::option::Option::Some(_inner)
|
458 + | }
|
459 + | ,
|
460 + | /* OperationErrorGenerator.kt:321 */
|
461 + | Self::TableAlreadyExistsError(_inner) =>
|
462 + | /* OperationErrorGenerator.kt:283 */
|
463 + | {
|
464 + | ::std::option::Option::Some(_inner)
|
465 + | }
|
466 + | ,
|
467 + | /* OperationErrorGenerator.kt:321 */
|
468 + | Self::TableInUseError(_inner) =>
|
469 + | /* OperationErrorGenerator.kt:283 */
|
470 + | {
|
471 + | ::std::option::Option::Some(_inner)
|
472 + | }
|
473 + | ,
|
474 + | /* OperationErrorGenerator.kt:321 */
|
475 + | Self::TableNotFoundError(_inner) =>
|
476 + | /* OperationErrorGenerator.kt:283 */
|
477 + | {
|
478 + | ::std::option::Option::Some(_inner)
|
479 + | }
|
480 + | ,
|
481 + | /* OperationErrorGenerator.kt:326 */
|
482 + | Self::Unhandled(_inner) => {
|
483 + | /* OperationErrorGenerator.kt:279 */
|
484 + | ::std::option::Option::Some(&*_inner.source)
|
485 + | /* OperationErrorGenerator.kt:326 */
|
486 + | } /* OperationErrorGenerator.kt:318 */
|
357 487 | }
|
488 + | /* OperationErrorGenerator.kt:270 */
|
358 489 | }
|
490 + | /* OperationErrorGenerator.kt:269 */
|
359 491 | }
|
492 + | /* OperationErrorGenerator.kt:133 */
|
360 493 | impl ::std::fmt::Display for RestoreTableToPointInTimeError {
|
494 + | /* OperationErrorGenerator.kt:134 */
|
361 495 | fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
|
496 + | /* OperationErrorGenerator.kt:318 */
|
362 497 | match self {
|
363 - | Self::InternalServerError(_inner) => _inner.fmt(f),
|
364 - | Self::InvalidEndpointError(_inner) => _inner.fmt(f),
|
365 - | Self::InvalidRestoreTimeError(_inner) => _inner.fmt(f),
|
366 - | Self::LimitExceededError(_inner) => _inner.fmt(f),
|
367 - | Self::PointInTimeRecoveryUnavailableError(_inner) => _inner.fmt(f),
|
368 - | Self::TableAlreadyExistsError(_inner) => _inner.fmt(f),
|
369 - | Self::TableInUseError(_inner) => _inner.fmt(f),
|
370 - | Self::TableNotFoundError(_inner) => _inner.fmt(f),
|
498 + | /* OperationErrorGenerator.kt:321 */
|
499 + | Self::InternalServerError(_inner) =>
|
500 + | /* OperationErrorGenerator.kt:151 */
|
501 + | {
|
502 + | _inner.fmt(f)
|
503 + | }
|
504 + | ,
|
505 + | /* OperationErrorGenerator.kt:321 */
|
506 + | Self::InvalidEndpointError(_inner) =>
|
507 + | /* OperationErrorGenerator.kt:151 */
|
508 + | {
|
509 + | _inner.fmt(f)
|
510 + | }
|
511 + | ,
|
512 + | /* OperationErrorGenerator.kt:321 */
|
513 + | Self::InvalidRestoreTimeError(_inner) =>
|
514 + | /* OperationErrorGenerator.kt:151 */
|
515 + | {
|
516 + | _inner.fmt(f)
|
517 + | }
|
518 + | ,
|
519 + | /* OperationErrorGenerator.kt:321 */
|
520 + | Self::LimitExceededError(_inner) =>
|
521 + | /* OperationErrorGenerator.kt:151 */
|
522 + | {
|
523 + | _inner.fmt(f)
|
524 + | }
|
525 + | ,
|
526 + | /* OperationErrorGenerator.kt:321 */
|
527 + | Self::PointInTimeRecoveryUnavailableError(_inner) =>
|
528 + | /* OperationErrorGenerator.kt:151 */
|
529 + | {
|
530 + | _inner.fmt(f)
|
531 + | }
|
532 + | ,
|
533 + | /* OperationErrorGenerator.kt:321 */
|
534 + | Self::TableAlreadyExistsError(_inner) =>
|
535 + | /* OperationErrorGenerator.kt:151 */
|
536 + | {
|
537 + | _inner.fmt(f)
|
538 + | }
|
539 + | ,
|
540 + | /* OperationErrorGenerator.kt:321 */
|
541 + | Self::TableInUseError(_inner) =>
|
542 + | /* OperationErrorGenerator.kt:151 */
|
543 + | {
|
544 + | _inner.fmt(f)
|
545 + | }
|
546 + | ,
|
547 + | /* OperationErrorGenerator.kt:321 */
|
548 + | Self::TableNotFoundError(_inner) =>
|
549 + | /* OperationErrorGenerator.kt:151 */
|
550 + | {
|
551 + | _inner.fmt(f)
|
552 + | }
|
553 + | ,
|
554 + | /* OperationErrorGenerator.kt:326 */
|
371 555 | Self::Unhandled(_inner) => {
|
556 + | /* OperationErrorGenerator.kt:139 */
|
372 557 | if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
|
373 558 | write!(f, "unhandled error ({code})")
|
374 559 | } else {
|
375 560 | f.write_str("unhandled error")
|
376 561 | }
|
562 + | /* OperationErrorGenerator.kt:326 */
|
563 + | } /* OperationErrorGenerator.kt:318 */
|
377 564 | }
|
565 + | /* OperationErrorGenerator.kt:134 */
|
378 566 | }
|
379 - | }
|
567 + | /* OperationErrorGenerator.kt:133 */
|
380 568 | }
|
569 + | /* OperationErrorGenerator.kt:182 */
|
381 570 | impl ::aws_smithy_types::retry::ProvideErrorKind for RestoreTableToPointInTimeError {
|
571 + | /* OperationErrorGenerator.kt:186 */
|
382 572 | fn code(&self) -> ::std::option::Option<&str> {
|
573 + | /* OperationErrorGenerator.kt:187 */
|
383 574 | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
|
575 + | /* OperationErrorGenerator.kt:186 */
|
384 576 | }
|
577 + | /* OperationErrorGenerator.kt:190 */
|
385 578 | fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
|
579 + | /* OperationErrorGenerator.kt:197 */
|
386 580 | ::std::option::Option::None
|
581 + | /* OperationErrorGenerator.kt:190 */
|
387 582 | }
|
583 + | /* OperationErrorGenerator.kt:182 */
|
388 584 | }
|
585 + | /* OperationErrorGenerator.kt:163 */
|
389 586 | impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for RestoreTableToPointInTimeError {
|
587 + | /* OperationErrorGenerator.kt:164 */
|
390 588 | fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
|
589 + | /* OperationErrorGenerator.kt:318 */
|
391 590 | match self {
|
392 - | Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
393 - | Self::InvalidEndpointError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
394 - | Self::InvalidRestoreTimeError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
395 - | Self::LimitExceededError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
396 - | Self::PointInTimeRecoveryUnavailableError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
397 - | Self::TableAlreadyExistsError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
398 - | Self::TableInUseError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
399 - | Self::TableNotFoundError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
|
400 - | Self::Unhandled(_inner) => &_inner.meta,
|
591 + | /* OperationErrorGenerator.kt:321 */
|
592 + | Self::InternalServerError(_inner) =>
|
593 + | /* OperationErrorGenerator.kt:169 */
|
594 + | {
|
595 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
596 + | }
|
597 + | ,
|
598 + | /* OperationErrorGenerator.kt:321 */
|
599 + | Self::InvalidEndpointError(_inner) =>
|
600 + | /* OperationErrorGenerator.kt:169 */
|
601 + | {
|
602 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
603 + | }
|
604 + | ,
|
605 + | /* OperationErrorGenerator.kt:321 */
|
606 + | Self::InvalidRestoreTimeError(_inner) =>
|
607 + | /* OperationErrorGenerator.kt:169 */
|
608 + | {
|
609 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
610 + | }
|
611 + | ,
|
612 + | /* OperationErrorGenerator.kt:321 */
|
613 + | Self::LimitExceededError(_inner) =>
|
614 + | /* OperationErrorGenerator.kt:169 */
|
615 + | {
|
616 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
617 + | }
|
618 + | ,
|
619 + | /* OperationErrorGenerator.kt:321 */
|
620 + | Self::PointInTimeRecoveryUnavailableError(_inner) =>
|
621 + | /* OperationErrorGenerator.kt:169 */
|
622 + | {
|
623 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
624 + | }
|
625 + | ,
|
626 + | /* OperationErrorGenerator.kt:321 */
|
627 + | Self::TableAlreadyExistsError(_inner) =>
|
628 + | /* OperationErrorGenerator.kt:169 */
|
629 + | {
|
630 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
631 + | }
|
632 + | ,
|
633 + | /* OperationErrorGenerator.kt:321 */
|
634 + | Self::TableInUseError(_inner) =>
|
635 + | /* OperationErrorGenerator.kt:169 */
|
636 + | {
|
637 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
638 + | }
|
639 + | ,
|
640 + | /* OperationErrorGenerator.kt:321 */
|
641 + | Self::TableNotFoundError(_inner) =>
|
642 + | /* OperationErrorGenerator.kt:169 */
|
643 + | {
|
644 + | ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner)
|
645 + | }
|
646 + | ,
|
647 + | /* OperationErrorGenerator.kt:326 */
|
648 + | Self::Unhandled(_inner) => {
|
649 + | /* OperationErrorGenerator.kt:168 */
|
650 + | &_inner.meta
|
651 + | /* OperationErrorGenerator.kt:326 */
|
652 + | } /* OperationErrorGenerator.kt:318 */
|
401 653 | }
|
654 + | /* OperationErrorGenerator.kt:164 */
|
402 655 | }
|
656 + | /* OperationErrorGenerator.kt:163 */
|
403 657 | }
|
658 + | /* OperationErrorGenerator.kt:109 */
|
404 659 | impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for RestoreTableToPointInTimeError {
|
660 + | /* OperationErrorGenerator.kt:110 */
|
405 661 | fn create_unhandled_error(
|
406 662 | source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
|
407 663 | meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
|
408 664 | ) -> Self {
|
665 + | /* OperationErrorGenerator.kt:121 */
|
409 666 | Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
|
410 667 | source,
|
411 668 | meta: meta.unwrap_or_default(),
|
412 669 | })
|
670 + | /* OperationErrorGenerator.kt:110 */
|
413 671 | }
|
672 + | /* OperationErrorGenerator.kt:109 */
|
414 673 | }
|
415 674 |
|
675 + | /* CodegenDelegator.kt:255 */
|
416 676 | pub use crate::operation::restore_table_to_point_in_time::_restore_table_to_point_in_time_output::RestoreTableToPointInTimeOutput;
|
417 677 |
|
678 + | /* CodegenDelegator.kt:255 */
|
418 679 | pub use crate::operation::restore_table_to_point_in_time::_restore_table_to_point_in_time_input::RestoreTableToPointInTimeInput;
|
419 680 |
|
681 + | /* RustModule.kt:172 */
|
420 682 | mod _restore_table_to_point_in_time_input;
|
421 683 |
|
684 + | /* RustModule.kt:172 */
|
422 685 | mod _restore_table_to_point_in_time_output;
|
423 686 |
|
424 - | /// Builders
|
687 + | /// /* CodegenDelegator.kt:51 */Builders
|
425 688 | pub mod builders;
|