aws_sdk_snowball/
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_cancel_cluster;
27
28pub(crate) mod shape_cancel_job;
29
30pub(crate) mod shape_create_address;
31
32pub(crate) mod shape_create_cluster;
33
34pub(crate) mod shape_create_job;
35
36pub(crate) mod shape_create_long_term_pricing;
37
38pub(crate) mod shape_create_return_shipping_label;
39
40pub(crate) mod shape_describe_address;
41
42pub(crate) mod shape_describe_addresses;
43
44pub(crate) mod shape_describe_cluster;
45
46pub(crate) mod shape_describe_job;
47
48pub(crate) mod shape_describe_return_shipping_label;
49
50pub(crate) mod shape_get_job_manifest;
51
52pub(crate) mod shape_get_job_unlock_code;
53
54pub(crate) mod shape_get_snowball_usage;
55
56pub(crate) mod shape_get_software_updates;
57
58pub(crate) mod shape_list_cluster_jobs;
59
60pub(crate) mod shape_list_clusters;
61
62pub(crate) mod shape_list_compatible_images;
63
64pub(crate) mod shape_list_jobs;
65
66pub(crate) mod shape_list_long_term_pricing;
67
68pub(crate) mod shape_list_pickup_locations;
69
70pub(crate) mod shape_list_service_versions;
71
72pub(crate) mod shape_update_cluster;
73
74pub(crate) mod shape_update_job;
75
76pub(crate) mod shape_update_job_shipment_state;
77
78pub(crate) mod shape_update_long_term_pricing;
79
80pub(crate) mod shape_cancel_cluster_input;
81
82pub(crate) mod shape_cancel_job_input;
83
84pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
85 if data.is_empty() {
86 b"{}"
87 } else {
88 data
89 }
90}
91
92pub(crate) mod shape_cluster_limit_exceeded_exception;
93
94pub(crate) mod shape_conflict_exception;
95
96pub(crate) mod shape_create_address_input;
97
98pub(crate) mod shape_create_cluster_input;
99
100pub(crate) mod shape_create_job_input;
101
102pub(crate) mod shape_create_long_term_pricing_input;
103
104pub(crate) mod shape_create_return_shipping_label_input;
105
106pub(crate) mod shape_describe_address_input;
107
108pub(crate) mod shape_describe_addresses_input;
109
110pub(crate) mod shape_describe_cluster_input;
111
112pub(crate) mod shape_describe_job_input;
113
114pub(crate) mod shape_describe_return_shipping_label_input;
115
116pub(crate) mod shape_ec2_request_failed_exception;
117
118pub(crate) mod shape_get_job_manifest_input;
119
120pub(crate) mod shape_get_job_unlock_code_input;
121
122pub(crate) mod shape_get_software_updates_input;
123
124pub(crate) mod shape_invalid_address_exception;
125
126pub(crate) mod shape_invalid_input_combination_exception;
127
128pub(crate) mod shape_invalid_job_state_exception;
129
130pub(crate) mod shape_invalid_next_token_exception;
131
132pub(crate) mod shape_invalid_resource_exception;
133
134pub(crate) mod shape_kms_request_failed_exception;
135
136pub(crate) mod shape_list_cluster_jobs_input;
137
138pub(crate) mod shape_list_clusters_input;
139
140pub(crate) mod shape_list_compatible_images_input;
141
142pub(crate) mod shape_list_jobs_input;
143
144pub(crate) mod shape_list_long_term_pricing_input;
145
146pub(crate) mod shape_list_pickup_locations_input;
147
148pub(crate) mod shape_list_service_versions_input;
149
150pub(crate) mod shape_return_shipping_label_already_exists_exception;
151
152pub(crate) mod shape_unsupported_address_exception;
153
154pub(crate) mod shape_update_cluster_input;
155
156pub(crate) mod shape_update_job_input;
157
158pub(crate) mod shape_update_job_shipment_state_input;
159
160pub(crate) mod shape_update_long_term_pricing_input;
161
162pub(crate) mod shape_address;
163
164pub(crate) mod shape_address_list;
165
166pub(crate) mod shape_cluster_list_entry_list;
167
168pub(crate) mod shape_cluster_metadata;
169
170pub(crate) mod shape_compatible_image_list;
171
172pub(crate) mod shape_dependent_service;
173
174pub(crate) mod shape_dependent_service_list;
175
176pub(crate) mod shape_device_configuration;
177
178pub(crate) mod shape_job_list_entry_list;
179
180pub(crate) mod shape_job_metadata;
181
182pub(crate) mod shape_job_metadata_list;
183
184pub(crate) mod shape_job_resource;
185
186pub(crate) mod shape_long_term_pricing_entry_list;
187
188pub(crate) mod shape_notification;
189
190pub(crate) mod shape_on_device_service_configuration;
191
192pub(crate) mod shape_pickup_details;
193
194pub(crate) mod shape_service_version_list;
195
196pub(crate) mod shape_tax_documents;
197
198pub(crate) mod shape_cluster_list_entry;
199
200pub(crate) mod shape_compatible_image;
201
202pub(crate) mod shape_data_transfer;
203
204pub(crate) mod shape_ec2_ami_resource;
205
206pub(crate) mod shape_eks_on_device_service_configuration;
207
208pub(crate) mod shape_ind_tax_documents;
209
210pub(crate) mod shape_job_list_entry;
211
212pub(crate) mod shape_job_logs;
213
214pub(crate) mod shape_lambda_resource;
215
216pub(crate) mod shape_long_term_pricing_list_entry;
217
218pub(crate) mod shape_nfs_on_device_service_configuration;
219
220pub(crate) mod shape_s3_on_device_service_configuration;
221
222pub(crate) mod shape_s3_resource;
223
224pub(crate) mod shape_service_version;
225
226pub(crate) mod shape_shipping_details;
227
228pub(crate) mod shape_snowcone_device_configuration;
229
230pub(crate) mod shape_tgw_on_device_service_configuration;
231
232pub(crate) mod shape_ec2_ami_resource_list;
233
234pub(crate) mod shape_event_trigger_definition;
235
236pub(crate) mod shape_job_state_list;
237
238pub(crate) mod shape_key_range;
239
240pub(crate) mod shape_lambda_resource_list;
241
242pub(crate) mod shape_long_term_pricing_associated_job_id_list;
243
244pub(crate) mod shape_s3_resource_list;
245
246pub(crate) mod shape_shipment;
247
248pub(crate) mod shape_target_on_device_service;
249
250pub(crate) mod shape_wireless_connection;
251
252pub(crate) mod shape_event_trigger_definition_list;
253
254pub(crate) mod shape_target_on_device_service_list;