aws_sdk_mediapackagev2/
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_harvest_job;
27
28pub(crate) mod shape_create_channel;
29
30pub(crate) mod shape_create_channel_group;
31
32pub(crate) mod shape_create_harvest_job;
33
34pub(crate) mod shape_create_origin_endpoint;
35
36pub(crate) mod shape_delete_channel;
37
38pub(crate) mod shape_delete_channel_group;
39
40pub(crate) mod shape_delete_channel_policy;
41
42pub(crate) mod shape_delete_origin_endpoint;
43
44pub(crate) mod shape_delete_origin_endpoint_policy;
45
46pub(crate) mod shape_get_channel;
47
48pub(crate) mod shape_get_channel_group;
49
50pub(crate) mod shape_get_channel_policy;
51
52pub(crate) mod shape_get_harvest_job;
53
54pub(crate) mod shape_get_origin_endpoint;
55
56pub(crate) mod shape_get_origin_endpoint_policy;
57
58pub(crate) mod shape_list_channel_groups;
59
60pub(crate) mod shape_list_channels;
61
62pub(crate) mod shape_list_harvest_jobs;
63
64pub(crate) mod shape_list_origin_endpoints;
65
66pub(crate) mod shape_list_tags_for_resource;
67
68pub(crate) mod shape_put_channel_policy;
69
70pub(crate) mod shape_put_origin_endpoint_policy;
71
72pub(crate) mod shape_reset_channel_state;
73
74pub(crate) mod shape_reset_origin_endpoint_state;
75
76pub(crate) mod shape_tag_resource;
77
78pub(crate) mod shape_untag_resource;
79
80pub(crate) mod shape_update_channel;
81
82pub(crate) mod shape_update_channel_group;
83
84pub(crate) mod shape_update_origin_endpoint;
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_access_denied_exception;
95
96pub(crate) mod shape_conflict_exception;
97
98pub(crate) mod shape_create_channel_group_input;
99
100pub(crate) mod shape_create_channel_input;
101
102pub(crate) mod shape_create_harvest_job_input;
103
104pub(crate) mod shape_create_origin_endpoint_input;
105
106pub(crate) mod shape_internal_server_exception;
107
108pub(crate) mod shape_put_channel_policy_input;
109
110pub(crate) mod shape_put_origin_endpoint_policy_input;
111
112pub(crate) mod shape_resource_not_found_exception;
113
114pub(crate) mod shape_service_quota_exceeded_exception;
115
116pub(crate) mod shape_tag_resource_input;
117
118pub(crate) mod shape_throttling_exception;
119
120pub(crate) mod shape_update_channel_group_input;
121
122pub(crate) mod shape_update_channel_input;
123
124pub(crate) mod shape_update_origin_endpoint_input;
125
126pub(crate) mod shape_validation_exception;
127
128pub(crate) mod shape_cdn_auth_configuration;
129
130pub(crate) mod shape_channel_groups_list;
131
132pub(crate) mod shape_channel_list;
133
134pub(crate) mod shape_create_dash_manifest_configuration;
135
136pub(crate) mod shape_create_hls_manifest_configuration;
137
138pub(crate) mod shape_create_low_latency_hls_manifest_configuration;
139
140pub(crate) mod shape_create_mss_manifest_configuration;
141
142pub(crate) mod shape_destination;
143
144pub(crate) mod shape_force_endpoint_error_configuration;
145
146pub(crate) mod shape_get_dash_manifests;
147
148pub(crate) mod shape_get_hls_manifests;
149
150pub(crate) mod shape_get_low_latency_hls_manifests;
151
152pub(crate) mod shape_get_mss_manifests;
153
154pub(crate) mod shape_harvest_jobs_list;
155
156pub(crate) mod shape_harvested_manifests;
157
158pub(crate) mod shape_harvester_schedule_configuration;
159
160pub(crate) mod shape_ingest_endpoint_list;
161
162pub(crate) mod shape_input_switch_configuration;
163
164pub(crate) mod shape_origin_endpoints_list;
165
166pub(crate) mod shape_output_header_configuration;
167
168pub(crate) mod shape_segment;
169
170pub(crate) mod shape_tag_map;
171
172pub(crate) mod shape_cdn_identifier_secret_arns;
173
174pub(crate) mod shape_channel_group_list_configuration;
175
176pub(crate) mod shape_channel_list_configuration;
177
178pub(crate) mod shape_dash_base_url;
179
180pub(crate) mod shape_dash_dvb_settings;
181
182pub(crate) mod shape_dash_program_information;
183
184pub(crate) mod shape_dash_subtitle_configuration;
185
186pub(crate) mod shape_dash_utc_timing;
187
188pub(crate) mod shape_encryption;
189
190pub(crate) mod shape_endpoint_error_conditions;
191
192pub(crate) mod shape_filter_configuration;
193
194pub(crate) mod shape_get_dash_manifest_configuration;
195
196pub(crate) mod shape_get_hls_manifest_configuration;
197
198pub(crate) mod shape_get_low_latency_hls_manifest_configuration;
199
200pub(crate) mod shape_get_mss_manifest_configuration;
201
202pub(crate) mod shape_harvest_job;
203
204pub(crate) mod shape_harvested_dash_manifest;
205
206pub(crate) mod shape_harvested_dash_manifests_list;
207
208pub(crate) mod shape_harvested_hls_manifest;
209
210pub(crate) mod shape_harvested_hls_manifests_list;
211
212pub(crate) mod shape_harvested_low_latency_hls_manifest;
213
214pub(crate) mod shape_harvested_low_latency_hls_manifests_list;
215
216pub(crate) mod shape_ingest_endpoint;
217
218pub(crate) mod shape_origin_endpoint_list_configuration;
219
220pub(crate) mod shape_s3_destination_config;
221
222pub(crate) mod shape_scte;
223
224pub(crate) mod shape_scte_dash;
225
226pub(crate) mod shape_scte_hls;
227
228pub(crate) mod shape_start_tag;
229
230pub(crate) mod shape_dash_base_urls;
231
232pub(crate) mod shape_dash_dvb_font_download;
233
234pub(crate) mod shape_dash_dvb_metrics_reporting;
235
236pub(crate) mod shape_dash_period_triggers;
237
238pub(crate) mod shape_dash_profiles;
239
240pub(crate) mod shape_dash_ttml_configuration;
241
242pub(crate) mod shape_encryption_method;
243
244pub(crate) mod shape_list_dash_manifests;
245
246pub(crate) mod shape_list_hls_manifests;
247
248pub(crate) mod shape_list_low_latency_hls_manifests;
249
250pub(crate) mod shape_list_mss_manifests;
251
252pub(crate) mod shape_scte_filter_list;
253
254pub(crate) mod shape_speke_key_provider;
255
256pub(crate) mod shape_dash_dvb_error_metrics;
257
258pub(crate) mod shape_drm_systems;
259
260pub(crate) mod shape_encryption_contract_configuration;
261
262pub(crate) mod shape_list_dash_manifest_configuration;
263
264pub(crate) mod shape_list_hls_manifest_configuration;
265
266pub(crate) mod shape_list_low_latency_hls_manifest_configuration;
267
268pub(crate) mod shape_list_mss_manifest_configuration;