aws_sdk_databrew/
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_batch_delete_recipe_version;
27
28pub(crate) mod shape_create_dataset;
29
30pub(crate) mod shape_create_profile_job;
31
32pub(crate) mod shape_create_project;
33
34pub(crate) mod shape_create_recipe;
35
36pub(crate) mod shape_create_recipe_job;
37
38pub(crate) mod shape_create_ruleset;
39
40pub(crate) mod shape_create_schedule;
41
42pub(crate) mod shape_delete_dataset;
43
44pub(crate) mod shape_delete_job;
45
46pub(crate) mod shape_delete_project;
47
48pub(crate) mod shape_delete_recipe_version;
49
50pub(crate) mod shape_delete_ruleset;
51
52pub(crate) mod shape_delete_schedule;
53
54pub(crate) mod shape_describe_dataset;
55
56pub(crate) mod shape_describe_job;
57
58pub(crate) mod shape_describe_job_run;
59
60pub(crate) mod shape_describe_project;
61
62pub(crate) mod shape_describe_recipe;
63
64pub(crate) mod shape_describe_ruleset;
65
66pub(crate) mod shape_describe_schedule;
67
68pub(crate) mod shape_list_datasets;
69
70pub(crate) mod shape_list_job_runs;
71
72pub(crate) mod shape_list_jobs;
73
74pub(crate) mod shape_list_projects;
75
76pub(crate) mod shape_list_recipe_versions;
77
78pub(crate) mod shape_list_recipes;
79
80pub(crate) mod shape_list_rulesets;
81
82pub(crate) mod shape_list_schedules;
83
84pub(crate) mod shape_list_tags_for_resource;
85
86pub(crate) mod shape_publish_recipe;
87
88pub(crate) mod shape_send_project_session_action;
89
90pub(crate) mod shape_start_job_run;
91
92pub(crate) mod shape_start_project_session;
93
94pub(crate) mod shape_stop_job_run;
95
96pub(crate) mod shape_tag_resource;
97
98pub(crate) mod shape_untag_resource;
99
100pub(crate) mod shape_update_dataset;
101
102pub(crate) mod shape_update_profile_job;
103
104pub(crate) mod shape_update_project;
105
106pub(crate) mod shape_update_recipe;
107
108pub(crate) mod shape_update_recipe_job;
109
110pub(crate) mod shape_update_ruleset;
111
112pub(crate) mod shape_update_schedule;
113
114pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
115 if data.is_empty() {
116 b"{}"
117 } else {
118 data
119 }
120}
121
122pub(crate) mod shape_access_denied_exception;
123
124pub(crate) mod shape_batch_delete_recipe_version_input;
125
126pub(crate) mod shape_conflict_exception;
127
128pub(crate) mod shape_create_dataset_input;
129
130pub(crate) mod shape_create_profile_job_input;
131
132pub(crate) mod shape_create_project_input;
133
134pub(crate) mod shape_create_recipe_input;
135
136pub(crate) mod shape_create_recipe_job_input;
137
138pub(crate) mod shape_create_ruleset_input;
139
140pub(crate) mod shape_create_schedule_input;
141
142pub(crate) mod shape_internal_server_exception;
143
144pub(crate) mod shape_publish_recipe_input;
145
146pub(crate) mod shape_resource_not_found_exception;
147
148pub(crate) mod shape_send_project_session_action_input;
149
150pub(crate) mod shape_service_quota_exceeded_exception;
151
152pub(crate) mod shape_start_project_session_input;
153
154pub(crate) mod shape_tag_resource_input;
155
156pub(crate) mod shape_update_dataset_input;
157
158pub(crate) mod shape_update_profile_job_input;
159
160pub(crate) mod shape_update_project_input;
161
162pub(crate) mod shape_update_recipe_input;
163
164pub(crate) mod shape_update_recipe_job_input;
165
166pub(crate) mod shape_update_ruleset_input;
167
168pub(crate) mod shape_update_schedule_input;
169
170pub(crate) mod shape_validation_exception;
171
172pub(crate) mod shape_data_catalog_output;
173
174pub(crate) mod shape_data_catalog_output_list;
175
176pub(crate) mod shape_database_output;
177
178pub(crate) mod shape_database_output_list;
179
180pub(crate) mod shape_dataset_list;
181
182pub(crate) mod shape_format_options;
183
184pub(crate) mod shape_input;
185
186pub(crate) mod shape_job_list;
187
188pub(crate) mod shape_job_name_list;
189
190pub(crate) mod shape_job_run_list;
191
192pub(crate) mod shape_job_sample;
193
194pub(crate) mod shape_output;
195
196pub(crate) mod shape_output_list;
197
198pub(crate) mod shape_path_options;
199
200pub(crate) mod shape_profile_configuration;
201
202pub(crate) mod shape_project_list;
203
204pub(crate) mod shape_recipe_error_list;
205
206pub(crate) mod shape_recipe_list;
207
208pub(crate) mod shape_recipe_reference;
209
210pub(crate) mod shape_recipe_step;
211
212pub(crate) mod shape_recipe_step_list;
213
214pub(crate) mod shape_rule;
215
216pub(crate) mod shape_rule_list;
217
218pub(crate) mod shape_ruleset_item_list;
219
220pub(crate) mod shape_s3_location;
221
222pub(crate) mod shape_sample;
223
224pub(crate) mod shape_schedule_list;
225
226pub(crate) mod shape_tag_map;
227
228pub(crate) mod shape_validation_configuration;
229
230pub(crate) mod shape_validation_configuration_list;
231
232pub(crate) mod shape_view_frame;
233
234pub(crate) mod shape_column_selector;
235
236pub(crate) mod shape_column_selector_list;
237
238pub(crate) mod shape_column_statistics_configuration;
239
240pub(crate) mod shape_column_statistics_configuration_list;
241
242pub(crate) mod shape_condition_expression;
243
244pub(crate) mod shape_csv_options;
245
246pub(crate) mod shape_data_catalog_input_definition;
247
248pub(crate) mod shape_database_input_definition;
249
250pub(crate) mod shape_database_table_output_options;
251
252pub(crate) mod shape_dataset;
253
254pub(crate) mod shape_dataset_parameter;
255
256pub(crate) mod shape_entity_detector_configuration;
257
258pub(crate) mod shape_excel_options;
259
260pub(crate) mod shape_files_limit;
261
262pub(crate) mod shape_filter_expression;
263
264pub(crate) mod shape_job;
265
266pub(crate) mod shape_job_run;
267
268pub(crate) mod shape_json_options;
269
270pub(crate) mod shape_metadata;
271
272pub(crate) mod shape_output_format_options;
273
274pub(crate) mod shape_path_parameters_map;
275
276pub(crate) mod shape_project;
277
278pub(crate) mod shape_recipe;
279
280pub(crate) mod shape_recipe_action;
281
282pub(crate) mod shape_recipe_version_error_detail;
283
284pub(crate) mod shape_ruleset_item;
285
286pub(crate) mod shape_s3_table_output_options;
287
288pub(crate) mod shape_schedule;
289
290pub(crate) mod shape_statistics_configuration;
291
292pub(crate) mod shape_threshold;
293
294pub(crate) mod shape_allowed_statistic_list;
295
296pub(crate) mod shape_allowed_statistics;
297
298pub(crate) mod shape_column_name_list;
299
300pub(crate) mod shape_condition_expression_list;
301
302pub(crate) mod shape_csv_output_options;
303
304pub(crate) mod shape_datetime_options;
305
306pub(crate) mod shape_entity_type_list;
307
308pub(crate) mod shape_sheet_index_list;
309
310pub(crate) mod shape_sheet_name_list;
311
312pub(crate) mod shape_statistic_list;
313
314pub(crate) mod shape_statistic_override;
315
316pub(crate) mod shape_statistic_override_list;
317
318pub(crate) mod shape_values_map;
319
320pub(crate) mod shape_parameter_map;