aws_sdk_servicediscovery/
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_create_http_namespace;
27
28pub(crate) mod shape_create_private_dns_namespace;
29
30pub(crate) mod shape_create_public_dns_namespace;
31
32pub(crate) mod shape_create_service;
33
34pub(crate) mod shape_delete_namespace;
35
36pub(crate) mod shape_delete_service;
37
38pub(crate) mod shape_delete_service_attributes;
39
40pub(crate) mod shape_deregister_instance;
41
42pub(crate) mod shape_discover_instances;
43
44pub(crate) mod shape_discover_instances_revision;
45
46pub(crate) mod shape_get_instance;
47
48pub(crate) mod shape_get_instances_health_status;
49
50pub(crate) mod shape_get_namespace;
51
52pub(crate) mod shape_get_operation;
53
54pub(crate) mod shape_get_service;
55
56pub(crate) mod shape_get_service_attributes;
57
58pub(crate) mod shape_list_instances;
59
60pub(crate) mod shape_list_namespaces;
61
62pub(crate) mod shape_list_operations;
63
64pub(crate) mod shape_list_services;
65
66pub(crate) mod shape_list_tags_for_resource;
67
68pub(crate) mod shape_register_instance;
69
70pub(crate) mod shape_tag_resource;
71
72pub(crate) mod shape_untag_resource;
73
74pub(crate) mod shape_update_http_namespace;
75
76pub(crate) mod shape_update_instance_custom_health_status;
77
78pub(crate) mod shape_update_private_dns_namespace;
79
80pub(crate) mod shape_update_public_dns_namespace;
81
82pub(crate) mod shape_update_service;
83
84pub(crate) mod shape_update_service_attributes;
85
86pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
87    if data.is_empty() {
88        b"{}"
89    } else {
90        data
91    }
92}
93
94pub(crate) mod shape_create_http_namespace_input;
95
96pub(crate) mod shape_create_private_dns_namespace_input;
97
98pub(crate) mod shape_create_public_dns_namespace_input;
99
100pub(crate) mod shape_create_service_input;
101
102pub(crate) mod shape_custom_health_not_found;
103
104pub(crate) mod shape_delete_namespace_input;
105
106pub(crate) mod shape_delete_service_attributes_input;
107
108pub(crate) mod shape_delete_service_input;
109
110pub(crate) mod shape_deregister_instance_input;
111
112pub(crate) mod shape_discover_instances_input;
113
114pub(crate) mod shape_discover_instances_revision_input;
115
116pub(crate) mod shape_duplicate_request;
117
118pub(crate) mod shape_get_instance_input;
119
120pub(crate) mod shape_get_instances_health_status_input;
121
122pub(crate) mod shape_get_namespace_input;
123
124pub(crate) mod shape_get_operation_input;
125
126pub(crate) mod shape_get_service_attributes_input;
127
128pub(crate) mod shape_get_service_input;
129
130pub(crate) mod shape_instance_not_found;
131
132pub(crate) mod shape_invalid_input;
133
134pub(crate) mod shape_list_instances_input;
135
136pub(crate) mod shape_list_namespaces_input;
137
138pub(crate) mod shape_list_operations_input;
139
140pub(crate) mod shape_list_services_input;
141
142pub(crate) mod shape_list_tags_for_resource_input;
143
144pub(crate) mod shape_namespace_already_exists;
145
146pub(crate) mod shape_namespace_not_found;
147
148pub(crate) mod shape_operation_not_found;
149
150pub(crate) mod shape_register_instance_input;
151
152pub(crate) mod shape_request_limit_exceeded;
153
154pub(crate) mod shape_resource_in_use;
155
156pub(crate) mod shape_resource_limit_exceeded;
157
158pub(crate) mod shape_resource_not_found_exception;
159
160pub(crate) mod shape_service_already_exists;
161
162pub(crate) mod shape_service_attributes_limit_exceeded_exception;
163
164pub(crate) mod shape_service_not_found;
165
166pub(crate) mod shape_tag_resource_input;
167
168pub(crate) mod shape_too_many_tags_exception;
169
170pub(crate) mod shape_untag_resource_input;
171
172pub(crate) mod shape_update_http_namespace_input;
173
174pub(crate) mod shape_update_instance_custom_health_status_input;
175
176pub(crate) mod shape_update_private_dns_namespace_input;
177
178pub(crate) mod shape_update_public_dns_namespace_input;
179
180pub(crate) mod shape_update_service_attributes_input;
181
182pub(crate) mod shape_update_service_input;
183
184pub(crate) mod shape_dns_config;
185
186pub(crate) mod shape_health_check_config;
187
188pub(crate) mod shape_health_check_custom_config;
189
190pub(crate) mod shape_http_instance_summary_list;
191
192pub(crate) mod shape_http_namespace_change;
193
194pub(crate) mod shape_instance;
195
196pub(crate) mod shape_instance_health_status_map;
197
198pub(crate) mod shape_instance_summary_list;
199
200pub(crate) mod shape_namespace;
201
202pub(crate) mod shape_namespace_filter;
203
204pub(crate) mod shape_namespace_summaries_list;
205
206pub(crate) mod shape_operation;
207
208pub(crate) mod shape_operation_filter;
209
210pub(crate) mod shape_operation_summary_list;
211
212pub(crate) mod shape_private_dns_namespace_change;
213
214pub(crate) mod shape_private_dns_namespace_properties;
215
216pub(crate) mod shape_public_dns_namespace_change;
217
218pub(crate) mod shape_public_dns_namespace_properties;
219
220pub(crate) mod shape_service;
221
222pub(crate) mod shape_service_attributes;
223
224pub(crate) mod shape_service_change;
225
226pub(crate) mod shape_service_filter;
227
228pub(crate) mod shape_service_summaries_list;
229
230pub(crate) mod shape_tag;
231
232pub(crate) mod shape_tag_list;
233
234pub(crate) mod shape_attributes;
235
236pub(crate) mod shape_dns_config_change;
237
238pub(crate) mod shape_dns_record;
239
240pub(crate) mod shape_http_instance_summary;
241
242pub(crate) mod shape_instance_summary;
243
244pub(crate) mod shape_namespace_properties;
245
246pub(crate) mod shape_namespace_summary;
247
248pub(crate) mod shape_operation_summary;
249
250pub(crate) mod shape_operation_targets_map;
251
252pub(crate) mod shape_private_dns_namespace_properties_change;
253
254pub(crate) mod shape_private_dns_properties_mutable;
255
256pub(crate) mod shape_public_dns_namespace_properties_change;
257
258pub(crate) mod shape_public_dns_properties_mutable;
259
260pub(crate) mod shape_service_attributes_map;
261
262pub(crate) mod shape_service_summary;
263
264pub(crate) mod shape_dns_properties;
265
266pub(crate) mod shape_dns_record_list;
267
268pub(crate) mod shape_http_properties;
269
270pub(crate) mod shape_private_dns_properties_mutable_change;
271
272pub(crate) mod shape_public_dns_properties_mutable_change;
273
274pub(crate) mod shape_soa;
275
276pub(crate) mod shape_soa_change;