1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - | pub(crate) fn type_erase_result<O, E>(
|
3 - | result: ::std::result::Result<O, E>,
|
4 - | ) -> ::std::result::Result<
|
5 - | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
6 - | ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
|
7 - | >
|
8 - | where
|
9 - | O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
|
10 - | E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
|
11 - | {
|
12 - | result
|
13 - | .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
|
14 - | .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
|
15 - | .map_err(::std::convert::Into::into)
|
16 - | }
|
17 - |
|
18 2 | pub fn parse_http_error_metadata(
|
19 3 | _response_status: u16,
|
20 4 | response_headers: &::aws_smithy_runtime_api::http::Headers,
|
21 5 | response_body: &[u8],
|
22 6 | ) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
|
23 7 | crate::json_errors::parse_error_metadata(response_body, response_headers)
|
24 8 | }
|
25 - |
|
26 - | pub(crate) mod shape_batch_execute_statement;
|
27 - |
|
28 - | pub(crate) mod shape_batch_get_item;
|
29 - |
|
30 - | pub(crate) mod shape_batch_write_item;
|
31 - |
|
32 - | pub(crate) mod shape_create_backup;
|
33 - |
|
34 - | pub(crate) mod shape_create_global_table;
|
35 - |
|
36 - | pub(crate) mod shape_create_table;
|
37 - |
|
38 - | pub(crate) mod shape_delete_backup;
|
39 - |
|
40 - | pub(crate) mod shape_delete_item;
|
41 - |
|
42 - | pub(crate) mod shape_delete_table;
|
43 - |
|
44 - | pub(crate) mod shape_describe_backup;
|
45 - |
|
46 - | pub(crate) mod shape_describe_continuous_backups;
|
47 - |
|
48 - | pub(crate) mod shape_describe_contributor_insights;
|
49 - |
|
50 - | pub(crate) mod shape_describe_endpoints;
|
51 - |
|
52 - | pub(crate) mod shape_describe_export;
|
53 - |
|
54 - | pub(crate) mod shape_describe_global_table;
|
55 - |
|
56 - | pub(crate) mod shape_describe_global_table_settings;
|
57 - |
|
58 - | pub(crate) mod shape_describe_kinesis_streaming_destination;
|
59 - |
|
60 - | pub(crate) mod shape_describe_limits;
|
61 - |
|
62 - | pub(crate) mod shape_describe_table;
|
63 - |
|
64 - | pub(crate) mod shape_describe_table_replica_auto_scaling;
|
65 - |
|
66 - | pub(crate) mod shape_describe_time_to_live;
|
67 - |
|
68 - | pub(crate) mod shape_disable_kinesis_streaming_destination;
|
69 - |
|
70 - | pub(crate) mod shape_enable_kinesis_streaming_destination;
|
71 - |
|
72 - | pub(crate) mod shape_execute_statement;
|
73 - |
|
74 - | pub(crate) mod shape_execute_transaction;
|
75 - |
|
76 - | pub(crate) mod shape_export_table_to_point_in_time;
|
77 - |
|
78 - | pub(crate) mod shape_get_item;
|
79 - |
|
80 - | pub(crate) mod shape_list_backups;
|
81 - |
|
82 - | pub(crate) mod shape_list_contributor_insights;
|
83 - |
|
84 - | pub(crate) mod shape_list_exports;
|
85 - |
|
86 - | pub(crate) mod shape_list_global_tables;
|
87 - |
|
88 - | pub(crate) mod shape_list_tables;
|
89 - |
|
90 - | pub(crate) mod shape_list_tags_of_resource;
|
91 - |
|
92 - | pub(crate) mod shape_put_item;
|
93 - |
|
94 - | pub(crate) mod shape_query;
|
95 - |
|
96 - | pub(crate) mod shape_restore_table_from_backup;
|
97 - |
|
98 - | pub(crate) mod shape_restore_table_to_point_in_time;
|
99 - |
|
100 - | pub(crate) mod shape_scan;
|
101 - |
|
102 - | pub(crate) mod shape_tag_resource;
|
103 - |
|
104 - | pub(crate) mod shape_transact_get_items;
|
105 - |
|
106 - | pub(crate) mod shape_transact_write_items;
|
107 - |
|
108 - | pub(crate) mod shape_untag_resource;
|
109 - |
|
110 - | pub(crate) mod shape_update_continuous_backups;
|
111 - |
|
112 - | pub(crate) mod shape_update_contributor_insights;
|
113 - |
|
114 - | pub(crate) mod shape_update_global_table;
|
115 - |
|
116 - | pub(crate) mod shape_update_global_table_settings;
|
117 - |
|
118 - | pub(crate) mod shape_update_item;
|
119 - |
|
120 - | pub(crate) mod shape_update_table;
|
121 - |
|
122 - | pub(crate) mod shape_update_table_replica_auto_scaling;
|
123 - |
|
124 - | pub(crate) mod shape_update_time_to_live;
|
125 - |
|
126 - | pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
|
127 - | if data.is_empty() {
|
128 - | b"{}"
|
129 - | } else {
|
130 - | data
|
131 - | }
|
132 - | }
|
133 - |
|
134 - | pub(crate) mod shape_backup_in_use_exception;
|
135 - |
|
136 - | pub(crate) mod shape_backup_not_found_exception;
|
137 - |
|
138 - | pub(crate) mod shape_batch_execute_statement_input;
|
139 - |
|
140 - | pub(crate) mod shape_batch_get_item_input;
|
141 - |
|
142 - | pub(crate) mod shape_batch_write_item_input;
|
143 - |
|
144 - | pub(crate) mod shape_conditional_check_failed_exception;
|
145 - |
|
146 - | pub(crate) mod shape_continuous_backups_unavailable_exception;
|
147 - |
|
148 - | pub(crate) mod shape_create_backup_input;
|
149 - |
|
150 - | pub(crate) mod shape_create_global_table_input;
|
151 - |
|
152 - | pub(crate) mod shape_create_table_input;
|
153 - |
|
154 - | pub(crate) mod shape_delete_backup_input;
|
155 - |
|
156 - | pub(crate) mod shape_delete_item_input;
|
157 - |
|
158 - | pub(crate) mod shape_delete_table_input;
|
159 - |
|
160 - | pub(crate) mod shape_describe_backup_input;
|
161 - |
|
162 - | pub(crate) mod shape_describe_continuous_backups_input;
|
163 - |
|
164 - | pub(crate) mod shape_describe_contributor_insights_input;
|
165 - |
|
166 - | pub(crate) mod shape_describe_export_input;
|
167 - |
|
168 - | pub(crate) mod shape_describe_global_table_input;
|
169 - |
|
170 - | pub(crate) mod shape_describe_global_table_settings_input;
|
171 - |
|
172 - | pub(crate) mod shape_describe_kinesis_streaming_destination_input;
|
173 - |
|
174 - | pub(crate) mod shape_describe_table_input;
|
175 - |
|
176 - | pub(crate) mod shape_describe_table_replica_auto_scaling_input;
|
177 - |
|
178 - | pub(crate) mod shape_describe_time_to_live_input;
|
179 - |
|
180 - | pub(crate) mod shape_disable_kinesis_streaming_destination_input;
|
181 - |
|
182 - | pub(crate) mod shape_duplicate_item_exception;
|
183 - |
|
184 - | pub(crate) mod shape_enable_kinesis_streaming_destination_input;
|
185 - |
|
186 - | pub(crate) mod shape_execute_statement_input;
|
187 - |
|
188 - | pub(crate) mod shape_execute_transaction_input;
|
189 - |
|
190 - | pub(crate) mod shape_export_conflict_exception;
|
191 - |
|
192 - | pub(crate) mod shape_export_not_found_exception;
|
193 - |
|
194 - | pub(crate) mod shape_export_table_to_point_in_time_input;
|
195 - |
|
196 - | pub(crate) mod shape_get_item_input;
|
197 - |
|
198 - | pub(crate) mod shape_global_table_already_exists_exception;
|
199 - |
|
200 - | pub(crate) mod shape_global_table_not_found_exception;
|
201 - |
|
202 - | pub(crate) mod shape_idempotent_parameter_mismatch_exception;
|
203 - |
|
204 - | pub(crate) mod shape_index_not_found_exception;
|
205 - |
|
206 - | pub(crate) mod shape_internal_server_error;
|
207 - |
|
208 - | pub(crate) mod shape_invalid_endpoint_exception;
|
209 - |
|
210 - | pub(crate) mod shape_invalid_export_time_exception;
|
211 - |
|
212 - | pub(crate) mod shape_invalid_restore_time_exception;
|
213 - |
|
214 - | pub(crate) mod shape_item_collection_size_limit_exceeded_exception;
|
215 - |
|
216 - | pub(crate) mod shape_limit_exceeded_exception;
|
217 - |
|
218 - | pub(crate) mod shape_list_backups_input;
|
219 - |
|
220 - | pub(crate) mod shape_list_contributor_insights_input;
|
221 - |
|
222 - | pub(crate) mod shape_list_exports_input;
|
223 - |
|
224 - | pub(crate) mod shape_list_global_tables_input;
|
225 - |
|
226 - | pub(crate) mod shape_list_tables_input;
|
227 - |
|
228 - | pub(crate) mod shape_list_tags_of_resource_input;
|
229 - |
|
230 - | pub(crate) mod shape_point_in_time_recovery_unavailable_exception;
|
231 - |
|
232 - | pub(crate) mod shape_provisioned_throughput_exceeded_exception;
|
233 - |
|
234 - | pub(crate) mod shape_put_item_input;
|
235 - |
|
236 - | pub(crate) mod shape_query_input;
|
237 - |
|
238 - | pub(crate) mod shape_replica_already_exists_exception;
|
239 - |
|
240 - | pub(crate) mod shape_replica_not_found_exception;
|
241 - |
|
242 - | pub(crate) mod shape_request_limit_exceeded;
|
243 - |
|
244 - | pub(crate) mod shape_resource_in_use_exception;
|
245 - |
|
246 - | pub(crate) mod shape_resource_not_found_exception;
|
247 - |
|
248 - | pub(crate) mod shape_restore_table_from_backup_input;
|
249 - |
|
250 - | pub(crate) mod shape_restore_table_to_point_in_time_input;
|
251 - |
|
252 - | pub(crate) mod shape_scan_input;
|
253 - |
|
254 - | pub(crate) mod shape_table_already_exists_exception;
|
255 - |
|
256 - | pub(crate) mod shape_table_in_use_exception;
|
257 - |
|
258 - | pub(crate) mod shape_table_not_found_exception;
|
259 - |
|
260 - | pub(crate) mod shape_tag_resource_input;
|
261 - |
|
262 - | pub(crate) mod shape_transact_get_items_input;
|
263 - |
|
264 - | pub(crate) mod shape_transact_write_items_input;
|
265 - |
|
266 - | pub(crate) mod shape_transaction_canceled_exception;
|
267 - |
|
268 - | pub(crate) mod shape_transaction_conflict_exception;
|
269 - |
|
270 - | pub(crate) mod shape_transaction_in_progress_exception;
|
271 - |
|
272 - | pub(crate) mod shape_untag_resource_input;
|
273 - |
|
274 - | pub(crate) mod shape_update_continuous_backups_input;
|
275 - |
|
276 - | pub(crate) mod shape_update_contributor_insights_input;
|
277 - |
|
278 - | pub(crate) mod shape_update_global_table_input;
|
279 - |
|
280 - | pub(crate) mod shape_update_global_table_settings_input;
|
281 - |
|
282 - | pub(crate) mod shape_update_item_input;
|
283 - |
|
284 - | pub(crate) mod shape_update_table_input;
|
285 - |
|
286 - | pub(crate) mod shape_update_table_replica_auto_scaling_input;
|
287 - |
|
288 - | pub(crate) mod shape_update_time_to_live_input;
|
289 - |
|
290 - | pub(crate) mod shape_attribute_definition;
|
291 - |
|
292 - | pub(crate) mod shape_attribute_map;
|
293 - |
|
294 - | pub(crate) mod shape_attribute_value;
|
295 - |
|
296 - | pub(crate) mod shape_attribute_value_update;
|
297 - |
|
298 - | pub(crate) mod shape_auto_scaling_settings_update;
|
299 - |
|
300 - | pub(crate) mod shape_backup_description;
|
301 - |
|
302 - | pub(crate) mod shape_backup_details;
|
303 - |
|
304 - | pub(crate) mod shape_backup_summaries;
|
305 - |
|
306 - | pub(crate) mod shape_batch_get_request_map;
|
307 - |
|
308 - | pub(crate) mod shape_batch_get_response_map;
|
309 - |
|
310 - | pub(crate) mod shape_batch_statement_request;
|
311 - |
|
312 - | pub(crate) mod shape_batch_write_item_request_map;
|
313 - |
|
314 - | pub(crate) mod shape_cancellation_reason_list;
|
315 - |
|
316 - | pub(crate) mod shape_condition;
|
317 - |
|
318 - | pub(crate) mod shape_consumed_capacity;
|
319 - |
|
320 - | pub(crate) mod shape_consumed_capacity_multiple;
|
321 - |
|
322 - | pub(crate) mod shape_continuous_backups_description;
|
323 - |
|
324 - | pub(crate) mod shape_contributor_insights_rule_list;
|
325 - |
|
326 - | pub(crate) mod shape_contributor_insights_summaries;
|
327 - |
|
328 - | pub(crate) mod shape_endpoints;
|
329 - |
|
330 - | pub(crate) mod shape_expected_attribute_value;
|
331 - |
|
332 - | pub(crate) mod shape_export_description;
|
333 - |
|
334 - | pub(crate) mod shape_export_summaries;
|
335 - |
|
336 - | pub(crate) mod shape_failure_exception;
|
337 - |
|
338 - | pub(crate) mod shape_global_secondary_index;
|
339 - |
|
340 - | pub(crate) mod shape_global_secondary_index_auto_scaling_update;
|
341 - |
|
342 - | pub(crate) mod shape_global_secondary_index_update;
|
343 - |
|
344 - | pub(crate) mod shape_global_table_description;
|
345 - |
|
346 - | pub(crate) mod shape_global_table_global_secondary_index_settings_update;
|
347 - |
|
348 - | pub(crate) mod shape_global_table_list;
|
349 - |
|
350 - | pub(crate) mod shape_item_collection_metrics;
|
351 - |
|
352 - | pub(crate) mod shape_item_collection_metrics_per_table;
|
353 - |
|
354 - | pub(crate) mod shape_item_list;
|
355 - |
|
356 - | pub(crate) mod shape_item_response_list;
|
357 - |
|
358 - | pub(crate) mod shape_key;
|
359 - |
|
360 - | pub(crate) mod shape_key_schema_element;
|
361 - |
|
362 - | pub(crate) mod shape_keys_and_attributes;
|
363 - |
|
364 - | pub(crate) mod shape_kinesis_data_stream_destinations;
|
365 - |
|
366 - | pub(crate) mod shape_local_secondary_index;
|
367 - |
|
368 - | pub(crate) mod shape_parameterized_statement;
|
369 - |
|
370 - | pub(crate) mod shape_parti_ql_batch_response;
|
371 - |
|
372 - | pub(crate) mod shape_point_in_time_recovery_specification;
|
373 - |
|
374 - | pub(crate) mod shape_provisioned_throughput;
|
375 - |
|
376 - | pub(crate) mod shape_replica;
|
377 - |
|
378 - | pub(crate) mod shape_replica_auto_scaling_update;
|
379 - |
|
380 - | pub(crate) mod shape_replica_settings_description_list;
|
381 - |
|
382 - | pub(crate) mod shape_replica_settings_update;
|
383 - |
|
384 - | pub(crate) mod shape_replica_update;
|
385 - |
|
386 - | pub(crate) mod shape_replication_group_update;
|
387 - |
|
388 - | pub(crate) mod shape_sse_specification;
|
389 - |
|
390 - | pub(crate) mod shape_stream_specification;
|
391 - |
|
392 - | pub(crate) mod shape_table_auto_scaling_description;
|
393 - |
|
394 - | pub(crate) mod shape_table_description;
|
395 - |
|
396 - | pub(crate) mod shape_table_name_list;
|
397 - |
|
398 - | pub(crate) mod shape_tag;
|
399 - |
|
400 - | pub(crate) mod shape_tag_list;
|
401 - |
|
402 - | pub(crate) mod shape_time_to_live_description;
|
403 - |
|
404 - | pub(crate) mod shape_time_to_live_specification;
|
405 - |
|
406 - | pub(crate) mod shape_transact_get_item;
|
407 - |
|
408 - | pub(crate) mod shape_transact_write_item;
|
409 - |
|
410 - | pub(crate) mod shape_write_request;
|
411 - |
|
412 - | pub(crate) mod shape_archival_summary;
|
413 - |
|
414 - | pub(crate) mod shape_attribute_definitions;
|
415 - |
|
416 - | pub(crate) mod shape_auto_scaling_policy_update;
|
417 - |
|
418 - | pub(crate) mod shape_backup_summary;
|
419 - |
|
420 - | pub(crate) mod shape_batch_statement_response;
|
421 - |
|
422 - | pub(crate) mod shape_billing_mode_summary;
|
423 - |
|
424 - | pub(crate) mod shape_cancellation_reason;
|
425 - |
|
426 - | pub(crate) mod shape_capacity;
|
427 - |
|
428 - | pub(crate) mod shape_condition_check;
|
429 - |
|
430 - | pub(crate) mod shape_contributor_insights_summary;
|
431 - |
|
432 - | pub(crate) mod shape_create_global_secondary_index_action;
|
433 - |
|
434 - | pub(crate) mod shape_create_replica_action;
|
435 - |
|
436 - | pub(crate) mod shape_create_replication_group_member_action;
|
437 - |
|
438 - | pub(crate) mod shape_delete;
|
439 - |
|
440 - | pub(crate) mod shape_delete_global_secondary_index_action;
|
441 - |
|
442 - | pub(crate) mod shape_delete_replica_action;
|
443 - |
|
444 - | pub(crate) mod shape_delete_replication_group_member_action;
|
445 - |
|
446 - | pub(crate) mod shape_delete_request;
|
447 - |
|
448 - | pub(crate) mod shape_endpoint;
|
449 - |
|
450 - | pub(crate) mod shape_export_summary;
|
451 - |
|
452 - | pub(crate) mod shape_get;
|
453 - |
|
454 - | pub(crate) mod shape_global_secondary_index_description_list;
|
455 - |
|
456 - | pub(crate) mod shape_global_table;
|
457 - |
|
458 - | pub(crate) mod shape_item_collection_key_attribute_map;
|
459 - |
|
460 - | pub(crate) mod shape_item_collection_metrics_multiple;
|
461 - |
|
462 - | pub(crate) mod shape_item_collection_size_estimate_range;
|
463 - |
|
464 - | pub(crate) mod shape_item_response;
|
465 - |
|
466 - | pub(crate) mod shape_key_schema;
|
467 - |
|
468 - | pub(crate) mod shape_kinesis_data_stream_destination;
|
469 - |
|
470 - | pub(crate) mod shape_local_secondary_index_description_list;
|
471 - |
|
472 - | pub(crate) mod shape_point_in_time_recovery_description;
|
473 - |
|
474 - | pub(crate) mod shape_projection;
|
475 - |
|
476 - | pub(crate) mod shape_provisioned_throughput_description;
|
477 - |
|
478 - | pub(crate) mod shape_put;
|
479 - |
|
480 - | pub(crate) mod shape_put_request;
|
481 - |
|
482 - | pub(crate) mod shape_replica_auto_scaling_description_list;
|
483 - |
|
484 - | pub(crate) mod shape_replica_description_list;
|
485 - |
|
486 - | pub(crate) mod shape_replica_global_secondary_index_auto_scaling_update;
|
487 - |
|
488 - | pub(crate) mod shape_replica_global_secondary_index_settings_update;
|
489 - |
|
490 - | pub(crate) mod shape_replica_settings_description;
|
491 - |
|
492 - | pub(crate) mod shape_restore_summary;
|
493 - |
|
494 - | pub(crate) mod shape_secondary_indexes_capacity_map;
|
495 - |
|
496 - | pub(crate) mod shape_source_table_details;
|
497 - |
|
498 - | pub(crate) mod shape_source_table_feature_details;
|
499 - |
|
500 - | pub(crate) mod shape_sse_description;
|
501 - |
|
502 - | pub(crate) mod shape_update;
|
503 - |
|
504 - | pub(crate) mod shape_update_global_secondary_index_action;
|
505 - |
|
506 - | pub(crate) mod shape_update_replication_group_member_action;
|
507 - |
|
508 - | pub(crate) mod shape_write_requests;
|
509 - |
|
510 - | pub(crate) mod shape_attribute_name_list;
|
511 - |
|
512 - | pub(crate) mod shape_auto_scaling_settings_description;
|
513 - |
|
514 - | pub(crate) mod shape_auto_scaling_target_tracking_scaling_policy_configuration_update;
|
515 - |
|
516 - | pub(crate) mod shape_batch_statement_error;
|
517 - |
|
518 - | pub(crate) mod shape_binary_set_attribute_value;
|
519 - |
|
520 - | pub(crate) mod shape_expression_attribute_name_map;
|
521 - |
|
522 - | pub(crate) mod shape_global_secondary_index_description;
|
523 - |
|
524 - | pub(crate) mod shape_global_secondary_indexes;
|
525 - |
|
526 - | pub(crate) mod shape_key_list;
|
527 - |
|
528 - | pub(crate) mod shape_list_attribute_value;
|
529 - |
|
530 - | pub(crate) mod shape_local_secondary_index_description;
|
531 - |
|
532 - | pub(crate) mod shape_local_secondary_indexes;
|
533 - |
|
534 - | pub(crate) mod shape_map_attribute_value;
|
535 - |
|
536 - | pub(crate) mod shape_number_set_attribute_value;
|
537 - |
|
538 - | pub(crate) mod shape_provisioned_throughput_override;
|
539 - |
|
540 - | pub(crate) mod shape_replica_auto_scaling_description;
|
541 - |
|
542 - | pub(crate) mod shape_replica_description;
|
543 - |
|
544 - | pub(crate) mod shape_replica_global_secondary_index;
|
545 - |
|
546 - | pub(crate) mod shape_replica_global_secondary_index_settings_description_list;
|
547 - |
|
548 - | pub(crate) mod shape_replica_list;
|
549 - |
|
550 - | pub(crate) mod shape_string_set_attribute_value;
|
551 - |
|
552 - | pub(crate) mod shape_auto_scaling_policy_description_list;
|
553 - |
|
554 - | pub(crate) mod shape_global_secondary_index_info;
|
555 - |
|
556 - | pub(crate) mod shape_local_secondary_index_info;
|
557 - |
|
558 - | pub(crate) mod shape_replica_global_secondary_index_auto_scaling_description_list;
|
559 - |
|
560 - | pub(crate) mod shape_replica_global_secondary_index_description_list;
|
561 - |
|
562 - | pub(crate) mod shape_replica_global_secondary_index_settings_description;
|
563 - |
|
564 - | pub(crate) mod shape_auto_scaling_policy_description;
|
565 - |
|
566 - | pub(crate) mod shape_non_key_attribute_name_list;
|
567 - |
|
568 - | pub(crate) mod shape_put_item_input_attribute_map;
|
569 - |
|
570 - | pub(crate) mod shape_replica_global_secondary_index_auto_scaling_description;
|
571 - |
|
572 - | pub(crate) mod shape_replica_global_secondary_index_description;
|
573 - |
|
574 - | pub(crate) mod shape_auto_scaling_target_tracking_scaling_policy_configuration_description;
|