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