70 70 | "EC2AccessDeniedException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::Ec2AccessDeniedException({
|
71 71 | #[allow(unused_mut)]
|
72 72 | let mut tmp = {
|
73 73 | #[allow(unused_mut)]
|
74 74 | let mut output = crate::types::error::builders::Ec2AccessDeniedExceptionBuilder::default();
|
75 75 | output = crate::protocol_serde::shape_ec2_access_denied_exception::de_ec2_access_denied_exception_json_err(_response_body, output)
|
76 76 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
77 77 | let output = output.meta(generic);
|
78 78 | output.build()
|
79 79 | };
|
80 - | if tmp.message.is_none() {
|
81 - | tmp.message = _error_message;
|
82 - | }
|
83 80 | tmp
|
84 81 | }),
|
85 82 | "EC2ThrottledException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::Ec2ThrottledException({
|
86 83 | #[allow(unused_mut)]
|
87 84 | let mut tmp = {
|
88 85 | #[allow(unused_mut)]
|
89 86 | let mut output = crate::types::error::builders::Ec2ThrottledExceptionBuilder::default();
|
90 87 | output = crate::protocol_serde::shape_ec2_throttled_exception::de_ec2_throttled_exception_json_err(_response_body, output)
|
91 88 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
92 89 | let output = output.meta(generic);
|
93 90 | output.build()
|
94 91 | };
|
95 - | if tmp.message.is_none() {
|
96 - | tmp.message = _error_message;
|
97 - | }
|
98 92 | tmp
|
99 93 | }),
|
100 94 | "EC2UnexpectedException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::Ec2UnexpectedException({
|
101 95 | #[allow(unused_mut)]
|
102 96 | let mut tmp = {
|
103 97 | #[allow(unused_mut)]
|
104 98 | let mut output = crate::types::error::builders::Ec2UnexpectedExceptionBuilder::default();
|
105 99 | output = crate::protocol_serde::shape_ec2_unexpected_exception::de_ec2_unexpected_exception_json_err(_response_body, output)
|
106 100 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
107 101 | let output = output.meta(generic);
|
108 102 | output.build()
|
109 103 | };
|
110 - | if tmp.message.is_none() {
|
111 - | tmp.message = _error_message;
|
112 - | }
|
113 104 | tmp
|
114 105 | }),
|
115 106 | "EFSIOException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::EfsioException({
|
116 107 | #[allow(unused_mut)]
|
117 108 | let mut tmp = {
|
118 109 | #[allow(unused_mut)]
|
119 110 | let mut output = crate::types::error::builders::EfsioExceptionBuilder::default();
|
120 111 | output = crate::protocol_serde::shape_efsio_exception::de_efsio_exception_json_err(_response_body, output)
|
121 112 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
122 113 | let output = output.meta(generic);
|
123 114 | output.build()
|
124 115 | };
|
125 - | if tmp.message.is_none() {
|
126 - | tmp.message = _error_message;
|
127 - | }
|
128 116 | tmp
|
129 117 | }),
|
130 118 | "EFSMountConnectivityException" => {
|
131 119 | crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::EfsMountConnectivityException({
|
132 120 | #[allow(unused_mut)]
|
133 121 | let mut tmp = {
|
134 122 | #[allow(unused_mut)]
|
135 123 | let mut output = crate::types::error::builders::EfsMountConnectivityExceptionBuilder::default();
|
136 124 | output = crate::protocol_serde::shape_efs_mount_connectivity_exception::de_efs_mount_connectivity_exception_json_err(
|
137 125 | _response_body,
|
138 126 | output,
|
139 127 | )
|
140 128 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
141 129 | let output = output.meta(generic);
|
142 130 | output.build()
|
143 131 | };
|
144 - | if tmp.message.is_none() {
|
145 - | tmp.message = _error_message;
|
146 - | }
|
147 132 | tmp
|
148 133 | })
|
149 134 | }
|
150 135 | "EFSMountFailureException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::EfsMountFailureException({
|
151 136 | #[allow(unused_mut)]
|
152 137 | let mut tmp = {
|
153 138 | #[allow(unused_mut)]
|
154 139 | let mut output = crate::types::error::builders::EfsMountFailureExceptionBuilder::default();
|
155 140 | output = crate::protocol_serde::shape_efs_mount_failure_exception::de_efs_mount_failure_exception_json_err(_response_body, output)
|
156 141 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
157 142 | let output = output.meta(generic);
|
158 143 | output.build()
|
159 144 | };
|
160 - | if tmp.message.is_none() {
|
161 - | tmp.message = _error_message;
|
162 - | }
|
163 145 | tmp
|
164 146 | }),
|
165 147 | "EFSMountTimeoutException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::EfsMountTimeoutException({
|
166 148 | #[allow(unused_mut)]
|
167 149 | let mut tmp = {
|
168 150 | #[allow(unused_mut)]
|
169 151 | let mut output = crate::types::error::builders::EfsMountTimeoutExceptionBuilder::default();
|
170 152 | output = crate::protocol_serde::shape_efs_mount_timeout_exception::de_efs_mount_timeout_exception_json_err(_response_body, output)
|
171 153 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
172 154 | let output = output.meta(generic);
|
173 155 | output.build()
|
174 156 | };
|
175 - | if tmp.message.is_none() {
|
176 - | tmp.message = _error_message;
|
177 - | }
|
178 157 | tmp
|
179 158 | }),
|
180 159 | "ENILimitReachedException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::EniLimitReachedException({
|
181 160 | #[allow(unused_mut)]
|
182 161 | let mut tmp = {
|
183 162 | #[allow(unused_mut)]
|
184 163 | let mut output = crate::types::error::builders::EniLimitReachedExceptionBuilder::default();
|
185 164 | output = crate::protocol_serde::shape_eni_limit_reached_exception::de_eni_limit_reached_exception_json_err(_response_body, output)
|
186 165 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
187 166 | let output = output.meta(generic);
|
188 167 | output.build()
|
189 168 | };
|
190 - | if tmp.message.is_none() {
|
191 - | tmp.message = _error_message;
|
192 - | }
|
193 169 | tmp
|
194 170 | }),
|
195 171 | "InvalidParameterValueException" => {
|
196 172 | crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::InvalidParameterValueException({
|
197 173 | #[allow(unused_mut)]
|
198 174 | let mut tmp = {
|
199 175 | #[allow(unused_mut)]
|
200 176 | let mut output = crate::types::error::builders::InvalidParameterValueExceptionBuilder::default();
|
201 177 | output = crate::protocol_serde::shape_invalid_parameter_value_exception::de_invalid_parameter_value_exception_json_err(
|
202 178 | _response_body,
|
203 179 | output,
|
204 180 | )
|
205 181 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
206 182 | let output = output.meta(generic);
|
207 183 | output.build()
|
208 184 | };
|
209 - | if tmp.message.is_none() {
|
210 - | tmp.message = _error_message;
|
211 - | }
|
212 185 | tmp
|
213 186 | })
|
214 187 | }
|
215 188 | "InvalidRequestContentException" => {
|
216 189 | crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::InvalidRequestContentException({
|
217 190 | #[allow(unused_mut)]
|
218 191 | let mut tmp = {
|
219 192 | #[allow(unused_mut)]
|
220 193 | let mut output = crate::types::error::builders::InvalidRequestContentExceptionBuilder::default();
|
221 194 | output = crate::protocol_serde::shape_invalid_request_content_exception::de_invalid_request_content_exception_json_err(
|
222 195 | _response_body,
|
223 196 | output,
|
224 197 | )
|
225 198 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
226 199 | let output = output.meta(generic);
|
227 200 | output.build()
|
228 201 | };
|
229 - | if tmp.message.is_none() {
|
230 - | tmp.message = _error_message;
|
231 - | }
|
232 202 | tmp
|
233 203 | })
|
234 204 | }
|
235 205 | "InvalidRuntimeException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::InvalidRuntimeException({
|
236 206 | #[allow(unused_mut)]
|
237 207 | let mut tmp = {
|
238 208 | #[allow(unused_mut)]
|
239 209 | let mut output = crate::types::error::builders::InvalidRuntimeExceptionBuilder::default();
|
240 210 | output = crate::protocol_serde::shape_invalid_runtime_exception::de_invalid_runtime_exception_json_err(_response_body, output)
|
241 211 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
242 212 | let output = output.meta(generic);
|
243 213 | output.build()
|
244 214 | };
|
245 - | if tmp.message.is_none() {
|
246 - | tmp.message = _error_message;
|
247 - | }
|
248 215 | tmp
|
249 216 | }),
|
250 217 | "InvalidSecurityGroupIDException" => {
|
251 218 | crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::InvalidSecurityGroupIdException({
|
252 219 | #[allow(unused_mut)]
|
253 220 | let mut tmp = {
|
254 221 | #[allow(unused_mut)]
|
255 222 | let mut output = crate::types::error::builders::InvalidSecurityGroupIdExceptionBuilder::default();
|
256 223 | output = crate::protocol_serde::shape_invalid_security_group_id_exception::de_invalid_security_group_id_exception_json_err(
|
257 224 | _response_body,
|
258 225 | output,
|
259 226 | )
|
260 227 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
261 228 | let output = output.meta(generic);
|
262 229 | output.build()
|
263 230 | };
|
264 - | if tmp.message.is_none() {
|
265 - | tmp.message = _error_message;
|
266 - | }
|
267 231 | tmp
|
268 232 | })
|
269 233 | }
|
270 234 | "InvalidSubnetIDException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::InvalidSubnetIdException({
|
271 235 | #[allow(unused_mut)]
|
272 236 | let mut tmp = {
|
273 237 | #[allow(unused_mut)]
|
274 238 | let mut output = crate::types::error::builders::InvalidSubnetIdExceptionBuilder::default();
|
275 239 | output = crate::protocol_serde::shape_invalid_subnet_id_exception::de_invalid_subnet_id_exception_json_err(_response_body, output)
|
276 240 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
277 241 | let output = output.meta(generic);
|
278 242 | output.build()
|
279 243 | };
|
280 - | if tmp.message.is_none() {
|
281 - | tmp.message = _error_message;
|
282 - | }
|
283 244 | tmp
|
284 245 | }),
|
285 246 | "InvalidZipFileException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::InvalidZipFileException({
|
286 247 | #[allow(unused_mut)]
|
287 248 | let mut tmp = {
|
288 249 | #[allow(unused_mut)]
|
289 250 | let mut output = crate::types::error::builders::InvalidZipFileExceptionBuilder::default();
|
290 251 | output = crate::protocol_serde::shape_invalid_zip_file_exception::de_invalid_zip_file_exception_json_err(_response_body, output)
|
291 252 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
292 253 | let output = output.meta(generic);
|
293 254 | output.build()
|
294 255 | };
|
295 - | if tmp.message.is_none() {
|
296 - | tmp.message = _error_message;
|
297 - | }
|
298 256 | tmp
|
299 257 | }),
|
300 258 | "KMSAccessDeniedException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::KmsAccessDeniedException({
|
301 259 | #[allow(unused_mut)]
|
302 260 | let mut tmp = {
|
303 261 | #[allow(unused_mut)]
|
304 262 | let mut output = crate::types::error::builders::KmsAccessDeniedExceptionBuilder::default();
|
305 263 | output = crate::protocol_serde::shape_kms_access_denied_exception::de_kms_access_denied_exception_json_err(_response_body, output)
|
306 264 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
307 265 | let output = output.meta(generic);
|
308 266 | output.build()
|
309 267 | };
|
310 - | if tmp.message.is_none() {
|
311 - | tmp.message = _error_message;
|
312 - | }
|
313 268 | tmp
|
314 269 | }),
|
315 270 | "KMSDisabledException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::KmsDisabledException({
|
316 271 | #[allow(unused_mut)]
|
317 272 | let mut tmp = {
|
318 273 | #[allow(unused_mut)]
|
319 274 | let mut output = crate::types::error::builders::KmsDisabledExceptionBuilder::default();
|
320 275 | output = crate::protocol_serde::shape_kms_disabled_exception::de_kms_disabled_exception_json_err(_response_body, output)
|
321 276 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
322 277 | let output = output.meta(generic);
|
323 278 | output.build()
|
324 279 | };
|
325 - | if tmp.message.is_none() {
|
326 - | tmp.message = _error_message;
|
327 - | }
|
328 280 | tmp
|
329 281 | }),
|
330 282 | "KMSInvalidStateException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::KmsInvalidStateException({
|
331 283 | #[allow(unused_mut)]
|
332 284 | let mut tmp = {
|
333 285 | #[allow(unused_mut)]
|
334 286 | let mut output = crate::types::error::builders::KmsInvalidStateExceptionBuilder::default();
|
335 287 | output = crate::protocol_serde::shape_kms_invalid_state_exception::de_kms_invalid_state_exception_json_err(_response_body, output)
|
336 288 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
337 289 | let output = output.meta(generic);
|
338 290 | output.build()
|
339 291 | };
|
340 - | if tmp.message.is_none() {
|
341 - | tmp.message = _error_message;
|
342 - | }
|
343 292 | tmp
|
344 293 | }),
|
345 294 | "KMSNotFoundException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::KmsNotFoundException({
|
346 295 | #[allow(unused_mut)]
|
347 296 | let mut tmp = {
|
348 297 | #[allow(unused_mut)]
|
349 298 | let mut output = crate::types::error::builders::KmsNotFoundExceptionBuilder::default();
|
350 299 | output = crate::protocol_serde::shape_kms_not_found_exception::de_kms_not_found_exception_json_err(_response_body, output)
|
351 300 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
352 301 | let output = output.meta(generic);
|
353 302 | output.build()
|
354 303 | };
|
355 - | if tmp.message.is_none() {
|
356 - | tmp.message = _error_message;
|
357 - | }
|
358 304 | tmp
|
359 305 | }),
|
360 306 | "RecursiveInvocationException" => {
|
361 307 | crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::RecursiveInvocationException({
|
362 308 | #[allow(unused_mut)]
|
363 309 | let mut tmp = {
|
364 310 | #[allow(unused_mut)]
|
365 311 | let mut output = crate::types::error::builders::RecursiveInvocationExceptionBuilder::default();
|
366 312 | output = crate::protocol_serde::shape_recursive_invocation_exception::de_recursive_invocation_exception_json_err(
|
367 313 | _response_body,
|
368 314 | output,
|
369 315 | )
|
370 316 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
371 317 | let output = output.meta(generic);
|
372 318 | output.build()
|
373 319 | };
|
374 - | if tmp.message.is_none() {
|
375 - | tmp.message = _error_message;
|
376 - | }
|
377 320 | tmp
|
378 321 | })
|
379 322 | }
|
380 323 | "RequestTooLargeException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::RequestTooLargeException({
|
381 324 | #[allow(unused_mut)]
|
382 325 | let mut tmp = {
|
383 326 | #[allow(unused_mut)]
|
384 327 | let mut output = crate::types::error::builders::RequestTooLargeExceptionBuilder::default();
|
385 328 | output = crate::protocol_serde::shape_request_too_large_exception::de_request_too_large_exception_json_err(_response_body, output)
|
386 329 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
387 330 | let output = output.meta(generic);
|
388 331 | output.build()
|
389 332 | };
|
390 - | if tmp.message.is_none() {
|
391 - | tmp.message = _error_message;
|
392 - | }
|
393 333 | tmp
|
394 334 | }),
|
395 335 | "ResourceConflictException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::ResourceConflictException({
|
396 336 | #[allow(unused_mut)]
|
397 337 | let mut tmp = {
|
398 338 | #[allow(unused_mut)]
|
399 339 | let mut output = crate::types::error::builders::ResourceConflictExceptionBuilder::default();
|
400 340 | output = crate::protocol_serde::shape_resource_conflict_exception::de_resource_conflict_exception_json_err(_response_body, output)
|
401 341 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
402 342 | let output = output.meta(generic);
|
403 343 | output.build()
|
404 344 | };
|
405 - | if tmp.message.is_none() {
|
406 - | tmp.message = _error_message;
|
407 - | }
|
408 345 | tmp
|
409 346 | }),
|
410 347 | "ResourceNotFoundException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::ResourceNotFoundException({
|
411 348 | #[allow(unused_mut)]
|
412 349 | let mut tmp = {
|
413 350 | #[allow(unused_mut)]
|
414 351 | let mut output = crate::types::error::builders::ResourceNotFoundExceptionBuilder::default();
|
415 352 | output = crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output)
|
416 353 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
417 354 | let output = output.meta(generic);
|
418 355 | output.build()
|
419 356 | };
|
420 - | if tmp.message.is_none() {
|
421 - | tmp.message = _error_message;
|
422 - | }
|
423 357 | tmp
|
424 358 | }),
|
425 359 | "ResourceNotReadyException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::ResourceNotReadyException({
|
426 360 | #[allow(unused_mut)]
|
427 361 | let mut tmp = {
|
428 362 | #[allow(unused_mut)]
|
429 363 | let mut output = crate::types::error::builders::ResourceNotReadyExceptionBuilder::default();
|
430 364 | output = crate::protocol_serde::shape_resource_not_ready_exception::de_resource_not_ready_exception_json_err(_response_body, output)
|
431 365 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
432 366 | let output = output.meta(generic);
|
433 367 | output.build()
|
434 368 | };
|
435 - | if tmp.message.is_none() {
|
436 - | tmp.message = _error_message;
|
437 - | }
|
438 369 | tmp
|
439 370 | }),
|
440 371 | "ServiceException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::ServiceException({
|
441 372 | #[allow(unused_mut)]
|
442 373 | let mut tmp = {
|
443 374 | #[allow(unused_mut)]
|
444 375 | let mut output = crate::types::error::builders::ServiceExceptionBuilder::default();
|
445 376 | output = crate::protocol_serde::shape_service_exception::de_service_exception_json_err(_response_body, output)
|
446 377 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
447 378 | let output = output.meta(generic);
|
448 379 | output.build()
|
449 380 | };
|
450 - | if tmp.message.is_none() {
|
451 - | tmp.message = _error_message;
|
452 - | }
|
453 381 | tmp
|
454 382 | }),
|
455 383 | "SnapStartException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::SnapStartException({
|
456 384 | #[allow(unused_mut)]
|
457 385 | let mut tmp = {
|
458 386 | #[allow(unused_mut)]
|
459 387 | let mut output = crate::types::error::builders::SnapStartExceptionBuilder::default();
|
460 388 | output = crate::protocol_serde::shape_snap_start_exception::de_snap_start_exception_json_err(_response_body, output)
|
461 389 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
462 390 | let output = output.meta(generic);
|
463 391 | output.build()
|
464 392 | };
|
465 - | if tmp.message.is_none() {
|
466 - | tmp.message = _error_message;
|
467 - | }
|
468 393 | tmp
|
469 394 | }),
|
470 395 | "SnapStartNotReadyException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::SnapStartNotReadyException({
|
471 396 | #[allow(unused_mut)]
|
472 397 | let mut tmp = {
|
473 398 | #[allow(unused_mut)]
|
474 399 | let mut output = crate::types::error::builders::SnapStartNotReadyExceptionBuilder::default();
|
475 400 | output =
|
476 401 | crate::protocol_serde::shape_snap_start_not_ready_exception::de_snap_start_not_ready_exception_json_err(_response_body, output)
|
477 402 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
478 403 | let output = output.meta(generic);
|
479 404 | output.build()
|
480 405 | };
|
481 - | if tmp.message.is_none() {
|
482 - | tmp.message = _error_message;
|
483 - | }
|
484 406 | tmp
|
485 407 | }),
|
486 408 | "SnapStartTimeoutException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::SnapStartTimeoutException({
|
487 409 | #[allow(unused_mut)]
|
488 410 | let mut tmp = {
|
489 411 | #[allow(unused_mut)]
|
490 412 | let mut output = crate::types::error::builders::SnapStartTimeoutExceptionBuilder::default();
|
491 413 | output = crate::protocol_serde::shape_snap_start_timeout_exception::de_snap_start_timeout_exception_json_err(_response_body, output)
|
492 414 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
493 415 | let output = output.meta(generic);
|
494 416 | output.build()
|
495 417 | };
|
496 - | if tmp.message.is_none() {
|
497 - | tmp.message = _error_message;
|
498 - | }
|
499 418 | tmp
|
500 419 | }),
|
501 420 | "SubnetIPAddressLimitReachedException" => {
|
502 421 | crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::SubnetIpAddressLimitReachedException({
|
503 422 | #[allow(unused_mut)]
|
504 423 | let mut tmp = {
|
505 424 | #[allow(unused_mut)]
|
506 425 | let mut output = crate::types::error::builders::SubnetIpAddressLimitReachedExceptionBuilder::default();
|
507 426 | output = crate::protocol_serde::shape_subnet_ip_address_limit_reached_exception::de_subnet_ip_address_limit_reached_exception_json_err(_response_body, output).map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
508 427 | let output = output.meta(generic);
|
509 428 | output.build()
|
510 429 | };
|
511 - | if tmp.message.is_none() {
|
512 - | tmp.message = _error_message;
|
513 - | }
|
514 430 | tmp
|
515 431 | })
|
516 432 | }
|
517 433 | "TooManyRequestsException" => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::TooManyRequestsException({
|
518 434 | #[allow(unused_mut)]
|
519 435 | let mut tmp = {
|
520 436 | #[allow(unused_mut)]
|
521 437 | let mut output = crate::types::error::builders::TooManyRequestsExceptionBuilder::default();
|
522 438 | output = crate::protocol_serde::shape_too_many_requests_exception::de_too_many_requests_exception_json_err(_response_body, output)
|
523 439 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
524 440 | output = output.set_retry_after_seconds(
|
525 441 | crate::protocol_serde::shape_too_many_requests_exception::de_retry_after_seconds_header(_response_headers).map_err(|_| {
|
526 442 | crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled(
|
527 443 | "Failed to parse retryAfterSeconds from header `Retry-After",
|
528 444 | )
|
529 445 | })?,
|
530 446 | );
|
531 447 | let output = output.meta(generic);
|
532 448 | output.build()
|
533 449 | };
|
534 - | if tmp.message.is_none() {
|
535 - | tmp.message = _error_message;
|
536 - | }
|
537 450 | tmp
|
538 451 | }),
|
539 452 | "UnsupportedMediaTypeException" => {
|
540 453 | crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::UnsupportedMediaTypeException({
|
541 454 | #[allow(unused_mut)]
|
542 455 | let mut tmp = {
|
543 456 | #[allow(unused_mut)]
|
544 457 | let mut output = crate::types::error::builders::UnsupportedMediaTypeExceptionBuilder::default();
|
545 458 | output = crate::protocol_serde::shape_unsupported_media_type_exception::de_unsupported_media_type_exception_json_err(
|
546 459 | _response_body,
|
547 460 | output,
|
548 461 | )
|
549 462 | .map_err(crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::unhandled)?;
|
550 463 | let output = output.meta(generic);
|
551 464 | output.build()
|
552 465 | };
|
553 - | if tmp.message.is_none() {
|
554 - | tmp.message = _error_message;
|
555 - | }
|
556 466 | tmp
|
557 467 | })
|
558 468 | }
|
559 469 | _ => crate::operation::invoke_with_response_stream::InvokeWithResponseStreamError::generic(generic),
|
560 470 | })
|
561 471 | }
|
562 472 |
|
563 473 | pub fn ser_invoke_with_response_stream_headers(
|
564 474 | input: &crate::operation::invoke_with_response_stream::InvokeWithResponseStreamInput,
|
565 475 | mut builder: ::http::request::Builder,
|