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
9O: ::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}
1718pub 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> {
23crate::json_errors::parse_error_metadata(response_body, response_headers)
24}
2526pub(crate) mod shape_create_capacity_provider;
2728pub(crate) mod shape_create_cluster;
2930pub(crate) mod shape_create_service;
3132pub(crate) mod shape_create_task_set;
3334pub(crate) mod shape_delete_account_setting;
3536pub(crate) mod shape_delete_attributes;
3738pub(crate) mod shape_delete_capacity_provider;
3940pub(crate) mod shape_delete_cluster;
4142pub(crate) mod shape_delete_service;
4344pub(crate) mod shape_delete_task_definitions;
4546pub(crate) mod shape_delete_task_set;
4748pub(crate) mod shape_deregister_container_instance;
4950pub(crate) mod shape_deregister_task_definition;
5152pub(crate) mod shape_describe_capacity_providers;
5354pub(crate) mod shape_describe_clusters;
5556pub(crate) mod shape_describe_container_instances;
5758pub(crate) mod shape_describe_service_deployments;
5960pub(crate) mod shape_describe_service_revisions;
6162pub(crate) mod shape_describe_services;
6364pub(crate) mod shape_describe_task_definition;
6566pub(crate) mod shape_describe_task_sets;
6768pub(crate) mod shape_describe_tasks;
6970pub(crate) mod shape_discover_poll_endpoint;
7172pub(crate) mod shape_execute_command;
7374pub(crate) mod shape_get_task_protection;
7576pub(crate) mod shape_list_account_settings;
7778pub(crate) mod shape_list_attributes;
7980pub(crate) mod shape_list_clusters;
8182pub(crate) mod shape_list_container_instances;
8384pub(crate) mod shape_list_service_deployments;
8586pub(crate) mod shape_list_services;
8788pub(crate) mod shape_list_services_by_namespace;
8990pub(crate) mod shape_list_tags_for_resource;
9192pub(crate) mod shape_list_task_definition_families;
9394pub(crate) mod shape_list_task_definitions;
9596pub(crate) mod shape_list_tasks;
9798pub(crate) mod shape_put_account_setting;
99100pub(crate) mod shape_put_account_setting_default;
101102pub(crate) mod shape_put_attributes;
103104pub(crate) mod shape_put_cluster_capacity_providers;
105106pub(crate) mod shape_register_container_instance;
107108pub(crate) mod shape_register_task_definition;
109110pub(crate) mod shape_run_task;
111112pub(crate) mod shape_start_task;
113114pub(crate) mod shape_stop_service_deployment;
115116pub(crate) mod shape_stop_task;
117118pub(crate) mod shape_submit_attachment_state_changes;
119120pub(crate) mod shape_submit_container_state_change;
121122pub(crate) mod shape_submit_task_state_change;
123124pub(crate) mod shape_tag_resource;
125126pub(crate) mod shape_untag_resource;
127128pub(crate) mod shape_update_capacity_provider;
129130pub(crate) mod shape_update_cluster;
131132pub(crate) mod shape_update_cluster_settings;
133134pub(crate) mod shape_update_container_agent;
135136pub(crate) mod shape_update_container_instances_state;
137138pub(crate) mod shape_update_service;
139140pub(crate) mod shape_update_service_primary_task_set;
141142pub(crate) mod shape_update_task_protection;
143144pub(crate) mod shape_update_task_set;
145146pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
147if data.is_empty() {
148b"{}"
149} else {
150 data
151 }
152}
153154pub(crate) mod shape_access_denied_exception;
155156pub(crate) mod shape_attribute_limit_exceeded_exception;
157158pub(crate) mod shape_blocked_exception;
159160pub(crate) mod shape_client_exception;
161162pub(crate) mod shape_cluster_contains_container_instances_exception;
163164pub(crate) mod shape_cluster_contains_services_exception;
165166pub(crate) mod shape_cluster_contains_tasks_exception;
167168pub(crate) mod shape_cluster_not_found_exception;
169170pub(crate) mod shape_conflict_exception;
171172pub(crate) mod shape_create_capacity_provider_input;
173174pub(crate) mod shape_create_cluster_input;
175176pub(crate) mod shape_create_service_input;
177178pub(crate) mod shape_create_task_set_input;
179180pub(crate) mod shape_delete_account_setting_input;
181182pub(crate) mod shape_delete_attributes_input;
183184pub(crate) mod shape_delete_capacity_provider_input;
185186pub(crate) mod shape_delete_cluster_input;
187188pub(crate) mod shape_delete_service_input;
189190pub(crate) mod shape_delete_task_definitions_input;
191192pub(crate) mod shape_delete_task_set_input;
193194pub(crate) mod shape_deregister_container_instance_input;
195196pub(crate) mod shape_deregister_task_definition_input;
197198pub(crate) mod shape_describe_capacity_providers_input;
199200pub(crate) mod shape_describe_clusters_input;
201202pub(crate) mod shape_describe_container_instances_input;
203204pub(crate) mod shape_describe_service_deployments_input;
205206pub(crate) mod shape_describe_service_revisions_input;
207208pub(crate) mod shape_describe_services_input;
209210pub(crate) mod shape_describe_task_definition_input;
211212pub(crate) mod shape_describe_task_sets_input;
213214pub(crate) mod shape_describe_tasks_input;
215216pub(crate) mod shape_discover_poll_endpoint_input;
217218pub(crate) mod shape_execute_command_input;
219220pub(crate) mod shape_get_task_protection_input;
221222pub(crate) mod shape_invalid_parameter_exception;
223224pub(crate) mod shape_limit_exceeded_exception;
225226pub(crate) mod shape_list_account_settings_input;
227228pub(crate) mod shape_list_attributes_input;
229230pub(crate) mod shape_list_clusters_input;
231232pub(crate) mod shape_list_container_instances_input;
233234pub(crate) mod shape_list_service_deployments_input;
235236pub(crate) mod shape_list_services_by_namespace_input;
237238pub(crate) mod shape_list_services_input;
239240pub(crate) mod shape_list_tags_for_resource_input;
241242pub(crate) mod shape_list_task_definition_families_input;
243244pub(crate) mod shape_list_task_definitions_input;
245246pub(crate) mod shape_list_tasks_input;
247248pub(crate) mod shape_missing_version_exception;
249250pub(crate) mod shape_namespace_not_found_exception;
251252pub(crate) mod shape_no_update_available_exception;
253254pub(crate) mod shape_platform_task_definition_incompatibility_exception;
255256pub(crate) mod shape_platform_unknown_exception;
257258pub(crate) mod shape_put_account_setting_default_input;
259260pub(crate) mod shape_put_account_setting_input;
261262pub(crate) mod shape_put_attributes_input;
263264pub(crate) mod shape_put_cluster_capacity_providers_input;
265266pub(crate) mod shape_register_container_instance_input;
267268pub(crate) mod shape_register_task_definition_input;
269270pub(crate) mod shape_resource_in_use_exception;
271272pub(crate) mod shape_resource_not_found_exception;
273274pub(crate) mod shape_run_task_input;
275276pub(crate) mod shape_server_exception;
277278pub(crate) mod shape_service_deployment_not_found_exception;
279280pub(crate) mod shape_service_not_active_exception;
281282pub(crate) mod shape_service_not_found_exception;
283284pub(crate) mod shape_start_task_input;
285286pub(crate) mod shape_stop_service_deployment_input;
287288pub(crate) mod shape_stop_task_input;
289290pub(crate) mod shape_submit_attachment_state_changes_input;
291292pub(crate) mod shape_submit_container_state_change_input;
293294pub(crate) mod shape_submit_task_state_change_input;
295296pub(crate) mod shape_tag_resource_input;
297298pub(crate) mod shape_target_not_connected_exception;
299300pub(crate) mod shape_target_not_found_exception;
301302pub(crate) mod shape_task_set_not_found_exception;
303304pub(crate) mod shape_unsupported_feature_exception;
305306pub(crate) mod shape_untag_resource_input;
307308pub(crate) mod shape_update_capacity_provider_input;
309310pub(crate) mod shape_update_cluster_input;
311312pub(crate) mod shape_update_cluster_settings_input;
313314pub(crate) mod shape_update_container_agent_input;
315316pub(crate) mod shape_update_container_instances_state_input;
317318pub(crate) mod shape_update_in_progress_exception;
319320pub(crate) mod shape_update_service_input;
321322pub(crate) mod shape_update_service_primary_task_set_input;
323324pub(crate) mod shape_update_task_protection_input;
325326pub(crate) mod shape_update_task_set_input;
327328pub(crate) mod shape_attachment_state_change;
329330pub(crate) mod shape_attribute;
331332pub(crate) mod shape_attributes;
333334pub(crate) mod shape_auto_scaling_group_provider;
335336pub(crate) mod shape_auto_scaling_group_provider_update;
337338pub(crate) mod shape_capacity_provider;
339340pub(crate) mod shape_capacity_provider_strategy_item;
341342pub(crate) mod shape_capacity_providers;
343344pub(crate) mod shape_cluster;
345346pub(crate) mod shape_cluster_configuration;
347348pub(crate) mod shape_cluster_service_connect_defaults_request;
349350pub(crate) mod shape_cluster_setting;
351352pub(crate) mod shape_clusters;
353354pub(crate) mod shape_container_definition;
355356pub(crate) mod shape_container_instance;
357358pub(crate) mod shape_container_instances;
359360pub(crate) mod shape_container_state_change;
361362pub(crate) mod shape_created_at;
363364pub(crate) mod shape_deployment_configuration;
365366pub(crate) mod shape_deployment_controller;
367368pub(crate) mod shape_ephemeral_storage;
369370pub(crate) mod shape_failures;
371372pub(crate) mod shape_inference_accelerator;
373374pub(crate) mod shape_load_balancer;
375376pub(crate) mod shape_managed_agent_state_change;
377378pub(crate) mod shape_network_binding;
379380pub(crate) mod shape_network_configuration;
381382pub(crate) mod shape_placement_constraint;
383384pub(crate) mod shape_placement_strategy;
385386pub(crate) mod shape_platform_device;
387388pub(crate) mod shape_protected_tasks;
389390pub(crate) mod shape_proxy_configuration;
391392pub(crate) mod shape_resource;
393394pub(crate) mod shape_resource_ids;
395396pub(crate) mod shape_runtime_platform;
397398pub(crate) mod shape_scale;
399400pub(crate) mod shape_service;
401402pub(crate) mod shape_service_connect_configuration;
403404pub(crate) mod shape_service_deployments;
405406pub(crate) mod shape_service_deployments_brief;
407408pub(crate) mod shape_service_registry;
409410pub(crate) mod shape_service_revisions;
411412pub(crate) mod shape_service_volume_configuration;
413414pub(crate) mod shape_services;
415416pub(crate) mod shape_session;
417418pub(crate) mod shape_setting;
419420pub(crate) mod shape_settings;
421422pub(crate) mod shape_string_list;
423424pub(crate) mod shape_tag;
425426pub(crate) mod shape_tags;
427428pub(crate) mod shape_task;
429430pub(crate) mod shape_task_definition;
431432pub(crate) mod shape_task_definition_list;
433434pub(crate) mod shape_task_definition_placement_constraint;
435436pub(crate) mod shape_task_override;
437438pub(crate) mod shape_task_set;
439440pub(crate) mod shape_task_sets;
441442pub(crate) mod shape_task_volume_configuration;
443444pub(crate) mod shape_tasks;
445446pub(crate) mod shape_version_info;
447448pub(crate) mod shape_volume;
449450pub(crate) mod shape_vpc_lattice_configuration;
451452pub(crate) mod shape_advanced_configuration;
453454pub(crate) mod shape_attachments;
455456pub(crate) mod shape_aws_vpc_configuration;
457458pub(crate) mod shape_capacity_provider_strategy;
459460pub(crate) mod shape_cluster_service_connect_defaults;
461462pub(crate) mod shape_cluster_settings;
463464pub(crate) mod shape_compatibility_list;
465466pub(crate) mod shape_container_definitions;
467468pub(crate) mod shape_container_dependency;
469470pub(crate) mod shape_container_instance_health_status;
471472pub(crate) mod shape_container_override;
473474pub(crate) mod shape_container_restart_policy;
475476pub(crate) mod shape_containers;
477478pub(crate) mod shape_deployment_alarms;
479480pub(crate) mod shape_deployment_circuit_breaker;
481482pub(crate) mod shape_deployment_ephemeral_storage;
483484pub(crate) mod shape_deployment_lifecycle_hook;
485486pub(crate) mod shape_deployments;
487488pub(crate) mod shape_docker_volume_configuration;
489490pub(crate) mod shape_efs_volume_configuration;
491492pub(crate) mod shape_environment_file;
493494pub(crate) mod shape_execute_command_configuration;
495496pub(crate) mod shape_f_sx_windows_file_server_volume_configuration;
497498pub(crate) mod shape_failure;
499500pub(crate) mod shape_firelens_configuration;
501502pub(crate) mod shape_health_check;
503504pub(crate) mod shape_host_entry;
505506pub(crate) mod shape_host_volume_properties;
507508pub(crate) mod shape_inference_accelerator_override;
509510pub(crate) mod shape_inference_accelerators;
511512pub(crate) mod shape_key_value_pair;
513514pub(crate) mod shape_linux_parameters;
515516pub(crate) mod shape_load_balancers;
517518pub(crate) mod shape_log_configuration;
519520pub(crate) mod shape_managed_scaling;
521522pub(crate) mod shape_managed_storage_configuration;
523524pub(crate) mod shape_mount_point;
525526pub(crate) mod shape_placement_constraints;
527528pub(crate) mod shape_placement_strategies;
529530pub(crate) mod shape_port_mapping;
531532pub(crate) mod shape_protected_task;
533534pub(crate) mod shape_repository_credentials;
535536pub(crate) mod shape_requires_attributes;
537538pub(crate) mod shape_resource_requirement;
539540pub(crate) mod shape_resources;
541542pub(crate) mod shape_secret;
543544pub(crate) mod shape_service_connect_service;
545546pub(crate) mod shape_service_deployment;
547548pub(crate) mod shape_service_deployment_brief;
549550pub(crate) mod shape_service_events;
551552pub(crate) mod shape_service_managed_ebs_volume_configuration;
553554pub(crate) mod shape_service_registries;
555556pub(crate) mod shape_service_revision;
557558pub(crate) mod shape_statistics;
559560pub(crate) mod shape_system_control;
561562pub(crate) mod shape_task_definition_placement_constraints;
563564pub(crate) mod shape_task_ephemeral_storage;
565566pub(crate) mod shape_task_managed_ebs_volume_configuration;
567568pub(crate) mod shape_ulimit;
569570pub(crate) mod shape_volume_from;
571572pub(crate) mod shape_volume_list;
573574pub(crate) mod shape_attachment;
575576pub(crate) mod shape_container;
577578pub(crate) mod shape_container_images;
579580pub(crate) mod shape_container_overrides;
581582pub(crate) mod shape_deployment;
583584pub(crate) mod shape_deployment_lifecycle_hook_list;
585586pub(crate) mod shape_device;
587588pub(crate) mod shape_ebs_tag_specification;
589590pub(crate) mod shape_efs_authorization_config;
591592pub(crate) mod shape_execute_command_log_configuration;
593594pub(crate) mod shape_f_sx_windows_file_server_authorization_config;
595596pub(crate) mod shape_inference_accelerator_overrides;
597598pub(crate) mod shape_instance_health_check_result_list;
599600pub(crate) mod shape_kernel_capabilities;
601602pub(crate) mod shape_proxy_configuration_properties;
603604pub(crate) mod shape_resolved_configuration;
605606pub(crate) mod shape_rollback;
607608pub(crate) mod shape_service_connect_client_alias;
609610pub(crate) mod shape_service_connect_tls_configuration;
611612pub(crate) mod shape_service_deployment_alarms;
613614pub(crate) mod shape_service_deployment_circuit_breaker;
615616pub(crate) mod shape_service_event;
617618pub(crate) mod shape_service_revision_summary;
619620pub(crate) mod shape_service_revisions_summary_list;
621622pub(crate) mod shape_service_volume_configurations;
623624pub(crate) mod shape_task_managed_ebs_volume_termination_policy;
625626pub(crate) mod shape_timeout_configuration;
627628pub(crate) mod shape_tmpfs;
629630pub(crate) mod shape_vpc_lattice_configurations;
631632pub(crate) mod shape_attachment_details;
633634pub(crate) mod shape_container_dependencies;
635636pub(crate) mod shape_container_image;
637638pub(crate) mod shape_docker_labels_map;
639640pub(crate) mod shape_environment_files;
641642pub(crate) mod shape_environment_variables;
643644pub(crate) mod shape_gpu_ids;
645646pub(crate) mod shape_host_entry_list;
647648pub(crate) mod shape_instance_health_check_result;
649650pub(crate) mod shape_managed_agents;
651652pub(crate) mod shape_mount_point_list;
653654pub(crate) mod shape_network_bindings;
655656pub(crate) mod shape_network_interfaces;
657658pub(crate) mod shape_port_mapping_list;
659660pub(crate) mod shape_resource_requirements;
661662pub(crate) mod shape_secret_list;
663664pub(crate) mod shape_service_connect_service_list;
665666pub(crate) mod shape_service_connect_service_resource_list;
667668pub(crate) mod shape_service_connect_test_traffic_rules;
669670pub(crate) mod shape_service_connect_tls_certificate_authority;
671672pub(crate) mod shape_service_revision_load_balancers;
673674pub(crate) mod shape_system_controls;
675676pub(crate) mod shape_ulimit_list;
677678pub(crate) mod shape_volume_from_list;
679680pub(crate) mod shape_deployment_lifecycle_hook_stage_list;
681682pub(crate) mod shape_devices_list;
683684pub(crate) mod shape_firelens_configuration_options_map;
685686pub(crate) mod shape_integer_list;
687688pub(crate) mod shape_log_configuration_options_map;
689690pub(crate) mod shape_managed_agent;
691692pub(crate) mod shape_network_interface;
693694pub(crate) mod shape_service_connect_service_resource;
695696pub(crate) mod shape_service_connect_test_traffic_header_rules;
697698pub(crate) mod shape_service_revision_load_balancer;
699700pub(crate) mod shape_string_map;
701702pub(crate) mod shape_tmpfs_list;
703704pub(crate) mod shape_ebs_tag_specifications;
705706pub(crate) mod shape_service_connect_client_alias_list;
707708pub(crate) mod shape_service_connect_test_traffic_header_match_rules;
709710pub(crate) mod shape_device_cgroup_permissions;