aws_sdk_backup/
protocol_serde.rs1pub(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>
8where
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
18pub fn parse_http_error_metadata(
19 _response_status: u16,
20 response_headers: &::aws_smithy_runtime_api::http::Headers,
21 response_body: &[u8],
22) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
23 crate::json_errors::parse_error_metadata(response_body, response_headers)
24}
25
26pub(crate) mod shape_associate_backup_vault_mpa_approval_team;
27
28pub(crate) mod shape_cancel_legal_hold;
29
30pub(crate) mod shape_create_backup_plan;
31
32pub(crate) mod shape_create_backup_selection;
33
34pub(crate) mod shape_create_backup_vault;
35
36pub(crate) mod shape_create_framework;
37
38pub(crate) mod shape_create_legal_hold;
39
40pub(crate) mod shape_create_logically_air_gapped_backup_vault;
41
42pub(crate) mod shape_create_report_plan;
43
44pub(crate) mod shape_create_restore_access_backup_vault;
45
46pub(crate) mod shape_create_restore_testing_plan;
47
48pub(crate) mod shape_create_restore_testing_selection;
49
50pub(crate) mod shape_delete_backup_plan;
51
52pub(crate) mod shape_delete_backup_selection;
53
54pub(crate) mod shape_delete_backup_vault;
55
56pub(crate) mod shape_delete_backup_vault_access_policy;
57
58pub(crate) mod shape_delete_backup_vault_lock_configuration;
59
60pub(crate) mod shape_delete_backup_vault_notifications;
61
62pub(crate) mod shape_delete_framework;
63
64pub(crate) mod shape_delete_recovery_point;
65
66pub(crate) mod shape_delete_report_plan;
67
68pub(crate) mod shape_delete_restore_testing_plan;
69
70pub(crate) mod shape_delete_restore_testing_selection;
71
72pub(crate) mod shape_describe_backup_job;
73
74pub(crate) mod shape_describe_backup_vault;
75
76pub(crate) mod shape_describe_copy_job;
77
78pub(crate) mod shape_describe_framework;
79
80pub(crate) mod shape_describe_global_settings;
81
82pub(crate) mod shape_describe_protected_resource;
83
84pub(crate) mod shape_describe_recovery_point;
85
86pub(crate) mod shape_describe_region_settings;
87
88pub(crate) mod shape_describe_report_job;
89
90pub(crate) mod shape_describe_report_plan;
91
92pub(crate) mod shape_describe_restore_job;
93
94pub(crate) mod shape_disassociate_backup_vault_mpa_approval_team;
95
96pub(crate) mod shape_disassociate_recovery_point;
97
98pub(crate) mod shape_disassociate_recovery_point_from_parent;
99
100pub(crate) mod shape_export_backup_plan_template;
101
102pub(crate) mod shape_get_backup_plan;
103
104pub(crate) mod shape_get_backup_plan_from_json;
105
106pub(crate) mod shape_get_backup_plan_from_template;
107
108pub(crate) mod shape_get_backup_selection;
109
110pub(crate) mod shape_get_backup_vault_access_policy;
111
112pub(crate) mod shape_get_backup_vault_notifications;
113
114pub(crate) mod shape_get_legal_hold;
115
116pub(crate) mod shape_get_recovery_point_index_details;
117
118pub(crate) mod shape_get_recovery_point_restore_metadata;
119
120pub(crate) mod shape_get_restore_job_metadata;
121
122pub(crate) mod shape_get_restore_testing_inferred_metadata;
123
124pub(crate) mod shape_get_restore_testing_plan;
125
126pub(crate) mod shape_get_restore_testing_selection;
127
128pub(crate) mod shape_get_supported_resource_types;
129
130pub(crate) mod shape_list_backup_job_summaries;
131
132pub(crate) mod shape_list_backup_jobs;
133
134pub(crate) mod shape_list_backup_plan_templates;
135
136pub(crate) mod shape_list_backup_plan_versions;
137
138pub(crate) mod shape_list_backup_plans;
139
140pub(crate) mod shape_list_backup_selections;
141
142pub(crate) mod shape_list_backup_vaults;
143
144pub(crate) mod shape_list_copy_job_summaries;
145
146pub(crate) mod shape_list_copy_jobs;
147
148pub(crate) mod shape_list_frameworks;
149
150pub(crate) mod shape_list_indexed_recovery_points;
151
152pub(crate) mod shape_list_legal_holds;
153
154pub(crate) mod shape_list_protected_resources;
155
156pub(crate) mod shape_list_protected_resources_by_backup_vault;
157
158pub(crate) mod shape_list_recovery_points_by_backup_vault;
159
160pub(crate) mod shape_list_recovery_points_by_legal_hold;
161
162pub(crate) mod shape_list_recovery_points_by_resource;
163
164pub(crate) mod shape_list_report_jobs;
165
166pub(crate) mod shape_list_report_plans;
167
168pub(crate) mod shape_list_restore_access_backup_vaults;
169
170pub(crate) mod shape_list_restore_job_summaries;
171
172pub(crate) mod shape_list_restore_jobs;
173
174pub(crate) mod shape_list_restore_jobs_by_protected_resource;
175
176pub(crate) mod shape_list_restore_testing_plans;
177
178pub(crate) mod shape_list_restore_testing_selections;
179
180pub(crate) mod shape_list_tags;
181
182pub(crate) mod shape_put_backup_vault_access_policy;
183
184pub(crate) mod shape_put_backup_vault_lock_configuration;
185
186pub(crate) mod shape_put_backup_vault_notifications;
187
188pub(crate) mod shape_put_restore_validation_result;
189
190pub(crate) mod shape_revoke_restore_access_backup_vault;
191
192pub(crate) mod shape_start_backup_job;
193
194pub(crate) mod shape_start_copy_job;
195
196pub(crate) mod shape_start_report_job;
197
198pub(crate) mod shape_start_restore_job;
199
200pub(crate) mod shape_stop_backup_job;
201
202pub(crate) mod shape_tag_resource;
203
204pub(crate) mod shape_untag_resource;
205
206pub(crate) mod shape_update_backup_plan;
207
208pub(crate) mod shape_update_framework;
209
210pub(crate) mod shape_update_global_settings;
211
212pub(crate) mod shape_update_recovery_point_index_settings;
213
214pub(crate) mod shape_update_recovery_point_lifecycle;
215
216pub(crate) mod shape_update_region_settings;
217
218pub(crate) mod shape_update_report_plan;
219
220pub(crate) mod shape_update_restore_testing_plan;
221
222pub(crate) mod shape_update_restore_testing_selection;
223
224pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
225 if data.is_empty() {
226 b"{}"
227 } else {
228 data
229 }
230}
231
232pub(crate) mod shape_already_exists_exception;
233
234pub(crate) mod shape_associate_backup_vault_mpa_approval_team_input;
235
236pub(crate) mod shape_conflict_exception;
237
238pub(crate) mod shape_create_backup_plan_input;
239
240pub(crate) mod shape_create_backup_selection_input;
241
242pub(crate) mod shape_create_backup_vault_input;
243
244pub(crate) mod shape_create_framework_input;
245
246pub(crate) mod shape_create_legal_hold_input;
247
248pub(crate) mod shape_create_logically_air_gapped_backup_vault_input;
249
250pub(crate) mod shape_create_report_plan_input;
251
252pub(crate) mod shape_create_restore_access_backup_vault_input;
253
254pub(crate) mod shape_create_restore_testing_plan_input;
255
256pub(crate) mod shape_create_restore_testing_selection_input;
257
258pub(crate) mod shape_dependency_failure_exception;
259
260pub(crate) mod shape_disassociate_backup_vault_mpa_approval_team_input;
261
262pub(crate) mod shape_get_backup_plan_from_json_input;
263
264pub(crate) mod shape_invalid_parameter_value_exception;
265
266pub(crate) mod shape_invalid_request_exception;
267
268pub(crate) mod shape_invalid_resource_state_exception;
269
270pub(crate) mod shape_limit_exceeded_exception;
271
272pub(crate) mod shape_missing_parameter_value_exception;
273
274pub(crate) mod shape_put_backup_vault_access_policy_input;
275
276pub(crate) mod shape_put_backup_vault_lock_configuration_input;
277
278pub(crate) mod shape_put_backup_vault_notifications_input;
279
280pub(crate) mod shape_put_restore_validation_result_input;
281
282pub(crate) mod shape_resource_not_found_exception;
283
284pub(crate) mod shape_service_unavailable_exception;
285
286pub(crate) mod shape_start_backup_job_input;
287
288pub(crate) mod shape_start_copy_job_input;
289
290pub(crate) mod shape_start_report_job_input;
291
292pub(crate) mod shape_start_restore_job_input;
293
294pub(crate) mod shape_tag_resource_input;
295
296pub(crate) mod shape_untag_resource_input;
297
298pub(crate) mod shape_update_backup_plan_input;
299
300pub(crate) mod shape_update_framework_input;
301
302pub(crate) mod shape_update_global_settings_input;
303
304pub(crate) mod shape_update_recovery_point_index_settings_input;
305
306pub(crate) mod shape_update_recovery_point_lifecycle_input;
307
308pub(crate) mod shape_update_region_settings_input;
309
310pub(crate) mod shape_update_report_plan_input;
311
312pub(crate) mod shape_update_restore_testing_plan_input;
313
314pub(crate) mod shape_update_restore_testing_selection_input;
315
316pub(crate) mod shape_advanced_backup_settings;
317
318pub(crate) mod shape_backup_job_child_jobs_in_state;
319
320pub(crate) mod shape_backup_job_summary_list;
321
322pub(crate) mod shape_backup_jobs_list;
323
324pub(crate) mod shape_backup_options;
325
326pub(crate) mod shape_backup_plan;
327
328pub(crate) mod shape_backup_plan_input;
329
330pub(crate) mod shape_backup_plan_templates_list;
331
332pub(crate) mod shape_backup_plan_versions_list;
333
334pub(crate) mod shape_backup_plans_list;
335
336pub(crate) mod shape_backup_selection;
337
338pub(crate) mod shape_backup_selections_list;
339
340pub(crate) mod shape_backup_vault_events;
341
342pub(crate) mod shape_backup_vault_list;
343
344pub(crate) mod shape_calculated_lifecycle;
345
346pub(crate) mod shape_copy_job;
347
348pub(crate) mod shape_copy_job_summary_list;
349
350pub(crate) mod shape_copy_jobs_list;
351
352pub(crate) mod shape_framework_control;
353
354pub(crate) mod shape_framework_controls;
355
356pub(crate) mod shape_framework_list;
357
358pub(crate) mod shape_global_settings;
359
360pub(crate) mod shape_indexed_recovery_point_list;
361
362pub(crate) mod shape_latest_mpa_approval_team_update;
363
364pub(crate) mod shape_legal_holds_list;
365
366pub(crate) mod shape_lifecycle;
367
368pub(crate) mod shape_metadata;
369
370pub(crate) mod shape_protected_resources_list;
371
372pub(crate) mod shape_recovery_point_by_backup_vault_list;
373
374pub(crate) mod shape_recovery_point_by_resource_list;
375
376pub(crate) mod shape_recovery_point_creator;
377
378pub(crate) mod shape_recovery_point_selection;
379
380pub(crate) mod shape_recovery_points_list;
381
382pub(crate) mod shape_report_delivery_channel;
383
384pub(crate) mod shape_report_job;
385
386pub(crate) mod shape_report_job_list;
387
388pub(crate) mod shape_report_plan;
389
390pub(crate) mod shape_report_plan_list;
391
392pub(crate) mod shape_report_setting;
393
394pub(crate) mod shape_resource_type_management_preference;
395
396pub(crate) mod shape_resource_type_opt_in_preference;
397
398pub(crate) mod shape_resource_types;
399
400pub(crate) mod shape_restore_access_backup_vault_list;
401
402pub(crate) mod shape_restore_job_creator;
403
404pub(crate) mod shape_restore_job_summary_list;
405
406pub(crate) mod shape_restore_jobs_list;
407
408pub(crate) mod shape_restore_testing_plan_for_create;
409
410pub(crate) mod shape_restore_testing_plan_for_get;
411
412pub(crate) mod shape_restore_testing_plan_for_update;
413
414pub(crate) mod shape_restore_testing_plans;
415
416pub(crate) mod shape_restore_testing_selection_for_create;
417
418pub(crate) mod shape_restore_testing_selection_for_get;
419
420pub(crate) mod shape_restore_testing_selection_for_update;
421
422pub(crate) mod shape_restore_testing_selections;
423
424pub(crate) mod shape_string_map;
425
426pub(crate) mod shape_tags;
427
428pub(crate) mod shape_advanced_backup_setting;
429
430pub(crate) mod shape_backup_job;
431
432pub(crate) mod shape_backup_job_summary;
433
434pub(crate) mod shape_backup_plan_templates_list_member;
435
436pub(crate) mod shape_backup_plans_list_member;
437
438pub(crate) mod shape_backup_rule_input;
439
440pub(crate) mod shape_backup_rules;
441
442pub(crate) mod shape_backup_selections_list_member;
443
444pub(crate) mod shape_backup_vault_list_member;
445
446pub(crate) mod shape_condition;
447
448pub(crate) mod shape_conditions;
449
450pub(crate) mod shape_control_input_parameter;
451
452pub(crate) mod shape_control_scope;
453
454pub(crate) mod shape_copy_job_child_jobs_in_state;
455
456pub(crate) mod shape_copy_job_summary;
457
458pub(crate) mod shape_date_range;
459
460pub(crate) mod shape_framework;
461
462pub(crate) mod shape_indexed_recovery_point;
463
464pub(crate) mod shape_legal_hold;
465
466pub(crate) mod shape_list_of_tags;
467
468pub(crate) mod shape_protected_resource;
469
470pub(crate) mod shape_protected_resource_conditions;
471
472pub(crate) mod shape_recovery_point_by_backup_vault;
473
474pub(crate) mod shape_recovery_point_by_resource;
475
476pub(crate) mod shape_recovery_point_member;
477
478pub(crate) mod shape_report_destination;
479
480pub(crate) mod shape_resource_arns;
481
482pub(crate) mod shape_resource_identifiers;
483
484pub(crate) mod shape_restore_access_backup_vault_list_member;
485
486pub(crate) mod shape_restore_job_summary;
487
488pub(crate) mod shape_restore_jobs_list_member;
489
490pub(crate) mod shape_restore_testing_plan_for_list;
491
492pub(crate) mod shape_restore_testing_recovery_point_selection;
493
494pub(crate) mod shape_restore_testing_selection_for_list;
495
496pub(crate) mod shape_sensitive_string_map;
497
498pub(crate) mod shape_string_list;
499
500pub(crate) mod shape_vault_names;
501
502pub(crate) mod shape_backup_rule;
503
504pub(crate) mod shape_condition_parameter;
505
506pub(crate) mod shape_condition_parameters;
507
508pub(crate) mod shape_control_input_parameters;
509
510pub(crate) mod shape_copy_action;
511
512pub(crate) mod shape_format_list;
513
514pub(crate) mod shape_index_action;
515
516pub(crate) mod shape_key_value;
517
518pub(crate) mod shape_key_value_list;
519
520pub(crate) mod shape_latest_revoke_request;
521
522pub(crate) mod shape_restore_testing_recovery_point_type_list;
523
524pub(crate) mod shape_compliance_resource_id_list;
525
526pub(crate) mod shape_copy_actions;
527
528pub(crate) mod shape_index_actions;
529
530pub(crate) mod shape_resource_type_list;