aws_sdk_proton/
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_accept_environment_account_connection;
27
28pub(crate) mod shape_cancel_component_deployment;
29
30pub(crate) mod shape_cancel_environment_deployment;
31
32pub(crate) mod shape_cancel_service_instance_deployment;
33
34pub(crate) mod shape_cancel_service_pipeline_deployment;
35
36pub(crate) mod shape_create_component;
37
38pub(crate) mod shape_create_environment;
39
40pub(crate) mod shape_create_environment_account_connection;
41
42pub(crate) mod shape_create_environment_template;
43
44pub(crate) mod shape_create_environment_template_version;
45
46pub(crate) mod shape_create_repository;
47
48pub(crate) mod shape_create_service;
49
50pub(crate) mod shape_create_service_instance;
51
52pub(crate) mod shape_create_service_sync_config;
53
54pub(crate) mod shape_create_service_template;
55
56pub(crate) mod shape_create_service_template_version;
57
58pub(crate) mod shape_create_template_sync_config;
59
60pub(crate) mod shape_delete_component;
61
62pub(crate) mod shape_delete_deployment;
63
64pub(crate) mod shape_delete_environment;
65
66pub(crate) mod shape_delete_environment_account_connection;
67
68pub(crate) mod shape_delete_environment_template;
69
70pub(crate) mod shape_delete_environment_template_version;
71
72pub(crate) mod shape_delete_repository;
73
74pub(crate) mod shape_delete_service;
75
76pub(crate) mod shape_delete_service_sync_config;
77
78pub(crate) mod shape_delete_service_template;
79
80pub(crate) mod shape_delete_service_template_version;
81
82pub(crate) mod shape_delete_template_sync_config;
83
84pub(crate) mod shape_get_account_settings;
85
86pub(crate) mod shape_get_component;
87
88pub(crate) mod shape_get_deployment;
89
90pub(crate) mod shape_get_environment;
91
92pub(crate) mod shape_get_environment_account_connection;
93
94pub(crate) mod shape_get_environment_template;
95
96pub(crate) mod shape_get_environment_template_version;
97
98pub(crate) mod shape_get_repository;
99
100pub(crate) mod shape_get_repository_sync_status;
101
102pub(crate) mod shape_get_resources_summary;
103
104pub(crate) mod shape_get_service;
105
106pub(crate) mod shape_get_service_instance;
107
108pub(crate) mod shape_get_service_instance_sync_status;
109
110pub(crate) mod shape_get_service_sync_blocker_summary;
111
112pub(crate) mod shape_get_service_sync_config;
113
114pub(crate) mod shape_get_service_template;
115
116pub(crate) mod shape_get_service_template_version;
117
118pub(crate) mod shape_get_template_sync_config;
119
120pub(crate) mod shape_get_template_sync_status;
121
122pub(crate) mod shape_list_component_outputs;
123
124pub(crate) mod shape_list_component_provisioned_resources;
125
126pub(crate) mod shape_list_components;
127
128pub(crate) mod shape_list_deployments;
129
130pub(crate) mod shape_list_environment_account_connections;
131
132pub(crate) mod shape_list_environment_outputs;
133
134pub(crate) mod shape_list_environment_provisioned_resources;
135
136pub(crate) mod shape_list_environment_template_versions;
137
138pub(crate) mod shape_list_environment_templates;
139
140pub(crate) mod shape_list_environments;
141
142pub(crate) mod shape_list_repositories;
143
144pub(crate) mod shape_list_repository_sync_definitions;
145
146pub(crate) mod shape_list_service_instance_outputs;
147
148pub(crate) mod shape_list_service_instance_provisioned_resources;
149
150pub(crate) mod shape_list_service_instances;
151
152pub(crate) mod shape_list_service_pipeline_outputs;
153
154pub(crate) mod shape_list_service_pipeline_provisioned_resources;
155
156pub(crate) mod shape_list_service_template_versions;
157
158pub(crate) mod shape_list_service_templates;
159
160pub(crate) mod shape_list_services;
161
162pub(crate) mod shape_list_tags_for_resource;
163
164pub(crate) mod shape_notify_resource_deployment_status_change;
165
166pub(crate) mod shape_reject_environment_account_connection;
167
168pub(crate) mod shape_tag_resource;
169
170pub(crate) mod shape_untag_resource;
171
172pub(crate) mod shape_update_account_settings;
173
174pub(crate) mod shape_update_component;
175
176pub(crate) mod shape_update_environment;
177
178pub(crate) mod shape_update_environment_account_connection;
179
180pub(crate) mod shape_update_environment_template;
181
182pub(crate) mod shape_update_environment_template_version;
183
184pub(crate) mod shape_update_service;
185
186pub(crate) mod shape_update_service_instance;
187
188pub(crate) mod shape_update_service_pipeline;
189
190pub(crate) mod shape_update_service_sync_blocker;
191
192pub(crate) mod shape_update_service_sync_config;
193
194pub(crate) mod shape_update_service_template;
195
196pub(crate) mod shape_update_service_template_version;
197
198pub(crate) mod shape_update_template_sync_config;
199
200pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
201 if data.is_empty() {
202 b"{}"
203 } else {
204 data
205 }
206}
207
208pub(crate) mod shape_accept_environment_account_connection_input;
209
210pub(crate) mod shape_access_denied_exception;
211
212pub(crate) mod shape_cancel_component_deployment_input;
213
214pub(crate) mod shape_cancel_environment_deployment_input;
215
216pub(crate) mod shape_cancel_service_instance_deployment_input;
217
218pub(crate) mod shape_cancel_service_pipeline_deployment_input;
219
220pub(crate) mod shape_conflict_exception;
221
222pub(crate) mod shape_create_component_input;
223
224pub(crate) mod shape_create_environment_account_connection_input;
225
226pub(crate) mod shape_create_environment_input;
227
228pub(crate) mod shape_create_environment_template_input;
229
230pub(crate) mod shape_create_environment_template_version_input;
231
232pub(crate) mod shape_create_repository_input;
233
234pub(crate) mod shape_create_service_input;
235
236pub(crate) mod shape_create_service_instance_input;
237
238pub(crate) mod shape_create_service_sync_config_input;
239
240pub(crate) mod shape_create_service_template_input;
241
242pub(crate) mod shape_create_service_template_version_input;
243
244pub(crate) mod shape_create_template_sync_config_input;
245
246pub(crate) mod shape_delete_component_input;
247
248pub(crate) mod shape_delete_deployment_input;
249
250pub(crate) mod shape_delete_environment_account_connection_input;
251
252pub(crate) mod shape_delete_environment_input;
253
254pub(crate) mod shape_delete_environment_template_input;
255
256pub(crate) mod shape_delete_environment_template_version_input;
257
258pub(crate) mod shape_delete_repository_input;
259
260pub(crate) mod shape_delete_service_input;
261
262pub(crate) mod shape_delete_service_sync_config_input;
263
264pub(crate) mod shape_delete_service_template_input;
265
266pub(crate) mod shape_delete_service_template_version_input;
267
268pub(crate) mod shape_delete_template_sync_config_input;
269
270pub(crate) mod shape_get_component_input;
271
272pub(crate) mod shape_get_deployment_input;
273
274pub(crate) mod shape_get_environment_account_connection_input;
275
276pub(crate) mod shape_get_environment_input;
277
278pub(crate) mod shape_get_environment_template_input;
279
280pub(crate) mod shape_get_environment_template_version_input;
281
282pub(crate) mod shape_get_repository_input;
283
284pub(crate) mod shape_get_repository_sync_status_input;
285
286pub(crate) mod shape_get_service_input;
287
288pub(crate) mod shape_get_service_instance_input;
289
290pub(crate) mod shape_get_service_instance_sync_status_input;
291
292pub(crate) mod shape_get_service_sync_blocker_summary_input;
293
294pub(crate) mod shape_get_service_sync_config_input;
295
296pub(crate) mod shape_get_service_template_input;
297
298pub(crate) mod shape_get_service_template_version_input;
299
300pub(crate) mod shape_get_template_sync_config_input;
301
302pub(crate) mod shape_get_template_sync_status_input;
303
304pub(crate) mod shape_internal_server_exception;
305
306pub(crate) mod shape_list_component_outputs_input;
307
308pub(crate) mod shape_list_component_provisioned_resources_input;
309
310pub(crate) mod shape_list_components_input;
311
312pub(crate) mod shape_list_deployments_input;
313
314pub(crate) mod shape_list_environment_account_connections_input;
315
316pub(crate) mod shape_list_environment_outputs_input;
317
318pub(crate) mod shape_list_environment_provisioned_resources_input;
319
320pub(crate) mod shape_list_environment_template_versions_input;
321
322pub(crate) mod shape_list_environment_templates_input;
323
324pub(crate) mod shape_list_environments_input;
325
326pub(crate) mod shape_list_repositories_input;
327
328pub(crate) mod shape_list_repository_sync_definitions_input;
329
330pub(crate) mod shape_list_service_instance_outputs_input;
331
332pub(crate) mod shape_list_service_instance_provisioned_resources_input;
333
334pub(crate) mod shape_list_service_instances_input;
335
336pub(crate) mod shape_list_service_pipeline_outputs_input;
337
338pub(crate) mod shape_list_service_pipeline_provisioned_resources_input;
339
340pub(crate) mod shape_list_service_template_versions_input;
341
342pub(crate) mod shape_list_service_templates_input;
343
344pub(crate) mod shape_list_services_input;
345
346pub(crate) mod shape_list_tags_for_resource_input;
347
348pub(crate) mod shape_notify_resource_deployment_status_change_input;
349
350pub(crate) mod shape_reject_environment_account_connection_input;
351
352pub(crate) mod shape_resource_not_found_exception;
353
354pub(crate) mod shape_service_quota_exceeded_exception;
355
356pub(crate) mod shape_tag_resource_input;
357
358pub(crate) mod shape_throttling_exception;
359
360pub(crate) mod shape_untag_resource_input;
361
362pub(crate) mod shape_update_account_settings_input;
363
364pub(crate) mod shape_update_component_input;
365
366pub(crate) mod shape_update_environment_account_connection_input;
367
368pub(crate) mod shape_update_environment_input;
369
370pub(crate) mod shape_update_environment_template_input;
371
372pub(crate) mod shape_update_environment_template_version_input;
373
374pub(crate) mod shape_update_service_input;
375
376pub(crate) mod shape_update_service_instance_input;
377
378pub(crate) mod shape_update_service_pipeline_input;
379
380pub(crate) mod shape_update_service_sync_blocker_input;
381
382pub(crate) mod shape_update_service_sync_config_input;
383
384pub(crate) mod shape_update_service_template_input;
385
386pub(crate) mod shape_update_service_template_version_input;
387
388pub(crate) mod shape_update_template_sync_config_input;
389
390pub(crate) mod shape_validation_exception;
391
392pub(crate) mod shape_account_settings;
393
394pub(crate) mod shape_compatible_environment_template_input;
395
396pub(crate) mod shape_component;
397
398pub(crate) mod shape_component_summary_list;
399
400pub(crate) mod shape_counts_summary;
401
402pub(crate) mod shape_deployment;
403
404pub(crate) mod shape_deployment_summary_list;
405
406pub(crate) mod shape_environment;
407
408pub(crate) mod shape_environment_account_connection;
409
410pub(crate) mod shape_environment_account_connection_summary_list;
411
412pub(crate) mod shape_environment_summary_list;
413
414pub(crate) mod shape_environment_template;
415
416pub(crate) mod shape_environment_template_filter;
417
418pub(crate) mod shape_environment_template_summary_list;
419
420pub(crate) mod shape_environment_template_version;
421
422pub(crate) mod shape_environment_template_version_summary_list;
423
424pub(crate) mod shape_list_service_instances_filter;
425
426pub(crate) mod shape_output;
427
428pub(crate) mod shape_outputs_list;
429
430pub(crate) mod shape_provisioned_resource_list;
431
432pub(crate) mod shape_repository;
433
434pub(crate) mod shape_repository_branch_input;
435
436pub(crate) mod shape_repository_summary_list;
437
438pub(crate) mod shape_repository_sync_attempt;
439
440pub(crate) mod shape_repository_sync_definition_list;
441
442pub(crate) mod shape_resource_sync_attempt;
443
444pub(crate) mod shape_revision;
445
446pub(crate) mod shape_service;
447
448pub(crate) mod shape_service_instance;
449
450pub(crate) mod shape_service_instance_summary_list;
451
452pub(crate) mod shape_service_pipeline;
453
454pub(crate) mod shape_service_summary_list;
455
456pub(crate) mod shape_service_sync_blocker_summary;
457
458pub(crate) mod shape_service_sync_config;
459
460pub(crate) mod shape_service_template;
461
462pub(crate) mod shape_service_template_summary_list;
463
464pub(crate) mod shape_service_template_version;
465
466pub(crate) mod shape_service_template_version_summary_list;
467
468pub(crate) mod shape_sync_blocker;
469
470pub(crate) mod shape_tag;
471
472pub(crate) mod shape_tag_list;
473
474pub(crate) mod shape_template_sync_config;
475
476pub(crate) mod shape_template_version_source_input;
477
478pub(crate) mod shape_compatible_environment_template_list;
479
480pub(crate) mod shape_component_summary;
481
482pub(crate) mod shape_deployment_state;
483
484pub(crate) mod shape_deployment_summary;
485
486pub(crate) mod shape_environment_account_connection_summary;
487
488pub(crate) mod shape_environment_summary;
489
490pub(crate) mod shape_environment_template_summary;
491
492pub(crate) mod shape_environment_template_version_summary;
493
494pub(crate) mod shape_latest_sync_blockers;
495
496pub(crate) mod shape_provisioned_resource;
497
498pub(crate) mod shape_repository_branch;
499
500pub(crate) mod shape_repository_summary;
501
502pub(crate) mod shape_repository_sync_definition;
503
504pub(crate) mod shape_repository_sync_events;
505
506pub(crate) mod shape_resource_counts_summary;
507
508pub(crate) mod shape_resource_sync_events;
509
510pub(crate) mod shape_s3_object_source;
511
512pub(crate) mod shape_service_instance_summary;
513
514pub(crate) mod shape_service_summary;
515
516pub(crate) mod shape_service_template_summary;
517
518pub(crate) mod shape_service_template_supported_component_source_input_list;
519
520pub(crate) mod shape_service_template_version_summary;
521
522pub(crate) mod shape_sync_blocker_contexts;
523
524pub(crate) mod shape_compatible_environment_template;
525
526pub(crate) mod shape_component_state;
527
528pub(crate) mod shape_environment_state;
529
530pub(crate) mod shape_repository_sync_event;
531
532pub(crate) mod shape_resource_sync_event;
533
534pub(crate) mod shape_service_instance_state;
535
536pub(crate) mod shape_service_pipeline_state;
537
538pub(crate) mod shape_sync_blocker_context;
539
540pub(crate) mod shape_component_deployment_id_list;