1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | pub fn parse_http_error_metadata(
|
3 + | _response_status: u16,
|
4 + | response_headers: &::aws_smithy_runtime_api::http::Headers,
|
5 + | response_body: &[u8],
|
6 + | ) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
|
7 + | crate::json_errors::parse_error_metadata(response_body, response_headers)
|
8 + | }
|
9 + |
|
2 10 | pub(crate) fn type_erase_result<O, E>(
|
3 11 | result: ::std::result::Result<O, E>,
|
4 12 | ) -> ::std::result::Result<
|
5 13 | ::aws_smithy_runtime_api::client::interceptors::context::Output,
|
6 14 | ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
|
7 15 | >
|
8 16 | where
|
9 17 | O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
|
10 18 | E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
|
11 19 | {
|
12 20 | result
|
13 21 | .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
|
14 22 | .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
|
15 23 | .map_err(::std::convert::Into::into)
|
16 24 | }
|
17 25 |
|
18 - | pub 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 - |
|
26 - | pub(crate) mod shape_add_layer_version_permission;
|
27 - |
|
28 - | pub(crate) mod shape_add_permission;
|
29 - |
|
30 - | pub(crate) mod shape_create_alias;
|
31 - |
|
32 - | pub(crate) mod shape_create_code_signing_config;
|
33 - |
|
34 - | pub(crate) mod shape_create_event_source_mapping;
|
35 - |
|
36 - | pub(crate) mod shape_create_function;
|
37 - |
|
38 - | pub(crate) mod shape_create_function_url_config;
|
39 - |
|
40 - | pub(crate) mod shape_delete_alias;
|
41 - |
|
42 - | pub(crate) mod shape_delete_code_signing_config;
|
43 - |
|
44 - | pub(crate) mod shape_delete_event_source_mapping;
|
45 - |
|
46 - | pub(crate) mod shape_delete_function;
|
47 - |
|
48 - | pub(crate) mod shape_delete_function_code_signing_config;
|
49 - |
|
50 - | pub(crate) mod shape_delete_function_concurrency;
|
51 - |
|
52 - | pub(crate) mod shape_delete_function_event_invoke_config;
|
53 - |
|
54 - | pub(crate) mod shape_delete_function_url_config;
|
55 - |
|
56 - | pub(crate) mod shape_delete_layer_version;
|
57 - |
|
58 - | pub(crate) mod shape_delete_provisioned_concurrency_config;
|
59 - |
|
60 - | pub(crate) mod shape_get_account_settings;
|
61 - |
|
62 - | pub(crate) mod shape_get_alias;
|
63 - |
|
64 - | pub(crate) mod shape_get_code_signing_config;
|
65 - |
|
66 - | pub(crate) mod shape_get_event_source_mapping;
|
67 - |
|
68 - | pub(crate) mod shape_get_function;
|
69 - |
|
70 - | pub(crate) mod shape_get_function_code_signing_config;
|
71 - |
|
72 - | pub(crate) mod shape_get_function_concurrency;
|
73 - |
|
74 - | pub(crate) mod shape_get_function_configuration;
|
75 - |
|
76 - | pub(crate) mod shape_get_function_event_invoke_config;
|
77 - |
|
78 - | pub(crate) mod shape_get_function_recursion_config;
|
79 - |
|
80 - | pub(crate) mod shape_get_function_url_config;
|
81 - |
|
82 - | pub(crate) mod shape_get_layer_version;
|
83 - |
|
84 - | pub(crate) mod shape_get_layer_version_by_arn;
|
85 - |
|
86 - | pub(crate) mod shape_get_layer_version_policy;
|
87 - |
|
88 - | pub(crate) mod shape_get_policy;
|
89 - |
|
90 - | pub(crate) mod shape_get_provisioned_concurrency_config;
|
91 - |
|
92 - | pub(crate) mod shape_get_runtime_management_config;
|
93 - |
|
94 - | pub(crate) mod shape_invoke;
|
95 - |
|
96 - | pub(crate) mod shape_invoke_async;
|
97 - |
|
98 - | pub(crate) mod shape_invoke_async_input;
|
99 - |
|
100 - | pub(crate) mod shape_invoke_input;
|
101 - |
|
102 26 | pub(crate) mod shape_invoke_with_response_stream;
|
103 27 |
|
104 - | pub(crate) mod shape_invoke_with_response_stream_input;
|
105 - |
|
106 - | pub(crate) mod shape_list_aliases;
|
107 - |
|
108 - | pub(crate) mod shape_list_code_signing_configs;
|
109 - |
|
110 - | pub(crate) mod shape_list_event_source_mappings;
|
111 - |
|
112 - | pub(crate) mod shape_list_function_event_invoke_configs;
|
113 - |
|
114 - | pub(crate) mod shape_list_function_url_configs;
|
115 - |
|
116 - | pub(crate) mod shape_list_functions;
|
117 - |
|
118 - | pub(crate) mod shape_list_functions_by_code_signing_config;
|
119 - |
|
120 - | pub(crate) mod shape_list_layer_versions;
|
121 - |
|
122 - | pub(crate) mod shape_list_layers;
|
123 - |
|
124 - | pub(crate) mod shape_list_provisioned_concurrency_configs;
|
125 - |
|
126 - | pub(crate) mod shape_list_tags;
|
127 - |
|
128 - | pub(crate) mod shape_list_versions_by_function;
|
129 - |
|
130 - | pub(crate) mod shape_publish_layer_version;
|
131 - |
|
132 - | pub(crate) mod shape_publish_version;
|
133 - |
|
134 - | pub(crate) mod shape_put_function_code_signing_config;
|
135 - |
|
136 - | pub(crate) mod shape_put_function_concurrency;
|
137 - |
|
138 - | pub(crate) mod shape_put_function_event_invoke_config;
|
139 - |
|
140 - | pub(crate) mod shape_put_function_recursion_config;
|
141 - |
|
142 - | pub(crate) mod shape_put_provisioned_concurrency_config;
|
143 - |
|
144 - | pub(crate) mod shape_put_runtime_management_config;
|
145 - |
|
146 - | pub(crate) mod shape_remove_layer_version_permission;
|
147 - |
|
148 - | pub(crate) mod shape_remove_permission;
|
149 - |
|
150 - | pub(crate) mod shape_tag_resource;
|
151 - |
|
152 - | pub(crate) mod shape_untag_resource;
|
153 - |
|
154 - | pub(crate) mod shape_update_alias;
|
155 - |
|
156 - | pub(crate) mod shape_update_code_signing_config;
|
157 - |
|
158 - | pub(crate) mod shape_update_event_source_mapping;
|
159 - |
|
160 - | pub(crate) mod shape_update_function_code;
|
161 - |
|
162 - | pub(crate) mod shape_update_function_configuration;
|
163 - |
|
164 - | pub(crate) mod shape_update_function_event_invoke_config;
|
28 + | pub(crate) mod shape_invoke_with_response_stream_output;
|
165 29 |
|
166 - | pub(crate) mod shape_update_function_url_config;
|
30 + | pub fn parse_event_stream_error_metadata(
|
31 + | payload: &::bytes::Bytes,
|
32 + | ) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
|
33 + | crate::json_errors::parse_error_metadata(payload, &::aws_smithy_runtime_api::http::Headers::new())
|
34 + | }
|
167 35 |
|
168 36 | pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
|
169 37 | if data.is_empty() {
|
170 38 | b"{}"
|
171 39 | } else {
|
172 40 | data
|
173 41 | }
|
174 42 | }
|
175 43 |
|
176 - | pub(crate) mod shape_add_layer_version_permission_input;
|
177 - |
|
178 - | pub(crate) mod shape_add_permission_input;
|
179 - |
|
180 - | pub(crate) mod shape_code_signing_config_not_found_exception;
|
181 - |
|
182 - | pub(crate) mod shape_code_storage_exceeded_exception;
|
183 - |
|
184 - | pub(crate) mod shape_code_verification_failed_exception;
|
185 - |
|
186 - | pub(crate) mod shape_create_alias_input;
|
187 - |
|
188 - | pub(crate) mod shape_create_code_signing_config_input;
|
189 - |
|
190 - | pub(crate) mod shape_create_event_source_mapping_input;
|
191 - |
|
192 - | pub(crate) mod shape_create_function_input;
|
193 - |
|
194 - | pub(crate) mod shape_create_function_url_config_input;
|
195 - |
|
196 - | pub(crate) mod shape_ec2_access_denied_exception;
|
197 - |
|
198 - | pub(crate) mod shape_ec2_throttled_exception;
|
199 - |
|
200 - | pub(crate) mod shape_ec2_unexpected_exception;
|
201 - |
|
202 - | pub(crate) mod shape_efs_mount_connectivity_exception;
|
203 - |
|
204 - | pub(crate) mod shape_efs_mount_failure_exception;
|
205 - |
|
206 - | pub(crate) mod shape_efs_mount_timeout_exception;
|
207 - |
|
208 - | pub(crate) mod shape_efsio_exception;
|
209 - |
|
210 - | pub(crate) mod shape_eni_limit_reached_exception;
|
211 - |
|
212 - | pub(crate) mod shape_invalid_code_signature_exception;
|
213 - |
|
214 - | pub(crate) mod shape_invalid_parameter_value_exception;
|
215 - |
|
216 - | pub(crate) mod shape_invalid_request_content_exception;
|
217 - |
|
218 - | pub(crate) mod shape_invalid_runtime_exception;
|
219 - |
|
220 - | pub(crate) mod shape_invalid_security_group_id_exception;
|
221 - |
|
222 - | pub(crate) mod shape_invalid_subnet_id_exception;
|
223 - |
|
224 - | pub(crate) mod shape_invalid_zip_file_exception;
|
225 - |
|
226 - | pub(crate) mod shape_invoke_output;
|
227 - |
|
228 - | pub(crate) mod shape_invoke_with_response_stream_output;
|
229 - |
|
230 - | pub(crate) mod shape_kms_access_denied_exception;
|
231 - |
|
232 - | pub(crate) mod shape_kms_disabled_exception;
|
233 - |
|
234 - | pub(crate) mod shape_kms_invalid_state_exception;
|
235 - |
|
236 - | pub(crate) mod shape_kms_not_found_exception;
|
237 - |
|
238 - | pub(crate) mod shape_policy_length_exceeded_exception;
|
239 - |
|
240 - | pub(crate) mod shape_precondition_failed_exception;
|
241 - |
|
242 - | pub(crate) mod shape_provisioned_concurrency_config_not_found_exception;
|
243 - |
|
244 - | pub(crate) mod shape_publish_layer_version_input;
|
245 - |
|
246 - | pub(crate) mod shape_publish_version_input;
|
247 - |
|
248 - | pub(crate) mod shape_put_function_code_signing_config_input;
|
249 - |
|
250 - | pub(crate) mod shape_put_function_concurrency_input;
|
251 - |
|
252 - | pub(crate) mod shape_put_function_event_invoke_config_input;
|
253 - |
|
254 - | pub(crate) mod shape_put_function_recursion_config_input;
|
255 - |
|
256 - | pub(crate) mod shape_put_provisioned_concurrency_config_input;
|
257 - |
|
258 - | pub(crate) mod shape_put_runtime_management_config_input;
|
259 - |
|
260 - | pub(crate) mod shape_recursive_invocation_exception;
|
261 - |
|
262 - | pub(crate) mod shape_request_too_large_exception;
|
263 - |
|
264 - | pub(crate) mod shape_resource_conflict_exception;
|
265 - |
|
266 - | pub(crate) mod shape_resource_in_use_exception;
|
267 - |
|
268 - | pub(crate) mod shape_resource_not_found_exception;
|
269 - |
|
270 - | pub(crate) mod shape_resource_not_ready_exception;
|
271 - |
|
272 - | pub(crate) mod shape_service_exception;
|
273 - |
|
274 - | pub(crate) mod shape_snap_start_exception;
|
275 - |
|
276 - | pub(crate) mod shape_snap_start_not_ready_exception;
|
277 - |
|
278 - | pub(crate) mod shape_snap_start_timeout_exception;
|
279 - |
|
280 - | pub(crate) mod shape_subnet_ip_address_limit_reached_exception;
|
281 - |
|
282 - | pub(crate) mod shape_tag_resource_input;
|
283 - |
|
284 - | pub(crate) mod shape_too_many_requests_exception;
|
285 - |
|
286 - | pub(crate) mod shape_unsupported_media_type_exception;
|
287 - |
|
288 - | pub(crate) mod shape_update_alias_input;
|
289 - |
|
290 - | pub(crate) mod shape_update_code_signing_config_input;
|
291 - |
|
292 - | pub(crate) mod shape_update_event_source_mapping_input;
|
293 - |
|
294 - | pub(crate) mod shape_update_function_code_input;
|
295 - |
|
296 - | pub(crate) mod shape_update_function_configuration_input;
|
297 - |
|
298 - | pub(crate) mod shape_update_function_event_invoke_config_input;
|
299 - |
|
300 - | pub(crate) mod shape_update_function_url_config_input;
|
301 - |
|
302 - | pub fn parse_event_stream_error_metadata(
|
303 - | payload: &::bytes::Bytes,
|
304 - | ) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
|
305 - | crate::json_errors::parse_error_metadata(payload, &::aws_smithy_runtime_api::http::Headers::new())
|
306 - | }
|
307 - |
|
308 - | pub(crate) mod shape_account_limit;
|
309 - |
|
310 - | pub(crate) mod shape_account_usage;
|
311 - |
|
312 - | pub(crate) mod shape_alias_list;
|
313 - |
|
314 - | pub(crate) mod shape_alias_routing_configuration;
|
315 - |
|
316 - | pub(crate) mod shape_allowed_publishers;
|
317 - |
|
318 - | pub(crate) mod shape_amazon_managed_kafka_event_source_config;
|
319 - |
|
320 - | pub(crate) mod shape_architectures_list;
|
321 - |
|
322 - | pub(crate) mod shape_code_signing_config;
|
323 - |
|
324 - | pub(crate) mod shape_code_signing_config_list;
|
325 - |
|
326 - | pub(crate) mod shape_code_signing_policies;
|
327 - |
|
328 - | pub(crate) mod shape_compatible_architectures;
|
329 - |
|
330 - | pub(crate) mod shape_compatible_runtimes;
|
331 - |
|
332 - | pub(crate) mod shape_concurrency;
|
333 - |
|
334 - | pub(crate) mod shape_cors;
|
335 - |
|
336 - | pub(crate) mod shape_dead_letter_config;
|
337 - |
|
338 - | pub(crate) mod shape_destination_config;
|
339 - |
|
340 - | pub(crate) mod shape_document_db_event_source_config;
|
341 - |
|
342 - | pub(crate) mod shape_environment;
|
343 - |
|
344 - | pub(crate) mod shape_environment_response;
|
345 - |
|
346 - | pub(crate) mod shape_ephemeral_storage;
|
347 - |
|
348 - | pub(crate) mod shape_event_source_mapping_metrics_config;
|
349 - |
|
350 - | pub(crate) mod shape_event_source_mappings_list;
|
351 - |
|
352 - | pub(crate) mod shape_file_system_config;
|
353 - |
|
354 - | pub(crate) mod shape_file_system_config_list;
|
355 - |
|
356 - | pub(crate) mod shape_filter_criteria;
|
357 - |
|
358 - | pub(crate) mod shape_filter_criteria_error;
|
359 - |
|
360 - | pub(crate) mod shape_function_arn_list;
|
361 - |
|
362 - | pub(crate) mod shape_function_code;
|
363 - |
|
364 - | pub(crate) mod shape_function_code_location;
|
365 - |
|
366 - | pub(crate) mod shape_function_configuration;
|
367 - |
|
368 - | pub(crate) mod shape_function_event_invoke_config_list;
|
369 - |
|
370 - | pub(crate) mod shape_function_list;
|
371 - |
|
372 - | pub(crate) mod shape_function_response_type_list;
|
373 - |
|
374 - | pub(crate) mod shape_function_url_config_list;
|
375 - |
|
376 - | pub(crate) mod shape_image_config;
|
377 - |
|
378 - | pub(crate) mod shape_image_config_response;
|
379 - |
|
380 - | pub(crate) mod shape_layer_version_content_input;
|
381 - |
|
382 - | pub(crate) mod shape_layer_version_content_output;
|
383 - |
|
384 - | pub(crate) mod shape_layer_versions_list;
|
385 - |
|
386 - | pub(crate) mod shape_layers_list;
|
387 - |
|
388 - | pub(crate) mod shape_layers_reference_list;
|
389 - |
|
390 - | pub(crate) mod shape_logging_config;
|
391 - |
|
392 - | pub(crate) mod shape_provisioned_concurrency_config_list;
|
393 - |
|
394 - | pub(crate) mod shape_provisioned_poller_config;
|
395 - |
|
396 - | pub(crate) mod shape_queues;
|
397 - |
|
398 - | pub(crate) mod shape_runtime_version_config;
|
399 - |
|
400 - | pub(crate) mod shape_scaling_config;
|
401 - |
|
402 - | pub(crate) mod shape_self_managed_event_source;
|
403 - |
|
404 - | pub(crate) mod shape_self_managed_kafka_event_source_config;
|
405 - |
|
406 - | pub(crate) mod shape_snap_start;
|
407 - |
|
408 - | pub(crate) mod shape_snap_start_response;
|
409 - |
|
410 - | pub(crate) mod shape_source_access_configuration;
|
411 - |
|
412 - | pub(crate) mod shape_source_access_configurations;
|
413 - |
|
414 - | pub(crate) mod shape_tags;
|
415 - |
|
416 - | pub(crate) mod shape_tags_error;
|
417 - |
|
418 - | pub(crate) mod shape_topics;
|
419 - |
|
420 - | pub(crate) mod shape_tracing_config;
|
421 - |
|
422 - | pub(crate) mod shape_tracing_config_response;
|
423 - |
|
424 - | pub(crate) mod shape_vpc_config;
|
425 - |
|
426 - | pub(crate) mod shape_vpc_config_response;
|
427 - |
|
428 - | pub(crate) mod shape_additional_version_weights;
|
429 - |
|
430 - | pub(crate) mod shape_alias_configuration;
|
431 - |
|
432 - | pub(crate) mod shape_allow_methods_list;
|
433 - |
|
434 - | pub(crate) mod shape_allow_origins_list;
|
435 - |
|
436 - | pub(crate) mod shape_endpoints;
|
437 - |
|
438 - | pub(crate) mod shape_environment_error;
|
439 - |
|
440 - | pub(crate) mod shape_environment_variables;
|
441 - |
|
442 - | pub(crate) mod shape_event_source_mapping_configuration;
|
443 - |
|
444 - | pub(crate) mod shape_event_source_mapping_metric_list;
|
445 - |
|
446 - | pub(crate) mod shape_filter;
|
447 - |
|
448 - | pub(crate) mod shape_filter_list;
|
449 - |
|
450 - | pub(crate) mod shape_function_event_invoke_config;
|
451 - |
|
452 - | pub(crate) mod shape_function_url_config;
|
453 - |
|
454 - | pub(crate) mod shape_headers_list;
|
455 - |
|
456 - | pub(crate) mod shape_image_config_error;
|
457 - |
|
458 44 | pub(crate) mod shape_invoke_with_response_stream_complete_event;
|
459 - |
|
460 - | pub(crate) mod shape_kafka_schema_registry_config;
|
461 - |
|
462 - | pub(crate) mod shape_layer;
|
463 - |
|
464 - | pub(crate) mod shape_layer_versions_list_item;
|
465 - |
|
466 - | pub(crate) mod shape_layers_list_item;
|
467 - |
|
468 - | pub(crate) mod shape_on_failure;
|
469 - |
|
470 - | pub(crate) mod shape_on_success;
|
471 - |
|
472 - | pub(crate) mod shape_provisioned_concurrency_config_list_item;
|
473 - |
|
474 - | pub(crate) mod shape_runtime_version_error;
|
475 - |
|
476 - | pub(crate) mod shape_security_group_ids;
|
477 - |
|
478 - | pub(crate) mod shape_subnet_ids;
|
479 - |
|
480 - | pub(crate) mod shape_endpoint_lists;
|
481 - |
|
482 - | pub(crate) mod shape_kafka_schema_registry_access_config;
|
483 - |
|
484 - | pub(crate) mod shape_kafka_schema_registry_access_config_list;
|
485 - |
|
486 - | pub(crate) mod shape_kafka_schema_validation_config;
|
487 - |
|
488 - | pub(crate) mod shape_kafka_schema_validation_config_list;
|
489 - |
|
490 - | pub(crate) mod shape_signing_profile_version_arns;
|
491 - |
|
492 - | pub(crate) mod shape_string_list;
|