1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AcceleratorNotDisabledException(crate::types::error::AcceleratorNotDisabledException),
8 AcceleratorNotFoundException(crate::types::error::AcceleratorNotFoundException),
10 AccessDeniedException(crate::types::error::AccessDeniedException),
12 AssociatedEndpointGroupFoundException(crate::types::error::AssociatedEndpointGroupFoundException),
14 AssociatedListenerFoundException(crate::types::error::AssociatedListenerFoundException),
16 AttachmentNotFoundException(crate::types::error::AttachmentNotFoundException),
18 ByoipCidrNotFoundException(crate::types::error::ByoipCidrNotFoundException),
20 ConflictException(crate::types::error::ConflictException),
22 EndpointAlreadyExistsException(crate::types::error::EndpointAlreadyExistsException),
24 EndpointGroupAlreadyExistsException(crate::types::error::EndpointGroupAlreadyExistsException),
26 EndpointGroupNotFoundException(crate::types::error::EndpointGroupNotFoundException),
28 EndpointNotFoundException(crate::types::error::EndpointNotFoundException),
30 IncorrectCidrStateException(crate::types::error::IncorrectCidrStateException),
32 InternalServiceErrorException(crate::types::error::InternalServiceErrorException),
34 InvalidArgumentException(crate::types::error::InvalidArgumentException),
36 InvalidNextTokenException(crate::types::error::InvalidNextTokenException),
38 InvalidPortRangeException(crate::types::error::InvalidPortRangeException),
40 LimitExceededException(crate::types::error::LimitExceededException),
42 ListenerNotFoundException(crate::types::error::ListenerNotFoundException),
44 TransactionInProgressException(crate::types::error::TransactionInProgressException),
46 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
48 variable wildcard pattern and check `.code()`:
49 \
50 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
51 \
52 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
53 Unhandled(crate::error::sealed_unhandled::Unhandled),
54}
55impl ::std::fmt::Display for Error {
56 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
57 match self {
58 Error::AcceleratorNotDisabledException(inner) => inner.fmt(f),
59 Error::AcceleratorNotFoundException(inner) => inner.fmt(f),
60 Error::AccessDeniedException(inner) => inner.fmt(f),
61 Error::AssociatedEndpointGroupFoundException(inner) => inner.fmt(f),
62 Error::AssociatedListenerFoundException(inner) => inner.fmt(f),
63 Error::AttachmentNotFoundException(inner) => inner.fmt(f),
64 Error::ByoipCidrNotFoundException(inner) => inner.fmt(f),
65 Error::ConflictException(inner) => inner.fmt(f),
66 Error::EndpointAlreadyExistsException(inner) => inner.fmt(f),
67 Error::EndpointGroupAlreadyExistsException(inner) => inner.fmt(f),
68 Error::EndpointGroupNotFoundException(inner) => inner.fmt(f),
69 Error::EndpointNotFoundException(inner) => inner.fmt(f),
70 Error::IncorrectCidrStateException(inner) => inner.fmt(f),
71 Error::InternalServiceErrorException(inner) => inner.fmt(f),
72 Error::InvalidArgumentException(inner) => inner.fmt(f),
73 Error::InvalidNextTokenException(inner) => inner.fmt(f),
74 Error::InvalidPortRangeException(inner) => inner.fmt(f),
75 Error::LimitExceededException(inner) => inner.fmt(f),
76 Error::ListenerNotFoundException(inner) => inner.fmt(f),
77 Error::TransactionInProgressException(inner) => inner.fmt(f),
78 Error::Unhandled(_) => {
79 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
80 write!(f, "unhandled error ({code})")
81 } else {
82 f.write_str("unhandled error")
83 }
84 }
85 }
86 }
87}
88impl From<::aws_smithy_types::error::operation::BuildError> for Error {
89 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
90 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
91 source: value.into(),
92 meta: ::std::default::Default::default(),
93 })
94 }
95}
96impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
97 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
98 match self {
99 Self::AcceleratorNotDisabledException(inner) => inner.meta(),
100 Self::AcceleratorNotFoundException(inner) => inner.meta(),
101 Self::AccessDeniedException(inner) => inner.meta(),
102 Self::AssociatedEndpointGroupFoundException(inner) => inner.meta(),
103 Self::AssociatedListenerFoundException(inner) => inner.meta(),
104 Self::AttachmentNotFoundException(inner) => inner.meta(),
105 Self::ByoipCidrNotFoundException(inner) => inner.meta(),
106 Self::ConflictException(inner) => inner.meta(),
107 Self::EndpointAlreadyExistsException(inner) => inner.meta(),
108 Self::EndpointGroupAlreadyExistsException(inner) => inner.meta(),
109 Self::EndpointGroupNotFoundException(inner) => inner.meta(),
110 Self::EndpointNotFoundException(inner) => inner.meta(),
111 Self::IncorrectCidrStateException(inner) => inner.meta(),
112 Self::InternalServiceErrorException(inner) => inner.meta(),
113 Self::InvalidArgumentException(inner) => inner.meta(),
114 Self::InvalidNextTokenException(inner) => inner.meta(),
115 Self::InvalidPortRangeException(inner) => inner.meta(),
116 Self::LimitExceededException(inner) => inner.meta(),
117 Self::ListenerNotFoundException(inner) => inner.meta(),
118 Self::TransactionInProgressException(inner) => inner.meta(),
119 Self::Unhandled(inner) => &inner.meta,
120 }
121 }
122}
123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_custom_routing_endpoints::AddCustomRoutingEndpointsError, R>>
124 for Error
125where
126 R: Send + Sync + std::fmt::Debug + 'static,
127{
128 fn from(
129 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_custom_routing_endpoints::AddCustomRoutingEndpointsError, R>,
130 ) -> Self {
131 match err {
132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
135 source: err.into(),
136 }),
137 }
138 }
139}
140impl From<crate::operation::add_custom_routing_endpoints::AddCustomRoutingEndpointsError> for Error {
141 fn from(err: crate::operation::add_custom_routing_endpoints::AddCustomRoutingEndpointsError) -> Self {
142 match err {
143 crate::operation::add_custom_routing_endpoints::AddCustomRoutingEndpointsError::AccessDeniedException(inner) => {
144 Error::AccessDeniedException(inner)
145 }
146 crate::operation::add_custom_routing_endpoints::AddCustomRoutingEndpointsError::ConflictException(inner) => {
147 Error::ConflictException(inner)
148 }
149 crate::operation::add_custom_routing_endpoints::AddCustomRoutingEndpointsError::EndpointAlreadyExistsException(inner) => {
150 Error::EndpointAlreadyExistsException(inner)
151 }
152 crate::operation::add_custom_routing_endpoints::AddCustomRoutingEndpointsError::EndpointGroupNotFoundException(inner) => {
153 Error::EndpointGroupNotFoundException(inner)
154 }
155 crate::operation::add_custom_routing_endpoints::AddCustomRoutingEndpointsError::InternalServiceErrorException(inner) => {
156 Error::InternalServiceErrorException(inner)
157 }
158 crate::operation::add_custom_routing_endpoints::AddCustomRoutingEndpointsError::InvalidArgumentException(inner) => {
159 Error::InvalidArgumentException(inner)
160 }
161 crate::operation::add_custom_routing_endpoints::AddCustomRoutingEndpointsError::LimitExceededException(inner) => {
162 Error::LimitExceededException(inner)
163 }
164 crate::operation::add_custom_routing_endpoints::AddCustomRoutingEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
165 }
166 }
167}
168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_endpoints::AddEndpointsError, R>> for Error
169where
170 R: Send + Sync + std::fmt::Debug + 'static,
171{
172 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_endpoints::AddEndpointsError, R>) -> Self {
173 match err {
174 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
175 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
176 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
177 source: err.into(),
178 }),
179 }
180 }
181}
182impl From<crate::operation::add_endpoints::AddEndpointsError> for Error {
183 fn from(err: crate::operation::add_endpoints::AddEndpointsError) -> Self {
184 match err {
185 crate::operation::add_endpoints::AddEndpointsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
186 crate::operation::add_endpoints::AddEndpointsError::EndpointGroupNotFoundException(inner) => Error::EndpointGroupNotFoundException(inner),
187 crate::operation::add_endpoints::AddEndpointsError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
188 crate::operation::add_endpoints::AddEndpointsError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
189 crate::operation::add_endpoints::AddEndpointsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
190 crate::operation::add_endpoints::AddEndpointsError::TransactionInProgressException(inner) => Error::TransactionInProgressException(inner),
191 crate::operation::add_endpoints::AddEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
192 }
193 }
194}
195impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError, R>> for Error
196where
197 R: Send + Sync + std::fmt::Debug + 'static,
198{
199 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError, R>) -> Self {
200 match err {
201 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
202 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
203 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
204 source: err.into(),
205 }),
206 }
207 }
208}
209impl From<crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError> for Error {
210 fn from(err: crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError) -> Self {
211 match err {
212 crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
213 crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError::ByoipCidrNotFoundException(inner) => {
214 Error::ByoipCidrNotFoundException(inner)
215 }
216 crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError::IncorrectCidrStateException(inner) => {
217 Error::IncorrectCidrStateException(inner)
218 }
219 crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError::InternalServiceErrorException(inner) => {
220 Error::InternalServiceErrorException(inner)
221 }
222 crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError::InvalidArgumentException(inner) => {
223 Error::InvalidArgumentException(inner)
224 }
225 crate::operation::advertise_byoip_cidr::AdvertiseByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
226 }
227 }
228}
229impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allow_custom_routing_traffic::AllowCustomRoutingTrafficError, R>>
230 for Error
231where
232 R: Send + Sync + std::fmt::Debug + 'static,
233{
234 fn from(
235 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::allow_custom_routing_traffic::AllowCustomRoutingTrafficError, R>,
236 ) -> Self {
237 match err {
238 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
239 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
240 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
241 source: err.into(),
242 }),
243 }
244 }
245}
246impl From<crate::operation::allow_custom_routing_traffic::AllowCustomRoutingTrafficError> for Error {
247 fn from(err: crate::operation::allow_custom_routing_traffic::AllowCustomRoutingTrafficError) -> Self {
248 match err {
249 crate::operation::allow_custom_routing_traffic::AllowCustomRoutingTrafficError::EndpointGroupNotFoundException(inner) => {
250 Error::EndpointGroupNotFoundException(inner)
251 }
252 crate::operation::allow_custom_routing_traffic::AllowCustomRoutingTrafficError::InternalServiceErrorException(inner) => {
253 Error::InternalServiceErrorException(inner)
254 }
255 crate::operation::allow_custom_routing_traffic::AllowCustomRoutingTrafficError::InvalidArgumentException(inner) => {
256 Error::InvalidArgumentException(inner)
257 }
258 crate::operation::allow_custom_routing_traffic::AllowCustomRoutingTrafficError::Unhandled(inner) => Error::Unhandled(inner),
259 }
260 }
261}
262impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_accelerator::CreateAcceleratorError, R>> for Error
263where
264 R: Send + Sync + std::fmt::Debug + 'static,
265{
266 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_accelerator::CreateAcceleratorError, R>) -> Self {
267 match err {
268 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
269 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
270 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
271 source: err.into(),
272 }),
273 }
274 }
275}
276impl From<crate::operation::create_accelerator::CreateAcceleratorError> for Error {
277 fn from(err: crate::operation::create_accelerator::CreateAcceleratorError) -> Self {
278 match err {
279 crate::operation::create_accelerator::CreateAcceleratorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
280 crate::operation::create_accelerator::CreateAcceleratorError::InternalServiceErrorException(inner) => {
281 Error::InternalServiceErrorException(inner)
282 }
283 crate::operation::create_accelerator::CreateAcceleratorError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
284 crate::operation::create_accelerator::CreateAcceleratorError::LimitExceededException(inner) => Error::LimitExceededException(inner),
285 crate::operation::create_accelerator::CreateAcceleratorError::TransactionInProgressException(inner) => {
286 Error::TransactionInProgressException(inner)
287 }
288 crate::operation::create_accelerator::CreateAcceleratorError::Unhandled(inner) => Error::Unhandled(inner),
289 }
290 }
291}
292impl<R>
293 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cross_account_attachment::CreateCrossAccountAttachmentError, R>>
294 for Error
295where
296 R: Send + Sync + std::fmt::Debug + 'static,
297{
298 fn from(
299 err: ::aws_smithy_runtime_api::client::result::SdkError<
300 crate::operation::create_cross_account_attachment::CreateCrossAccountAttachmentError,
301 R,
302 >,
303 ) -> Self {
304 match err {
305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
308 source: err.into(),
309 }),
310 }
311 }
312}
313impl From<crate::operation::create_cross_account_attachment::CreateCrossAccountAttachmentError> for Error {
314 fn from(err: crate::operation::create_cross_account_attachment::CreateCrossAccountAttachmentError) -> Self {
315 match err {
316 crate::operation::create_cross_account_attachment::CreateCrossAccountAttachmentError::AccessDeniedException(inner) => {
317 Error::AccessDeniedException(inner)
318 }
319 crate::operation::create_cross_account_attachment::CreateCrossAccountAttachmentError::InternalServiceErrorException(inner) => {
320 Error::InternalServiceErrorException(inner)
321 }
322 crate::operation::create_cross_account_attachment::CreateCrossAccountAttachmentError::InvalidArgumentException(inner) => {
323 Error::InvalidArgumentException(inner)
324 }
325 crate::operation::create_cross_account_attachment::CreateCrossAccountAttachmentError::LimitExceededException(inner) => {
326 Error::LimitExceededException(inner)
327 }
328 crate::operation::create_cross_account_attachment::CreateCrossAccountAttachmentError::TransactionInProgressException(inner) => {
329 Error::TransactionInProgressException(inner)
330 }
331 crate::operation::create_cross_account_attachment::CreateCrossAccountAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
332 }
333 }
334}
335impl<R>
336 From<
337 ::aws_smithy_runtime_api::client::result::SdkError<
338 crate::operation::create_custom_routing_accelerator::CreateCustomRoutingAcceleratorError,
339 R,
340 >,
341 > for Error
342where
343 R: Send + Sync + std::fmt::Debug + 'static,
344{
345 fn from(
346 err: ::aws_smithy_runtime_api::client::result::SdkError<
347 crate::operation::create_custom_routing_accelerator::CreateCustomRoutingAcceleratorError,
348 R,
349 >,
350 ) -> Self {
351 match err {
352 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
353 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
354 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
355 source: err.into(),
356 }),
357 }
358 }
359}
360impl From<crate::operation::create_custom_routing_accelerator::CreateCustomRoutingAcceleratorError> for Error {
361 fn from(err: crate::operation::create_custom_routing_accelerator::CreateCustomRoutingAcceleratorError) -> Self {
362 match err {
363 crate::operation::create_custom_routing_accelerator::CreateCustomRoutingAcceleratorError::AccessDeniedException(inner) => {
364 Error::AccessDeniedException(inner)
365 }
366 crate::operation::create_custom_routing_accelerator::CreateCustomRoutingAcceleratorError::InternalServiceErrorException(inner) => {
367 Error::InternalServiceErrorException(inner)
368 }
369 crate::operation::create_custom_routing_accelerator::CreateCustomRoutingAcceleratorError::InvalidArgumentException(inner) => {
370 Error::InvalidArgumentException(inner)
371 }
372 crate::operation::create_custom_routing_accelerator::CreateCustomRoutingAcceleratorError::LimitExceededException(inner) => {
373 Error::LimitExceededException(inner)
374 }
375 crate::operation::create_custom_routing_accelerator::CreateCustomRoutingAcceleratorError::TransactionInProgressException(inner) => {
376 Error::TransactionInProgressException(inner)
377 }
378 crate::operation::create_custom_routing_accelerator::CreateCustomRoutingAcceleratorError::Unhandled(inner) => Error::Unhandled(inner),
379 }
380 }
381}
382impl<R>
383 From<
384 ::aws_smithy_runtime_api::client::result::SdkError<
385 crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupError,
386 R,
387 >,
388 > for Error
389where
390 R: Send + Sync + std::fmt::Debug + 'static,
391{
392 fn from(
393 err: ::aws_smithy_runtime_api::client::result::SdkError<
394 crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupError,
395 R,
396 >,
397 ) -> Self {
398 match err {
399 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
400 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
401 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
402 source: err.into(),
403 }),
404 }
405 }
406}
407impl From<crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupError> for Error {
408 fn from(err: crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupError) -> Self {
409 match err {
410 crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupError::AcceleratorNotFoundException(inner) => {
411 Error::AcceleratorNotFoundException(inner)
412 }
413 crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupError::AccessDeniedException(inner) => {
414 Error::AccessDeniedException(inner)
415 }
416 crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupError::EndpointGroupAlreadyExistsException(
417 inner,
418 ) => Error::EndpointGroupAlreadyExistsException(inner),
419 crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupError::InternalServiceErrorException(inner) => {
420 Error::InternalServiceErrorException(inner)
421 }
422 crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupError::InvalidArgumentException(inner) => {
423 Error::InvalidArgumentException(inner)
424 }
425 crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupError::InvalidPortRangeException(inner) => {
426 Error::InvalidPortRangeException(inner)
427 }
428 crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupError::LimitExceededException(inner) => {
429 Error::LimitExceededException(inner)
430 }
431 crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupError::ListenerNotFoundException(inner) => {
432 Error::ListenerNotFoundException(inner)
433 }
434 crate::operation::create_custom_routing_endpoint_group::CreateCustomRoutingEndpointGroupError::Unhandled(inner) => {
435 Error::Unhandled(inner)
436 }
437 }
438 }
439}
440impl<R>
441 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_routing_listener::CreateCustomRoutingListenerError, R>>
442 for Error
443where
444 R: Send + Sync + std::fmt::Debug + 'static,
445{
446 fn from(
447 err: ::aws_smithy_runtime_api::client::result::SdkError<
448 crate::operation::create_custom_routing_listener::CreateCustomRoutingListenerError,
449 R,
450 >,
451 ) -> Self {
452 match err {
453 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
454 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
455 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
456 source: err.into(),
457 }),
458 }
459 }
460}
461impl From<crate::operation::create_custom_routing_listener::CreateCustomRoutingListenerError> for Error {
462 fn from(err: crate::operation::create_custom_routing_listener::CreateCustomRoutingListenerError) -> Self {
463 match err {
464 crate::operation::create_custom_routing_listener::CreateCustomRoutingListenerError::AcceleratorNotFoundException(inner) => {
465 Error::AcceleratorNotFoundException(inner)
466 }
467 crate::operation::create_custom_routing_listener::CreateCustomRoutingListenerError::InternalServiceErrorException(inner) => {
468 Error::InternalServiceErrorException(inner)
469 }
470 crate::operation::create_custom_routing_listener::CreateCustomRoutingListenerError::InvalidArgumentException(inner) => {
471 Error::InvalidArgumentException(inner)
472 }
473 crate::operation::create_custom_routing_listener::CreateCustomRoutingListenerError::InvalidPortRangeException(inner) => {
474 Error::InvalidPortRangeException(inner)
475 }
476 crate::operation::create_custom_routing_listener::CreateCustomRoutingListenerError::LimitExceededException(inner) => {
477 Error::LimitExceededException(inner)
478 }
479 crate::operation::create_custom_routing_listener::CreateCustomRoutingListenerError::Unhandled(inner) => Error::Unhandled(inner),
480 }
481 }
482}
483impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_group::CreateEndpointGroupError, R>> for Error
484where
485 R: Send + Sync + std::fmt::Debug + 'static,
486{
487 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_group::CreateEndpointGroupError, R>) -> Self {
488 match err {
489 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
490 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
491 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
492 source: err.into(),
493 }),
494 }
495 }
496}
497impl From<crate::operation::create_endpoint_group::CreateEndpointGroupError> for Error {
498 fn from(err: crate::operation::create_endpoint_group::CreateEndpointGroupError) -> Self {
499 match err {
500 crate::operation::create_endpoint_group::CreateEndpointGroupError::AcceleratorNotFoundException(inner) => {
501 Error::AcceleratorNotFoundException(inner)
502 }
503 crate::operation::create_endpoint_group::CreateEndpointGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
504 crate::operation::create_endpoint_group::CreateEndpointGroupError::EndpointGroupAlreadyExistsException(inner) => {
505 Error::EndpointGroupAlreadyExistsException(inner)
506 }
507 crate::operation::create_endpoint_group::CreateEndpointGroupError::InternalServiceErrorException(inner) => {
508 Error::InternalServiceErrorException(inner)
509 }
510 crate::operation::create_endpoint_group::CreateEndpointGroupError::InvalidArgumentException(inner) => {
511 Error::InvalidArgumentException(inner)
512 }
513 crate::operation::create_endpoint_group::CreateEndpointGroupError::LimitExceededException(inner) => Error::LimitExceededException(inner),
514 crate::operation::create_endpoint_group::CreateEndpointGroupError::ListenerNotFoundException(inner) => {
515 Error::ListenerNotFoundException(inner)
516 }
517 crate::operation::create_endpoint_group::CreateEndpointGroupError::Unhandled(inner) => Error::Unhandled(inner),
518 }
519 }
520}
521impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_listener::CreateListenerError, R>> for Error
522where
523 R: Send + Sync + std::fmt::Debug + 'static,
524{
525 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_listener::CreateListenerError, R>) -> Self {
526 match err {
527 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
528 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
529 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
530 source: err.into(),
531 }),
532 }
533 }
534}
535impl From<crate::operation::create_listener::CreateListenerError> for Error {
536 fn from(err: crate::operation::create_listener::CreateListenerError) -> Self {
537 match err {
538 crate::operation::create_listener::CreateListenerError::AcceleratorNotFoundException(inner) => Error::AcceleratorNotFoundException(inner),
539 crate::operation::create_listener::CreateListenerError::InternalServiceErrorException(inner) => {
540 Error::InternalServiceErrorException(inner)
541 }
542 crate::operation::create_listener::CreateListenerError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
543 crate::operation::create_listener::CreateListenerError::InvalidPortRangeException(inner) => Error::InvalidPortRangeException(inner),
544 crate::operation::create_listener::CreateListenerError::LimitExceededException(inner) => Error::LimitExceededException(inner),
545 crate::operation::create_listener::CreateListenerError::Unhandled(inner) => Error::Unhandled(inner),
546 }
547 }
548}
549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_accelerator::DeleteAcceleratorError, R>> for Error
550where
551 R: Send + Sync + std::fmt::Debug + 'static,
552{
553 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_accelerator::DeleteAcceleratorError, R>) -> Self {
554 match err {
555 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
556 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
557 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
558 source: err.into(),
559 }),
560 }
561 }
562}
563impl From<crate::operation::delete_accelerator::DeleteAcceleratorError> for Error {
564 fn from(err: crate::operation::delete_accelerator::DeleteAcceleratorError) -> Self {
565 match err {
566 crate::operation::delete_accelerator::DeleteAcceleratorError::AcceleratorNotDisabledException(inner) => {
567 Error::AcceleratorNotDisabledException(inner)
568 }
569 crate::operation::delete_accelerator::DeleteAcceleratorError::AcceleratorNotFoundException(inner) => {
570 Error::AcceleratorNotFoundException(inner)
571 }
572 crate::operation::delete_accelerator::DeleteAcceleratorError::AssociatedListenerFoundException(inner) => {
573 Error::AssociatedListenerFoundException(inner)
574 }
575 crate::operation::delete_accelerator::DeleteAcceleratorError::InternalServiceErrorException(inner) => {
576 Error::InternalServiceErrorException(inner)
577 }
578 crate::operation::delete_accelerator::DeleteAcceleratorError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
579 crate::operation::delete_accelerator::DeleteAcceleratorError::TransactionInProgressException(inner) => {
580 Error::TransactionInProgressException(inner)
581 }
582 crate::operation::delete_accelerator::DeleteAcceleratorError::Unhandled(inner) => Error::Unhandled(inner),
583 }
584 }
585}
586impl<R>
587 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cross_account_attachment::DeleteCrossAccountAttachmentError, R>>
588 for Error
589where
590 R: Send + Sync + std::fmt::Debug + 'static,
591{
592 fn from(
593 err: ::aws_smithy_runtime_api::client::result::SdkError<
594 crate::operation::delete_cross_account_attachment::DeleteCrossAccountAttachmentError,
595 R,
596 >,
597 ) -> Self {
598 match err {
599 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
600 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
601 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
602 source: err.into(),
603 }),
604 }
605 }
606}
607impl From<crate::operation::delete_cross_account_attachment::DeleteCrossAccountAttachmentError> for Error {
608 fn from(err: crate::operation::delete_cross_account_attachment::DeleteCrossAccountAttachmentError) -> Self {
609 match err {
610 crate::operation::delete_cross_account_attachment::DeleteCrossAccountAttachmentError::AccessDeniedException(inner) => {
611 Error::AccessDeniedException(inner)
612 }
613 crate::operation::delete_cross_account_attachment::DeleteCrossAccountAttachmentError::AttachmentNotFoundException(inner) => {
614 Error::AttachmentNotFoundException(inner)
615 }
616 crate::operation::delete_cross_account_attachment::DeleteCrossAccountAttachmentError::InternalServiceErrorException(inner) => {
617 Error::InternalServiceErrorException(inner)
618 }
619 crate::operation::delete_cross_account_attachment::DeleteCrossAccountAttachmentError::InvalidArgumentException(inner) => {
620 Error::InvalidArgumentException(inner)
621 }
622 crate::operation::delete_cross_account_attachment::DeleteCrossAccountAttachmentError::TransactionInProgressException(inner) => {
623 Error::TransactionInProgressException(inner)
624 }
625 crate::operation::delete_cross_account_attachment::DeleteCrossAccountAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
626 }
627 }
628}
629impl<R>
630 From<
631 ::aws_smithy_runtime_api::client::result::SdkError<
632 crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError,
633 R,
634 >,
635 > for Error
636where
637 R: Send + Sync + std::fmt::Debug + 'static,
638{
639 fn from(
640 err: ::aws_smithy_runtime_api::client::result::SdkError<
641 crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError,
642 R,
643 >,
644 ) -> Self {
645 match err {
646 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
647 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
648 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
649 source: err.into(),
650 }),
651 }
652 }
653}
654impl From<crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError> for Error {
655 fn from(err: crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError) -> Self {
656 match err {
657 crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError::AcceleratorNotDisabledException(inner) => {
658 Error::AcceleratorNotDisabledException(inner)
659 }
660 crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError::AcceleratorNotFoundException(inner) => {
661 Error::AcceleratorNotFoundException(inner)
662 }
663 crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError::AssociatedListenerFoundException(inner) => {
664 Error::AssociatedListenerFoundException(inner)
665 }
666 crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError::InternalServiceErrorException(inner) => {
667 Error::InternalServiceErrorException(inner)
668 }
669 crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError::InvalidArgumentException(inner) => {
670 Error::InvalidArgumentException(inner)
671 }
672 crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError::TransactionInProgressException(inner) => {
673 Error::TransactionInProgressException(inner)
674 }
675 crate::operation::delete_custom_routing_accelerator::DeleteCustomRoutingAcceleratorError::Unhandled(inner) => Error::Unhandled(inner),
676 }
677 }
678}
679impl<R>
680 From<
681 ::aws_smithy_runtime_api::client::result::SdkError<
682 crate::operation::delete_custom_routing_endpoint_group::DeleteCustomRoutingEndpointGroupError,
683 R,
684 >,
685 > for Error
686where
687 R: Send + Sync + std::fmt::Debug + 'static,
688{
689 fn from(
690 err: ::aws_smithy_runtime_api::client::result::SdkError<
691 crate::operation::delete_custom_routing_endpoint_group::DeleteCustomRoutingEndpointGroupError,
692 R,
693 >,
694 ) -> Self {
695 match err {
696 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
697 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
698 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
699 source: err.into(),
700 }),
701 }
702 }
703}
704impl From<crate::operation::delete_custom_routing_endpoint_group::DeleteCustomRoutingEndpointGroupError> for Error {
705 fn from(err: crate::operation::delete_custom_routing_endpoint_group::DeleteCustomRoutingEndpointGroupError) -> Self {
706 match err {
707 crate::operation::delete_custom_routing_endpoint_group::DeleteCustomRoutingEndpointGroupError::EndpointGroupNotFoundException(inner) => {
708 Error::EndpointGroupNotFoundException(inner)
709 }
710 crate::operation::delete_custom_routing_endpoint_group::DeleteCustomRoutingEndpointGroupError::InternalServiceErrorException(inner) => {
711 Error::InternalServiceErrorException(inner)
712 }
713 crate::operation::delete_custom_routing_endpoint_group::DeleteCustomRoutingEndpointGroupError::InvalidArgumentException(inner) => {
714 Error::InvalidArgumentException(inner)
715 }
716 crate::operation::delete_custom_routing_endpoint_group::DeleteCustomRoutingEndpointGroupError::Unhandled(inner) => {
717 Error::Unhandled(inner)
718 }
719 }
720 }
721}
722impl<R>
723 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_routing_listener::DeleteCustomRoutingListenerError, R>>
724 for Error
725where
726 R: Send + Sync + std::fmt::Debug + 'static,
727{
728 fn from(
729 err: ::aws_smithy_runtime_api::client::result::SdkError<
730 crate::operation::delete_custom_routing_listener::DeleteCustomRoutingListenerError,
731 R,
732 >,
733 ) -> Self {
734 match err {
735 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
736 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
737 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
738 source: err.into(),
739 }),
740 }
741 }
742}
743impl From<crate::operation::delete_custom_routing_listener::DeleteCustomRoutingListenerError> for Error {
744 fn from(err: crate::operation::delete_custom_routing_listener::DeleteCustomRoutingListenerError) -> Self {
745 match err {
746 crate::operation::delete_custom_routing_listener::DeleteCustomRoutingListenerError::AssociatedEndpointGroupFoundException(inner) => {
747 Error::AssociatedEndpointGroupFoundException(inner)
748 }
749 crate::operation::delete_custom_routing_listener::DeleteCustomRoutingListenerError::InternalServiceErrorException(inner) => {
750 Error::InternalServiceErrorException(inner)
751 }
752 crate::operation::delete_custom_routing_listener::DeleteCustomRoutingListenerError::InvalidArgumentException(inner) => {
753 Error::InvalidArgumentException(inner)
754 }
755 crate::operation::delete_custom_routing_listener::DeleteCustomRoutingListenerError::ListenerNotFoundException(inner) => {
756 Error::ListenerNotFoundException(inner)
757 }
758 crate::operation::delete_custom_routing_listener::DeleteCustomRoutingListenerError::Unhandled(inner) => Error::Unhandled(inner),
759 }
760 }
761}
762impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_group::DeleteEndpointGroupError, R>> for Error
763where
764 R: Send + Sync + std::fmt::Debug + 'static,
765{
766 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_group::DeleteEndpointGroupError, R>) -> Self {
767 match err {
768 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
769 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
770 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
771 source: err.into(),
772 }),
773 }
774 }
775}
776impl From<crate::operation::delete_endpoint_group::DeleteEndpointGroupError> for Error {
777 fn from(err: crate::operation::delete_endpoint_group::DeleteEndpointGroupError) -> Self {
778 match err {
779 crate::operation::delete_endpoint_group::DeleteEndpointGroupError::EndpointGroupNotFoundException(inner) => {
780 Error::EndpointGroupNotFoundException(inner)
781 }
782 crate::operation::delete_endpoint_group::DeleteEndpointGroupError::InternalServiceErrorException(inner) => {
783 Error::InternalServiceErrorException(inner)
784 }
785 crate::operation::delete_endpoint_group::DeleteEndpointGroupError::InvalidArgumentException(inner) => {
786 Error::InvalidArgumentException(inner)
787 }
788 crate::operation::delete_endpoint_group::DeleteEndpointGroupError::Unhandled(inner) => Error::Unhandled(inner),
789 }
790 }
791}
792impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_listener::DeleteListenerError, R>> for Error
793where
794 R: Send + Sync + std::fmt::Debug + 'static,
795{
796 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_listener::DeleteListenerError, R>) -> Self {
797 match err {
798 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
799 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
800 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
801 source: err.into(),
802 }),
803 }
804 }
805}
806impl From<crate::operation::delete_listener::DeleteListenerError> for Error {
807 fn from(err: crate::operation::delete_listener::DeleteListenerError) -> Self {
808 match err {
809 crate::operation::delete_listener::DeleteListenerError::AssociatedEndpointGroupFoundException(inner) => {
810 Error::AssociatedEndpointGroupFoundException(inner)
811 }
812 crate::operation::delete_listener::DeleteListenerError::InternalServiceErrorException(inner) => {
813 Error::InternalServiceErrorException(inner)
814 }
815 crate::operation::delete_listener::DeleteListenerError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
816 crate::operation::delete_listener::DeleteListenerError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
817 crate::operation::delete_listener::DeleteListenerError::Unhandled(inner) => Error::Unhandled(inner),
818 }
819 }
820}
821impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deny_custom_routing_traffic::DenyCustomRoutingTrafficError, R>>
822 for Error
823where
824 R: Send + Sync + std::fmt::Debug + 'static,
825{
826 fn from(
827 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deny_custom_routing_traffic::DenyCustomRoutingTrafficError, R>,
828 ) -> Self {
829 match err {
830 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
831 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
832 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
833 source: err.into(),
834 }),
835 }
836 }
837}
838impl From<crate::operation::deny_custom_routing_traffic::DenyCustomRoutingTrafficError> for Error {
839 fn from(err: crate::operation::deny_custom_routing_traffic::DenyCustomRoutingTrafficError) -> Self {
840 match err {
841 crate::operation::deny_custom_routing_traffic::DenyCustomRoutingTrafficError::EndpointGroupNotFoundException(inner) => {
842 Error::EndpointGroupNotFoundException(inner)
843 }
844 crate::operation::deny_custom_routing_traffic::DenyCustomRoutingTrafficError::InternalServiceErrorException(inner) => {
845 Error::InternalServiceErrorException(inner)
846 }
847 crate::operation::deny_custom_routing_traffic::DenyCustomRoutingTrafficError::InvalidArgumentException(inner) => {
848 Error::InvalidArgumentException(inner)
849 }
850 crate::operation::deny_custom_routing_traffic::DenyCustomRoutingTrafficError::Unhandled(inner) => Error::Unhandled(inner),
851 }
852 }
853}
854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError, R>> for Error
855where
856 R: Send + Sync + std::fmt::Debug + 'static,
857{
858 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError, R>) -> Self {
859 match err {
860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
863 source: err.into(),
864 }),
865 }
866 }
867}
868impl From<crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError> for Error {
869 fn from(err: crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError) -> Self {
870 match err {
871 crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
872 crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError::ByoipCidrNotFoundException(inner) => {
873 Error::ByoipCidrNotFoundException(inner)
874 }
875 crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError::IncorrectCidrStateException(inner) => {
876 Error::IncorrectCidrStateException(inner)
877 }
878 crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError::InternalServiceErrorException(inner) => {
879 Error::InternalServiceErrorException(inner)
880 }
881 crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError::InvalidArgumentException(inner) => {
882 Error::InvalidArgumentException(inner)
883 }
884 crate::operation::deprovision_byoip_cidr::DeprovisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
885 }
886 }
887}
888impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_accelerator::DescribeAcceleratorError, R>> for Error
889where
890 R: Send + Sync + std::fmt::Debug + 'static,
891{
892 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_accelerator::DescribeAcceleratorError, R>) -> Self {
893 match err {
894 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
895 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
896 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
897 source: err.into(),
898 }),
899 }
900 }
901}
902impl From<crate::operation::describe_accelerator::DescribeAcceleratorError> for Error {
903 fn from(err: crate::operation::describe_accelerator::DescribeAcceleratorError) -> Self {
904 match err {
905 crate::operation::describe_accelerator::DescribeAcceleratorError::AcceleratorNotFoundException(inner) => {
906 Error::AcceleratorNotFoundException(inner)
907 }
908 crate::operation::describe_accelerator::DescribeAcceleratorError::InternalServiceErrorException(inner) => {
909 Error::InternalServiceErrorException(inner)
910 }
911 crate::operation::describe_accelerator::DescribeAcceleratorError::InvalidArgumentException(inner) => {
912 Error::InvalidArgumentException(inner)
913 }
914 crate::operation::describe_accelerator::DescribeAcceleratorError::Unhandled(inner) => Error::Unhandled(inner),
915 }
916 }
917}
918impl<R>
919 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_accelerator_attributes::DescribeAcceleratorAttributesError, R>>
920 for Error
921where
922 R: Send + Sync + std::fmt::Debug + 'static,
923{
924 fn from(
925 err: ::aws_smithy_runtime_api::client::result::SdkError<
926 crate::operation::describe_accelerator_attributes::DescribeAcceleratorAttributesError,
927 R,
928 >,
929 ) -> Self {
930 match err {
931 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
932 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
933 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
934 source: err.into(),
935 }),
936 }
937 }
938}
939impl From<crate::operation::describe_accelerator_attributes::DescribeAcceleratorAttributesError> for Error {
940 fn from(err: crate::operation::describe_accelerator_attributes::DescribeAcceleratorAttributesError) -> Self {
941 match err {
942 crate::operation::describe_accelerator_attributes::DescribeAcceleratorAttributesError::AcceleratorNotFoundException(inner) => {
943 Error::AcceleratorNotFoundException(inner)
944 }
945 crate::operation::describe_accelerator_attributes::DescribeAcceleratorAttributesError::InternalServiceErrorException(inner) => {
946 Error::InternalServiceErrorException(inner)
947 }
948 crate::operation::describe_accelerator_attributes::DescribeAcceleratorAttributesError::InvalidArgumentException(inner) => {
949 Error::InvalidArgumentException(inner)
950 }
951 crate::operation::describe_accelerator_attributes::DescribeAcceleratorAttributesError::Unhandled(inner) => Error::Unhandled(inner),
952 }
953 }
954}
955impl<R>
956 From<
957 ::aws_smithy_runtime_api::client::result::SdkError<
958 crate::operation::describe_cross_account_attachment::DescribeCrossAccountAttachmentError,
959 R,
960 >,
961 > for Error
962where
963 R: Send + Sync + std::fmt::Debug + 'static,
964{
965 fn from(
966 err: ::aws_smithy_runtime_api::client::result::SdkError<
967 crate::operation::describe_cross_account_attachment::DescribeCrossAccountAttachmentError,
968 R,
969 >,
970 ) -> Self {
971 match err {
972 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
973 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
974 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
975 source: err.into(),
976 }),
977 }
978 }
979}
980impl From<crate::operation::describe_cross_account_attachment::DescribeCrossAccountAttachmentError> for Error {
981 fn from(err: crate::operation::describe_cross_account_attachment::DescribeCrossAccountAttachmentError) -> Self {
982 match err {
983 crate::operation::describe_cross_account_attachment::DescribeCrossAccountAttachmentError::AccessDeniedException(inner) => {
984 Error::AccessDeniedException(inner)
985 }
986 crate::operation::describe_cross_account_attachment::DescribeCrossAccountAttachmentError::AttachmentNotFoundException(inner) => {
987 Error::AttachmentNotFoundException(inner)
988 }
989 crate::operation::describe_cross_account_attachment::DescribeCrossAccountAttachmentError::InternalServiceErrorException(inner) => {
990 Error::InternalServiceErrorException(inner)
991 }
992 crate::operation::describe_cross_account_attachment::DescribeCrossAccountAttachmentError::InvalidArgumentException(inner) => {
993 Error::InvalidArgumentException(inner)
994 }
995 crate::operation::describe_cross_account_attachment::DescribeCrossAccountAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
996 }
997 }
998}
999impl<R>
1000 From<
1001 ::aws_smithy_runtime_api::client::result::SdkError<
1002 crate::operation::describe_custom_routing_accelerator::DescribeCustomRoutingAcceleratorError,
1003 R,
1004 >,
1005 > for Error
1006where
1007 R: Send + Sync + std::fmt::Debug + 'static,
1008{
1009 fn from(
1010 err: ::aws_smithy_runtime_api::client::result::SdkError<
1011 crate::operation::describe_custom_routing_accelerator::DescribeCustomRoutingAcceleratorError,
1012 R,
1013 >,
1014 ) -> Self {
1015 match err {
1016 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1017 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1018 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1019 source: err.into(),
1020 }),
1021 }
1022 }
1023}
1024impl From<crate::operation::describe_custom_routing_accelerator::DescribeCustomRoutingAcceleratorError> for Error {
1025 fn from(err: crate::operation::describe_custom_routing_accelerator::DescribeCustomRoutingAcceleratorError) -> Self {
1026 match err {
1027 crate::operation::describe_custom_routing_accelerator::DescribeCustomRoutingAcceleratorError::AcceleratorNotFoundException(inner) => {
1028 Error::AcceleratorNotFoundException(inner)
1029 }
1030 crate::operation::describe_custom_routing_accelerator::DescribeCustomRoutingAcceleratorError::InternalServiceErrorException(inner) => {
1031 Error::InternalServiceErrorException(inner)
1032 }
1033 crate::operation::describe_custom_routing_accelerator::DescribeCustomRoutingAcceleratorError::InvalidArgumentException(inner) => {
1034 Error::InvalidArgumentException(inner)
1035 }
1036 crate::operation::describe_custom_routing_accelerator::DescribeCustomRoutingAcceleratorError::Unhandled(inner) => Error::Unhandled(inner),
1037 }
1038 }
1039}
1040impl<R>
1041 From<
1042 ::aws_smithy_runtime_api::client::result::SdkError<
1043 crate::operation::describe_custom_routing_accelerator_attributes::DescribeCustomRoutingAcceleratorAttributesError,
1044 R,
1045 >,
1046 > for Error
1047where
1048 R: Send + Sync + std::fmt::Debug + 'static,
1049{
1050 fn from(
1051 err: ::aws_smithy_runtime_api::client::result::SdkError<
1052 crate::operation::describe_custom_routing_accelerator_attributes::DescribeCustomRoutingAcceleratorAttributesError,
1053 R,
1054 >,
1055 ) -> Self {
1056 match err {
1057 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1058 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1059 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1060 source: err.into(),
1061 }),
1062 }
1063 }
1064}
1065impl From<crate::operation::describe_custom_routing_accelerator_attributes::DescribeCustomRoutingAcceleratorAttributesError> for Error {
1066 fn from(err: crate::operation::describe_custom_routing_accelerator_attributes::DescribeCustomRoutingAcceleratorAttributesError) -> Self {
1067 match err {
1068 crate::operation::describe_custom_routing_accelerator_attributes::DescribeCustomRoutingAcceleratorAttributesError::AcceleratorNotFoundException(inner) => Error::AcceleratorNotFoundException(inner),
1069 crate::operation::describe_custom_routing_accelerator_attributes::DescribeCustomRoutingAcceleratorAttributesError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
1070 crate::operation::describe_custom_routing_accelerator_attributes::DescribeCustomRoutingAcceleratorAttributesError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1071 crate::operation::describe_custom_routing_accelerator_attributes::DescribeCustomRoutingAcceleratorAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1072 }
1073 }
1074}
1075impl<R>
1076 From<
1077 ::aws_smithy_runtime_api::client::result::SdkError<
1078 crate::operation::describe_custom_routing_endpoint_group::DescribeCustomRoutingEndpointGroupError,
1079 R,
1080 >,
1081 > for Error
1082where
1083 R: Send + Sync + std::fmt::Debug + 'static,
1084{
1085 fn from(
1086 err: ::aws_smithy_runtime_api::client::result::SdkError<
1087 crate::operation::describe_custom_routing_endpoint_group::DescribeCustomRoutingEndpointGroupError,
1088 R,
1089 >,
1090 ) -> Self {
1091 match err {
1092 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1093 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1094 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1095 source: err.into(),
1096 }),
1097 }
1098 }
1099}
1100impl From<crate::operation::describe_custom_routing_endpoint_group::DescribeCustomRoutingEndpointGroupError> for Error {
1101 fn from(err: crate::operation::describe_custom_routing_endpoint_group::DescribeCustomRoutingEndpointGroupError) -> Self {
1102 match err {
1103 crate::operation::describe_custom_routing_endpoint_group::DescribeCustomRoutingEndpointGroupError::EndpointGroupNotFoundException(
1104 inner,
1105 ) => Error::EndpointGroupNotFoundException(inner),
1106 crate::operation::describe_custom_routing_endpoint_group::DescribeCustomRoutingEndpointGroupError::InternalServiceErrorException(
1107 inner,
1108 ) => Error::InternalServiceErrorException(inner),
1109 crate::operation::describe_custom_routing_endpoint_group::DescribeCustomRoutingEndpointGroupError::InvalidArgumentException(inner) => {
1110 Error::InvalidArgumentException(inner)
1111 }
1112 crate::operation::describe_custom_routing_endpoint_group::DescribeCustomRoutingEndpointGroupError::Unhandled(inner) => {
1113 Error::Unhandled(inner)
1114 }
1115 }
1116 }
1117}
1118impl<R>
1119 From<
1120 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_custom_routing_listener::DescribeCustomRoutingListenerError, R>,
1121 > for Error
1122where
1123 R: Send + Sync + std::fmt::Debug + 'static,
1124{
1125 fn from(
1126 err: ::aws_smithy_runtime_api::client::result::SdkError<
1127 crate::operation::describe_custom_routing_listener::DescribeCustomRoutingListenerError,
1128 R,
1129 >,
1130 ) -> Self {
1131 match err {
1132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1135 source: err.into(),
1136 }),
1137 }
1138 }
1139}
1140impl From<crate::operation::describe_custom_routing_listener::DescribeCustomRoutingListenerError> for Error {
1141 fn from(err: crate::operation::describe_custom_routing_listener::DescribeCustomRoutingListenerError) -> Self {
1142 match err {
1143 crate::operation::describe_custom_routing_listener::DescribeCustomRoutingListenerError::InternalServiceErrorException(inner) => {
1144 Error::InternalServiceErrorException(inner)
1145 }
1146 crate::operation::describe_custom_routing_listener::DescribeCustomRoutingListenerError::InvalidArgumentException(inner) => {
1147 Error::InvalidArgumentException(inner)
1148 }
1149 crate::operation::describe_custom_routing_listener::DescribeCustomRoutingListenerError::ListenerNotFoundException(inner) => {
1150 Error::ListenerNotFoundException(inner)
1151 }
1152 crate::operation::describe_custom_routing_listener::DescribeCustomRoutingListenerError::Unhandled(inner) => Error::Unhandled(inner),
1153 }
1154 }
1155}
1156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_group::DescribeEndpointGroupError, R>> for Error
1157where
1158 R: Send + Sync + std::fmt::Debug + 'static,
1159{
1160 fn from(
1161 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_group::DescribeEndpointGroupError, R>,
1162 ) -> Self {
1163 match err {
1164 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1165 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1166 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1167 source: err.into(),
1168 }),
1169 }
1170 }
1171}
1172impl From<crate::operation::describe_endpoint_group::DescribeEndpointGroupError> for Error {
1173 fn from(err: crate::operation::describe_endpoint_group::DescribeEndpointGroupError) -> Self {
1174 match err {
1175 crate::operation::describe_endpoint_group::DescribeEndpointGroupError::EndpointGroupNotFoundException(inner) => {
1176 Error::EndpointGroupNotFoundException(inner)
1177 }
1178 crate::operation::describe_endpoint_group::DescribeEndpointGroupError::InternalServiceErrorException(inner) => {
1179 Error::InternalServiceErrorException(inner)
1180 }
1181 crate::operation::describe_endpoint_group::DescribeEndpointGroupError::InvalidArgumentException(inner) => {
1182 Error::InvalidArgumentException(inner)
1183 }
1184 crate::operation::describe_endpoint_group::DescribeEndpointGroupError::Unhandled(inner) => Error::Unhandled(inner),
1185 }
1186 }
1187}
1188impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_listener::DescribeListenerError, R>> for Error
1189where
1190 R: Send + Sync + std::fmt::Debug + 'static,
1191{
1192 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_listener::DescribeListenerError, R>) -> Self {
1193 match err {
1194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1197 source: err.into(),
1198 }),
1199 }
1200 }
1201}
1202impl From<crate::operation::describe_listener::DescribeListenerError> for Error {
1203 fn from(err: crate::operation::describe_listener::DescribeListenerError) -> Self {
1204 match err {
1205 crate::operation::describe_listener::DescribeListenerError::InternalServiceErrorException(inner) => {
1206 Error::InternalServiceErrorException(inner)
1207 }
1208 crate::operation::describe_listener::DescribeListenerError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1209 crate::operation::describe_listener::DescribeListenerError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
1210 crate::operation::describe_listener::DescribeListenerError::Unhandled(inner) => Error::Unhandled(inner),
1211 }
1212 }
1213}
1214impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_accelerators::ListAcceleratorsError, R>> for Error
1215where
1216 R: Send + Sync + std::fmt::Debug + 'static,
1217{
1218 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_accelerators::ListAcceleratorsError, R>) -> Self {
1219 match err {
1220 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1221 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1222 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1223 source: err.into(),
1224 }),
1225 }
1226 }
1227}
1228impl From<crate::operation::list_accelerators::ListAcceleratorsError> for Error {
1229 fn from(err: crate::operation::list_accelerators::ListAcceleratorsError) -> Self {
1230 match err {
1231 crate::operation::list_accelerators::ListAcceleratorsError::InternalServiceErrorException(inner) => {
1232 Error::InternalServiceErrorException(inner)
1233 }
1234 crate::operation::list_accelerators::ListAcceleratorsError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1235 crate::operation::list_accelerators::ListAcceleratorsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1236 crate::operation::list_accelerators::ListAcceleratorsError::Unhandled(inner) => Error::Unhandled(inner),
1237 }
1238 }
1239}
1240impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_byoip_cidrs::ListByoipCidrsError, R>> for Error
1241where
1242 R: Send + Sync + std::fmt::Debug + 'static,
1243{
1244 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_byoip_cidrs::ListByoipCidrsError, R>) -> Self {
1245 match err {
1246 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1247 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1248 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1249 source: err.into(),
1250 }),
1251 }
1252 }
1253}
1254impl From<crate::operation::list_byoip_cidrs::ListByoipCidrsError> for Error {
1255 fn from(err: crate::operation::list_byoip_cidrs::ListByoipCidrsError) -> Self {
1256 match err {
1257 crate::operation::list_byoip_cidrs::ListByoipCidrsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1258 crate::operation::list_byoip_cidrs::ListByoipCidrsError::InternalServiceErrorException(inner) => {
1259 Error::InternalServiceErrorException(inner)
1260 }
1261 crate::operation::list_byoip_cidrs::ListByoipCidrsError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1262 crate::operation::list_byoip_cidrs::ListByoipCidrsError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1263 crate::operation::list_byoip_cidrs::ListByoipCidrsError::Unhandled(inner) => Error::Unhandled(inner),
1264 }
1265 }
1266}
1267impl<R>
1268 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cross_account_attachments::ListCrossAccountAttachmentsError, R>>
1269 for Error
1270where
1271 R: Send + Sync + std::fmt::Debug + 'static,
1272{
1273 fn from(
1274 err: ::aws_smithy_runtime_api::client::result::SdkError<
1275 crate::operation::list_cross_account_attachments::ListCrossAccountAttachmentsError,
1276 R,
1277 >,
1278 ) -> Self {
1279 match err {
1280 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1281 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1282 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1283 source: err.into(),
1284 }),
1285 }
1286 }
1287}
1288impl From<crate::operation::list_cross_account_attachments::ListCrossAccountAttachmentsError> for Error {
1289 fn from(err: crate::operation::list_cross_account_attachments::ListCrossAccountAttachmentsError) -> Self {
1290 match err {
1291 crate::operation::list_cross_account_attachments::ListCrossAccountAttachmentsError::AccessDeniedException(inner) => {
1292 Error::AccessDeniedException(inner)
1293 }
1294 crate::operation::list_cross_account_attachments::ListCrossAccountAttachmentsError::InternalServiceErrorException(inner) => {
1295 Error::InternalServiceErrorException(inner)
1296 }
1297 crate::operation::list_cross_account_attachments::ListCrossAccountAttachmentsError::InvalidArgumentException(inner) => {
1298 Error::InvalidArgumentException(inner)
1299 }
1300 crate::operation::list_cross_account_attachments::ListCrossAccountAttachmentsError::InvalidNextTokenException(inner) => {
1301 Error::InvalidNextTokenException(inner)
1302 }
1303 crate::operation::list_cross_account_attachments::ListCrossAccountAttachmentsError::Unhandled(inner) => Error::Unhandled(inner),
1304 }
1305 }
1306}
1307impl<R>
1308 From<
1309 ::aws_smithy_runtime_api::client::result::SdkError<
1310 crate::operation::list_cross_account_resource_accounts::ListCrossAccountResourceAccountsError,
1311 R,
1312 >,
1313 > for Error
1314where
1315 R: Send + Sync + std::fmt::Debug + 'static,
1316{
1317 fn from(
1318 err: ::aws_smithy_runtime_api::client::result::SdkError<
1319 crate::operation::list_cross_account_resource_accounts::ListCrossAccountResourceAccountsError,
1320 R,
1321 >,
1322 ) -> Self {
1323 match err {
1324 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1325 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1326 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1327 source: err.into(),
1328 }),
1329 }
1330 }
1331}
1332impl From<crate::operation::list_cross_account_resource_accounts::ListCrossAccountResourceAccountsError> for Error {
1333 fn from(err: crate::operation::list_cross_account_resource_accounts::ListCrossAccountResourceAccountsError) -> Self {
1334 match err {
1335 crate::operation::list_cross_account_resource_accounts::ListCrossAccountResourceAccountsError::AccessDeniedException(inner) => {
1336 Error::AccessDeniedException(inner)
1337 }
1338 crate::operation::list_cross_account_resource_accounts::ListCrossAccountResourceAccountsError::InternalServiceErrorException(inner) => {
1339 Error::InternalServiceErrorException(inner)
1340 }
1341 crate::operation::list_cross_account_resource_accounts::ListCrossAccountResourceAccountsError::Unhandled(inner) => {
1342 Error::Unhandled(inner)
1343 }
1344 }
1345 }
1346}
1347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cross_account_resources::ListCrossAccountResourcesError, R>>
1348 for Error
1349where
1350 R: Send + Sync + std::fmt::Debug + 'static,
1351{
1352 fn from(
1353 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_cross_account_resources::ListCrossAccountResourcesError, R>,
1354 ) -> Self {
1355 match err {
1356 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1357 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1358 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1359 source: err.into(),
1360 }),
1361 }
1362 }
1363}
1364impl From<crate::operation::list_cross_account_resources::ListCrossAccountResourcesError> for Error {
1365 fn from(err: crate::operation::list_cross_account_resources::ListCrossAccountResourcesError) -> Self {
1366 match err {
1367 crate::operation::list_cross_account_resources::ListCrossAccountResourcesError::AcceleratorNotFoundException(inner) => {
1368 Error::AcceleratorNotFoundException(inner)
1369 }
1370 crate::operation::list_cross_account_resources::ListCrossAccountResourcesError::AccessDeniedException(inner) => {
1371 Error::AccessDeniedException(inner)
1372 }
1373 crate::operation::list_cross_account_resources::ListCrossAccountResourcesError::InternalServiceErrorException(inner) => {
1374 Error::InternalServiceErrorException(inner)
1375 }
1376 crate::operation::list_cross_account_resources::ListCrossAccountResourcesError::InvalidArgumentException(inner) => {
1377 Error::InvalidArgumentException(inner)
1378 }
1379 crate::operation::list_cross_account_resources::ListCrossAccountResourcesError::InvalidNextTokenException(inner) => {
1380 Error::InvalidNextTokenException(inner)
1381 }
1382 crate::operation::list_cross_account_resources::ListCrossAccountResourcesError::Unhandled(inner) => Error::Unhandled(inner),
1383 }
1384 }
1385}
1386impl<R>
1387 From<
1388 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_routing_accelerators::ListCustomRoutingAcceleratorsError, R>,
1389 > for Error
1390where
1391 R: Send + Sync + std::fmt::Debug + 'static,
1392{
1393 fn from(
1394 err: ::aws_smithy_runtime_api::client::result::SdkError<
1395 crate::operation::list_custom_routing_accelerators::ListCustomRoutingAcceleratorsError,
1396 R,
1397 >,
1398 ) -> Self {
1399 match err {
1400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1403 source: err.into(),
1404 }),
1405 }
1406 }
1407}
1408impl From<crate::operation::list_custom_routing_accelerators::ListCustomRoutingAcceleratorsError> for Error {
1409 fn from(err: crate::operation::list_custom_routing_accelerators::ListCustomRoutingAcceleratorsError) -> Self {
1410 match err {
1411 crate::operation::list_custom_routing_accelerators::ListCustomRoutingAcceleratorsError::InternalServiceErrorException(inner) => {
1412 Error::InternalServiceErrorException(inner)
1413 }
1414 crate::operation::list_custom_routing_accelerators::ListCustomRoutingAcceleratorsError::InvalidArgumentException(inner) => {
1415 Error::InvalidArgumentException(inner)
1416 }
1417 crate::operation::list_custom_routing_accelerators::ListCustomRoutingAcceleratorsError::InvalidNextTokenException(inner) => {
1418 Error::InvalidNextTokenException(inner)
1419 }
1420 crate::operation::list_custom_routing_accelerators::ListCustomRoutingAcceleratorsError::Unhandled(inner) => Error::Unhandled(inner),
1421 }
1422 }
1423}
1424impl<R>
1425 From<
1426 ::aws_smithy_runtime_api::client::result::SdkError<
1427 crate::operation::list_custom_routing_endpoint_groups::ListCustomRoutingEndpointGroupsError,
1428 R,
1429 >,
1430 > for Error
1431where
1432 R: Send + Sync + std::fmt::Debug + 'static,
1433{
1434 fn from(
1435 err: ::aws_smithy_runtime_api::client::result::SdkError<
1436 crate::operation::list_custom_routing_endpoint_groups::ListCustomRoutingEndpointGroupsError,
1437 R,
1438 >,
1439 ) -> Self {
1440 match err {
1441 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1442 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1443 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1444 source: err.into(),
1445 }),
1446 }
1447 }
1448}
1449impl From<crate::operation::list_custom_routing_endpoint_groups::ListCustomRoutingEndpointGroupsError> for Error {
1450 fn from(err: crate::operation::list_custom_routing_endpoint_groups::ListCustomRoutingEndpointGroupsError) -> Self {
1451 match err {
1452 crate::operation::list_custom_routing_endpoint_groups::ListCustomRoutingEndpointGroupsError::InternalServiceErrorException(inner) => {
1453 Error::InternalServiceErrorException(inner)
1454 }
1455 crate::operation::list_custom_routing_endpoint_groups::ListCustomRoutingEndpointGroupsError::InvalidArgumentException(inner) => {
1456 Error::InvalidArgumentException(inner)
1457 }
1458 crate::operation::list_custom_routing_endpoint_groups::ListCustomRoutingEndpointGroupsError::InvalidNextTokenException(inner) => {
1459 Error::InvalidNextTokenException(inner)
1460 }
1461 crate::operation::list_custom_routing_endpoint_groups::ListCustomRoutingEndpointGroupsError::ListenerNotFoundException(inner) => {
1462 Error::ListenerNotFoundException(inner)
1463 }
1464 crate::operation::list_custom_routing_endpoint_groups::ListCustomRoutingEndpointGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1465 }
1466 }
1467}
1468impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_routing_listeners::ListCustomRoutingListenersError, R>>
1469 for Error
1470where
1471 R: Send + Sync + std::fmt::Debug + 'static,
1472{
1473 fn from(
1474 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_routing_listeners::ListCustomRoutingListenersError, R>,
1475 ) -> Self {
1476 match err {
1477 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1478 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1479 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1480 source: err.into(),
1481 }),
1482 }
1483 }
1484}
1485impl From<crate::operation::list_custom_routing_listeners::ListCustomRoutingListenersError> for Error {
1486 fn from(err: crate::operation::list_custom_routing_listeners::ListCustomRoutingListenersError) -> Self {
1487 match err {
1488 crate::operation::list_custom_routing_listeners::ListCustomRoutingListenersError::AcceleratorNotFoundException(inner) => {
1489 Error::AcceleratorNotFoundException(inner)
1490 }
1491 crate::operation::list_custom_routing_listeners::ListCustomRoutingListenersError::InternalServiceErrorException(inner) => {
1492 Error::InternalServiceErrorException(inner)
1493 }
1494 crate::operation::list_custom_routing_listeners::ListCustomRoutingListenersError::InvalidArgumentException(inner) => {
1495 Error::InvalidArgumentException(inner)
1496 }
1497 crate::operation::list_custom_routing_listeners::ListCustomRoutingListenersError::InvalidNextTokenException(inner) => {
1498 Error::InvalidNextTokenException(inner)
1499 }
1500 crate::operation::list_custom_routing_listeners::ListCustomRoutingListenersError::Unhandled(inner) => Error::Unhandled(inner),
1501 }
1502 }
1503}
1504impl<R>
1505 From<
1506 ::aws_smithy_runtime_api::client::result::SdkError<
1507 crate::operation::list_custom_routing_port_mappings::ListCustomRoutingPortMappingsError,
1508 R,
1509 >,
1510 > for Error
1511where
1512 R: Send + Sync + std::fmt::Debug + 'static,
1513{
1514 fn from(
1515 err: ::aws_smithy_runtime_api::client::result::SdkError<
1516 crate::operation::list_custom_routing_port_mappings::ListCustomRoutingPortMappingsError,
1517 R,
1518 >,
1519 ) -> Self {
1520 match err {
1521 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1522 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1523 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1524 source: err.into(),
1525 }),
1526 }
1527 }
1528}
1529impl From<crate::operation::list_custom_routing_port_mappings::ListCustomRoutingPortMappingsError> for Error {
1530 fn from(err: crate::operation::list_custom_routing_port_mappings::ListCustomRoutingPortMappingsError) -> Self {
1531 match err {
1532 crate::operation::list_custom_routing_port_mappings::ListCustomRoutingPortMappingsError::AcceleratorNotFoundException(inner) => {
1533 Error::AcceleratorNotFoundException(inner)
1534 }
1535 crate::operation::list_custom_routing_port_mappings::ListCustomRoutingPortMappingsError::EndpointGroupNotFoundException(inner) => {
1536 Error::EndpointGroupNotFoundException(inner)
1537 }
1538 crate::operation::list_custom_routing_port_mappings::ListCustomRoutingPortMappingsError::InternalServiceErrorException(inner) => {
1539 Error::InternalServiceErrorException(inner)
1540 }
1541 crate::operation::list_custom_routing_port_mappings::ListCustomRoutingPortMappingsError::InvalidArgumentException(inner) => {
1542 Error::InvalidArgumentException(inner)
1543 }
1544 crate::operation::list_custom_routing_port_mappings::ListCustomRoutingPortMappingsError::InvalidNextTokenException(inner) => {
1545 Error::InvalidNextTokenException(inner)
1546 }
1547 crate::operation::list_custom_routing_port_mappings::ListCustomRoutingPortMappingsError::Unhandled(inner) => Error::Unhandled(inner),
1548 }
1549 }
1550}
1551impl<R>
1552 From<
1553 ::aws_smithy_runtime_api::client::result::SdkError<
1554 crate::operation::list_custom_routing_port_mappings_by_destination::ListCustomRoutingPortMappingsByDestinationError,
1555 R,
1556 >,
1557 > for Error
1558where
1559 R: Send + Sync + std::fmt::Debug + 'static,
1560{
1561 fn from(
1562 err: ::aws_smithy_runtime_api::client::result::SdkError<
1563 crate::operation::list_custom_routing_port_mappings_by_destination::ListCustomRoutingPortMappingsByDestinationError,
1564 R,
1565 >,
1566 ) -> Self {
1567 match err {
1568 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1569 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1570 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1571 source: err.into(),
1572 }),
1573 }
1574 }
1575}
1576impl From<crate::operation::list_custom_routing_port_mappings_by_destination::ListCustomRoutingPortMappingsByDestinationError> for Error {
1577 fn from(err: crate::operation::list_custom_routing_port_mappings_by_destination::ListCustomRoutingPortMappingsByDestinationError) -> Self {
1578 match err {
1579 crate::operation::list_custom_routing_port_mappings_by_destination::ListCustomRoutingPortMappingsByDestinationError::EndpointNotFoundException(inner) => Error::EndpointNotFoundException(inner),
1580 crate::operation::list_custom_routing_port_mappings_by_destination::ListCustomRoutingPortMappingsByDestinationError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
1581 crate::operation::list_custom_routing_port_mappings_by_destination::ListCustomRoutingPortMappingsByDestinationError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1582 crate::operation::list_custom_routing_port_mappings_by_destination::ListCustomRoutingPortMappingsByDestinationError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1583 crate::operation::list_custom_routing_port_mappings_by_destination::ListCustomRoutingPortMappingsByDestinationError::Unhandled(inner) => Error::Unhandled(inner),
1584 }
1585 }
1586}
1587impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_groups::ListEndpointGroupsError, R>> for Error
1588where
1589 R: Send + Sync + std::fmt::Debug + 'static,
1590{
1591 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_groups::ListEndpointGroupsError, R>) -> Self {
1592 match err {
1593 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1594 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1595 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1596 source: err.into(),
1597 }),
1598 }
1599 }
1600}
1601impl From<crate::operation::list_endpoint_groups::ListEndpointGroupsError> for Error {
1602 fn from(err: crate::operation::list_endpoint_groups::ListEndpointGroupsError) -> Self {
1603 match err {
1604 crate::operation::list_endpoint_groups::ListEndpointGroupsError::InternalServiceErrorException(inner) => {
1605 Error::InternalServiceErrorException(inner)
1606 }
1607 crate::operation::list_endpoint_groups::ListEndpointGroupsError::InvalidArgumentException(inner) => {
1608 Error::InvalidArgumentException(inner)
1609 }
1610 crate::operation::list_endpoint_groups::ListEndpointGroupsError::InvalidNextTokenException(inner) => {
1611 Error::InvalidNextTokenException(inner)
1612 }
1613 crate::operation::list_endpoint_groups::ListEndpointGroupsError::ListenerNotFoundException(inner) => {
1614 Error::ListenerNotFoundException(inner)
1615 }
1616 crate::operation::list_endpoint_groups::ListEndpointGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1617 }
1618 }
1619}
1620impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_listeners::ListListenersError, R>> for Error
1621where
1622 R: Send + Sync + std::fmt::Debug + 'static,
1623{
1624 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_listeners::ListListenersError, R>) -> Self {
1625 match err {
1626 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1627 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1628 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1629 source: err.into(),
1630 }),
1631 }
1632 }
1633}
1634impl From<crate::operation::list_listeners::ListListenersError> for Error {
1635 fn from(err: crate::operation::list_listeners::ListListenersError) -> Self {
1636 match err {
1637 crate::operation::list_listeners::ListListenersError::AcceleratorNotFoundException(inner) => Error::AcceleratorNotFoundException(inner),
1638 crate::operation::list_listeners::ListListenersError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
1639 crate::operation::list_listeners::ListListenersError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1640 crate::operation::list_listeners::ListListenersError::InvalidNextTokenException(inner) => Error::InvalidNextTokenException(inner),
1641 crate::operation::list_listeners::ListListenersError::Unhandled(inner) => Error::Unhandled(inner),
1642 }
1643 }
1644}
1645impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1646where
1647 R: Send + Sync + std::fmt::Debug + 'static,
1648{
1649 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1650 match err {
1651 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1652 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1653 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1654 source: err.into(),
1655 }),
1656 }
1657 }
1658}
1659impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1660 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1661 match err {
1662 crate::operation::list_tags_for_resource::ListTagsForResourceError::AcceleratorNotFoundException(inner) => {
1663 Error::AcceleratorNotFoundException(inner)
1664 }
1665 crate::operation::list_tags_for_resource::ListTagsForResourceError::AttachmentNotFoundException(inner) => {
1666 Error::AttachmentNotFoundException(inner)
1667 }
1668 crate::operation::list_tags_for_resource::ListTagsForResourceError::EndpointGroupNotFoundException(inner) => {
1669 Error::EndpointGroupNotFoundException(inner)
1670 }
1671 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServiceErrorException(inner) => {
1672 Error::InternalServiceErrorException(inner)
1673 }
1674 crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidArgumentException(inner) => {
1675 Error::InvalidArgumentException(inner)
1676 }
1677 crate::operation::list_tags_for_resource::ListTagsForResourceError::ListenerNotFoundException(inner) => {
1678 Error::ListenerNotFoundException(inner)
1679 }
1680 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1681 }
1682 }
1683}
1684impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>> for Error
1685where
1686 R: Send + Sync + std::fmt::Debug + 'static,
1687{
1688 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError, R>) -> Self {
1689 match err {
1690 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1691 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1692 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1693 source: err.into(),
1694 }),
1695 }
1696 }
1697}
1698impl From<crate::operation::provision_byoip_cidr::ProvisionByoipCidrError> for Error {
1699 fn from(err: crate::operation::provision_byoip_cidr::ProvisionByoipCidrError) -> Self {
1700 match err {
1701 crate::operation::provision_byoip_cidr::ProvisionByoipCidrError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1702 crate::operation::provision_byoip_cidr::ProvisionByoipCidrError::IncorrectCidrStateException(inner) => {
1703 Error::IncorrectCidrStateException(inner)
1704 }
1705 crate::operation::provision_byoip_cidr::ProvisionByoipCidrError::InternalServiceErrorException(inner) => {
1706 Error::InternalServiceErrorException(inner)
1707 }
1708 crate::operation::provision_byoip_cidr::ProvisionByoipCidrError::InvalidArgumentException(inner) => {
1709 Error::InvalidArgumentException(inner)
1710 }
1711 crate::operation::provision_byoip_cidr::ProvisionByoipCidrError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1712 crate::operation::provision_byoip_cidr::ProvisionByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
1713 }
1714 }
1715}
1716impl<R>
1717 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_custom_routing_endpoints::RemoveCustomRoutingEndpointsError, R>>
1718 for Error
1719where
1720 R: Send + Sync + std::fmt::Debug + 'static,
1721{
1722 fn from(
1723 err: ::aws_smithy_runtime_api::client::result::SdkError<
1724 crate::operation::remove_custom_routing_endpoints::RemoveCustomRoutingEndpointsError,
1725 R,
1726 >,
1727 ) -> Self {
1728 match err {
1729 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1730 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1731 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1732 source: err.into(),
1733 }),
1734 }
1735 }
1736}
1737impl From<crate::operation::remove_custom_routing_endpoints::RemoveCustomRoutingEndpointsError> for Error {
1738 fn from(err: crate::operation::remove_custom_routing_endpoints::RemoveCustomRoutingEndpointsError) -> Self {
1739 match err {
1740 crate::operation::remove_custom_routing_endpoints::RemoveCustomRoutingEndpointsError::AccessDeniedException(inner) => {
1741 Error::AccessDeniedException(inner)
1742 }
1743 crate::operation::remove_custom_routing_endpoints::RemoveCustomRoutingEndpointsError::ConflictException(inner) => {
1744 Error::ConflictException(inner)
1745 }
1746 crate::operation::remove_custom_routing_endpoints::RemoveCustomRoutingEndpointsError::EndpointGroupNotFoundException(inner) => {
1747 Error::EndpointGroupNotFoundException(inner)
1748 }
1749 crate::operation::remove_custom_routing_endpoints::RemoveCustomRoutingEndpointsError::EndpointNotFoundException(inner) => {
1750 Error::EndpointNotFoundException(inner)
1751 }
1752 crate::operation::remove_custom_routing_endpoints::RemoveCustomRoutingEndpointsError::InternalServiceErrorException(inner) => {
1753 Error::InternalServiceErrorException(inner)
1754 }
1755 crate::operation::remove_custom_routing_endpoints::RemoveCustomRoutingEndpointsError::InvalidArgumentException(inner) => {
1756 Error::InvalidArgumentException(inner)
1757 }
1758 crate::operation::remove_custom_routing_endpoints::RemoveCustomRoutingEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
1759 }
1760 }
1761}
1762impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_endpoints::RemoveEndpointsError, R>> for Error
1763where
1764 R: Send + Sync + std::fmt::Debug + 'static,
1765{
1766 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_endpoints::RemoveEndpointsError, R>) -> Self {
1767 match err {
1768 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1769 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1770 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1771 source: err.into(),
1772 }),
1773 }
1774 }
1775}
1776impl From<crate::operation::remove_endpoints::RemoveEndpointsError> for Error {
1777 fn from(err: crate::operation::remove_endpoints::RemoveEndpointsError) -> Self {
1778 match err {
1779 crate::operation::remove_endpoints::RemoveEndpointsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1780 crate::operation::remove_endpoints::RemoveEndpointsError::EndpointGroupNotFoundException(inner) => {
1781 Error::EndpointGroupNotFoundException(inner)
1782 }
1783 crate::operation::remove_endpoints::RemoveEndpointsError::InternalServiceErrorException(inner) => {
1784 Error::InternalServiceErrorException(inner)
1785 }
1786 crate::operation::remove_endpoints::RemoveEndpointsError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1787 crate::operation::remove_endpoints::RemoveEndpointsError::TransactionInProgressException(inner) => {
1788 Error::TransactionInProgressException(inner)
1789 }
1790 crate::operation::remove_endpoints::RemoveEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
1791 }
1792 }
1793}
1794impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1795where
1796 R: Send + Sync + std::fmt::Debug + 'static,
1797{
1798 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1799 match err {
1800 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1801 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1802 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1803 source: err.into(),
1804 }),
1805 }
1806 }
1807}
1808impl From<crate::operation::tag_resource::TagResourceError> for Error {
1809 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1810 match err {
1811 crate::operation::tag_resource::TagResourceError::AcceleratorNotFoundException(inner) => Error::AcceleratorNotFoundException(inner),
1812 crate::operation::tag_resource::TagResourceError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
1813 crate::operation::tag_resource::TagResourceError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1814 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1815 }
1816 }
1817}
1818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1819where
1820 R: Send + Sync + std::fmt::Debug + 'static,
1821{
1822 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1823 match err {
1824 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1825 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1826 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1827 source: err.into(),
1828 }),
1829 }
1830 }
1831}
1832impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1833 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1834 match err {
1835 crate::operation::untag_resource::UntagResourceError::AcceleratorNotFoundException(inner) => Error::AcceleratorNotFoundException(inner),
1836 crate::operation::untag_resource::UntagResourceError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
1837 crate::operation::untag_resource::UntagResourceError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1838 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1839 }
1840 }
1841}
1842impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_accelerator::UpdateAcceleratorError, R>> for Error
1843where
1844 R: Send + Sync + std::fmt::Debug + 'static,
1845{
1846 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_accelerator::UpdateAcceleratorError, R>) -> Self {
1847 match err {
1848 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1849 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1850 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1851 source: err.into(),
1852 }),
1853 }
1854 }
1855}
1856impl From<crate::operation::update_accelerator::UpdateAcceleratorError> for Error {
1857 fn from(err: crate::operation::update_accelerator::UpdateAcceleratorError) -> Self {
1858 match err {
1859 crate::operation::update_accelerator::UpdateAcceleratorError::AcceleratorNotFoundException(inner) => {
1860 Error::AcceleratorNotFoundException(inner)
1861 }
1862 crate::operation::update_accelerator::UpdateAcceleratorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1863 crate::operation::update_accelerator::UpdateAcceleratorError::ConflictException(inner) => Error::ConflictException(inner),
1864 crate::operation::update_accelerator::UpdateAcceleratorError::InternalServiceErrorException(inner) => {
1865 Error::InternalServiceErrorException(inner)
1866 }
1867 crate::operation::update_accelerator::UpdateAcceleratorError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1868 crate::operation::update_accelerator::UpdateAcceleratorError::TransactionInProgressException(inner) => {
1869 Error::TransactionInProgressException(inner)
1870 }
1871 crate::operation::update_accelerator::UpdateAcceleratorError::Unhandled(inner) => Error::Unhandled(inner),
1872 }
1873 }
1874}
1875impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError, R>>
1876 for Error
1877where
1878 R: Send + Sync + std::fmt::Debug + 'static,
1879{
1880 fn from(
1881 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError, R>,
1882 ) -> Self {
1883 match err {
1884 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1885 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1886 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1887 source: err.into(),
1888 }),
1889 }
1890 }
1891}
1892impl From<crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError> for Error {
1893 fn from(err: crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError) -> Self {
1894 match err {
1895 crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError::AcceleratorNotFoundException(inner) => {
1896 Error::AcceleratorNotFoundException(inner)
1897 }
1898 crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError::AccessDeniedException(inner) => {
1899 Error::AccessDeniedException(inner)
1900 }
1901 crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError::InternalServiceErrorException(inner) => {
1902 Error::InternalServiceErrorException(inner)
1903 }
1904 crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError::InvalidArgumentException(inner) => {
1905 Error::InvalidArgumentException(inner)
1906 }
1907 crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError::TransactionInProgressException(inner) => {
1908 Error::TransactionInProgressException(inner)
1909 }
1910 crate::operation::update_accelerator_attributes::UpdateAcceleratorAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1911 }
1912 }
1913}
1914impl<R>
1915 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cross_account_attachment::UpdateCrossAccountAttachmentError, R>>
1916 for Error
1917where
1918 R: Send + Sync + std::fmt::Debug + 'static,
1919{
1920 fn from(
1921 err: ::aws_smithy_runtime_api::client::result::SdkError<
1922 crate::operation::update_cross_account_attachment::UpdateCrossAccountAttachmentError,
1923 R,
1924 >,
1925 ) -> Self {
1926 match err {
1927 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1928 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1929 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1930 source: err.into(),
1931 }),
1932 }
1933 }
1934}
1935impl From<crate::operation::update_cross_account_attachment::UpdateCrossAccountAttachmentError> for Error {
1936 fn from(err: crate::operation::update_cross_account_attachment::UpdateCrossAccountAttachmentError) -> Self {
1937 match err {
1938 crate::operation::update_cross_account_attachment::UpdateCrossAccountAttachmentError::AccessDeniedException(inner) => {
1939 Error::AccessDeniedException(inner)
1940 }
1941 crate::operation::update_cross_account_attachment::UpdateCrossAccountAttachmentError::AttachmentNotFoundException(inner) => {
1942 Error::AttachmentNotFoundException(inner)
1943 }
1944 crate::operation::update_cross_account_attachment::UpdateCrossAccountAttachmentError::InternalServiceErrorException(inner) => {
1945 Error::InternalServiceErrorException(inner)
1946 }
1947 crate::operation::update_cross_account_attachment::UpdateCrossAccountAttachmentError::InvalidArgumentException(inner) => {
1948 Error::InvalidArgumentException(inner)
1949 }
1950 crate::operation::update_cross_account_attachment::UpdateCrossAccountAttachmentError::LimitExceededException(inner) => {
1951 Error::LimitExceededException(inner)
1952 }
1953 crate::operation::update_cross_account_attachment::UpdateCrossAccountAttachmentError::TransactionInProgressException(inner) => {
1954 Error::TransactionInProgressException(inner)
1955 }
1956 crate::operation::update_cross_account_attachment::UpdateCrossAccountAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
1957 }
1958 }
1959}
1960impl<R>
1961 From<
1962 ::aws_smithy_runtime_api::client::result::SdkError<
1963 crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError,
1964 R,
1965 >,
1966 > for Error
1967where
1968 R: Send + Sync + std::fmt::Debug + 'static,
1969{
1970 fn from(
1971 err: ::aws_smithy_runtime_api::client::result::SdkError<
1972 crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError,
1973 R,
1974 >,
1975 ) -> Self {
1976 match err {
1977 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1978 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1979 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1980 source: err.into(),
1981 }),
1982 }
1983 }
1984}
1985impl From<crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError> for Error {
1986 fn from(err: crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError) -> Self {
1987 match err {
1988 crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError::AcceleratorNotFoundException(inner) => {
1989 Error::AcceleratorNotFoundException(inner)
1990 }
1991 crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError::ConflictException(inner) => {
1992 Error::ConflictException(inner)
1993 }
1994 crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError::InternalServiceErrorException(inner) => {
1995 Error::InternalServiceErrorException(inner)
1996 }
1997 crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError::InvalidArgumentException(inner) => {
1998 Error::InvalidArgumentException(inner)
1999 }
2000 crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError::TransactionInProgressException(inner) => {
2001 Error::TransactionInProgressException(inner)
2002 }
2003 crate::operation::update_custom_routing_accelerator::UpdateCustomRoutingAcceleratorError::Unhandled(inner) => Error::Unhandled(inner),
2004 }
2005 }
2006}
2007impl<R>
2008 From<
2009 ::aws_smithy_runtime_api::client::result::SdkError<
2010 crate::operation::update_custom_routing_accelerator_attributes::UpdateCustomRoutingAcceleratorAttributesError,
2011 R,
2012 >,
2013 > for Error
2014where
2015 R: Send + Sync + std::fmt::Debug + 'static,
2016{
2017 fn from(
2018 err: ::aws_smithy_runtime_api::client::result::SdkError<
2019 crate::operation::update_custom_routing_accelerator_attributes::UpdateCustomRoutingAcceleratorAttributesError,
2020 R,
2021 >,
2022 ) -> Self {
2023 match err {
2024 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2025 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2026 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2027 source: err.into(),
2028 }),
2029 }
2030 }
2031}
2032impl From<crate::operation::update_custom_routing_accelerator_attributes::UpdateCustomRoutingAcceleratorAttributesError> for Error {
2033 fn from(err: crate::operation::update_custom_routing_accelerator_attributes::UpdateCustomRoutingAcceleratorAttributesError) -> Self {
2034 match err {
2035 crate::operation::update_custom_routing_accelerator_attributes::UpdateCustomRoutingAcceleratorAttributesError::AcceleratorNotFoundException(inner) => Error::AcceleratorNotFoundException(inner),
2036 crate::operation::update_custom_routing_accelerator_attributes::UpdateCustomRoutingAcceleratorAttributesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2037 crate::operation::update_custom_routing_accelerator_attributes::UpdateCustomRoutingAcceleratorAttributesError::InternalServiceErrorException(inner) => Error::InternalServiceErrorException(inner),
2038 crate::operation::update_custom_routing_accelerator_attributes::UpdateCustomRoutingAcceleratorAttributesError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
2039 crate::operation::update_custom_routing_accelerator_attributes::UpdateCustomRoutingAcceleratorAttributesError::TransactionInProgressException(inner) => Error::TransactionInProgressException(inner),
2040 crate::operation::update_custom_routing_accelerator_attributes::UpdateCustomRoutingAcceleratorAttributesError::Unhandled(inner) => Error::Unhandled(inner),
2041 }
2042 }
2043}
2044impl<R>
2045 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_custom_routing_listener::UpdateCustomRoutingListenerError, R>>
2046 for Error
2047where
2048 R: Send + Sync + std::fmt::Debug + 'static,
2049{
2050 fn from(
2051 err: ::aws_smithy_runtime_api::client::result::SdkError<
2052 crate::operation::update_custom_routing_listener::UpdateCustomRoutingListenerError,
2053 R,
2054 >,
2055 ) -> Self {
2056 match err {
2057 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2058 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2059 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2060 source: err.into(),
2061 }),
2062 }
2063 }
2064}
2065impl From<crate::operation::update_custom_routing_listener::UpdateCustomRoutingListenerError> for Error {
2066 fn from(err: crate::operation::update_custom_routing_listener::UpdateCustomRoutingListenerError) -> Self {
2067 match err {
2068 crate::operation::update_custom_routing_listener::UpdateCustomRoutingListenerError::InternalServiceErrorException(inner) => {
2069 Error::InternalServiceErrorException(inner)
2070 }
2071 crate::operation::update_custom_routing_listener::UpdateCustomRoutingListenerError::InvalidArgumentException(inner) => {
2072 Error::InvalidArgumentException(inner)
2073 }
2074 crate::operation::update_custom_routing_listener::UpdateCustomRoutingListenerError::InvalidPortRangeException(inner) => {
2075 Error::InvalidPortRangeException(inner)
2076 }
2077 crate::operation::update_custom_routing_listener::UpdateCustomRoutingListenerError::LimitExceededException(inner) => {
2078 Error::LimitExceededException(inner)
2079 }
2080 crate::operation::update_custom_routing_listener::UpdateCustomRoutingListenerError::ListenerNotFoundException(inner) => {
2081 Error::ListenerNotFoundException(inner)
2082 }
2083 crate::operation::update_custom_routing_listener::UpdateCustomRoutingListenerError::Unhandled(inner) => Error::Unhandled(inner),
2084 }
2085 }
2086}
2087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint_group::UpdateEndpointGroupError, R>> for Error
2088where
2089 R: Send + Sync + std::fmt::Debug + 'static,
2090{
2091 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint_group::UpdateEndpointGroupError, R>) -> Self {
2092 match err {
2093 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2094 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2095 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2096 source: err.into(),
2097 }),
2098 }
2099 }
2100}
2101impl From<crate::operation::update_endpoint_group::UpdateEndpointGroupError> for Error {
2102 fn from(err: crate::operation::update_endpoint_group::UpdateEndpointGroupError) -> Self {
2103 match err {
2104 crate::operation::update_endpoint_group::UpdateEndpointGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2105 crate::operation::update_endpoint_group::UpdateEndpointGroupError::EndpointGroupNotFoundException(inner) => {
2106 Error::EndpointGroupNotFoundException(inner)
2107 }
2108 crate::operation::update_endpoint_group::UpdateEndpointGroupError::InternalServiceErrorException(inner) => {
2109 Error::InternalServiceErrorException(inner)
2110 }
2111 crate::operation::update_endpoint_group::UpdateEndpointGroupError::InvalidArgumentException(inner) => {
2112 Error::InvalidArgumentException(inner)
2113 }
2114 crate::operation::update_endpoint_group::UpdateEndpointGroupError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2115 crate::operation::update_endpoint_group::UpdateEndpointGroupError::Unhandled(inner) => Error::Unhandled(inner),
2116 }
2117 }
2118}
2119impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_listener::UpdateListenerError, R>> for Error
2120where
2121 R: Send + Sync + std::fmt::Debug + 'static,
2122{
2123 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_listener::UpdateListenerError, R>) -> Self {
2124 match err {
2125 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2126 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2127 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2128 source: err.into(),
2129 }),
2130 }
2131 }
2132}
2133impl From<crate::operation::update_listener::UpdateListenerError> for Error {
2134 fn from(err: crate::operation::update_listener::UpdateListenerError) -> Self {
2135 match err {
2136 crate::operation::update_listener::UpdateListenerError::InternalServiceErrorException(inner) => {
2137 Error::InternalServiceErrorException(inner)
2138 }
2139 crate::operation::update_listener::UpdateListenerError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
2140 crate::operation::update_listener::UpdateListenerError::InvalidPortRangeException(inner) => Error::InvalidPortRangeException(inner),
2141 crate::operation::update_listener::UpdateListenerError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2142 crate::operation::update_listener::UpdateListenerError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
2143 crate::operation::update_listener::UpdateListenerError::Unhandled(inner) => Error::Unhandled(inner),
2144 }
2145 }
2146}
2147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>> for Error
2148where
2149 R: Send + Sync + std::fmt::Debug + 'static,
2150{
2151 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError, R>) -> Self {
2152 match err {
2153 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2154 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2155 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2156 source: err.into(),
2157 }),
2158 }
2159 }
2160}
2161impl From<crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError> for Error {
2162 fn from(err: crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError) -> Self {
2163 match err {
2164 crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2165 crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError::ByoipCidrNotFoundException(inner) => {
2166 Error::ByoipCidrNotFoundException(inner)
2167 }
2168 crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError::IncorrectCidrStateException(inner) => {
2169 Error::IncorrectCidrStateException(inner)
2170 }
2171 crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError::InternalServiceErrorException(inner) => {
2172 Error::InternalServiceErrorException(inner)
2173 }
2174 crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
2175 crate::operation::withdraw_byoip_cidr::WithdrawByoipCidrError::Unhandled(inner) => Error::Unhandled(inner),
2176 }
2177 }
2178}
2179impl ::std::error::Error for Error {
2180 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2181 match self {
2182 Error::AcceleratorNotDisabledException(inner) => inner.source(),
2183 Error::AcceleratorNotFoundException(inner) => inner.source(),
2184 Error::AccessDeniedException(inner) => inner.source(),
2185 Error::AssociatedEndpointGroupFoundException(inner) => inner.source(),
2186 Error::AssociatedListenerFoundException(inner) => inner.source(),
2187 Error::AttachmentNotFoundException(inner) => inner.source(),
2188 Error::ByoipCidrNotFoundException(inner) => inner.source(),
2189 Error::ConflictException(inner) => inner.source(),
2190 Error::EndpointAlreadyExistsException(inner) => inner.source(),
2191 Error::EndpointGroupAlreadyExistsException(inner) => inner.source(),
2192 Error::EndpointGroupNotFoundException(inner) => inner.source(),
2193 Error::EndpointNotFoundException(inner) => inner.source(),
2194 Error::IncorrectCidrStateException(inner) => inner.source(),
2195 Error::InternalServiceErrorException(inner) => inner.source(),
2196 Error::InvalidArgumentException(inner) => inner.source(),
2197 Error::InvalidNextTokenException(inner) => inner.source(),
2198 Error::InvalidPortRangeException(inner) => inner.source(),
2199 Error::LimitExceededException(inner) => inner.source(),
2200 Error::ListenerNotFoundException(inner) => inner.source(),
2201 Error::TransactionInProgressException(inner) => inner.source(),
2202 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2203 }
2204 }
2205}
2206impl ::aws_types::request_id::RequestId for Error {
2207 fn request_id(&self) -> Option<&str> {
2208 match self {
2209 Self::AcceleratorNotDisabledException(e) => e.request_id(),
2210 Self::AcceleratorNotFoundException(e) => e.request_id(),
2211 Self::AccessDeniedException(e) => e.request_id(),
2212 Self::AssociatedEndpointGroupFoundException(e) => e.request_id(),
2213 Self::AssociatedListenerFoundException(e) => e.request_id(),
2214 Self::AttachmentNotFoundException(e) => e.request_id(),
2215 Self::ByoipCidrNotFoundException(e) => e.request_id(),
2216 Self::ConflictException(e) => e.request_id(),
2217 Self::EndpointAlreadyExistsException(e) => e.request_id(),
2218 Self::EndpointGroupAlreadyExistsException(e) => e.request_id(),
2219 Self::EndpointGroupNotFoundException(e) => e.request_id(),
2220 Self::EndpointNotFoundException(e) => e.request_id(),
2221 Self::IncorrectCidrStateException(e) => e.request_id(),
2222 Self::InternalServiceErrorException(e) => e.request_id(),
2223 Self::InvalidArgumentException(e) => e.request_id(),
2224 Self::InvalidNextTokenException(e) => e.request_id(),
2225 Self::InvalidPortRangeException(e) => e.request_id(),
2226 Self::LimitExceededException(e) => e.request_id(),
2227 Self::ListenerNotFoundException(e) => e.request_id(),
2228 Self::TransactionInProgressException(e) => e.request_id(),
2229 Self::Unhandled(e) => e.meta.request_id(),
2230 }
2231 }
2232}