aws_sdk_datasync/
protocol_serde.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub(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_cancel_task_execution;
27
28pub(crate) mod shape_create_agent;
29
30pub(crate) mod shape_create_location_azure_blob;
31
32pub(crate) mod shape_create_location_efs;
33
34pub(crate) mod shape_create_location_fsx_lustre;
35
36pub(crate) mod shape_create_location_fsx_ontap;
37
38pub(crate) mod shape_create_location_fsx_open_zfs;
39
40pub(crate) mod shape_create_location_fsx_windows;
41
42pub(crate) mod shape_create_location_hdfs;
43
44pub(crate) mod shape_create_location_nfs;
45
46pub(crate) mod shape_create_location_object_storage;
47
48pub(crate) mod shape_create_location_s3;
49
50pub(crate) mod shape_create_location_smb;
51
52pub(crate) mod shape_create_task;
53
54pub(crate) mod shape_delete_agent;
55
56pub(crate) mod shape_delete_location;
57
58pub(crate) mod shape_delete_task;
59
60pub(crate) mod shape_describe_agent;
61
62pub(crate) mod shape_describe_location_azure_blob;
63
64pub(crate) mod shape_describe_location_efs;
65
66pub(crate) mod shape_describe_location_fsx_lustre;
67
68pub(crate) mod shape_describe_location_fsx_ontap;
69
70pub(crate) mod shape_describe_location_fsx_open_zfs;
71
72pub(crate) mod shape_describe_location_fsx_windows;
73
74pub(crate) mod shape_describe_location_hdfs;
75
76pub(crate) mod shape_describe_location_nfs;
77
78pub(crate) mod shape_describe_location_object_storage;
79
80pub(crate) mod shape_describe_location_s3;
81
82pub(crate) mod shape_describe_location_smb;
83
84pub(crate) mod shape_describe_task;
85
86pub(crate) mod shape_describe_task_execution;
87
88pub(crate) mod shape_list_agents;
89
90pub(crate) mod shape_list_locations;
91
92pub(crate) mod shape_list_tags_for_resource;
93
94pub(crate) mod shape_list_task_executions;
95
96pub(crate) mod shape_list_tasks;
97
98pub(crate) mod shape_start_task_execution;
99
100pub(crate) mod shape_tag_resource;
101
102pub(crate) mod shape_untag_resource;
103
104pub(crate) mod shape_update_agent;
105
106pub(crate) mod shape_update_location_azure_blob;
107
108pub(crate) mod shape_update_location_efs;
109
110pub(crate) mod shape_update_location_fsx_lustre;
111
112pub(crate) mod shape_update_location_fsx_ontap;
113
114pub(crate) mod shape_update_location_fsx_open_zfs;
115
116pub(crate) mod shape_update_location_fsx_windows;
117
118pub(crate) mod shape_update_location_hdfs;
119
120pub(crate) mod shape_update_location_nfs;
121
122pub(crate) mod shape_update_location_object_storage;
123
124pub(crate) mod shape_update_location_s3;
125
126pub(crate) mod shape_update_location_smb;
127
128pub(crate) mod shape_update_task;
129
130pub(crate) mod shape_update_task_execution;
131
132pub(crate) mod shape_cancel_task_execution_input;
133
134pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
135    if data.is_empty() {
136        b"{}"
137    } else {
138        data
139    }
140}
141
142pub(crate) mod shape_create_agent_input;
143
144pub(crate) mod shape_create_location_azure_blob_input;
145
146pub(crate) mod shape_create_location_efs_input;
147
148pub(crate) mod shape_create_location_fsx_lustre_input;
149
150pub(crate) mod shape_create_location_fsx_ontap_input;
151
152pub(crate) mod shape_create_location_fsx_open_zfs_input;
153
154pub(crate) mod shape_create_location_fsx_windows_input;
155
156pub(crate) mod shape_create_location_hdfs_input;
157
158pub(crate) mod shape_create_location_nfs_input;
159
160pub(crate) mod shape_create_location_object_storage_input;
161
162pub(crate) mod shape_create_location_s3_input;
163
164pub(crate) mod shape_create_location_smb_input;
165
166pub(crate) mod shape_create_task_input;
167
168pub(crate) mod shape_delete_agent_input;
169
170pub(crate) mod shape_delete_location_input;
171
172pub(crate) mod shape_delete_task_input;
173
174pub(crate) mod shape_describe_agent_input;
175
176pub(crate) mod shape_describe_location_azure_blob_input;
177
178pub(crate) mod shape_describe_location_efs_input;
179
180pub(crate) mod shape_describe_location_fsx_lustre_input;
181
182pub(crate) mod shape_describe_location_fsx_ontap_input;
183
184pub(crate) mod shape_describe_location_fsx_open_zfs_input;
185
186pub(crate) mod shape_describe_location_fsx_windows_input;
187
188pub(crate) mod shape_describe_location_hdfs_input;
189
190pub(crate) mod shape_describe_location_nfs_input;
191
192pub(crate) mod shape_describe_location_object_storage_input;
193
194pub(crate) mod shape_describe_location_s3_input;
195
196pub(crate) mod shape_describe_location_smb_input;
197
198pub(crate) mod shape_describe_task_execution_input;
199
200pub(crate) mod shape_describe_task_input;
201
202pub(crate) mod shape_internal_exception;
203
204pub(crate) mod shape_invalid_request_exception;
205
206pub(crate) mod shape_list_agents_input;
207
208pub(crate) mod shape_list_locations_input;
209
210pub(crate) mod shape_list_tags_for_resource_input;
211
212pub(crate) mod shape_list_task_executions_input;
213
214pub(crate) mod shape_list_tasks_input;
215
216pub(crate) mod shape_start_task_execution_input;
217
218pub(crate) mod shape_tag_resource_input;
219
220pub(crate) mod shape_untag_resource_input;
221
222pub(crate) mod shape_update_agent_input;
223
224pub(crate) mod shape_update_location_azure_blob_input;
225
226pub(crate) mod shape_update_location_efs_input;
227
228pub(crate) mod shape_update_location_fsx_lustre_input;
229
230pub(crate) mod shape_update_location_fsx_ontap_input;
231
232pub(crate) mod shape_update_location_fsx_open_zfs_input;
233
234pub(crate) mod shape_update_location_fsx_windows_input;
235
236pub(crate) mod shape_update_location_hdfs_input;
237
238pub(crate) mod shape_update_location_nfs_input;
239
240pub(crate) mod shape_update_location_object_storage_input;
241
242pub(crate) mod shape_update_location_s3_input;
243
244pub(crate) mod shape_update_location_smb_input;
245
246pub(crate) mod shape_update_task_execution_input;
247
248pub(crate) mod shape_update_task_input;
249
250pub(crate) mod shape_agent_arn_list;
251
252pub(crate) mod shape_agent_list;
253
254pub(crate) mod shape_azure_blob_sas_configuration;
255
256pub(crate) mod shape_cmk_secret_config;
257
258pub(crate) mod shape_custom_secret_config;
259
260pub(crate) mod shape_destination_network_interface_arns;
261
262pub(crate) mod shape_dns_ip_list;
263
264pub(crate) mod shape_ec2_config;
265
266pub(crate) mod shape_ec2_security_group_arn_list;
267
268pub(crate) mod shape_filter_list;
269
270pub(crate) mod shape_filter_rule;
271
272pub(crate) mod shape_fsx_protocol;
273
274pub(crate) mod shape_fsx_update_protocol;
275
276pub(crate) mod shape_hdfs_name_node;
277
278pub(crate) mod shape_hdfs_name_node_list;
279
280pub(crate) mod shape_location_filter;
281
282pub(crate) mod shape_location_list;
283
284pub(crate) mod shape_managed_secret_config;
285
286pub(crate) mod shape_manifest_config;
287
288pub(crate) mod shape_nfs_mount_options;
289
290pub(crate) mod shape_on_prem_config;
291
292pub(crate) mod shape_options;
293
294pub(crate) mod shape_output_tag_list;
295
296pub(crate) mod shape_platform;
297
298pub(crate) mod shape_private_link_config;
299
300pub(crate) mod shape_qop_configuration;
301
302pub(crate) mod shape_report_result;
303
304pub(crate) mod shape_s3_config;
305
306pub(crate) mod shape_smb_mount_options;
307
308pub(crate) mod shape_source_network_interface_arns;
309
310pub(crate) mod shape_tag_list_entry;
311
312pub(crate) mod shape_task_execution_files_failed_detail;
313
314pub(crate) mod shape_task_execution_files_listed_detail;
315
316pub(crate) mod shape_task_execution_list;
317
318pub(crate) mod shape_task_execution_result_detail;
319
320pub(crate) mod shape_task_filter;
321
322pub(crate) mod shape_task_list;
323
324pub(crate) mod shape_task_report_config;
325
326pub(crate) mod shape_task_schedule;
327
328pub(crate) mod shape_task_schedule_details;
329
330pub(crate) mod shape_agent_list_entry;
331
332pub(crate) mod shape_fsx_protocol_nfs;
333
334pub(crate) mod shape_fsx_protocol_smb;
335
336pub(crate) mod shape_fsx_update_protocol_smb;
337
338pub(crate) mod shape_location_list_entry;
339
340pub(crate) mod shape_pl_security_group_arn_list;
341
342pub(crate) mod shape_pl_subnet_arn_list;
343
344pub(crate) mod shape_report_destination;
345
346pub(crate) mod shape_report_overrides;
347
348pub(crate) mod shape_source_manifest_config;
349
350pub(crate) mod shape_task_execution_list_entry;
351
352pub(crate) mod shape_task_list_entry;
353
354pub(crate) mod shape_report_destination_s3;
355
356pub(crate) mod shape_report_override;
357
358pub(crate) mod shape_s3_manifest_config;