1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 CoreNetworkPolicyException(crate::types::error::CoreNetworkPolicyException),
12 InternalServerException(crate::types::error::InternalServerException),
14 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
16 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
18 ThrottlingException(crate::types::error::ThrottlingException),
20 ValidationException(crate::types::error::ValidationException),
22 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
24 variable wildcard pattern and check `.code()`:
25 \
26 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
27 \
28 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
29 Unhandled(crate::error::sealed_unhandled::Unhandled),
30}
31impl ::std::fmt::Display for Error {
32 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33 match self {
34 Error::AccessDeniedException(inner) => inner.fmt(f),
35 Error::ConflictException(inner) => inner.fmt(f),
36 Error::CoreNetworkPolicyException(inner) => inner.fmt(f),
37 Error::InternalServerException(inner) => inner.fmt(f),
38 Error::ResourceNotFoundException(inner) => inner.fmt(f),
39 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
40 Error::ThrottlingException(inner) => inner.fmt(f),
41 Error::ValidationException(inner) => inner.fmt(f),
42 Error::Unhandled(_) => {
43 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
44 write!(f, "unhandled error ({code})")
45 } else {
46 f.write_str("unhandled error")
47 }
48 }
49 }
50 }
51}
52impl From<::aws_smithy_types::error::operation::BuildError> for Error {
53 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
54 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
55 source: value.into(),
56 meta: ::std::default::Default::default(),
57 })
58 }
59}
60impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
61 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
62 match self {
63 Self::AccessDeniedException(inner) => inner.meta(),
64 Self::ConflictException(inner) => inner.meta(),
65 Self::CoreNetworkPolicyException(inner) => inner.meta(),
66 Self::InternalServerException(inner) => inner.meta(),
67 Self::ResourceNotFoundException(inner) => inner.meta(),
68 Self::ServiceQuotaExceededException(inner) => inner.meta(),
69 Self::ThrottlingException(inner) => inner.meta(),
70 Self::ValidationException(inner) => inner.meta(),
71 Self::Unhandled(inner) => &inner.meta,
72 }
73 }
74}
75impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_attachment::AcceptAttachmentError, R>> for Error
76where
77 R: Send + Sync + std::fmt::Debug + 'static,
78{
79 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_attachment::AcceptAttachmentError, R>) -> Self {
80 match err {
81 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
82 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
83 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
84 source: err.into(),
85 }),
86 }
87 }
88}
89impl From<crate::operation::accept_attachment::AcceptAttachmentError> for Error {
90 fn from(err: crate::operation::accept_attachment::AcceptAttachmentError) -> Self {
91 match err {
92 crate::operation::accept_attachment::AcceptAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
93 crate::operation::accept_attachment::AcceptAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
94 crate::operation::accept_attachment::AcceptAttachmentError::InternalServerException(inner) => Error::InternalServerException(inner),
95 crate::operation::accept_attachment::AcceptAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
96 crate::operation::accept_attachment::AcceptAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
97 crate::operation::accept_attachment::AcceptAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
98 crate::operation::accept_attachment::AcceptAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
99 }
100 }
101}
102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_connect_peer::AssociateConnectPeerError, R>> for Error
103where
104 R: Send + Sync + std::fmt::Debug + 'static,
105{
106 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_connect_peer::AssociateConnectPeerError, R>) -> Self {
107 match err {
108 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
109 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
110 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
111 source: err.into(),
112 }),
113 }
114 }
115}
116impl From<crate::operation::associate_connect_peer::AssociateConnectPeerError> for Error {
117 fn from(err: crate::operation::associate_connect_peer::AssociateConnectPeerError) -> Self {
118 match err {
119 crate::operation::associate_connect_peer::AssociateConnectPeerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
120 crate::operation::associate_connect_peer::AssociateConnectPeerError::ConflictException(inner) => Error::ConflictException(inner),
121 crate::operation::associate_connect_peer::AssociateConnectPeerError::InternalServerException(inner) => {
122 Error::InternalServerException(inner)
123 }
124 crate::operation::associate_connect_peer::AssociateConnectPeerError::ResourceNotFoundException(inner) => {
125 Error::ResourceNotFoundException(inner)
126 }
127 crate::operation::associate_connect_peer::AssociateConnectPeerError::ServiceQuotaExceededException(inner) => {
128 Error::ServiceQuotaExceededException(inner)
129 }
130 crate::operation::associate_connect_peer::AssociateConnectPeerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
131 crate::operation::associate_connect_peer::AssociateConnectPeerError::ValidationException(inner) => Error::ValidationException(inner),
132 crate::operation::associate_connect_peer::AssociateConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
133 }
134 }
135}
136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_customer_gateway::AssociateCustomerGatewayError, R>>
137 for Error
138where
139 R: Send + Sync + std::fmt::Debug + 'static,
140{
141 fn from(
142 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_customer_gateway::AssociateCustomerGatewayError, R>,
143 ) -> Self {
144 match err {
145 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
146 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
147 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
148 source: err.into(),
149 }),
150 }
151 }
152}
153impl From<crate::operation::associate_customer_gateway::AssociateCustomerGatewayError> for Error {
154 fn from(err: crate::operation::associate_customer_gateway::AssociateCustomerGatewayError) -> Self {
155 match err {
156 crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::AccessDeniedException(inner) => {
157 Error::AccessDeniedException(inner)
158 }
159 crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::ConflictException(inner) => Error::ConflictException(inner),
160 crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::InternalServerException(inner) => {
161 Error::InternalServerException(inner)
162 }
163 crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::ResourceNotFoundException(inner) => {
164 Error::ResourceNotFoundException(inner)
165 }
166 crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::ServiceQuotaExceededException(inner) => {
167 Error::ServiceQuotaExceededException(inner)
168 }
169 crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::ThrottlingException(inner) => {
170 Error::ThrottlingException(inner)
171 }
172 crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::ValidationException(inner) => {
173 Error::ValidationException(inner)
174 }
175 crate::operation::associate_customer_gateway::AssociateCustomerGatewayError::Unhandled(inner) => Error::Unhandled(inner),
176 }
177 }
178}
179impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_link::AssociateLinkError, R>> for Error
180where
181 R: Send + Sync + std::fmt::Debug + 'static,
182{
183 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_link::AssociateLinkError, R>) -> Self {
184 match err {
185 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
186 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
187 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
188 source: err.into(),
189 }),
190 }
191 }
192}
193impl From<crate::operation::associate_link::AssociateLinkError> for Error {
194 fn from(err: crate::operation::associate_link::AssociateLinkError) -> Self {
195 match err {
196 crate::operation::associate_link::AssociateLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
197 crate::operation::associate_link::AssociateLinkError::ConflictException(inner) => Error::ConflictException(inner),
198 crate::operation::associate_link::AssociateLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
199 crate::operation::associate_link::AssociateLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
200 crate::operation::associate_link::AssociateLinkError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
201 crate::operation::associate_link::AssociateLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
202 crate::operation::associate_link::AssociateLinkError::ValidationException(inner) => Error::ValidationException(inner),
203 crate::operation::associate_link::AssociateLinkError::Unhandled(inner) => Error::Unhandled(inner),
204 }
205 }
206}
207impl<R>
208 From<
209 ::aws_smithy_runtime_api::client::result::SdkError<
210 crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError,
211 R,
212 >,
213 > for Error
214where
215 R: Send + Sync + std::fmt::Debug + 'static,
216{
217 fn from(
218 err: ::aws_smithy_runtime_api::client::result::SdkError<
219 crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError,
220 R,
221 >,
222 ) -> Self {
223 match err {
224 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
225 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
226 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
227 source: err.into(),
228 }),
229 }
230 }
231}
232impl From<crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError> for Error {
233 fn from(err: crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError) -> Self {
234 match err {
235 crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::AccessDeniedException(inner) => {
236 Error::AccessDeniedException(inner)
237 }
238 crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::ConflictException(inner) => {
239 Error::ConflictException(inner)
240 }
241 crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::InternalServerException(inner) => {
242 Error::InternalServerException(inner)
243 }
244 crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::ResourceNotFoundException(inner) => {
245 Error::ResourceNotFoundException(inner)
246 }
247 crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::ServiceQuotaExceededException(
248 inner,
249 ) => Error::ServiceQuotaExceededException(inner),
250 crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::ThrottlingException(inner) => {
251 Error::ThrottlingException(inner)
252 }
253 crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::ValidationException(inner) => {
254 Error::ValidationException(inner)
255 }
256 crate::operation::associate_transit_gateway_connect_peer::AssociateTransitGatewayConnectPeerError::Unhandled(inner) => {
257 Error::Unhandled(inner)
258 }
259 }
260 }
261}
262impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connect_attachment::CreateConnectAttachmentError, R>>
263 for Error
264where
265 R: Send + Sync + std::fmt::Debug + 'static,
266{
267 fn from(
268 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connect_attachment::CreateConnectAttachmentError, R>,
269 ) -> Self {
270 match err {
271 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
272 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
273 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
274 source: err.into(),
275 }),
276 }
277 }
278}
279impl From<crate::operation::create_connect_attachment::CreateConnectAttachmentError> for Error {
280 fn from(err: crate::operation::create_connect_attachment::CreateConnectAttachmentError) -> Self {
281 match err {
282 crate::operation::create_connect_attachment::CreateConnectAttachmentError::AccessDeniedException(inner) => {
283 Error::AccessDeniedException(inner)
284 }
285 crate::operation::create_connect_attachment::CreateConnectAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
286 crate::operation::create_connect_attachment::CreateConnectAttachmentError::InternalServerException(inner) => {
287 Error::InternalServerException(inner)
288 }
289 crate::operation::create_connect_attachment::CreateConnectAttachmentError::ResourceNotFoundException(inner) => {
290 Error::ResourceNotFoundException(inner)
291 }
292 crate::operation::create_connect_attachment::CreateConnectAttachmentError::ThrottlingException(inner) => {
293 Error::ThrottlingException(inner)
294 }
295 crate::operation::create_connect_attachment::CreateConnectAttachmentError::ValidationException(inner) => {
296 Error::ValidationException(inner)
297 }
298 crate::operation::create_connect_attachment::CreateConnectAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
299 }
300 }
301}
302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>> for Error
303where
304 R: Send + Sync + std::fmt::Debug + 'static,
305{
306 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>) -> Self {
307 match err {
308 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
309 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
310 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
311 source: err.into(),
312 }),
313 }
314 }
315}
316impl From<crate::operation::create_connection::CreateConnectionError> for Error {
317 fn from(err: crate::operation::create_connection::CreateConnectionError) -> Self {
318 match err {
319 crate::operation::create_connection::CreateConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
320 crate::operation::create_connection::CreateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
321 crate::operation::create_connection::CreateConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
322 crate::operation::create_connection::CreateConnectionError::ServiceQuotaExceededException(inner) => {
323 Error::ServiceQuotaExceededException(inner)
324 }
325 crate::operation::create_connection::CreateConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
326 crate::operation::create_connection::CreateConnectionError::ValidationException(inner) => Error::ValidationException(inner),
327 crate::operation::create_connection::CreateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
328 }
329 }
330}
331impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connect_peer::CreateConnectPeerError, R>> for Error
332where
333 R: Send + Sync + std::fmt::Debug + 'static,
334{
335 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connect_peer::CreateConnectPeerError, R>) -> Self {
336 match err {
337 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
338 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
339 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
340 source: err.into(),
341 }),
342 }
343 }
344}
345impl From<crate::operation::create_connect_peer::CreateConnectPeerError> for Error {
346 fn from(err: crate::operation::create_connect_peer::CreateConnectPeerError) -> Self {
347 match err {
348 crate::operation::create_connect_peer::CreateConnectPeerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
349 crate::operation::create_connect_peer::CreateConnectPeerError::ConflictException(inner) => Error::ConflictException(inner),
350 crate::operation::create_connect_peer::CreateConnectPeerError::InternalServerException(inner) => Error::InternalServerException(inner),
351 crate::operation::create_connect_peer::CreateConnectPeerError::ResourceNotFoundException(inner) => {
352 Error::ResourceNotFoundException(inner)
353 }
354 crate::operation::create_connect_peer::CreateConnectPeerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
355 crate::operation::create_connect_peer::CreateConnectPeerError::ValidationException(inner) => Error::ValidationException(inner),
356 crate::operation::create_connect_peer::CreateConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
357 }
358 }
359}
360impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_core_network::CreateCoreNetworkError, R>> for Error
361where
362 R: Send + Sync + std::fmt::Debug + 'static,
363{
364 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_core_network::CreateCoreNetworkError, R>) -> Self {
365 match err {
366 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
367 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
368 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
369 source: err.into(),
370 }),
371 }
372 }
373}
374impl From<crate::operation::create_core_network::CreateCoreNetworkError> for Error {
375 fn from(err: crate::operation::create_core_network::CreateCoreNetworkError) -> Self {
376 match err {
377 crate::operation::create_core_network::CreateCoreNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
378 crate::operation::create_core_network::CreateCoreNetworkError::ConflictException(inner) => Error::ConflictException(inner),
379 crate::operation::create_core_network::CreateCoreNetworkError::CoreNetworkPolicyException(inner) => {
380 Error::CoreNetworkPolicyException(inner)
381 }
382 crate::operation::create_core_network::CreateCoreNetworkError::InternalServerException(inner) => Error::InternalServerException(inner),
383 crate::operation::create_core_network::CreateCoreNetworkError::ServiceQuotaExceededException(inner) => {
384 Error::ServiceQuotaExceededException(inner)
385 }
386 crate::operation::create_core_network::CreateCoreNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
387 crate::operation::create_core_network::CreateCoreNetworkError::ValidationException(inner) => Error::ValidationException(inner),
388 crate::operation::create_core_network::CreateCoreNetworkError::Unhandled(inner) => Error::Unhandled(inner),
389 }
390 }
391}
392impl<R>
393 From<
394 ::aws_smithy_runtime_api::client::result::SdkError<
395 crate::operation::create_core_network_prefix_list_association::CreateCoreNetworkPrefixListAssociationError,
396 R,
397 >,
398 > for Error
399where
400 R: Send + Sync + std::fmt::Debug + 'static,
401{
402 fn from(
403 err: ::aws_smithy_runtime_api::client::result::SdkError<
404 crate::operation::create_core_network_prefix_list_association::CreateCoreNetworkPrefixListAssociationError,
405 R,
406 >,
407 ) -> Self {
408 match err {
409 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
410 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
411 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
412 source: err.into(),
413 }),
414 }
415 }
416}
417impl From<crate::operation::create_core_network_prefix_list_association::CreateCoreNetworkPrefixListAssociationError> for Error {
418 fn from(err: crate::operation::create_core_network_prefix_list_association::CreateCoreNetworkPrefixListAssociationError) -> Self {
419 match err {
420 crate::operation::create_core_network_prefix_list_association::CreateCoreNetworkPrefixListAssociationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
421 crate::operation::create_core_network_prefix_list_association::CreateCoreNetworkPrefixListAssociationError::ConflictException(inner) => Error::ConflictException(inner),
422 crate::operation::create_core_network_prefix_list_association::CreateCoreNetworkPrefixListAssociationError::InternalServerException(inner) => Error::InternalServerException(inner),
423 crate::operation::create_core_network_prefix_list_association::CreateCoreNetworkPrefixListAssociationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
424 crate::operation::create_core_network_prefix_list_association::CreateCoreNetworkPrefixListAssociationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
425 crate::operation::create_core_network_prefix_list_association::CreateCoreNetworkPrefixListAssociationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
426 crate::operation::create_core_network_prefix_list_association::CreateCoreNetworkPrefixListAssociationError::ValidationException(inner) => Error::ValidationException(inner),
427 crate::operation::create_core_network_prefix_list_association::CreateCoreNetworkPrefixListAssociationError::Unhandled(inner) => Error::Unhandled(inner),
428 }
429 }
430}
431impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device::CreateDeviceError, R>> for Error
432where
433 R: Send + Sync + std::fmt::Debug + 'static,
434{
435 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_device::CreateDeviceError, R>) -> Self {
436 match err {
437 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
438 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
439 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
440 source: err.into(),
441 }),
442 }
443 }
444}
445impl From<crate::operation::create_device::CreateDeviceError> for Error {
446 fn from(err: crate::operation::create_device::CreateDeviceError) -> Self {
447 match err {
448 crate::operation::create_device::CreateDeviceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
449 crate::operation::create_device::CreateDeviceError::ConflictException(inner) => Error::ConflictException(inner),
450 crate::operation::create_device::CreateDeviceError::InternalServerException(inner) => Error::InternalServerException(inner),
451 crate::operation::create_device::CreateDeviceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
452 crate::operation::create_device::CreateDeviceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
453 crate::operation::create_device::CreateDeviceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
454 crate::operation::create_device::CreateDeviceError::ValidationException(inner) => Error::ValidationException(inner),
455 crate::operation::create_device::CreateDeviceError::Unhandled(inner) => Error::Unhandled(inner),
456 }
457 }
458}
459impl<R>
460 From<
461 ::aws_smithy_runtime_api::client::result::SdkError<
462 crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError,
463 R,
464 >,
465 > for Error
466where
467 R: Send + Sync + std::fmt::Debug + 'static,
468{
469 fn from(
470 err: ::aws_smithy_runtime_api::client::result::SdkError<
471 crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError,
472 R,
473 >,
474 ) -> Self {
475 match err {
476 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
477 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
478 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
479 source: err.into(),
480 }),
481 }
482 }
483}
484impl From<crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError> for Error {
485 fn from(err: crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError) -> Self {
486 match err {
487 crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::AccessDeniedException(inner) => {
488 Error::AccessDeniedException(inner)
489 }
490 crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::ConflictException(inner) => {
491 Error::ConflictException(inner)
492 }
493 crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::InternalServerException(inner) => {
494 Error::InternalServerException(inner)
495 }
496 crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::ResourceNotFoundException(
497 inner,
498 ) => Error::ResourceNotFoundException(inner),
499 crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::ThrottlingException(inner) => {
500 Error::ThrottlingException(inner)
501 }
502 crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::ValidationException(inner) => {
503 Error::ValidationException(inner)
504 }
505 crate::operation::create_direct_connect_gateway_attachment::CreateDirectConnectGatewayAttachmentError::Unhandled(inner) => {
506 Error::Unhandled(inner)
507 }
508 }
509 }
510}
511impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_global_network::CreateGlobalNetworkError, R>> for Error
512where
513 R: Send + Sync + std::fmt::Debug + 'static,
514{
515 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_global_network::CreateGlobalNetworkError, R>) -> Self {
516 match err {
517 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
518 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
519 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
520 source: err.into(),
521 }),
522 }
523 }
524}
525impl From<crate::operation::create_global_network::CreateGlobalNetworkError> for Error {
526 fn from(err: crate::operation::create_global_network::CreateGlobalNetworkError) -> Self {
527 match err {
528 crate::operation::create_global_network::CreateGlobalNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
529 crate::operation::create_global_network::CreateGlobalNetworkError::ConflictException(inner) => Error::ConflictException(inner),
530 crate::operation::create_global_network::CreateGlobalNetworkError::InternalServerException(inner) => {
531 Error::InternalServerException(inner)
532 }
533 crate::operation::create_global_network::CreateGlobalNetworkError::ServiceQuotaExceededException(inner) => {
534 Error::ServiceQuotaExceededException(inner)
535 }
536 crate::operation::create_global_network::CreateGlobalNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
537 crate::operation::create_global_network::CreateGlobalNetworkError::ValidationException(inner) => Error::ValidationException(inner),
538 crate::operation::create_global_network::CreateGlobalNetworkError::Unhandled(inner) => Error::Unhandled(inner),
539 }
540 }
541}
542impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_link::CreateLinkError, R>> for Error
543where
544 R: Send + Sync + std::fmt::Debug + 'static,
545{
546 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_link::CreateLinkError, R>) -> Self {
547 match err {
548 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
549 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
550 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
551 source: err.into(),
552 }),
553 }
554 }
555}
556impl From<crate::operation::create_link::CreateLinkError> for Error {
557 fn from(err: crate::operation::create_link::CreateLinkError) -> Self {
558 match err {
559 crate::operation::create_link::CreateLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
560 crate::operation::create_link::CreateLinkError::ConflictException(inner) => Error::ConflictException(inner),
561 crate::operation::create_link::CreateLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
562 crate::operation::create_link::CreateLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
563 crate::operation::create_link::CreateLinkError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
564 crate::operation::create_link::CreateLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
565 crate::operation::create_link::CreateLinkError::ValidationException(inner) => Error::ValidationException(inner),
566 crate::operation::create_link::CreateLinkError::Unhandled(inner) => Error::Unhandled(inner),
567 }
568 }
569}
570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_site::CreateSiteError, R>> for Error
571where
572 R: Send + Sync + std::fmt::Debug + 'static,
573{
574 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_site::CreateSiteError, R>) -> Self {
575 match err {
576 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
577 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
578 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
579 source: err.into(),
580 }),
581 }
582 }
583}
584impl From<crate::operation::create_site::CreateSiteError> for Error {
585 fn from(err: crate::operation::create_site::CreateSiteError) -> Self {
586 match err {
587 crate::operation::create_site::CreateSiteError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
588 crate::operation::create_site::CreateSiteError::ConflictException(inner) => Error::ConflictException(inner),
589 crate::operation::create_site::CreateSiteError::InternalServerException(inner) => Error::InternalServerException(inner),
590 crate::operation::create_site::CreateSiteError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
591 crate::operation::create_site::CreateSiteError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
592 crate::operation::create_site::CreateSiteError::ThrottlingException(inner) => Error::ThrottlingException(inner),
593 crate::operation::create_site::CreateSiteError::ValidationException(inner) => Error::ValidationException(inner),
594 crate::operation::create_site::CreateSiteError::Unhandled(inner) => Error::Unhandled(inner),
595 }
596 }
597}
598impl<R>
599 From<
600 ::aws_smithy_runtime_api::client::result::SdkError<
601 crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError,
602 R,
603 >,
604 > for Error
605where
606 R: Send + Sync + std::fmt::Debug + 'static,
607{
608 fn from(
609 err: ::aws_smithy_runtime_api::client::result::SdkError<
610 crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError,
611 R,
612 >,
613 ) -> Self {
614 match err {
615 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
616 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
617 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
618 source: err.into(),
619 }),
620 }
621 }
622}
623impl From<crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError> for Error {
624 fn from(err: crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError) -> Self {
625 match err {
626 crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::AccessDeniedException(inner) => {
627 Error::AccessDeniedException(inner)
628 }
629 crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::ConflictException(inner) => {
630 Error::ConflictException(inner)
631 }
632 crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::InternalServerException(inner) => {
633 Error::InternalServerException(inner)
634 }
635 crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::ResourceNotFoundException(inner) => {
636 Error::ResourceNotFoundException(inner)
637 }
638 crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::ThrottlingException(inner) => {
639 Error::ThrottlingException(inner)
640 }
641 crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::ValidationException(inner) => {
642 Error::ValidationException(inner)
643 }
644 crate::operation::create_site_to_site_vpn_attachment::CreateSiteToSiteVpnAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
645 }
646 }
647}
648impl<R>
649 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError, R>>
650 for Error
651where
652 R: Send + Sync + std::fmt::Debug + 'static,
653{
654 fn from(
655 err: ::aws_smithy_runtime_api::client::result::SdkError<
656 crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError,
657 R,
658 >,
659 ) -> Self {
660 match err {
661 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
662 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
663 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
664 source: err.into(),
665 }),
666 }
667 }
668}
669impl From<crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError> for Error {
670 fn from(err: crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError) -> Self {
671 match err {
672 crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::AccessDeniedException(inner) => {
673 Error::AccessDeniedException(inner)
674 }
675 crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::ConflictException(inner) => {
676 Error::ConflictException(inner)
677 }
678 crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::InternalServerException(inner) => {
679 Error::InternalServerException(inner)
680 }
681 crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::ResourceNotFoundException(inner) => {
682 Error::ResourceNotFoundException(inner)
683 }
684 crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::ThrottlingException(inner) => {
685 Error::ThrottlingException(inner)
686 }
687 crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::ValidationException(inner) => {
688 Error::ValidationException(inner)
689 }
690 crate::operation::create_transit_gateway_peering::CreateTransitGatewayPeeringError::Unhandled(inner) => Error::Unhandled(inner),
691 }
692 }
693}
694impl<R>
695 From<
696 ::aws_smithy_runtime_api::client::result::SdkError<
697 crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError,
698 R,
699 >,
700 > for Error
701where
702 R: Send + Sync + std::fmt::Debug + 'static,
703{
704 fn from(
705 err: ::aws_smithy_runtime_api::client::result::SdkError<
706 crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError,
707 R,
708 >,
709 ) -> Self {
710 match err {
711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
714 source: err.into(),
715 }),
716 }
717 }
718}
719impl From<crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError> for Error {
720 fn from(err: crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError) -> Self {
721 match err {
722 crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
723 crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
724 crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::InternalServerException(inner) => Error::InternalServerException(inner),
725 crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
726 crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
727 crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
728 crate::operation::create_transit_gateway_route_table_attachment::CreateTransitGatewayRouteTableAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
729 }
730 }
731}
732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_attachment::CreateVpcAttachmentError, R>> for Error
733where
734 R: Send + Sync + std::fmt::Debug + 'static,
735{
736 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_attachment::CreateVpcAttachmentError, R>) -> Self {
737 match err {
738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
741 source: err.into(),
742 }),
743 }
744 }
745}
746impl From<crate::operation::create_vpc_attachment::CreateVpcAttachmentError> for Error {
747 fn from(err: crate::operation::create_vpc_attachment::CreateVpcAttachmentError) -> Self {
748 match err {
749 crate::operation::create_vpc_attachment::CreateVpcAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
750 crate::operation::create_vpc_attachment::CreateVpcAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
751 crate::operation::create_vpc_attachment::CreateVpcAttachmentError::InternalServerException(inner) => {
752 Error::InternalServerException(inner)
753 }
754 crate::operation::create_vpc_attachment::CreateVpcAttachmentError::ResourceNotFoundException(inner) => {
755 Error::ResourceNotFoundException(inner)
756 }
757 crate::operation::create_vpc_attachment::CreateVpcAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
758 crate::operation::create_vpc_attachment::CreateVpcAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
759 crate::operation::create_vpc_attachment::CreateVpcAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
760 }
761 }
762}
763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_attachment::DeleteAttachmentError, R>> for Error
764where
765 R: Send + Sync + std::fmt::Debug + 'static,
766{
767 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_attachment::DeleteAttachmentError, R>) -> Self {
768 match err {
769 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
770 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
771 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
772 source: err.into(),
773 }),
774 }
775 }
776}
777impl From<crate::operation::delete_attachment::DeleteAttachmentError> for Error {
778 fn from(err: crate::operation::delete_attachment::DeleteAttachmentError) -> Self {
779 match err {
780 crate::operation::delete_attachment::DeleteAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
781 crate::operation::delete_attachment::DeleteAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
782 crate::operation::delete_attachment::DeleteAttachmentError::InternalServerException(inner) => Error::InternalServerException(inner),
783 crate::operation::delete_attachment::DeleteAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
784 crate::operation::delete_attachment::DeleteAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
785 crate::operation::delete_attachment::DeleteAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
786 crate::operation::delete_attachment::DeleteAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
787 }
788 }
789}
790impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>> for Error
791where
792 R: Send + Sync + std::fmt::Debug + 'static,
793{
794 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>) -> Self {
795 match err {
796 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
797 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
798 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
799 source: err.into(),
800 }),
801 }
802 }
803}
804impl From<crate::operation::delete_connection::DeleteConnectionError> for Error {
805 fn from(err: crate::operation::delete_connection::DeleteConnectionError) -> Self {
806 match err {
807 crate::operation::delete_connection::DeleteConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
808 crate::operation::delete_connection::DeleteConnectionError::ConflictException(inner) => Error::ConflictException(inner),
809 crate::operation::delete_connection::DeleteConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
810 crate::operation::delete_connection::DeleteConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
811 crate::operation::delete_connection::DeleteConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
812 crate::operation::delete_connection::DeleteConnectionError::ValidationException(inner) => Error::ValidationException(inner),
813 crate::operation::delete_connection::DeleteConnectionError::Unhandled(inner) => Error::Unhandled(inner),
814 }
815 }
816}
817impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connect_peer::DeleteConnectPeerError, R>> for Error
818where
819 R: Send + Sync + std::fmt::Debug + 'static,
820{
821 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connect_peer::DeleteConnectPeerError, R>) -> Self {
822 match err {
823 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
824 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
825 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
826 source: err.into(),
827 }),
828 }
829 }
830}
831impl From<crate::operation::delete_connect_peer::DeleteConnectPeerError> for Error {
832 fn from(err: crate::operation::delete_connect_peer::DeleteConnectPeerError) -> Self {
833 match err {
834 crate::operation::delete_connect_peer::DeleteConnectPeerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
835 crate::operation::delete_connect_peer::DeleteConnectPeerError::ConflictException(inner) => Error::ConflictException(inner),
836 crate::operation::delete_connect_peer::DeleteConnectPeerError::InternalServerException(inner) => Error::InternalServerException(inner),
837 crate::operation::delete_connect_peer::DeleteConnectPeerError::ResourceNotFoundException(inner) => {
838 Error::ResourceNotFoundException(inner)
839 }
840 crate::operation::delete_connect_peer::DeleteConnectPeerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
841 crate::operation::delete_connect_peer::DeleteConnectPeerError::ValidationException(inner) => Error::ValidationException(inner),
842 crate::operation::delete_connect_peer::DeleteConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
843 }
844 }
845}
846impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_core_network::DeleteCoreNetworkError, R>> for Error
847where
848 R: Send + Sync + std::fmt::Debug + 'static,
849{
850 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_core_network::DeleteCoreNetworkError, R>) -> Self {
851 match err {
852 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
853 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
854 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
855 source: err.into(),
856 }),
857 }
858 }
859}
860impl From<crate::operation::delete_core_network::DeleteCoreNetworkError> for Error {
861 fn from(err: crate::operation::delete_core_network::DeleteCoreNetworkError) -> Self {
862 match err {
863 crate::operation::delete_core_network::DeleteCoreNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
864 crate::operation::delete_core_network::DeleteCoreNetworkError::ConflictException(inner) => Error::ConflictException(inner),
865 crate::operation::delete_core_network::DeleteCoreNetworkError::InternalServerException(inner) => Error::InternalServerException(inner),
866 crate::operation::delete_core_network::DeleteCoreNetworkError::ResourceNotFoundException(inner) => {
867 Error::ResourceNotFoundException(inner)
868 }
869 crate::operation::delete_core_network::DeleteCoreNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
870 crate::operation::delete_core_network::DeleteCoreNetworkError::ValidationException(inner) => Error::ValidationException(inner),
871 crate::operation::delete_core_network::DeleteCoreNetworkError::Unhandled(inner) => Error::Unhandled(inner),
872 }
873 }
874}
875impl<R>
876 From<
877 ::aws_smithy_runtime_api::client::result::SdkError<
878 crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError,
879 R,
880 >,
881 > for Error
882where
883 R: Send + Sync + std::fmt::Debug + 'static,
884{
885 fn from(
886 err: ::aws_smithy_runtime_api::client::result::SdkError<
887 crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError,
888 R,
889 >,
890 ) -> Self {
891 match err {
892 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
893 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
894 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
895 source: err.into(),
896 }),
897 }
898 }
899}
900impl From<crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError> for Error {
901 fn from(err: crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError) -> Self {
902 match err {
903 crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::AccessDeniedException(inner) => {
904 Error::AccessDeniedException(inner)
905 }
906 crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::ConflictException(inner) => {
907 Error::ConflictException(inner)
908 }
909 crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::InternalServerException(inner) => {
910 Error::InternalServerException(inner)
911 }
912 crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::ResourceNotFoundException(inner) => {
913 Error::ResourceNotFoundException(inner)
914 }
915 crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::ThrottlingException(inner) => {
916 Error::ThrottlingException(inner)
917 }
918 crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::ValidationException(inner) => {
919 Error::ValidationException(inner)
920 }
921 crate::operation::delete_core_network_policy_version::DeleteCoreNetworkPolicyVersionError::Unhandled(inner) => Error::Unhandled(inner),
922 }
923 }
924}
925impl<R>
926 From<
927 ::aws_smithy_runtime_api::client::result::SdkError<
928 crate::operation::delete_core_network_prefix_list_association::DeleteCoreNetworkPrefixListAssociationError,
929 R,
930 >,
931 > for Error
932where
933 R: Send + Sync + std::fmt::Debug + 'static,
934{
935 fn from(
936 err: ::aws_smithy_runtime_api::client::result::SdkError<
937 crate::operation::delete_core_network_prefix_list_association::DeleteCoreNetworkPrefixListAssociationError,
938 R,
939 >,
940 ) -> Self {
941 match err {
942 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
943 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
944 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
945 source: err.into(),
946 }),
947 }
948 }
949}
950impl From<crate::operation::delete_core_network_prefix_list_association::DeleteCoreNetworkPrefixListAssociationError> for Error {
951 fn from(err: crate::operation::delete_core_network_prefix_list_association::DeleteCoreNetworkPrefixListAssociationError) -> Self {
952 match err {
953 crate::operation::delete_core_network_prefix_list_association::DeleteCoreNetworkPrefixListAssociationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
954 crate::operation::delete_core_network_prefix_list_association::DeleteCoreNetworkPrefixListAssociationError::ConflictException(inner) => Error::ConflictException(inner),
955 crate::operation::delete_core_network_prefix_list_association::DeleteCoreNetworkPrefixListAssociationError::InternalServerException(inner) => Error::InternalServerException(inner),
956 crate::operation::delete_core_network_prefix_list_association::DeleteCoreNetworkPrefixListAssociationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
957 crate::operation::delete_core_network_prefix_list_association::DeleteCoreNetworkPrefixListAssociationError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
958 crate::operation::delete_core_network_prefix_list_association::DeleteCoreNetworkPrefixListAssociationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
959 crate::operation::delete_core_network_prefix_list_association::DeleteCoreNetworkPrefixListAssociationError::ValidationException(inner) => Error::ValidationException(inner),
960 crate::operation::delete_core_network_prefix_list_association::DeleteCoreNetworkPrefixListAssociationError::Unhandled(inner) => Error::Unhandled(inner),
961 }
962 }
963}
964impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device::DeleteDeviceError, R>> for Error
965where
966 R: Send + Sync + std::fmt::Debug + 'static,
967{
968 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_device::DeleteDeviceError, R>) -> Self {
969 match err {
970 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
971 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
972 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
973 source: err.into(),
974 }),
975 }
976 }
977}
978impl From<crate::operation::delete_device::DeleteDeviceError> for Error {
979 fn from(err: crate::operation::delete_device::DeleteDeviceError) -> Self {
980 match err {
981 crate::operation::delete_device::DeleteDeviceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
982 crate::operation::delete_device::DeleteDeviceError::ConflictException(inner) => Error::ConflictException(inner),
983 crate::operation::delete_device::DeleteDeviceError::InternalServerException(inner) => Error::InternalServerException(inner),
984 crate::operation::delete_device::DeleteDeviceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
985 crate::operation::delete_device::DeleteDeviceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
986 crate::operation::delete_device::DeleteDeviceError::ValidationException(inner) => Error::ValidationException(inner),
987 crate::operation::delete_device::DeleteDeviceError::Unhandled(inner) => Error::Unhandled(inner),
988 }
989 }
990}
991impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_global_network::DeleteGlobalNetworkError, R>> for Error
992where
993 R: Send + Sync + std::fmt::Debug + 'static,
994{
995 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_global_network::DeleteGlobalNetworkError, R>) -> Self {
996 match err {
997 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
998 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
999 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1000 source: err.into(),
1001 }),
1002 }
1003 }
1004}
1005impl From<crate::operation::delete_global_network::DeleteGlobalNetworkError> for Error {
1006 fn from(err: crate::operation::delete_global_network::DeleteGlobalNetworkError) -> Self {
1007 match err {
1008 crate::operation::delete_global_network::DeleteGlobalNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1009 crate::operation::delete_global_network::DeleteGlobalNetworkError::ConflictException(inner) => Error::ConflictException(inner),
1010 crate::operation::delete_global_network::DeleteGlobalNetworkError::InternalServerException(inner) => {
1011 Error::InternalServerException(inner)
1012 }
1013 crate::operation::delete_global_network::DeleteGlobalNetworkError::ResourceNotFoundException(inner) => {
1014 Error::ResourceNotFoundException(inner)
1015 }
1016 crate::operation::delete_global_network::DeleteGlobalNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1017 crate::operation::delete_global_network::DeleteGlobalNetworkError::ValidationException(inner) => Error::ValidationException(inner),
1018 crate::operation::delete_global_network::DeleteGlobalNetworkError::Unhandled(inner) => Error::Unhandled(inner),
1019 }
1020 }
1021}
1022impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_link::DeleteLinkError, R>> for Error
1023where
1024 R: Send + Sync + std::fmt::Debug + 'static,
1025{
1026 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_link::DeleteLinkError, R>) -> Self {
1027 match err {
1028 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1029 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1030 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1031 source: err.into(),
1032 }),
1033 }
1034 }
1035}
1036impl From<crate::operation::delete_link::DeleteLinkError> for Error {
1037 fn from(err: crate::operation::delete_link::DeleteLinkError) -> Self {
1038 match err {
1039 crate::operation::delete_link::DeleteLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1040 crate::operation::delete_link::DeleteLinkError::ConflictException(inner) => Error::ConflictException(inner),
1041 crate::operation::delete_link::DeleteLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
1042 crate::operation::delete_link::DeleteLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1043 crate::operation::delete_link::DeleteLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1044 crate::operation::delete_link::DeleteLinkError::ValidationException(inner) => Error::ValidationException(inner),
1045 crate::operation::delete_link::DeleteLinkError::Unhandled(inner) => Error::Unhandled(inner),
1046 }
1047 }
1048}
1049impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_peering::DeletePeeringError, R>> for Error
1050where
1051 R: Send + Sync + std::fmt::Debug + 'static,
1052{
1053 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_peering::DeletePeeringError, R>) -> Self {
1054 match err {
1055 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1056 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1057 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1058 source: err.into(),
1059 }),
1060 }
1061 }
1062}
1063impl From<crate::operation::delete_peering::DeletePeeringError> for Error {
1064 fn from(err: crate::operation::delete_peering::DeletePeeringError) -> Self {
1065 match err {
1066 crate::operation::delete_peering::DeletePeeringError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1067 crate::operation::delete_peering::DeletePeeringError::ConflictException(inner) => Error::ConflictException(inner),
1068 crate::operation::delete_peering::DeletePeeringError::InternalServerException(inner) => Error::InternalServerException(inner),
1069 crate::operation::delete_peering::DeletePeeringError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1070 crate::operation::delete_peering::DeletePeeringError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1071 crate::operation::delete_peering::DeletePeeringError::ValidationException(inner) => Error::ValidationException(inner),
1072 crate::operation::delete_peering::DeletePeeringError::Unhandled(inner) => Error::Unhandled(inner),
1073 }
1074 }
1075}
1076impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
1077where
1078 R: Send + Sync + std::fmt::Debug + 'static,
1079{
1080 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
1081 match err {
1082 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1083 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1084 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1085 source: err.into(),
1086 }),
1087 }
1088 }
1089}
1090impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
1091 fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
1092 match err {
1093 crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1094 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
1095 crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
1096 Error::InternalServerException(inner)
1097 }
1098 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1099 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1100 crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1101 }
1102 }
1103}
1104impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_site::DeleteSiteError, R>> for Error
1105where
1106 R: Send + Sync + std::fmt::Debug + 'static,
1107{
1108 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_site::DeleteSiteError, R>) -> Self {
1109 match err {
1110 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1111 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1112 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1113 source: err.into(),
1114 }),
1115 }
1116 }
1117}
1118impl From<crate::operation::delete_site::DeleteSiteError> for Error {
1119 fn from(err: crate::operation::delete_site::DeleteSiteError) -> Self {
1120 match err {
1121 crate::operation::delete_site::DeleteSiteError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1122 crate::operation::delete_site::DeleteSiteError::ConflictException(inner) => Error::ConflictException(inner),
1123 crate::operation::delete_site::DeleteSiteError::InternalServerException(inner) => Error::InternalServerException(inner),
1124 crate::operation::delete_site::DeleteSiteError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1125 crate::operation::delete_site::DeleteSiteError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1126 crate::operation::delete_site::DeleteSiteError::ValidationException(inner) => Error::ValidationException(inner),
1127 crate::operation::delete_site::DeleteSiteError::Unhandled(inner) => Error::Unhandled(inner),
1128 }
1129 }
1130}
1131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError, R>>
1132 for Error
1133where
1134 R: Send + Sync + std::fmt::Debug + 'static,
1135{
1136 fn from(
1137 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError, R>,
1138 ) -> Self {
1139 match err {
1140 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1141 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1142 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1143 source: err.into(),
1144 }),
1145 }
1146 }
1147}
1148impl From<crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError> for Error {
1149 fn from(err: crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError) -> Self {
1150 match err {
1151 crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::AccessDeniedException(inner) => {
1152 Error::AccessDeniedException(inner)
1153 }
1154 crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::ConflictException(inner) => Error::ConflictException(inner),
1155 crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::InternalServerException(inner) => {
1156 Error::InternalServerException(inner)
1157 }
1158 crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::ResourceNotFoundException(inner) => {
1159 Error::ResourceNotFoundException(inner)
1160 }
1161 crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::ThrottlingException(inner) => {
1162 Error::ThrottlingException(inner)
1163 }
1164 crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::ValidationException(inner) => {
1165 Error::ValidationException(inner)
1166 }
1167 crate::operation::deregister_transit_gateway::DeregisterTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1168 }
1169 }
1170}
1171impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_global_networks::DescribeGlobalNetworksError, R>> for Error
1172where
1173 R: Send + Sync + std::fmt::Debug + 'static,
1174{
1175 fn from(
1176 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_global_networks::DescribeGlobalNetworksError, R>,
1177 ) -> Self {
1178 match err {
1179 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1180 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1181 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1182 source: err.into(),
1183 }),
1184 }
1185 }
1186}
1187impl From<crate::operation::describe_global_networks::DescribeGlobalNetworksError> for Error {
1188 fn from(err: crate::operation::describe_global_networks::DescribeGlobalNetworksError) -> Self {
1189 match err {
1190 crate::operation::describe_global_networks::DescribeGlobalNetworksError::AccessDeniedException(inner) => {
1191 Error::AccessDeniedException(inner)
1192 }
1193 crate::operation::describe_global_networks::DescribeGlobalNetworksError::InternalServerException(inner) => {
1194 Error::InternalServerException(inner)
1195 }
1196 crate::operation::describe_global_networks::DescribeGlobalNetworksError::ResourceNotFoundException(inner) => {
1197 Error::ResourceNotFoundException(inner)
1198 }
1199 crate::operation::describe_global_networks::DescribeGlobalNetworksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1200 crate::operation::describe_global_networks::DescribeGlobalNetworksError::ValidationException(inner) => Error::ValidationException(inner),
1201 crate::operation::describe_global_networks::DescribeGlobalNetworksError::Unhandled(inner) => Error::Unhandled(inner),
1202 }
1203 }
1204}
1205impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_connect_peer::DisassociateConnectPeerError, R>>
1206 for Error
1207where
1208 R: Send + Sync + std::fmt::Debug + 'static,
1209{
1210 fn from(
1211 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_connect_peer::DisassociateConnectPeerError, R>,
1212 ) -> Self {
1213 match err {
1214 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1215 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1216 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1217 source: err.into(),
1218 }),
1219 }
1220 }
1221}
1222impl From<crate::operation::disassociate_connect_peer::DisassociateConnectPeerError> for Error {
1223 fn from(err: crate::operation::disassociate_connect_peer::DisassociateConnectPeerError) -> Self {
1224 match err {
1225 crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::AccessDeniedException(inner) => {
1226 Error::AccessDeniedException(inner)
1227 }
1228 crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::ConflictException(inner) => Error::ConflictException(inner),
1229 crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::InternalServerException(inner) => {
1230 Error::InternalServerException(inner)
1231 }
1232 crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::ResourceNotFoundException(inner) => {
1233 Error::ResourceNotFoundException(inner)
1234 }
1235 crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::ThrottlingException(inner) => {
1236 Error::ThrottlingException(inner)
1237 }
1238 crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::ValidationException(inner) => {
1239 Error::ValidationException(inner)
1240 }
1241 crate::operation::disassociate_connect_peer::DisassociateConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
1242 }
1243 }
1244}
1245impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError, R>>
1246 for Error
1247where
1248 R: Send + Sync + std::fmt::Debug + 'static,
1249{
1250 fn from(
1251 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError, R>,
1252 ) -> Self {
1253 match err {
1254 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1255 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1256 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1257 source: err.into(),
1258 }),
1259 }
1260 }
1261}
1262impl From<crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError> for Error {
1263 fn from(err: crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError) -> Self {
1264 match err {
1265 crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::AccessDeniedException(inner) => {
1266 Error::AccessDeniedException(inner)
1267 }
1268 crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::ConflictException(inner) => {
1269 Error::ConflictException(inner)
1270 }
1271 crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::InternalServerException(inner) => {
1272 Error::InternalServerException(inner)
1273 }
1274 crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::ResourceNotFoundException(inner) => {
1275 Error::ResourceNotFoundException(inner)
1276 }
1277 crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::ThrottlingException(inner) => {
1278 Error::ThrottlingException(inner)
1279 }
1280 crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::ValidationException(inner) => {
1281 Error::ValidationException(inner)
1282 }
1283 crate::operation::disassociate_customer_gateway::DisassociateCustomerGatewayError::Unhandled(inner) => Error::Unhandled(inner),
1284 }
1285 }
1286}
1287impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_link::DisassociateLinkError, R>> for Error
1288where
1289 R: Send + Sync + std::fmt::Debug + 'static,
1290{
1291 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_link::DisassociateLinkError, R>) -> Self {
1292 match err {
1293 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1294 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1295 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1296 source: err.into(),
1297 }),
1298 }
1299 }
1300}
1301impl From<crate::operation::disassociate_link::DisassociateLinkError> for Error {
1302 fn from(err: crate::operation::disassociate_link::DisassociateLinkError) -> Self {
1303 match err {
1304 crate::operation::disassociate_link::DisassociateLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1305 crate::operation::disassociate_link::DisassociateLinkError::ConflictException(inner) => Error::ConflictException(inner),
1306 crate::operation::disassociate_link::DisassociateLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
1307 crate::operation::disassociate_link::DisassociateLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1308 crate::operation::disassociate_link::DisassociateLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1309 crate::operation::disassociate_link::DisassociateLinkError::ValidationException(inner) => Error::ValidationException(inner),
1310 crate::operation::disassociate_link::DisassociateLinkError::Unhandled(inner) => Error::Unhandled(inner),
1311 }
1312 }
1313}
1314impl<R>
1315 From<
1316 ::aws_smithy_runtime_api::client::result::SdkError<
1317 crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError,
1318 R,
1319 >,
1320 > for Error
1321where
1322 R: Send + Sync + std::fmt::Debug + 'static,
1323{
1324 fn from(
1325 err: ::aws_smithy_runtime_api::client::result::SdkError<
1326 crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError,
1327 R,
1328 >,
1329 ) -> Self {
1330 match err {
1331 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1332 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1333 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1334 source: err.into(),
1335 }),
1336 }
1337 }
1338}
1339impl From<crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError> for Error {
1340 fn from(err: crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError) -> Self {
1341 match err {
1342 crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::AccessDeniedException(inner) => {
1343 Error::AccessDeniedException(inner)
1344 }
1345 crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::ConflictException(inner) => {
1346 Error::ConflictException(inner)
1347 }
1348 crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::InternalServerException(
1349 inner,
1350 ) => Error::InternalServerException(inner),
1351 crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::ResourceNotFoundException(
1352 inner,
1353 ) => Error::ResourceNotFoundException(inner),
1354 crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::ThrottlingException(inner) => {
1355 Error::ThrottlingException(inner)
1356 }
1357 crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::ValidationException(inner) => {
1358 Error::ValidationException(inner)
1359 }
1360 crate::operation::disassociate_transit_gateway_connect_peer::DisassociateTransitGatewayConnectPeerError::Unhandled(inner) => {
1361 Error::Unhandled(inner)
1362 }
1363 }
1364 }
1365}
1366impl<R>
1367 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError, R>>
1368 for Error
1369where
1370 R: Send + Sync + std::fmt::Debug + 'static,
1371{
1372 fn from(
1373 err: ::aws_smithy_runtime_api::client::result::SdkError<
1374 crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError,
1375 R,
1376 >,
1377 ) -> Self {
1378 match err {
1379 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1380 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1381 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1382 source: err.into(),
1383 }),
1384 }
1385 }
1386}
1387impl From<crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError> for Error {
1388 fn from(err: crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError) -> Self {
1389 match err {
1390 crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::AccessDeniedException(inner) => {
1391 Error::AccessDeniedException(inner)
1392 }
1393 crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::ConflictException(inner) => {
1394 Error::ConflictException(inner)
1395 }
1396 crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::InternalServerException(inner) => {
1397 Error::InternalServerException(inner)
1398 }
1399 crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::ResourceNotFoundException(inner) => {
1400 Error::ResourceNotFoundException(inner)
1401 }
1402 crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::ThrottlingException(inner) => {
1403 Error::ThrottlingException(inner)
1404 }
1405 crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::ValidationException(inner) => {
1406 Error::ValidationException(inner)
1407 }
1408 crate::operation::execute_core_network_change_set::ExecuteCoreNetworkChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
1409 }
1410 }
1411}
1412impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connect_attachment::GetConnectAttachmentError, R>> for Error
1413where
1414 R: Send + Sync + std::fmt::Debug + 'static,
1415{
1416 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connect_attachment::GetConnectAttachmentError, R>) -> Self {
1417 match err {
1418 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1419 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1420 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1421 source: err.into(),
1422 }),
1423 }
1424 }
1425}
1426impl From<crate::operation::get_connect_attachment::GetConnectAttachmentError> for Error {
1427 fn from(err: crate::operation::get_connect_attachment::GetConnectAttachmentError) -> Self {
1428 match err {
1429 crate::operation::get_connect_attachment::GetConnectAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1430 crate::operation::get_connect_attachment::GetConnectAttachmentError::InternalServerException(inner) => {
1431 Error::InternalServerException(inner)
1432 }
1433 crate::operation::get_connect_attachment::GetConnectAttachmentError::ResourceNotFoundException(inner) => {
1434 Error::ResourceNotFoundException(inner)
1435 }
1436 crate::operation::get_connect_attachment::GetConnectAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1437 crate::operation::get_connect_attachment::GetConnectAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
1438 crate::operation::get_connect_attachment::GetConnectAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
1439 }
1440 }
1441}
1442impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connections::GetConnectionsError, R>> for Error
1443where
1444 R: Send + Sync + std::fmt::Debug + 'static,
1445{
1446 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connections::GetConnectionsError, R>) -> Self {
1447 match err {
1448 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1449 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1450 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1451 source: err.into(),
1452 }),
1453 }
1454 }
1455}
1456impl From<crate::operation::get_connections::GetConnectionsError> for Error {
1457 fn from(err: crate::operation::get_connections::GetConnectionsError) -> Self {
1458 match err {
1459 crate::operation::get_connections::GetConnectionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1460 crate::operation::get_connections::GetConnectionsError::InternalServerException(inner) => Error::InternalServerException(inner),
1461 crate::operation::get_connections::GetConnectionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1462 crate::operation::get_connections::GetConnectionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1463 crate::operation::get_connections::GetConnectionsError::ValidationException(inner) => Error::ValidationException(inner),
1464 crate::operation::get_connections::GetConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
1465 }
1466 }
1467}
1468impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connect_peer::GetConnectPeerError, R>> for Error
1469where
1470 R: Send + Sync + std::fmt::Debug + 'static,
1471{
1472 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connect_peer::GetConnectPeerError, R>) -> Self {
1473 match err {
1474 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1475 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1476 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1477 source: err.into(),
1478 }),
1479 }
1480 }
1481}
1482impl From<crate::operation::get_connect_peer::GetConnectPeerError> for Error {
1483 fn from(err: crate::operation::get_connect_peer::GetConnectPeerError) -> Self {
1484 match err {
1485 crate::operation::get_connect_peer::GetConnectPeerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1486 crate::operation::get_connect_peer::GetConnectPeerError::InternalServerException(inner) => Error::InternalServerException(inner),
1487 crate::operation::get_connect_peer::GetConnectPeerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1488 crate::operation::get_connect_peer::GetConnectPeerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1489 crate::operation::get_connect_peer::GetConnectPeerError::ValidationException(inner) => Error::ValidationException(inner),
1490 crate::operation::get_connect_peer::GetConnectPeerError::Unhandled(inner) => Error::Unhandled(inner),
1491 }
1492 }
1493}
1494impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError, R>>
1495 for Error
1496where
1497 R: Send + Sync + std::fmt::Debug + 'static,
1498{
1499 fn from(
1500 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError, R>,
1501 ) -> Self {
1502 match err {
1503 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1504 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1505 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1506 source: err.into(),
1507 }),
1508 }
1509 }
1510}
1511impl From<crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError> for Error {
1512 fn from(err: crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError) -> Self {
1513 match err {
1514 crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::AccessDeniedException(inner) => {
1515 Error::AccessDeniedException(inner)
1516 }
1517 crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::ConflictException(inner) => {
1518 Error::ConflictException(inner)
1519 }
1520 crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::InternalServerException(inner) => {
1521 Error::InternalServerException(inner)
1522 }
1523 crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::ResourceNotFoundException(inner) => {
1524 Error::ResourceNotFoundException(inner)
1525 }
1526 crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::ThrottlingException(inner) => {
1527 Error::ThrottlingException(inner)
1528 }
1529 crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::ValidationException(inner) => {
1530 Error::ValidationException(inner)
1531 }
1532 crate::operation::get_connect_peer_associations::GetConnectPeerAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1533 }
1534 }
1535}
1536impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network::GetCoreNetworkError, R>> for Error
1537where
1538 R: Send + Sync + std::fmt::Debug + 'static,
1539{
1540 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network::GetCoreNetworkError, R>) -> Self {
1541 match err {
1542 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1543 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1544 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1545 source: err.into(),
1546 }),
1547 }
1548 }
1549}
1550impl From<crate::operation::get_core_network::GetCoreNetworkError> for Error {
1551 fn from(err: crate::operation::get_core_network::GetCoreNetworkError) -> Self {
1552 match err {
1553 crate::operation::get_core_network::GetCoreNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1554 crate::operation::get_core_network::GetCoreNetworkError::InternalServerException(inner) => Error::InternalServerException(inner),
1555 crate::operation::get_core_network::GetCoreNetworkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1556 crate::operation::get_core_network::GetCoreNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1557 crate::operation::get_core_network::GetCoreNetworkError::ValidationException(inner) => Error::ValidationException(inner),
1558 crate::operation::get_core_network::GetCoreNetworkError::Unhandled(inner) => Error::Unhandled(inner),
1559 }
1560 }
1561}
1562impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError, R>>
1563 for Error
1564where
1565 R: Send + Sync + std::fmt::Debug + 'static,
1566{
1567 fn from(
1568 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError, R>,
1569 ) -> Self {
1570 match err {
1571 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1572 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1573 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1574 source: err.into(),
1575 }),
1576 }
1577 }
1578}
1579impl From<crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError> for Error {
1580 fn from(err: crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError) -> Self {
1581 match err {
1582 crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError::AccessDeniedException(inner) => {
1583 Error::AccessDeniedException(inner)
1584 }
1585 crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError::InternalServerException(inner) => {
1586 Error::InternalServerException(inner)
1587 }
1588 crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError::ResourceNotFoundException(inner) => {
1589 Error::ResourceNotFoundException(inner)
1590 }
1591 crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError::ThrottlingException(inner) => {
1592 Error::ThrottlingException(inner)
1593 }
1594 crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError::ValidationException(inner) => {
1595 Error::ValidationException(inner)
1596 }
1597 crate::operation::get_core_network_change_events::GetCoreNetworkChangeEventsError::Unhandled(inner) => Error::Unhandled(inner),
1598 }
1599 }
1600}
1601impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError, R>>
1602 for Error
1603where
1604 R: Send + Sync + std::fmt::Debug + 'static,
1605{
1606 fn from(
1607 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError, R>,
1608 ) -> Self {
1609 match err {
1610 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1611 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1612 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1613 source: err.into(),
1614 }),
1615 }
1616 }
1617}
1618impl From<crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError> for Error {
1619 fn from(err: crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError) -> Self {
1620 match err {
1621 crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError::AccessDeniedException(inner) => {
1622 Error::AccessDeniedException(inner)
1623 }
1624 crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError::InternalServerException(inner) => {
1625 Error::InternalServerException(inner)
1626 }
1627 crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError::ResourceNotFoundException(inner) => {
1628 Error::ResourceNotFoundException(inner)
1629 }
1630 crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError::ThrottlingException(inner) => {
1631 Error::ThrottlingException(inner)
1632 }
1633 crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError::ValidationException(inner) => {
1634 Error::ValidationException(inner)
1635 }
1636 crate::operation::get_core_network_change_set::GetCoreNetworkChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
1637 }
1638 }
1639}
1640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network_policy::GetCoreNetworkPolicyError, R>> for Error
1641where
1642 R: Send + Sync + std::fmt::Debug + 'static,
1643{
1644 fn from(
1645 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_core_network_policy::GetCoreNetworkPolicyError, R>,
1646 ) -> Self {
1647 match err {
1648 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1649 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1650 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1651 source: err.into(),
1652 }),
1653 }
1654 }
1655}
1656impl From<crate::operation::get_core_network_policy::GetCoreNetworkPolicyError> for Error {
1657 fn from(err: crate::operation::get_core_network_policy::GetCoreNetworkPolicyError) -> Self {
1658 match err {
1659 crate::operation::get_core_network_policy::GetCoreNetworkPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1660 crate::operation::get_core_network_policy::GetCoreNetworkPolicyError::InternalServerException(inner) => {
1661 Error::InternalServerException(inner)
1662 }
1663 crate::operation::get_core_network_policy::GetCoreNetworkPolicyError::ResourceNotFoundException(inner) => {
1664 Error::ResourceNotFoundException(inner)
1665 }
1666 crate::operation::get_core_network_policy::GetCoreNetworkPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1667 crate::operation::get_core_network_policy::GetCoreNetworkPolicyError::ValidationException(inner) => Error::ValidationException(inner),
1668 crate::operation::get_core_network_policy::GetCoreNetworkPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1669 }
1670 }
1671}
1672impl<R>
1673 From<
1674 ::aws_smithy_runtime_api::client::result::SdkError<
1675 crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError,
1676 R,
1677 >,
1678 > for Error
1679where
1680 R: Send + Sync + std::fmt::Debug + 'static,
1681{
1682 fn from(
1683 err: ::aws_smithy_runtime_api::client::result::SdkError<
1684 crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError,
1685 R,
1686 >,
1687 ) -> Self {
1688 match err {
1689 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1690 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1691 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1692 source: err.into(),
1693 }),
1694 }
1695 }
1696}
1697impl From<crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError> for Error {
1698 fn from(err: crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError) -> Self {
1699 match err {
1700 crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::AccessDeniedException(inner) => {
1701 Error::AccessDeniedException(inner)
1702 }
1703 crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::ConflictException(inner) => {
1704 Error::ConflictException(inner)
1705 }
1706 crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::InternalServerException(inner) => {
1707 Error::InternalServerException(inner)
1708 }
1709 crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::ResourceNotFoundException(inner) => {
1710 Error::ResourceNotFoundException(inner)
1711 }
1712 crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::ThrottlingException(inner) => {
1713 Error::ThrottlingException(inner)
1714 }
1715 crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::ValidationException(inner) => {
1716 Error::ValidationException(inner)
1717 }
1718 crate::operation::get_customer_gateway_associations::GetCustomerGatewayAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1719 }
1720 }
1721}
1722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_devices::GetDevicesError, R>> for Error
1723where
1724 R: Send + Sync + std::fmt::Debug + 'static,
1725{
1726 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_devices::GetDevicesError, R>) -> Self {
1727 match err {
1728 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1729 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1730 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1731 source: err.into(),
1732 }),
1733 }
1734 }
1735}
1736impl From<crate::operation::get_devices::GetDevicesError> for Error {
1737 fn from(err: crate::operation::get_devices::GetDevicesError) -> Self {
1738 match err {
1739 crate::operation::get_devices::GetDevicesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1740 crate::operation::get_devices::GetDevicesError::InternalServerException(inner) => Error::InternalServerException(inner),
1741 crate::operation::get_devices::GetDevicesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1742 crate::operation::get_devices::GetDevicesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1743 crate::operation::get_devices::GetDevicesError::ValidationException(inner) => Error::ValidationException(inner),
1744 crate::operation::get_devices::GetDevicesError::Unhandled(inner) => Error::Unhandled(inner),
1745 }
1746 }
1747}
1748impl<R>
1749 From<
1750 ::aws_smithy_runtime_api::client::result::SdkError<
1751 crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError,
1752 R,
1753 >,
1754 > for Error
1755where
1756 R: Send + Sync + std::fmt::Debug + 'static,
1757{
1758 fn from(
1759 err: ::aws_smithy_runtime_api::client::result::SdkError<
1760 crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError,
1761 R,
1762 >,
1763 ) -> Self {
1764 match err {
1765 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1766 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1767 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1768 source: err.into(),
1769 }),
1770 }
1771 }
1772}
1773impl From<crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError> for Error {
1774 fn from(err: crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError) -> Self {
1775 match err {
1776 crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError::AccessDeniedException(inner) => {
1777 Error::AccessDeniedException(inner)
1778 }
1779 crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError::InternalServerException(inner) => {
1780 Error::InternalServerException(inner)
1781 }
1782 crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError::ResourceNotFoundException(inner) => {
1783 Error::ResourceNotFoundException(inner)
1784 }
1785 crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError::ThrottlingException(inner) => {
1786 Error::ThrottlingException(inner)
1787 }
1788 crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError::ValidationException(inner) => {
1789 Error::ValidationException(inner)
1790 }
1791 crate::operation::get_direct_connect_gateway_attachment::GetDirectConnectGatewayAttachmentError::Unhandled(inner) => {
1792 Error::Unhandled(inner)
1793 }
1794 }
1795 }
1796}
1797impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_link_associations::GetLinkAssociationsError, R>> for Error
1798where
1799 R: Send + Sync + std::fmt::Debug + 'static,
1800{
1801 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_link_associations::GetLinkAssociationsError, R>) -> Self {
1802 match err {
1803 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1804 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1805 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1806 source: err.into(),
1807 }),
1808 }
1809 }
1810}
1811impl From<crate::operation::get_link_associations::GetLinkAssociationsError> for Error {
1812 fn from(err: crate::operation::get_link_associations::GetLinkAssociationsError) -> Self {
1813 match err {
1814 crate::operation::get_link_associations::GetLinkAssociationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1815 crate::operation::get_link_associations::GetLinkAssociationsError::InternalServerException(inner) => {
1816 Error::InternalServerException(inner)
1817 }
1818 crate::operation::get_link_associations::GetLinkAssociationsError::ResourceNotFoundException(inner) => {
1819 Error::ResourceNotFoundException(inner)
1820 }
1821 crate::operation::get_link_associations::GetLinkAssociationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1822 crate::operation::get_link_associations::GetLinkAssociationsError::ValidationException(inner) => Error::ValidationException(inner),
1823 crate::operation::get_link_associations::GetLinkAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1824 }
1825 }
1826}
1827impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_links::GetLinksError, R>> for Error
1828where
1829 R: Send + Sync + std::fmt::Debug + 'static,
1830{
1831 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_links::GetLinksError, R>) -> Self {
1832 match err {
1833 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1834 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1835 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1836 source: err.into(),
1837 }),
1838 }
1839 }
1840}
1841impl From<crate::operation::get_links::GetLinksError> for Error {
1842 fn from(err: crate::operation::get_links::GetLinksError) -> Self {
1843 match err {
1844 crate::operation::get_links::GetLinksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1845 crate::operation::get_links::GetLinksError::InternalServerException(inner) => Error::InternalServerException(inner),
1846 crate::operation::get_links::GetLinksError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1847 crate::operation::get_links::GetLinksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1848 crate::operation::get_links::GetLinksError::ValidationException(inner) => Error::ValidationException(inner),
1849 crate::operation::get_links::GetLinksError::Unhandled(inner) => Error::Unhandled(inner),
1850 }
1851 }
1852}
1853impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_resource_counts::GetNetworkResourceCountsError, R>>
1854 for Error
1855where
1856 R: Send + Sync + std::fmt::Debug + 'static,
1857{
1858 fn from(
1859 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_resource_counts::GetNetworkResourceCountsError, R>,
1860 ) -> Self {
1861 match err {
1862 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1863 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1864 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1865 source: err.into(),
1866 }),
1867 }
1868 }
1869}
1870impl From<crate::operation::get_network_resource_counts::GetNetworkResourceCountsError> for Error {
1871 fn from(err: crate::operation::get_network_resource_counts::GetNetworkResourceCountsError) -> Self {
1872 match err {
1873 crate::operation::get_network_resource_counts::GetNetworkResourceCountsError::AccessDeniedException(inner) => {
1874 Error::AccessDeniedException(inner)
1875 }
1876 crate::operation::get_network_resource_counts::GetNetworkResourceCountsError::InternalServerException(inner) => {
1877 Error::InternalServerException(inner)
1878 }
1879 crate::operation::get_network_resource_counts::GetNetworkResourceCountsError::ThrottlingException(inner) => {
1880 Error::ThrottlingException(inner)
1881 }
1882 crate::operation::get_network_resource_counts::GetNetworkResourceCountsError::ValidationException(inner) => {
1883 Error::ValidationException(inner)
1884 }
1885 crate::operation::get_network_resource_counts::GetNetworkResourceCountsError::Unhandled(inner) => Error::Unhandled(inner),
1886 }
1887 }
1888}
1889impl<R>
1890 From<
1891 ::aws_smithy_runtime_api::client::result::SdkError<
1892 crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError,
1893 R,
1894 >,
1895 > for Error
1896where
1897 R: Send + Sync + std::fmt::Debug + 'static,
1898{
1899 fn from(
1900 err: ::aws_smithy_runtime_api::client::result::SdkError<
1901 crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError,
1902 R,
1903 >,
1904 ) -> Self {
1905 match err {
1906 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1907 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1908 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1909 source: err.into(),
1910 }),
1911 }
1912 }
1913}
1914impl From<crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError> for Error {
1915 fn from(err: crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError) -> Self {
1916 match err {
1917 crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError::AccessDeniedException(inner) => {
1918 Error::AccessDeniedException(inner)
1919 }
1920 crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError::InternalServerException(inner) => {
1921 Error::InternalServerException(inner)
1922 }
1923 crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError::ResourceNotFoundException(inner) => {
1924 Error::ResourceNotFoundException(inner)
1925 }
1926 crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError::ThrottlingException(inner) => {
1927 Error::ThrottlingException(inner)
1928 }
1929 crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError::ValidationException(inner) => {
1930 Error::ValidationException(inner)
1931 }
1932 crate::operation::get_network_resource_relationships::GetNetworkResourceRelationshipsError::Unhandled(inner) => Error::Unhandled(inner),
1933 }
1934 }
1935}
1936impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_resources::GetNetworkResourcesError, R>> for Error
1937where
1938 R: Send + Sync + std::fmt::Debug + 'static,
1939{
1940 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_resources::GetNetworkResourcesError, R>) -> Self {
1941 match err {
1942 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1943 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1944 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1945 source: err.into(),
1946 }),
1947 }
1948 }
1949}
1950impl From<crate::operation::get_network_resources::GetNetworkResourcesError> for Error {
1951 fn from(err: crate::operation::get_network_resources::GetNetworkResourcesError) -> Self {
1952 match err {
1953 crate::operation::get_network_resources::GetNetworkResourcesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1954 crate::operation::get_network_resources::GetNetworkResourcesError::InternalServerException(inner) => {
1955 Error::InternalServerException(inner)
1956 }
1957 crate::operation::get_network_resources::GetNetworkResourcesError::ResourceNotFoundException(inner) => {
1958 Error::ResourceNotFoundException(inner)
1959 }
1960 crate::operation::get_network_resources::GetNetworkResourcesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1961 crate::operation::get_network_resources::GetNetworkResourcesError::ValidationException(inner) => Error::ValidationException(inner),
1962 crate::operation::get_network_resources::GetNetworkResourcesError::Unhandled(inner) => Error::Unhandled(inner),
1963 }
1964 }
1965}
1966impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_routes::GetNetworkRoutesError, R>> for Error
1967where
1968 R: Send + Sync + std::fmt::Debug + 'static,
1969{
1970 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_routes::GetNetworkRoutesError, R>) -> Self {
1971 match err {
1972 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1973 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1974 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1975 source: err.into(),
1976 }),
1977 }
1978 }
1979}
1980impl From<crate::operation::get_network_routes::GetNetworkRoutesError> for Error {
1981 fn from(err: crate::operation::get_network_routes::GetNetworkRoutesError) -> Self {
1982 match err {
1983 crate::operation::get_network_routes::GetNetworkRoutesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1984 crate::operation::get_network_routes::GetNetworkRoutesError::InternalServerException(inner) => Error::InternalServerException(inner),
1985 crate::operation::get_network_routes::GetNetworkRoutesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1986 crate::operation::get_network_routes::GetNetworkRoutesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1987 crate::operation::get_network_routes::GetNetworkRoutesError::ValidationException(inner) => Error::ValidationException(inner),
1988 crate::operation::get_network_routes::GetNetworkRoutesError::Unhandled(inner) => Error::Unhandled(inner),
1989 }
1990 }
1991}
1992impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_telemetry::GetNetworkTelemetryError, R>> for Error
1993where
1994 R: Send + Sync + std::fmt::Debug + 'static,
1995{
1996 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_network_telemetry::GetNetworkTelemetryError, R>) -> Self {
1997 match err {
1998 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1999 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2000 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2001 source: err.into(),
2002 }),
2003 }
2004 }
2005}
2006impl From<crate::operation::get_network_telemetry::GetNetworkTelemetryError> for Error {
2007 fn from(err: crate::operation::get_network_telemetry::GetNetworkTelemetryError) -> Self {
2008 match err {
2009 crate::operation::get_network_telemetry::GetNetworkTelemetryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2010 crate::operation::get_network_telemetry::GetNetworkTelemetryError::InternalServerException(inner) => {
2011 Error::InternalServerException(inner)
2012 }
2013 crate::operation::get_network_telemetry::GetNetworkTelemetryError::ResourceNotFoundException(inner) => {
2014 Error::ResourceNotFoundException(inner)
2015 }
2016 crate::operation::get_network_telemetry::GetNetworkTelemetryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2017 crate::operation::get_network_telemetry::GetNetworkTelemetryError::ValidationException(inner) => Error::ValidationException(inner),
2018 crate::operation::get_network_telemetry::GetNetworkTelemetryError::Unhandled(inner) => Error::Unhandled(inner),
2019 }
2020 }
2021}
2022impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
2023where
2024 R: Send + Sync + std::fmt::Debug + 'static,
2025{
2026 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
2027 match err {
2028 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2029 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2030 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2031 source: err.into(),
2032 }),
2033 }
2034 }
2035}
2036impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
2037 fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
2038 match err {
2039 crate::operation::get_resource_policy::GetResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2040 crate::operation::get_resource_policy::GetResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
2041 crate::operation::get_resource_policy::GetResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2042 crate::operation::get_resource_policy::GetResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
2043 crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2044 }
2045 }
2046}
2047impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_analysis::GetRouteAnalysisError, R>> for Error
2048where
2049 R: Send + Sync + std::fmt::Debug + 'static,
2050{
2051 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_analysis::GetRouteAnalysisError, R>) -> Self {
2052 match err {
2053 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2054 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2055 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2056 source: err.into(),
2057 }),
2058 }
2059 }
2060}
2061impl From<crate::operation::get_route_analysis::GetRouteAnalysisError> for Error {
2062 fn from(err: crate::operation::get_route_analysis::GetRouteAnalysisError) -> Self {
2063 match err {
2064 crate::operation::get_route_analysis::GetRouteAnalysisError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2065 crate::operation::get_route_analysis::GetRouteAnalysisError::InternalServerException(inner) => Error::InternalServerException(inner),
2066 crate::operation::get_route_analysis::GetRouteAnalysisError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2067 crate::operation::get_route_analysis::GetRouteAnalysisError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2068 crate::operation::get_route_analysis::GetRouteAnalysisError::ValidationException(inner) => Error::ValidationException(inner),
2069 crate::operation::get_route_analysis::GetRouteAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
2070 }
2071 }
2072}
2073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sites::GetSitesError, R>> for Error
2074where
2075 R: Send + Sync + std::fmt::Debug + 'static,
2076{
2077 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_sites::GetSitesError, R>) -> Self {
2078 match err {
2079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2082 source: err.into(),
2083 }),
2084 }
2085 }
2086}
2087impl From<crate::operation::get_sites::GetSitesError> for Error {
2088 fn from(err: crate::operation::get_sites::GetSitesError) -> Self {
2089 match err {
2090 crate::operation::get_sites::GetSitesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2091 crate::operation::get_sites::GetSitesError::InternalServerException(inner) => Error::InternalServerException(inner),
2092 crate::operation::get_sites::GetSitesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2093 crate::operation::get_sites::GetSitesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2094 crate::operation::get_sites::GetSitesError::ValidationException(inner) => Error::ValidationException(inner),
2095 crate::operation::get_sites::GetSitesError::Unhandled(inner) => Error::Unhandled(inner),
2096 }
2097 }
2098}
2099impl<R>
2100 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError, R>>
2101 for Error
2102where
2103 R: Send + Sync + std::fmt::Debug + 'static,
2104{
2105 fn from(
2106 err: ::aws_smithy_runtime_api::client::result::SdkError<
2107 crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError,
2108 R,
2109 >,
2110 ) -> Self {
2111 match err {
2112 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2113 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2114 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2115 source: err.into(),
2116 }),
2117 }
2118 }
2119}
2120impl From<crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError> for Error {
2121 fn from(err: crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError) -> Self {
2122 match err {
2123 crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError::AccessDeniedException(inner) => {
2124 Error::AccessDeniedException(inner)
2125 }
2126 crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError::InternalServerException(inner) => {
2127 Error::InternalServerException(inner)
2128 }
2129 crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError::ResourceNotFoundException(inner) => {
2130 Error::ResourceNotFoundException(inner)
2131 }
2132 crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError::ThrottlingException(inner) => {
2133 Error::ThrottlingException(inner)
2134 }
2135 crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError::ValidationException(inner) => {
2136 Error::ValidationException(inner)
2137 }
2138 crate::operation::get_site_to_site_vpn_attachment::GetSiteToSiteVpnAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
2139 }
2140 }
2141}
2142impl<R>
2143 From<
2144 ::aws_smithy_runtime_api::client::result::SdkError<
2145 crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError,
2146 R,
2147 >,
2148 > for Error
2149where
2150 R: Send + Sync + std::fmt::Debug + 'static,
2151{
2152 fn from(
2153 err: ::aws_smithy_runtime_api::client::result::SdkError<
2154 crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError,
2155 R,
2156 >,
2157 ) -> Self {
2158 match err {
2159 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2160 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2161 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2162 source: err.into(),
2163 }),
2164 }
2165 }
2166}
2167impl From<crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError> for Error {
2168 fn from(err: crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError) -> Self {
2169 match err {
2170 crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2171 crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::ConflictException(inner) => Error::ConflictException(inner),
2172 crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::InternalServerException(inner) => Error::InternalServerException(inner),
2173 crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2174 crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2175 crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::ValidationException(inner) => Error::ValidationException(inner),
2176 crate::operation::get_transit_gateway_connect_peer_associations::GetTransitGatewayConnectPeerAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
2177 }
2178 }
2179}
2180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError, R>>
2181 for Error
2182where
2183 R: Send + Sync + std::fmt::Debug + 'static,
2184{
2185 fn from(
2186 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError, R>,
2187 ) -> Self {
2188 match err {
2189 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2190 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2191 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2192 source: err.into(),
2193 }),
2194 }
2195 }
2196}
2197impl From<crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError> for Error {
2198 fn from(err: crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError) -> Self {
2199 match err {
2200 crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError::AccessDeniedException(inner) => {
2201 Error::AccessDeniedException(inner)
2202 }
2203 crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError::InternalServerException(inner) => {
2204 Error::InternalServerException(inner)
2205 }
2206 crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError::ResourceNotFoundException(inner) => {
2207 Error::ResourceNotFoundException(inner)
2208 }
2209 crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError::ThrottlingException(inner) => {
2210 Error::ThrottlingException(inner)
2211 }
2212 crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError::ValidationException(inner) => {
2213 Error::ValidationException(inner)
2214 }
2215 crate::operation::get_transit_gateway_peering::GetTransitGatewayPeeringError::Unhandled(inner) => Error::Unhandled(inner),
2216 }
2217 }
2218}
2219impl<R>
2220 From<
2221 ::aws_smithy_runtime_api::client::result::SdkError<
2222 crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError,
2223 R,
2224 >,
2225 > for Error
2226where
2227 R: Send + Sync + std::fmt::Debug + 'static,
2228{
2229 fn from(
2230 err: ::aws_smithy_runtime_api::client::result::SdkError<
2231 crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError,
2232 R,
2233 >,
2234 ) -> Self {
2235 match err {
2236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2239 source: err.into(),
2240 }),
2241 }
2242 }
2243}
2244impl From<crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError> for Error {
2245 fn from(err: crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError) -> Self {
2246 match err {
2247 crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError::AccessDeniedException(inner) => {
2248 Error::AccessDeniedException(inner)
2249 }
2250 crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError::InternalServerException(inner) => {
2251 Error::InternalServerException(inner)
2252 }
2253 crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError::ResourceNotFoundException(inner) => {
2254 Error::ResourceNotFoundException(inner)
2255 }
2256 crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError::ThrottlingException(inner) => {
2257 Error::ThrottlingException(inner)
2258 }
2259 crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError::ValidationException(inner) => {
2260 Error::ValidationException(inner)
2261 }
2262 crate::operation::get_transit_gateway_registrations::GetTransitGatewayRegistrationsError::Unhandled(inner) => Error::Unhandled(inner),
2263 }
2264 }
2265}
2266impl<R>
2267 From<
2268 ::aws_smithy_runtime_api::client::result::SdkError<
2269 crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError,
2270 R,
2271 >,
2272 > for Error
2273where
2274 R: Send + Sync + std::fmt::Debug + 'static,
2275{
2276 fn from(
2277 err: ::aws_smithy_runtime_api::client::result::SdkError<
2278 crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError,
2279 R,
2280 >,
2281 ) -> Self {
2282 match err {
2283 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2284 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2285 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2286 source: err.into(),
2287 }),
2288 }
2289 }
2290}
2291impl From<crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError> for Error {
2292 fn from(err: crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError) -> Self {
2293 match err {
2294 crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError::AccessDeniedException(
2295 inner,
2296 ) => Error::AccessDeniedException(inner),
2297 crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError::InternalServerException(
2298 inner,
2299 ) => Error::InternalServerException(inner),
2300 crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError::ResourceNotFoundException(
2301 inner,
2302 ) => Error::ResourceNotFoundException(inner),
2303 crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError::ThrottlingException(inner) => {
2304 Error::ThrottlingException(inner)
2305 }
2306 crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError::ValidationException(inner) => {
2307 Error::ValidationException(inner)
2308 }
2309 crate::operation::get_transit_gateway_route_table_attachment::GetTransitGatewayRouteTableAttachmentError::Unhandled(inner) => {
2310 Error::Unhandled(inner)
2311 }
2312 }
2313 }
2314}
2315impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpc_attachment::GetVpcAttachmentError, R>> for Error
2316where
2317 R: Send + Sync + std::fmt::Debug + 'static,
2318{
2319 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpc_attachment::GetVpcAttachmentError, R>) -> Self {
2320 match err {
2321 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2322 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2323 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2324 source: err.into(),
2325 }),
2326 }
2327 }
2328}
2329impl From<crate::operation::get_vpc_attachment::GetVpcAttachmentError> for Error {
2330 fn from(err: crate::operation::get_vpc_attachment::GetVpcAttachmentError) -> Self {
2331 match err {
2332 crate::operation::get_vpc_attachment::GetVpcAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2333 crate::operation::get_vpc_attachment::GetVpcAttachmentError::InternalServerException(inner) => Error::InternalServerException(inner),
2334 crate::operation::get_vpc_attachment::GetVpcAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2335 crate::operation::get_vpc_attachment::GetVpcAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2336 crate::operation::get_vpc_attachment::GetVpcAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
2337 crate::operation::get_vpc_attachment::GetVpcAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
2338 }
2339 }
2340}
2341impl<R>
2342 From<
2343 ::aws_smithy_runtime_api::client::result::SdkError<
2344 crate::operation::list_attachment_routing_policy_associations::ListAttachmentRoutingPolicyAssociationsError,
2345 R,
2346 >,
2347 > for Error
2348where
2349 R: Send + Sync + std::fmt::Debug + 'static,
2350{
2351 fn from(
2352 err: ::aws_smithy_runtime_api::client::result::SdkError<
2353 crate::operation::list_attachment_routing_policy_associations::ListAttachmentRoutingPolicyAssociationsError,
2354 R,
2355 >,
2356 ) -> Self {
2357 match err {
2358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2361 source: err.into(),
2362 }),
2363 }
2364 }
2365}
2366impl From<crate::operation::list_attachment_routing_policy_associations::ListAttachmentRoutingPolicyAssociationsError> for Error {
2367 fn from(err: crate::operation::list_attachment_routing_policy_associations::ListAttachmentRoutingPolicyAssociationsError) -> Self {
2368 match err {
2369 crate::operation::list_attachment_routing_policy_associations::ListAttachmentRoutingPolicyAssociationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2370 crate::operation::list_attachment_routing_policy_associations::ListAttachmentRoutingPolicyAssociationsError::InternalServerException(inner) => Error::InternalServerException(inner),
2371 crate::operation::list_attachment_routing_policy_associations::ListAttachmentRoutingPolicyAssociationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2372 crate::operation::list_attachment_routing_policy_associations::ListAttachmentRoutingPolicyAssociationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2373 crate::operation::list_attachment_routing_policy_associations::ListAttachmentRoutingPolicyAssociationsError::ValidationException(inner) => Error::ValidationException(inner),
2374 crate::operation::list_attachment_routing_policy_associations::ListAttachmentRoutingPolicyAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
2375 }
2376 }
2377}
2378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_attachments::ListAttachmentsError, R>> for Error
2379where
2380 R: Send + Sync + std::fmt::Debug + 'static,
2381{
2382 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_attachments::ListAttachmentsError, R>) -> Self {
2383 match err {
2384 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2385 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2386 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2387 source: err.into(),
2388 }),
2389 }
2390 }
2391}
2392impl From<crate::operation::list_attachments::ListAttachmentsError> for Error {
2393 fn from(err: crate::operation::list_attachments::ListAttachmentsError) -> Self {
2394 match err {
2395 crate::operation::list_attachments::ListAttachmentsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2396 crate::operation::list_attachments::ListAttachmentsError::InternalServerException(inner) => Error::InternalServerException(inner),
2397 crate::operation::list_attachments::ListAttachmentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2398 crate::operation::list_attachments::ListAttachmentsError::ValidationException(inner) => Error::ValidationException(inner),
2399 crate::operation::list_attachments::ListAttachmentsError::Unhandled(inner) => Error::Unhandled(inner),
2400 }
2401 }
2402}
2403impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connect_peers::ListConnectPeersError, R>> for Error
2404where
2405 R: Send + Sync + std::fmt::Debug + 'static,
2406{
2407 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connect_peers::ListConnectPeersError, R>) -> Self {
2408 match err {
2409 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2410 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2411 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2412 source: err.into(),
2413 }),
2414 }
2415 }
2416}
2417impl From<crate::operation::list_connect_peers::ListConnectPeersError> for Error {
2418 fn from(err: crate::operation::list_connect_peers::ListConnectPeersError) -> Self {
2419 match err {
2420 crate::operation::list_connect_peers::ListConnectPeersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2421 crate::operation::list_connect_peers::ListConnectPeersError::InternalServerException(inner) => Error::InternalServerException(inner),
2422 crate::operation::list_connect_peers::ListConnectPeersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2423 crate::operation::list_connect_peers::ListConnectPeersError::ValidationException(inner) => Error::ValidationException(inner),
2424 crate::operation::list_connect_peers::ListConnectPeersError::Unhandled(inner) => Error::Unhandled(inner),
2425 }
2426 }
2427}
2428impl<R>
2429 From<
2430 ::aws_smithy_runtime_api::client::result::SdkError<
2431 crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError,
2432 R,
2433 >,
2434 > for Error
2435where
2436 R: Send + Sync + std::fmt::Debug + 'static,
2437{
2438 fn from(
2439 err: ::aws_smithy_runtime_api::client::result::SdkError<
2440 crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError,
2441 R,
2442 >,
2443 ) -> Self {
2444 match err {
2445 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2446 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2447 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2448 source: err.into(),
2449 }),
2450 }
2451 }
2452}
2453impl From<crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError> for Error {
2454 fn from(err: crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError) -> Self {
2455 match err {
2456 crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError::AccessDeniedException(inner) => {
2457 Error::AccessDeniedException(inner)
2458 }
2459 crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError::InternalServerException(inner) => {
2460 Error::InternalServerException(inner)
2461 }
2462 crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError::ResourceNotFoundException(inner) => {
2463 Error::ResourceNotFoundException(inner)
2464 }
2465 crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError::ThrottlingException(inner) => {
2466 Error::ThrottlingException(inner)
2467 }
2468 crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError::ValidationException(inner) => {
2469 Error::ValidationException(inner)
2470 }
2471 crate::operation::list_core_network_policy_versions::ListCoreNetworkPolicyVersionsError::Unhandled(inner) => Error::Unhandled(inner),
2472 }
2473 }
2474}
2475impl<R>
2476 From<
2477 ::aws_smithy_runtime_api::client::result::SdkError<
2478 crate::operation::list_core_network_prefix_list_associations::ListCoreNetworkPrefixListAssociationsError,
2479 R,
2480 >,
2481 > for Error
2482where
2483 R: Send + Sync + std::fmt::Debug + 'static,
2484{
2485 fn from(
2486 err: ::aws_smithy_runtime_api::client::result::SdkError<
2487 crate::operation::list_core_network_prefix_list_associations::ListCoreNetworkPrefixListAssociationsError,
2488 R,
2489 >,
2490 ) -> Self {
2491 match err {
2492 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2493 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2494 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2495 source: err.into(),
2496 }),
2497 }
2498 }
2499}
2500impl From<crate::operation::list_core_network_prefix_list_associations::ListCoreNetworkPrefixListAssociationsError> for Error {
2501 fn from(err: crate::operation::list_core_network_prefix_list_associations::ListCoreNetworkPrefixListAssociationsError) -> Self {
2502 match err {
2503 crate::operation::list_core_network_prefix_list_associations::ListCoreNetworkPrefixListAssociationsError::AccessDeniedException(
2504 inner,
2505 ) => Error::AccessDeniedException(inner),
2506 crate::operation::list_core_network_prefix_list_associations::ListCoreNetworkPrefixListAssociationsError::InternalServerException(
2507 inner,
2508 ) => Error::InternalServerException(inner),
2509 crate::operation::list_core_network_prefix_list_associations::ListCoreNetworkPrefixListAssociationsError::ResourceNotFoundException(
2510 inner,
2511 ) => Error::ResourceNotFoundException(inner),
2512 crate::operation::list_core_network_prefix_list_associations::ListCoreNetworkPrefixListAssociationsError::ThrottlingException(inner) => {
2513 Error::ThrottlingException(inner)
2514 }
2515 crate::operation::list_core_network_prefix_list_associations::ListCoreNetworkPrefixListAssociationsError::ValidationException(inner) => {
2516 Error::ValidationException(inner)
2517 }
2518 crate::operation::list_core_network_prefix_list_associations::ListCoreNetworkPrefixListAssociationsError::Unhandled(inner) => {
2519 Error::Unhandled(inner)
2520 }
2521 }
2522 }
2523}
2524impl<R>
2525 From<
2526 ::aws_smithy_runtime_api::client::result::SdkError<
2527 crate::operation::list_core_network_routing_information::ListCoreNetworkRoutingInformationError,
2528 R,
2529 >,
2530 > for Error
2531where
2532 R: Send + Sync + std::fmt::Debug + 'static,
2533{
2534 fn from(
2535 err: ::aws_smithy_runtime_api::client::result::SdkError<
2536 crate::operation::list_core_network_routing_information::ListCoreNetworkRoutingInformationError,
2537 R,
2538 >,
2539 ) -> Self {
2540 match err {
2541 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2542 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2543 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2544 source: err.into(),
2545 }),
2546 }
2547 }
2548}
2549impl From<crate::operation::list_core_network_routing_information::ListCoreNetworkRoutingInformationError> for Error {
2550 fn from(err: crate::operation::list_core_network_routing_information::ListCoreNetworkRoutingInformationError) -> Self {
2551 match err {
2552 crate::operation::list_core_network_routing_information::ListCoreNetworkRoutingInformationError::AccessDeniedException(inner) => {
2553 Error::AccessDeniedException(inner)
2554 }
2555 crate::operation::list_core_network_routing_information::ListCoreNetworkRoutingInformationError::InternalServerException(inner) => {
2556 Error::InternalServerException(inner)
2557 }
2558 crate::operation::list_core_network_routing_information::ListCoreNetworkRoutingInformationError::ResourceNotFoundException(inner) => {
2559 Error::ResourceNotFoundException(inner)
2560 }
2561 crate::operation::list_core_network_routing_information::ListCoreNetworkRoutingInformationError::ThrottlingException(inner) => {
2562 Error::ThrottlingException(inner)
2563 }
2564 crate::operation::list_core_network_routing_information::ListCoreNetworkRoutingInformationError::ValidationException(inner) => {
2565 Error::ValidationException(inner)
2566 }
2567 crate::operation::list_core_network_routing_information::ListCoreNetworkRoutingInformationError::Unhandled(inner) => {
2568 Error::Unhandled(inner)
2569 }
2570 }
2571 }
2572}
2573impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_core_networks::ListCoreNetworksError, R>> for Error
2574where
2575 R: Send + Sync + std::fmt::Debug + 'static,
2576{
2577 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_core_networks::ListCoreNetworksError, R>) -> Self {
2578 match err {
2579 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2580 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2581 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2582 source: err.into(),
2583 }),
2584 }
2585 }
2586}
2587impl From<crate::operation::list_core_networks::ListCoreNetworksError> for Error {
2588 fn from(err: crate::operation::list_core_networks::ListCoreNetworksError) -> Self {
2589 match err {
2590 crate::operation::list_core_networks::ListCoreNetworksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2591 crate::operation::list_core_networks::ListCoreNetworksError::InternalServerException(inner) => Error::InternalServerException(inner),
2592 crate::operation::list_core_networks::ListCoreNetworksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2593 crate::operation::list_core_networks::ListCoreNetworksError::ValidationException(inner) => Error::ValidationException(inner),
2594 crate::operation::list_core_networks::ListCoreNetworksError::Unhandled(inner) => Error::Unhandled(inner),
2595 }
2596 }
2597}
2598impl<R>
2599 From<
2600 ::aws_smithy_runtime_api::client::result::SdkError<
2601 crate::operation::list_organization_service_access_status::ListOrganizationServiceAccessStatusError,
2602 R,
2603 >,
2604 > for Error
2605where
2606 R: Send + Sync + std::fmt::Debug + 'static,
2607{
2608 fn from(
2609 err: ::aws_smithy_runtime_api::client::result::SdkError<
2610 crate::operation::list_organization_service_access_status::ListOrganizationServiceAccessStatusError,
2611 R,
2612 >,
2613 ) -> Self {
2614 match err {
2615 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2616 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2617 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2618 source: err.into(),
2619 }),
2620 }
2621 }
2622}
2623impl From<crate::operation::list_organization_service_access_status::ListOrganizationServiceAccessStatusError> for Error {
2624 fn from(err: crate::operation::list_organization_service_access_status::ListOrganizationServiceAccessStatusError) -> Self {
2625 match err {
2626 crate::operation::list_organization_service_access_status::ListOrganizationServiceAccessStatusError::Unhandled(inner) => {
2627 Error::Unhandled(inner)
2628 }
2629 }
2630 }
2631}
2632impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_peerings::ListPeeringsError, R>> for Error
2633where
2634 R: Send + Sync + std::fmt::Debug + 'static,
2635{
2636 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_peerings::ListPeeringsError, R>) -> Self {
2637 match err {
2638 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2639 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2640 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2641 source: err.into(),
2642 }),
2643 }
2644 }
2645}
2646impl From<crate::operation::list_peerings::ListPeeringsError> for Error {
2647 fn from(err: crate::operation::list_peerings::ListPeeringsError) -> Self {
2648 match err {
2649 crate::operation::list_peerings::ListPeeringsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2650 crate::operation::list_peerings::ListPeeringsError::InternalServerException(inner) => Error::InternalServerException(inner),
2651 crate::operation::list_peerings::ListPeeringsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2652 crate::operation::list_peerings::ListPeeringsError::ValidationException(inner) => Error::ValidationException(inner),
2653 crate::operation::list_peerings::ListPeeringsError::Unhandled(inner) => Error::Unhandled(inner),
2654 }
2655 }
2656}
2657impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2658where
2659 R: Send + Sync + std::fmt::Debug + 'static,
2660{
2661 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2662 match err {
2663 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2664 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2665 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2666 source: err.into(),
2667 }),
2668 }
2669 }
2670}
2671impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2672 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2673 match err {
2674 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2675 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
2676 Error::InternalServerException(inner)
2677 }
2678 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2679 Error::ResourceNotFoundException(inner)
2680 }
2681 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2682 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
2683 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2684 }
2685 }
2686}
2687impl<R>
2688 From<
2689 ::aws_smithy_runtime_api::client::result::SdkError<
2690 crate::operation::put_attachment_routing_policy_label::PutAttachmentRoutingPolicyLabelError,
2691 R,
2692 >,
2693 > for Error
2694where
2695 R: Send + Sync + std::fmt::Debug + 'static,
2696{
2697 fn from(
2698 err: ::aws_smithy_runtime_api::client::result::SdkError<
2699 crate::operation::put_attachment_routing_policy_label::PutAttachmentRoutingPolicyLabelError,
2700 R,
2701 >,
2702 ) -> Self {
2703 match err {
2704 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2705 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2706 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2707 source: err.into(),
2708 }),
2709 }
2710 }
2711}
2712impl From<crate::operation::put_attachment_routing_policy_label::PutAttachmentRoutingPolicyLabelError> for Error {
2713 fn from(err: crate::operation::put_attachment_routing_policy_label::PutAttachmentRoutingPolicyLabelError) -> Self {
2714 match err {
2715 crate::operation::put_attachment_routing_policy_label::PutAttachmentRoutingPolicyLabelError::AccessDeniedException(inner) => {
2716 Error::AccessDeniedException(inner)
2717 }
2718 crate::operation::put_attachment_routing_policy_label::PutAttachmentRoutingPolicyLabelError::ConflictException(inner) => {
2719 Error::ConflictException(inner)
2720 }
2721 crate::operation::put_attachment_routing_policy_label::PutAttachmentRoutingPolicyLabelError::InternalServerException(inner) => {
2722 Error::InternalServerException(inner)
2723 }
2724 crate::operation::put_attachment_routing_policy_label::PutAttachmentRoutingPolicyLabelError::ResourceNotFoundException(inner) => {
2725 Error::ResourceNotFoundException(inner)
2726 }
2727 crate::operation::put_attachment_routing_policy_label::PutAttachmentRoutingPolicyLabelError::ServiceQuotaExceededException(inner) => {
2728 Error::ServiceQuotaExceededException(inner)
2729 }
2730 crate::operation::put_attachment_routing_policy_label::PutAttachmentRoutingPolicyLabelError::ThrottlingException(inner) => {
2731 Error::ThrottlingException(inner)
2732 }
2733 crate::operation::put_attachment_routing_policy_label::PutAttachmentRoutingPolicyLabelError::ValidationException(inner) => {
2734 Error::ValidationException(inner)
2735 }
2736 crate::operation::put_attachment_routing_policy_label::PutAttachmentRoutingPolicyLabelError::Unhandled(inner) => Error::Unhandled(inner),
2737 }
2738 }
2739}
2740impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_core_network_policy::PutCoreNetworkPolicyError, R>> for Error
2741where
2742 R: Send + Sync + std::fmt::Debug + 'static,
2743{
2744 fn from(
2745 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_core_network_policy::PutCoreNetworkPolicyError, R>,
2746 ) -> Self {
2747 match err {
2748 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2749 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2750 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2751 source: err.into(),
2752 }),
2753 }
2754 }
2755}
2756impl From<crate::operation::put_core_network_policy::PutCoreNetworkPolicyError> for Error {
2757 fn from(err: crate::operation::put_core_network_policy::PutCoreNetworkPolicyError) -> Self {
2758 match err {
2759 crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2760 crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::ConflictException(inner) => Error::ConflictException(inner),
2761 crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::CoreNetworkPolicyException(inner) => {
2762 Error::CoreNetworkPolicyException(inner)
2763 }
2764 crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::InternalServerException(inner) => {
2765 Error::InternalServerException(inner)
2766 }
2767 crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::ResourceNotFoundException(inner) => {
2768 Error::ResourceNotFoundException(inner)
2769 }
2770 crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2771 crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::ValidationException(inner) => Error::ValidationException(inner),
2772 crate::operation::put_core_network_policy::PutCoreNetworkPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2773 }
2774 }
2775}
2776impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
2777where
2778 R: Send + Sync + std::fmt::Debug + 'static,
2779{
2780 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
2781 match err {
2782 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2783 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2784 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2785 source: err.into(),
2786 }),
2787 }
2788 }
2789}
2790impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
2791 fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
2792 match err {
2793 crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2794 crate::operation::put_resource_policy::PutResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
2795 crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
2796 crate::operation::put_resource_policy::PutResourcePolicyError::ServiceQuotaExceededException(inner) => {
2797 Error::ServiceQuotaExceededException(inner)
2798 }
2799 crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2800 crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
2801 crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2802 }
2803 }
2804}
2805impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_transit_gateway::RegisterTransitGatewayError, R>> for Error
2806where
2807 R: Send + Sync + std::fmt::Debug + 'static,
2808{
2809 fn from(
2810 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_transit_gateway::RegisterTransitGatewayError, R>,
2811 ) -> Self {
2812 match err {
2813 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2814 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2815 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2816 source: err.into(),
2817 }),
2818 }
2819 }
2820}
2821impl From<crate::operation::register_transit_gateway::RegisterTransitGatewayError> for Error {
2822 fn from(err: crate::operation::register_transit_gateway::RegisterTransitGatewayError) -> Self {
2823 match err {
2824 crate::operation::register_transit_gateway::RegisterTransitGatewayError::AccessDeniedException(inner) => {
2825 Error::AccessDeniedException(inner)
2826 }
2827 crate::operation::register_transit_gateway::RegisterTransitGatewayError::ConflictException(inner) => Error::ConflictException(inner),
2828 crate::operation::register_transit_gateway::RegisterTransitGatewayError::InternalServerException(inner) => {
2829 Error::InternalServerException(inner)
2830 }
2831 crate::operation::register_transit_gateway::RegisterTransitGatewayError::ResourceNotFoundException(inner) => {
2832 Error::ResourceNotFoundException(inner)
2833 }
2834 crate::operation::register_transit_gateway::RegisterTransitGatewayError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2835 crate::operation::register_transit_gateway::RegisterTransitGatewayError::ValidationException(inner) => Error::ValidationException(inner),
2836 crate::operation::register_transit_gateway::RegisterTransitGatewayError::Unhandled(inner) => Error::Unhandled(inner),
2837 }
2838 }
2839}
2840impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_attachment::RejectAttachmentError, R>> for Error
2841where
2842 R: Send + Sync + std::fmt::Debug + 'static,
2843{
2844 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_attachment::RejectAttachmentError, R>) -> Self {
2845 match err {
2846 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2847 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2848 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2849 source: err.into(),
2850 }),
2851 }
2852 }
2853}
2854impl From<crate::operation::reject_attachment::RejectAttachmentError> for Error {
2855 fn from(err: crate::operation::reject_attachment::RejectAttachmentError) -> Self {
2856 match err {
2857 crate::operation::reject_attachment::RejectAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2858 crate::operation::reject_attachment::RejectAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
2859 crate::operation::reject_attachment::RejectAttachmentError::InternalServerException(inner) => Error::InternalServerException(inner),
2860 crate::operation::reject_attachment::RejectAttachmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2861 crate::operation::reject_attachment::RejectAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2862 crate::operation::reject_attachment::RejectAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
2863 crate::operation::reject_attachment::RejectAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
2864 }
2865 }
2866}
2867impl<R>
2868 From<
2869 ::aws_smithy_runtime_api::client::result::SdkError<
2870 crate::operation::remove_attachment_routing_policy_label::RemoveAttachmentRoutingPolicyLabelError,
2871 R,
2872 >,
2873 > for Error
2874where
2875 R: Send + Sync + std::fmt::Debug + 'static,
2876{
2877 fn from(
2878 err: ::aws_smithy_runtime_api::client::result::SdkError<
2879 crate::operation::remove_attachment_routing_policy_label::RemoveAttachmentRoutingPolicyLabelError,
2880 R,
2881 >,
2882 ) -> Self {
2883 match err {
2884 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2885 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2886 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2887 source: err.into(),
2888 }),
2889 }
2890 }
2891}
2892impl From<crate::operation::remove_attachment_routing_policy_label::RemoveAttachmentRoutingPolicyLabelError> for Error {
2893 fn from(err: crate::operation::remove_attachment_routing_policy_label::RemoveAttachmentRoutingPolicyLabelError) -> Self {
2894 match err {
2895 crate::operation::remove_attachment_routing_policy_label::RemoveAttachmentRoutingPolicyLabelError::AccessDeniedException(inner) => {
2896 Error::AccessDeniedException(inner)
2897 }
2898 crate::operation::remove_attachment_routing_policy_label::RemoveAttachmentRoutingPolicyLabelError::ConflictException(inner) => {
2899 Error::ConflictException(inner)
2900 }
2901 crate::operation::remove_attachment_routing_policy_label::RemoveAttachmentRoutingPolicyLabelError::InternalServerException(inner) => {
2902 Error::InternalServerException(inner)
2903 }
2904 crate::operation::remove_attachment_routing_policy_label::RemoveAttachmentRoutingPolicyLabelError::ResourceNotFoundException(inner) => {
2905 Error::ResourceNotFoundException(inner)
2906 }
2907 crate::operation::remove_attachment_routing_policy_label::RemoveAttachmentRoutingPolicyLabelError::ServiceQuotaExceededException(
2908 inner,
2909 ) => Error::ServiceQuotaExceededException(inner),
2910 crate::operation::remove_attachment_routing_policy_label::RemoveAttachmentRoutingPolicyLabelError::ThrottlingException(inner) => {
2911 Error::ThrottlingException(inner)
2912 }
2913 crate::operation::remove_attachment_routing_policy_label::RemoveAttachmentRoutingPolicyLabelError::ValidationException(inner) => {
2914 Error::ValidationException(inner)
2915 }
2916 crate::operation::remove_attachment_routing_policy_label::RemoveAttachmentRoutingPolicyLabelError::Unhandled(inner) => {
2917 Error::Unhandled(inner)
2918 }
2919 }
2920 }
2921}
2922impl<R>
2923 From<
2924 ::aws_smithy_runtime_api::client::result::SdkError<
2925 crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError,
2926 R,
2927 >,
2928 > for Error
2929where
2930 R: Send + Sync + std::fmt::Debug + 'static,
2931{
2932 fn from(
2933 err: ::aws_smithy_runtime_api::client::result::SdkError<
2934 crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError,
2935 R,
2936 >,
2937 ) -> Self {
2938 match err {
2939 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2940 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2941 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2942 source: err.into(),
2943 }),
2944 }
2945 }
2946}
2947impl From<crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError> for Error {
2948 fn from(err: crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError) -> Self {
2949 match err {
2950 crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::AccessDeniedException(inner) => {
2951 Error::AccessDeniedException(inner)
2952 }
2953 crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::ConflictException(inner) => {
2954 Error::ConflictException(inner)
2955 }
2956 crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::InternalServerException(inner) => {
2957 Error::InternalServerException(inner)
2958 }
2959 crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::ResourceNotFoundException(inner) => {
2960 Error::ResourceNotFoundException(inner)
2961 }
2962 crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::ThrottlingException(inner) => {
2963 Error::ThrottlingException(inner)
2964 }
2965 crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::ValidationException(inner) => {
2966 Error::ValidationException(inner)
2967 }
2968 crate::operation::restore_core_network_policy_version::RestoreCoreNetworkPolicyVersionError::Unhandled(inner) => Error::Unhandled(inner),
2969 }
2970 }
2971}
2972impl<R>
2973 From<
2974 ::aws_smithy_runtime_api::client::result::SdkError<
2975 crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError,
2976 R,
2977 >,
2978 > for Error
2979where
2980 R: Send + Sync + std::fmt::Debug + 'static,
2981{
2982 fn from(
2983 err: ::aws_smithy_runtime_api::client::result::SdkError<
2984 crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError,
2985 R,
2986 >,
2987 ) -> Self {
2988 match err {
2989 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2990 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2991 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2992 source: err.into(),
2993 }),
2994 }
2995 }
2996}
2997impl From<crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError> for Error {
2998 fn from(err: crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError) -> Self {
2999 match err {
3000 crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::AccessDeniedException(inner) => {
3001 Error::AccessDeniedException(inner)
3002 }
3003 crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::ConflictException(inner) => {
3004 Error::ConflictException(inner)
3005 }
3006 crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::InternalServerException(inner) => {
3007 Error::InternalServerException(inner)
3008 }
3009 crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::ServiceQuotaExceededException(
3010 inner,
3011 ) => Error::ServiceQuotaExceededException(inner),
3012 crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::ThrottlingException(inner) => {
3013 Error::ThrottlingException(inner)
3014 }
3015 crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::ValidationException(inner) => {
3016 Error::ValidationException(inner)
3017 }
3018 crate::operation::start_organization_service_access_update::StartOrganizationServiceAccessUpdateError::Unhandled(inner) => {
3019 Error::Unhandled(inner)
3020 }
3021 }
3022 }
3023}
3024impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_route_analysis::StartRouteAnalysisError, R>> for Error
3025where
3026 R: Send + Sync + std::fmt::Debug + 'static,
3027{
3028 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_route_analysis::StartRouteAnalysisError, R>) -> Self {
3029 match err {
3030 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3031 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3032 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3033 source: err.into(),
3034 }),
3035 }
3036 }
3037}
3038impl From<crate::operation::start_route_analysis::StartRouteAnalysisError> for Error {
3039 fn from(err: crate::operation::start_route_analysis::StartRouteAnalysisError) -> Self {
3040 match err {
3041 crate::operation::start_route_analysis::StartRouteAnalysisError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3042 crate::operation::start_route_analysis::StartRouteAnalysisError::ConflictException(inner) => Error::ConflictException(inner),
3043 crate::operation::start_route_analysis::StartRouteAnalysisError::InternalServerException(inner) => Error::InternalServerException(inner),
3044 crate::operation::start_route_analysis::StartRouteAnalysisError::ResourceNotFoundException(inner) => {
3045 Error::ResourceNotFoundException(inner)
3046 }
3047 crate::operation::start_route_analysis::StartRouteAnalysisError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3048 crate::operation::start_route_analysis::StartRouteAnalysisError::ValidationException(inner) => Error::ValidationException(inner),
3049 crate::operation::start_route_analysis::StartRouteAnalysisError::Unhandled(inner) => Error::Unhandled(inner),
3050 }
3051 }
3052}
3053impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3054where
3055 R: Send + Sync + std::fmt::Debug + 'static,
3056{
3057 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3058 match err {
3059 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3060 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3061 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3062 source: err.into(),
3063 }),
3064 }
3065 }
3066}
3067impl From<crate::operation::tag_resource::TagResourceError> for Error {
3068 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3069 match err {
3070 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3071 crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
3072 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
3073 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3074 crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3075 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3076 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3077 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3078 }
3079 }
3080}
3081impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3082where
3083 R: Send + Sync + std::fmt::Debug + 'static,
3084{
3085 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3086 match err {
3087 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3088 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3089 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3090 source: err.into(),
3091 }),
3092 }
3093 }
3094}
3095impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3096 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3097 match err {
3098 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3099 crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
3100 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
3101 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3102 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3103 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
3104 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3105 }
3106 }
3107}
3108impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, R>> for Error
3109where
3110 R: Send + Sync + std::fmt::Debug + 'static,
3111{
3112 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, R>) -> Self {
3113 match err {
3114 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3115 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3116 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3117 source: err.into(),
3118 }),
3119 }
3120 }
3121}
3122impl From<crate::operation::update_connection::UpdateConnectionError> for Error {
3123 fn from(err: crate::operation::update_connection::UpdateConnectionError) -> Self {
3124 match err {
3125 crate::operation::update_connection::UpdateConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3126 crate::operation::update_connection::UpdateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
3127 crate::operation::update_connection::UpdateConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
3128 crate::operation::update_connection::UpdateConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3129 crate::operation::update_connection::UpdateConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3130 crate::operation::update_connection::UpdateConnectionError::ValidationException(inner) => Error::ValidationException(inner),
3131 crate::operation::update_connection::UpdateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
3132 }
3133 }
3134}
3135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_core_network::UpdateCoreNetworkError, R>> for Error
3136where
3137 R: Send + Sync + std::fmt::Debug + 'static,
3138{
3139 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_core_network::UpdateCoreNetworkError, R>) -> Self {
3140 match err {
3141 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3142 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3143 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3144 source: err.into(),
3145 }),
3146 }
3147 }
3148}
3149impl From<crate::operation::update_core_network::UpdateCoreNetworkError> for Error {
3150 fn from(err: crate::operation::update_core_network::UpdateCoreNetworkError) -> Self {
3151 match err {
3152 crate::operation::update_core_network::UpdateCoreNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3153 crate::operation::update_core_network::UpdateCoreNetworkError::ConflictException(inner) => Error::ConflictException(inner),
3154 crate::operation::update_core_network::UpdateCoreNetworkError::InternalServerException(inner) => Error::InternalServerException(inner),
3155 crate::operation::update_core_network::UpdateCoreNetworkError::ResourceNotFoundException(inner) => {
3156 Error::ResourceNotFoundException(inner)
3157 }
3158 crate::operation::update_core_network::UpdateCoreNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3159 crate::operation::update_core_network::UpdateCoreNetworkError::ValidationException(inner) => Error::ValidationException(inner),
3160 crate::operation::update_core_network::UpdateCoreNetworkError::Unhandled(inner) => Error::Unhandled(inner),
3161 }
3162 }
3163}
3164impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device::UpdateDeviceError, R>> for Error
3165where
3166 R: Send + Sync + std::fmt::Debug + 'static,
3167{
3168 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_device::UpdateDeviceError, R>) -> Self {
3169 match err {
3170 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3171 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3172 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3173 source: err.into(),
3174 }),
3175 }
3176 }
3177}
3178impl From<crate::operation::update_device::UpdateDeviceError> for Error {
3179 fn from(err: crate::operation::update_device::UpdateDeviceError) -> Self {
3180 match err {
3181 crate::operation::update_device::UpdateDeviceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3182 crate::operation::update_device::UpdateDeviceError::ConflictException(inner) => Error::ConflictException(inner),
3183 crate::operation::update_device::UpdateDeviceError::InternalServerException(inner) => Error::InternalServerException(inner),
3184 crate::operation::update_device::UpdateDeviceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3185 crate::operation::update_device::UpdateDeviceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3186 crate::operation::update_device::UpdateDeviceError::ValidationException(inner) => Error::ValidationException(inner),
3187 crate::operation::update_device::UpdateDeviceError::Unhandled(inner) => Error::Unhandled(inner),
3188 }
3189 }
3190}
3191impl<R>
3192 From<
3193 ::aws_smithy_runtime_api::client::result::SdkError<
3194 crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError,
3195 R,
3196 >,
3197 > for Error
3198where
3199 R: Send + Sync + std::fmt::Debug + 'static,
3200{
3201 fn from(
3202 err: ::aws_smithy_runtime_api::client::result::SdkError<
3203 crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError,
3204 R,
3205 >,
3206 ) -> Self {
3207 match err {
3208 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3209 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3210 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3211 source: err.into(),
3212 }),
3213 }
3214 }
3215}
3216impl From<crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError> for Error {
3217 fn from(err: crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError) -> Self {
3218 match err {
3219 crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::AccessDeniedException(inner) => {
3220 Error::AccessDeniedException(inner)
3221 }
3222 crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::ConflictException(inner) => {
3223 Error::ConflictException(inner)
3224 }
3225 crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::InternalServerException(inner) => {
3226 Error::InternalServerException(inner)
3227 }
3228 crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::ResourceNotFoundException(
3229 inner,
3230 ) => Error::ResourceNotFoundException(inner),
3231 crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::ThrottlingException(inner) => {
3232 Error::ThrottlingException(inner)
3233 }
3234 crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::ValidationException(inner) => {
3235 Error::ValidationException(inner)
3236 }
3237 crate::operation::update_direct_connect_gateway_attachment::UpdateDirectConnectGatewayAttachmentError::Unhandled(inner) => {
3238 Error::Unhandled(inner)
3239 }
3240 }
3241 }
3242}
3243impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_network::UpdateGlobalNetworkError, R>> for Error
3244where
3245 R: Send + Sync + std::fmt::Debug + 'static,
3246{
3247 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_global_network::UpdateGlobalNetworkError, R>) -> Self {
3248 match err {
3249 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3250 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3251 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3252 source: err.into(),
3253 }),
3254 }
3255 }
3256}
3257impl From<crate::operation::update_global_network::UpdateGlobalNetworkError> for Error {
3258 fn from(err: crate::operation::update_global_network::UpdateGlobalNetworkError) -> Self {
3259 match err {
3260 crate::operation::update_global_network::UpdateGlobalNetworkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3261 crate::operation::update_global_network::UpdateGlobalNetworkError::ConflictException(inner) => Error::ConflictException(inner),
3262 crate::operation::update_global_network::UpdateGlobalNetworkError::InternalServerException(inner) => {
3263 Error::InternalServerException(inner)
3264 }
3265 crate::operation::update_global_network::UpdateGlobalNetworkError::ResourceNotFoundException(inner) => {
3266 Error::ResourceNotFoundException(inner)
3267 }
3268 crate::operation::update_global_network::UpdateGlobalNetworkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3269 crate::operation::update_global_network::UpdateGlobalNetworkError::ValidationException(inner) => Error::ValidationException(inner),
3270 crate::operation::update_global_network::UpdateGlobalNetworkError::Unhandled(inner) => Error::Unhandled(inner),
3271 }
3272 }
3273}
3274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_link::UpdateLinkError, R>> for Error
3275where
3276 R: Send + Sync + std::fmt::Debug + 'static,
3277{
3278 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_link::UpdateLinkError, R>) -> Self {
3279 match err {
3280 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3281 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3282 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3283 source: err.into(),
3284 }),
3285 }
3286 }
3287}
3288impl From<crate::operation::update_link::UpdateLinkError> for Error {
3289 fn from(err: crate::operation::update_link::UpdateLinkError) -> Self {
3290 match err {
3291 crate::operation::update_link::UpdateLinkError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3292 crate::operation::update_link::UpdateLinkError::ConflictException(inner) => Error::ConflictException(inner),
3293 crate::operation::update_link::UpdateLinkError::InternalServerException(inner) => Error::InternalServerException(inner),
3294 crate::operation::update_link::UpdateLinkError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3295 crate::operation::update_link::UpdateLinkError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
3296 crate::operation::update_link::UpdateLinkError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3297 crate::operation::update_link::UpdateLinkError::ValidationException(inner) => Error::ValidationException(inner),
3298 crate::operation::update_link::UpdateLinkError::Unhandled(inner) => Error::Unhandled(inner),
3299 }
3300 }
3301}
3302impl<R>
3303 From<
3304 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError, R>,
3305 > for Error
3306where
3307 R: Send + Sync + std::fmt::Debug + 'static,
3308{
3309 fn from(
3310 err: ::aws_smithy_runtime_api::client::result::SdkError<
3311 crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError,
3312 R,
3313 >,
3314 ) -> Self {
3315 match err {
3316 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3317 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3318 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3319 source: err.into(),
3320 }),
3321 }
3322 }
3323}
3324impl From<crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError> for Error {
3325 fn from(err: crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError) -> Self {
3326 match err {
3327 crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::AccessDeniedException(inner) => {
3328 Error::AccessDeniedException(inner)
3329 }
3330 crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::ConflictException(inner) => {
3331 Error::ConflictException(inner)
3332 }
3333 crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::InternalServerException(inner) => {
3334 Error::InternalServerException(inner)
3335 }
3336 crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::ResourceNotFoundException(inner) => {
3337 Error::ResourceNotFoundException(inner)
3338 }
3339 crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::ThrottlingException(inner) => {
3340 Error::ThrottlingException(inner)
3341 }
3342 crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::ValidationException(inner) => {
3343 Error::ValidationException(inner)
3344 }
3345 crate::operation::update_network_resource_metadata::UpdateNetworkResourceMetadataError::Unhandled(inner) => Error::Unhandled(inner),
3346 }
3347 }
3348}
3349impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_site::UpdateSiteError, R>> for Error
3350where
3351 R: Send + Sync + std::fmt::Debug + 'static,
3352{
3353 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_site::UpdateSiteError, R>) -> Self {
3354 match err {
3355 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3356 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3357 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3358 source: err.into(),
3359 }),
3360 }
3361 }
3362}
3363impl From<crate::operation::update_site::UpdateSiteError> for Error {
3364 fn from(err: crate::operation::update_site::UpdateSiteError) -> Self {
3365 match err {
3366 crate::operation::update_site::UpdateSiteError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3367 crate::operation::update_site::UpdateSiteError::ConflictException(inner) => Error::ConflictException(inner),
3368 crate::operation::update_site::UpdateSiteError::InternalServerException(inner) => Error::InternalServerException(inner),
3369 crate::operation::update_site::UpdateSiteError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3370 crate::operation::update_site::UpdateSiteError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3371 crate::operation::update_site::UpdateSiteError::ValidationException(inner) => Error::ValidationException(inner),
3372 crate::operation::update_site::UpdateSiteError::Unhandled(inner) => Error::Unhandled(inner),
3373 }
3374 }
3375}
3376impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpc_attachment::UpdateVpcAttachmentError, R>> for Error
3377where
3378 R: Send + Sync + std::fmt::Debug + 'static,
3379{
3380 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpc_attachment::UpdateVpcAttachmentError, R>) -> Self {
3381 match err {
3382 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3383 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3384 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3385 source: err.into(),
3386 }),
3387 }
3388 }
3389}
3390impl From<crate::operation::update_vpc_attachment::UpdateVpcAttachmentError> for Error {
3391 fn from(err: crate::operation::update_vpc_attachment::UpdateVpcAttachmentError) -> Self {
3392 match err {
3393 crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3394 crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::ConflictException(inner) => Error::ConflictException(inner),
3395 crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::InternalServerException(inner) => {
3396 Error::InternalServerException(inner)
3397 }
3398 crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::ResourceNotFoundException(inner) => {
3399 Error::ResourceNotFoundException(inner)
3400 }
3401 crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3402 crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::ValidationException(inner) => Error::ValidationException(inner),
3403 crate::operation::update_vpc_attachment::UpdateVpcAttachmentError::Unhandled(inner) => Error::Unhandled(inner),
3404 }
3405 }
3406}
3407impl ::std::error::Error for Error {
3408 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3409 match self {
3410 Error::AccessDeniedException(inner) => inner.source(),
3411 Error::ConflictException(inner) => inner.source(),
3412 Error::CoreNetworkPolicyException(inner) => inner.source(),
3413 Error::InternalServerException(inner) => inner.source(),
3414 Error::ResourceNotFoundException(inner) => inner.source(),
3415 Error::ServiceQuotaExceededException(inner) => inner.source(),
3416 Error::ThrottlingException(inner) => inner.source(),
3417 Error::ValidationException(inner) => inner.source(),
3418 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3419 }
3420 }
3421}
3422impl ::aws_types::request_id::RequestId for Error {
3423 fn request_id(&self) -> Option<&str> {
3424 match self {
3425 Self::AccessDeniedException(e) => e.request_id(),
3426 Self::ConflictException(e) => e.request_id(),
3427 Self::CoreNetworkPolicyException(e) => e.request_id(),
3428 Self::InternalServerException(e) => e.request_id(),
3429 Self::ResourceNotFoundException(e) => e.request_id(),
3430 Self::ServiceQuotaExceededException(e) => e.request_id(),
3431 Self::ThrottlingException(e) => e.request_id(),
3432 Self::ValidationException(e) => e.request_id(),
3433 Self::Unhandled(e) => e.meta.request_id(),
3434 }
3435 }
3436}