1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 #[allow(missing_docs)] AccessDeniedException(crate::types::error::AccessDeniedException),
8 BadRequestException(crate::types::error::BadRequestException),
10 ConflictException(crate::types::error::ConflictException),
12 NotFoundException(crate::types::error::NotFoundException),
14 TooManyRequestsException(crate::types::error::TooManyRequestsException),
16 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
18 variable wildcard pattern and check `.code()`:
19 \
20 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
21 \
22 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
23 Unhandled(crate::error::sealed_unhandled::Unhandled),
24}
25impl ::std::fmt::Display for Error {
26 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
27 match self {
28 Error::AccessDeniedException(inner) => inner.fmt(f),
29 Error::BadRequestException(inner) => inner.fmt(f),
30 Error::ConflictException(inner) => inner.fmt(f),
31 Error::NotFoundException(inner) => inner.fmt(f),
32 Error::TooManyRequestsException(inner) => inner.fmt(f),
33 Error::Unhandled(_) => {
34 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
35 write!(f, "unhandled error ({code})")
36 } else {
37 f.write_str("unhandled error")
38 }
39 }
40 }
41 }
42}
43impl From<::aws_smithy_types::error::operation::BuildError> for Error {
44 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
45 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
46 source: value.into(),
47 meta: ::std::default::Default::default(),
48 })
49 }
50}
51impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
52 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
53 match self {
54 Self::AccessDeniedException(inner) => inner.meta(),
55 Self::BadRequestException(inner) => inner.meta(),
56 Self::ConflictException(inner) => inner.meta(),
57 Self::NotFoundException(inner) => inner.meta(),
58 Self::TooManyRequestsException(inner) => inner.meta(),
59 Self::Unhandled(inner) => &inner.meta,
60 }
61 }
62}
63impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api::CreateApiError, R>> for Error
64where
65 R: Send + Sync + std::fmt::Debug + 'static,
66{
67 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api::CreateApiError, R>) -> Self {
68 match err {
69 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
70 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
71 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
72 source: err.into(),
73 }),
74 }
75 }
76}
77impl From<crate::operation::create_api::CreateApiError> for Error {
78 fn from(err: crate::operation::create_api::CreateApiError) -> Self {
79 match err {
80 crate::operation::create_api::CreateApiError::BadRequestException(inner) => Error::BadRequestException(inner),
81 crate::operation::create_api::CreateApiError::ConflictException(inner) => Error::ConflictException(inner),
82 crate::operation::create_api::CreateApiError::NotFoundException(inner) => Error::NotFoundException(inner),
83 crate::operation::create_api::CreateApiError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
84 crate::operation::create_api::CreateApiError::Unhandled(inner) => Error::Unhandled(inner),
85 }
86 }
87}
88impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api_mapping::CreateApiMappingError, R>> for Error
89where
90 R: Send + Sync + std::fmt::Debug + 'static,
91{
92 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_api_mapping::CreateApiMappingError, R>) -> Self {
93 match err {
94 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
95 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
96 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
97 source: err.into(),
98 }),
99 }
100 }
101}
102impl From<crate::operation::create_api_mapping::CreateApiMappingError> for Error {
103 fn from(err: crate::operation::create_api_mapping::CreateApiMappingError) -> Self {
104 match err {
105 crate::operation::create_api_mapping::CreateApiMappingError::BadRequestException(inner) => Error::BadRequestException(inner),
106 crate::operation::create_api_mapping::CreateApiMappingError::ConflictException(inner) => Error::ConflictException(inner),
107 crate::operation::create_api_mapping::CreateApiMappingError::NotFoundException(inner) => Error::NotFoundException(inner),
108 crate::operation::create_api_mapping::CreateApiMappingError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
109 crate::operation::create_api_mapping::CreateApiMappingError::Unhandled(inner) => Error::Unhandled(inner),
110 }
111 }
112}
113impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_authorizer::CreateAuthorizerError, R>> for Error
114where
115 R: Send + Sync + std::fmt::Debug + 'static,
116{
117 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_authorizer::CreateAuthorizerError, R>) -> Self {
118 match err {
119 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
120 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
121 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
122 source: err.into(),
123 }),
124 }
125 }
126}
127impl From<crate::operation::create_authorizer::CreateAuthorizerError> for Error {
128 fn from(err: crate::operation::create_authorizer::CreateAuthorizerError) -> Self {
129 match err {
130 crate::operation::create_authorizer::CreateAuthorizerError::BadRequestException(inner) => Error::BadRequestException(inner),
131 crate::operation::create_authorizer::CreateAuthorizerError::ConflictException(inner) => Error::ConflictException(inner),
132 crate::operation::create_authorizer::CreateAuthorizerError::NotFoundException(inner) => Error::NotFoundException(inner),
133 crate::operation::create_authorizer::CreateAuthorizerError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
134 crate::operation::create_authorizer::CreateAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
135 }
136 }
137}
138impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_deployment::CreateDeploymentError, R>> for Error
139where
140 R: Send + Sync + std::fmt::Debug + 'static,
141{
142 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_deployment::CreateDeploymentError, R>) -> Self {
143 match err {
144 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
145 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
146 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
147 source: err.into(),
148 }),
149 }
150 }
151}
152impl From<crate::operation::create_deployment::CreateDeploymentError> for Error {
153 fn from(err: crate::operation::create_deployment::CreateDeploymentError) -> Self {
154 match err {
155 crate::operation::create_deployment::CreateDeploymentError::BadRequestException(inner) => Error::BadRequestException(inner),
156 crate::operation::create_deployment::CreateDeploymentError::ConflictException(inner) => Error::ConflictException(inner),
157 crate::operation::create_deployment::CreateDeploymentError::NotFoundException(inner) => Error::NotFoundException(inner),
158 crate::operation::create_deployment::CreateDeploymentError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
159 crate::operation::create_deployment::CreateDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
160 }
161 }
162}
163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain_name::CreateDomainNameError, R>> for Error
164where
165 R: Send + Sync + std::fmt::Debug + 'static,
166{
167 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain_name::CreateDomainNameError, R>) -> Self {
168 match err {
169 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
170 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
171 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
172 source: err.into(),
173 }),
174 }
175 }
176}
177impl From<crate::operation::create_domain_name::CreateDomainNameError> for Error {
178 fn from(err: crate::operation::create_domain_name::CreateDomainNameError) -> Self {
179 match err {
180 crate::operation::create_domain_name::CreateDomainNameError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
181 crate::operation::create_domain_name::CreateDomainNameError::BadRequestException(inner) => Error::BadRequestException(inner),
182 crate::operation::create_domain_name::CreateDomainNameError::ConflictException(inner) => Error::ConflictException(inner),
183 crate::operation::create_domain_name::CreateDomainNameError::NotFoundException(inner) => Error::NotFoundException(inner),
184 crate::operation::create_domain_name::CreateDomainNameError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
185 crate::operation::create_domain_name::CreateDomainNameError::Unhandled(inner) => Error::Unhandled(inner),
186 }
187 }
188}
189impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_integration::CreateIntegrationError, R>> for Error
190where
191 R: Send + Sync + std::fmt::Debug + 'static,
192{
193 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_integration::CreateIntegrationError, R>) -> Self {
194 match err {
195 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
196 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
197 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
198 source: err.into(),
199 }),
200 }
201 }
202}
203impl From<crate::operation::create_integration::CreateIntegrationError> for Error {
204 fn from(err: crate::operation::create_integration::CreateIntegrationError) -> Self {
205 match err {
206 crate::operation::create_integration::CreateIntegrationError::BadRequestException(inner) => Error::BadRequestException(inner),
207 crate::operation::create_integration::CreateIntegrationError::ConflictException(inner) => Error::ConflictException(inner),
208 crate::operation::create_integration::CreateIntegrationError::NotFoundException(inner) => Error::NotFoundException(inner),
209 crate::operation::create_integration::CreateIntegrationError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
210 crate::operation::create_integration::CreateIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
211 }
212 }
213}
214impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_integration_response::CreateIntegrationResponseError, R>>
215 for Error
216where
217 R: Send + Sync + std::fmt::Debug + 'static,
218{
219 fn from(
220 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_integration_response::CreateIntegrationResponseError, R>,
221 ) -> Self {
222 match err {
223 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
224 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
225 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
226 source: err.into(),
227 }),
228 }
229 }
230}
231impl From<crate::operation::create_integration_response::CreateIntegrationResponseError> for Error {
232 fn from(err: crate::operation::create_integration_response::CreateIntegrationResponseError) -> Self {
233 match err {
234 crate::operation::create_integration_response::CreateIntegrationResponseError::BadRequestException(inner) => {
235 Error::BadRequestException(inner)
236 }
237 crate::operation::create_integration_response::CreateIntegrationResponseError::ConflictException(inner) => {
238 Error::ConflictException(inner)
239 }
240 crate::operation::create_integration_response::CreateIntegrationResponseError::NotFoundException(inner) => {
241 Error::NotFoundException(inner)
242 }
243 crate::operation::create_integration_response::CreateIntegrationResponseError::TooManyRequestsException(inner) => {
244 Error::TooManyRequestsException(inner)
245 }
246 crate::operation::create_integration_response::CreateIntegrationResponseError::Unhandled(inner) => Error::Unhandled(inner),
247 }
248 }
249}
250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model::CreateModelError, R>> for Error
251where
252 R: Send + Sync + std::fmt::Debug + 'static,
253{
254 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_model::CreateModelError, R>) -> Self {
255 match err {
256 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
257 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
258 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
259 source: err.into(),
260 }),
261 }
262 }
263}
264impl From<crate::operation::create_model::CreateModelError> for Error {
265 fn from(err: crate::operation::create_model::CreateModelError) -> Self {
266 match err {
267 crate::operation::create_model::CreateModelError::BadRequestException(inner) => Error::BadRequestException(inner),
268 crate::operation::create_model::CreateModelError::ConflictException(inner) => Error::ConflictException(inner),
269 crate::operation::create_model::CreateModelError::NotFoundException(inner) => Error::NotFoundException(inner),
270 crate::operation::create_model::CreateModelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
271 crate::operation::create_model::CreateModelError::Unhandled(inner) => Error::Unhandled(inner),
272 }
273 }
274}
275impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_portal::CreatePortalError, R>> for Error
276where
277 R: Send + Sync + std::fmt::Debug + 'static,
278{
279 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_portal::CreatePortalError, R>) -> Self {
280 match err {
281 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
282 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
283 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
284 source: err.into(),
285 }),
286 }
287 }
288}
289impl From<crate::operation::create_portal::CreatePortalError> for Error {
290 fn from(err: crate::operation::create_portal::CreatePortalError) -> Self {
291 match err {
292 crate::operation::create_portal::CreatePortalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
293 crate::operation::create_portal::CreatePortalError::BadRequestException(inner) => Error::BadRequestException(inner),
294 crate::operation::create_portal::CreatePortalError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
295 crate::operation::create_portal::CreatePortalError::Unhandled(inner) => Error::Unhandled(inner),
296 }
297 }
298}
299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_portal_product::CreatePortalProductError, R>> for Error
300where
301 R: Send + Sync + std::fmt::Debug + 'static,
302{
303 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_portal_product::CreatePortalProductError, R>) -> Self {
304 match err {
305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
308 source: err.into(),
309 }),
310 }
311 }
312}
313impl From<crate::operation::create_portal_product::CreatePortalProductError> for Error {
314 fn from(err: crate::operation::create_portal_product::CreatePortalProductError) -> Self {
315 match err {
316 crate::operation::create_portal_product::CreatePortalProductError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
317 crate::operation::create_portal_product::CreatePortalProductError::BadRequestException(inner) => Error::BadRequestException(inner),
318 crate::operation::create_portal_product::CreatePortalProductError::TooManyRequestsException(inner) => {
319 Error::TooManyRequestsException(inner)
320 }
321 crate::operation::create_portal_product::CreatePortalProductError::Unhandled(inner) => Error::Unhandled(inner),
322 }
323 }
324}
325impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_product_page::CreateProductPageError, R>> for Error
326where
327 R: Send + Sync + std::fmt::Debug + 'static,
328{
329 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_product_page::CreateProductPageError, R>) -> Self {
330 match err {
331 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
332 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
333 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
334 source: err.into(),
335 }),
336 }
337 }
338}
339impl From<crate::operation::create_product_page::CreateProductPageError> for Error {
340 fn from(err: crate::operation::create_product_page::CreateProductPageError) -> Self {
341 match err {
342 crate::operation::create_product_page::CreateProductPageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
343 crate::operation::create_product_page::CreateProductPageError::BadRequestException(inner) => Error::BadRequestException(inner),
344 crate::operation::create_product_page::CreateProductPageError::NotFoundException(inner) => Error::NotFoundException(inner),
345 crate::operation::create_product_page::CreateProductPageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
346 crate::operation::create_product_page::CreateProductPageError::Unhandled(inner) => Error::Unhandled(inner),
347 }
348 }
349}
350impl<R>
351 From<
352 ::aws_smithy_runtime_api::client::result::SdkError<
353 crate::operation::create_product_rest_endpoint_page::CreateProductRestEndpointPageError,
354 R,
355 >,
356 > for Error
357where
358 R: Send + Sync + std::fmt::Debug + 'static,
359{
360 fn from(
361 err: ::aws_smithy_runtime_api::client::result::SdkError<
362 crate::operation::create_product_rest_endpoint_page::CreateProductRestEndpointPageError,
363 R,
364 >,
365 ) -> Self {
366 match err {
367 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
368 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
369 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
370 source: err.into(),
371 }),
372 }
373 }
374}
375impl From<crate::operation::create_product_rest_endpoint_page::CreateProductRestEndpointPageError> for Error {
376 fn from(err: crate::operation::create_product_rest_endpoint_page::CreateProductRestEndpointPageError) -> Self {
377 match err {
378 crate::operation::create_product_rest_endpoint_page::CreateProductRestEndpointPageError::AccessDeniedException(inner) => {
379 Error::AccessDeniedException(inner)
380 }
381 crate::operation::create_product_rest_endpoint_page::CreateProductRestEndpointPageError::BadRequestException(inner) => {
382 Error::BadRequestException(inner)
383 }
384 crate::operation::create_product_rest_endpoint_page::CreateProductRestEndpointPageError::NotFoundException(inner) => {
385 Error::NotFoundException(inner)
386 }
387 crate::operation::create_product_rest_endpoint_page::CreateProductRestEndpointPageError::TooManyRequestsException(inner) => {
388 Error::TooManyRequestsException(inner)
389 }
390 crate::operation::create_product_rest_endpoint_page::CreateProductRestEndpointPageError::Unhandled(inner) => Error::Unhandled(inner),
391 }
392 }
393}
394impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route::CreateRouteError, R>> for Error
395where
396 R: Send + Sync + std::fmt::Debug + 'static,
397{
398 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route::CreateRouteError, R>) -> Self {
399 match err {
400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
403 source: err.into(),
404 }),
405 }
406 }
407}
408impl From<crate::operation::create_route::CreateRouteError> for Error {
409 fn from(err: crate::operation::create_route::CreateRouteError) -> Self {
410 match err {
411 crate::operation::create_route::CreateRouteError::BadRequestException(inner) => Error::BadRequestException(inner),
412 crate::operation::create_route::CreateRouteError::ConflictException(inner) => Error::ConflictException(inner),
413 crate::operation::create_route::CreateRouteError::NotFoundException(inner) => Error::NotFoundException(inner),
414 crate::operation::create_route::CreateRouteError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
415 crate::operation::create_route::CreateRouteError::Unhandled(inner) => Error::Unhandled(inner),
416 }
417 }
418}
419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_response::CreateRouteResponseError, R>> for Error
420where
421 R: Send + Sync + std::fmt::Debug + 'static,
422{
423 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_response::CreateRouteResponseError, R>) -> Self {
424 match err {
425 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
426 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
427 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
428 source: err.into(),
429 }),
430 }
431 }
432}
433impl From<crate::operation::create_route_response::CreateRouteResponseError> for Error {
434 fn from(err: crate::operation::create_route_response::CreateRouteResponseError) -> Self {
435 match err {
436 crate::operation::create_route_response::CreateRouteResponseError::BadRequestException(inner) => Error::BadRequestException(inner),
437 crate::operation::create_route_response::CreateRouteResponseError::ConflictException(inner) => Error::ConflictException(inner),
438 crate::operation::create_route_response::CreateRouteResponseError::NotFoundException(inner) => Error::NotFoundException(inner),
439 crate::operation::create_route_response::CreateRouteResponseError::TooManyRequestsException(inner) => {
440 Error::TooManyRequestsException(inner)
441 }
442 crate::operation::create_route_response::CreateRouteResponseError::Unhandled(inner) => Error::Unhandled(inner),
443 }
444 }
445}
446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_routing_rule::CreateRoutingRuleError, R>> for Error
447where
448 R: Send + Sync + std::fmt::Debug + 'static,
449{
450 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_routing_rule::CreateRoutingRuleError, R>) -> Self {
451 match err {
452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
455 source: err.into(),
456 }),
457 }
458 }
459}
460impl From<crate::operation::create_routing_rule::CreateRoutingRuleError> for Error {
461 fn from(err: crate::operation::create_routing_rule::CreateRoutingRuleError) -> Self {
462 match err {
463 crate::operation::create_routing_rule::CreateRoutingRuleError::BadRequestException(inner) => Error::BadRequestException(inner),
464 crate::operation::create_routing_rule::CreateRoutingRuleError::ConflictException(inner) => Error::ConflictException(inner),
465 crate::operation::create_routing_rule::CreateRoutingRuleError::NotFoundException(inner) => Error::NotFoundException(inner),
466 crate::operation::create_routing_rule::CreateRoutingRuleError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
467 crate::operation::create_routing_rule::CreateRoutingRuleError::Unhandled(inner) => Error::Unhandled(inner),
468 }
469 }
470}
471impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stage::CreateStageError, R>> for Error
472where
473 R: Send + Sync + std::fmt::Debug + 'static,
474{
475 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stage::CreateStageError, R>) -> Self {
476 match err {
477 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
478 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
479 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
480 source: err.into(),
481 }),
482 }
483 }
484}
485impl From<crate::operation::create_stage::CreateStageError> for Error {
486 fn from(err: crate::operation::create_stage::CreateStageError) -> Self {
487 match err {
488 crate::operation::create_stage::CreateStageError::BadRequestException(inner) => Error::BadRequestException(inner),
489 crate::operation::create_stage::CreateStageError::ConflictException(inner) => Error::ConflictException(inner),
490 crate::operation::create_stage::CreateStageError::NotFoundException(inner) => Error::NotFoundException(inner),
491 crate::operation::create_stage::CreateStageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
492 crate::operation::create_stage::CreateStageError::Unhandled(inner) => Error::Unhandled(inner),
493 }
494 }
495}
496impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_link::CreateVpcLinkError, R>> for Error
497where
498 R: Send + Sync + std::fmt::Debug + 'static,
499{
500 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_link::CreateVpcLinkError, R>) -> Self {
501 match err {
502 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
503 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
504 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
505 source: err.into(),
506 }),
507 }
508 }
509}
510impl From<crate::operation::create_vpc_link::CreateVpcLinkError> for Error {
511 fn from(err: crate::operation::create_vpc_link::CreateVpcLinkError) -> Self {
512 match err {
513 crate::operation::create_vpc_link::CreateVpcLinkError::BadRequestException(inner) => Error::BadRequestException(inner),
514 crate::operation::create_vpc_link::CreateVpcLinkError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
515 crate::operation::create_vpc_link::CreateVpcLinkError::Unhandled(inner) => Error::Unhandled(inner),
516 }
517 }
518}
519impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError, R>>
520 for Error
521where
522 R: Send + Sync + std::fmt::Debug + 'static,
523{
524 fn from(
525 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError, R>,
526 ) -> Self {
527 match err {
528 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
529 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
530 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
531 source: err.into(),
532 }),
533 }
534 }
535}
536impl From<crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError> for Error {
537 fn from(err: crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError) -> Self {
538 match err {
539 crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError::NotFoundException(inner) => Error::NotFoundException(inner),
540 crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError::TooManyRequestsException(inner) => {
541 Error::TooManyRequestsException(inner)
542 }
543 crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError::Unhandled(inner) => Error::Unhandled(inner),
544 }
545 }
546}
547impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api::DeleteApiError, R>> for Error
548where
549 R: Send + Sync + std::fmt::Debug + 'static,
550{
551 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api::DeleteApiError, R>) -> Self {
552 match err {
553 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
554 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
555 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
556 source: err.into(),
557 }),
558 }
559 }
560}
561impl From<crate::operation::delete_api::DeleteApiError> for Error {
562 fn from(err: crate::operation::delete_api::DeleteApiError) -> Self {
563 match err {
564 crate::operation::delete_api::DeleteApiError::NotFoundException(inner) => Error::NotFoundException(inner),
565 crate::operation::delete_api::DeleteApiError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
566 crate::operation::delete_api::DeleteApiError::Unhandled(inner) => Error::Unhandled(inner),
567 }
568 }
569}
570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api_mapping::DeleteApiMappingError, 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::delete_api_mapping::DeleteApiMappingError, 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::delete_api_mapping::DeleteApiMappingError> for Error {
585 fn from(err: crate::operation::delete_api_mapping::DeleteApiMappingError) -> Self {
586 match err {
587 crate::operation::delete_api_mapping::DeleteApiMappingError::BadRequestException(inner) => Error::BadRequestException(inner),
588 crate::operation::delete_api_mapping::DeleteApiMappingError::NotFoundException(inner) => Error::NotFoundException(inner),
589 crate::operation::delete_api_mapping::DeleteApiMappingError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
590 crate::operation::delete_api_mapping::DeleteApiMappingError::Unhandled(inner) => Error::Unhandled(inner),
591 }
592 }
593}
594impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_authorizer::DeleteAuthorizerError, R>> for Error
595where
596 R: Send + Sync + std::fmt::Debug + 'static,
597{
598 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_authorizer::DeleteAuthorizerError, R>) -> Self {
599 match err {
600 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
601 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
602 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
603 source: err.into(),
604 }),
605 }
606 }
607}
608impl From<crate::operation::delete_authorizer::DeleteAuthorizerError> for Error {
609 fn from(err: crate::operation::delete_authorizer::DeleteAuthorizerError) -> Self {
610 match err {
611 crate::operation::delete_authorizer::DeleteAuthorizerError::NotFoundException(inner) => Error::NotFoundException(inner),
612 crate::operation::delete_authorizer::DeleteAuthorizerError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
613 crate::operation::delete_authorizer::DeleteAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
614 }
615 }
616}
617impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cors_configuration::DeleteCorsConfigurationError, R>>
618 for Error
619where
620 R: Send + Sync + std::fmt::Debug + 'static,
621{
622 fn from(
623 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cors_configuration::DeleteCorsConfigurationError, R>,
624 ) -> Self {
625 match err {
626 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
627 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
628 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
629 source: err.into(),
630 }),
631 }
632 }
633}
634impl From<crate::operation::delete_cors_configuration::DeleteCorsConfigurationError> for Error {
635 fn from(err: crate::operation::delete_cors_configuration::DeleteCorsConfigurationError) -> Self {
636 match err {
637 crate::operation::delete_cors_configuration::DeleteCorsConfigurationError::NotFoundException(inner) => Error::NotFoundException(inner),
638 crate::operation::delete_cors_configuration::DeleteCorsConfigurationError::TooManyRequestsException(inner) => {
639 Error::TooManyRequestsException(inner)
640 }
641 crate::operation::delete_cors_configuration::DeleteCorsConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
642 }
643 }
644}
645impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_deployment::DeleteDeploymentError, R>> for Error
646where
647 R: Send + Sync + std::fmt::Debug + 'static,
648{
649 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_deployment::DeleteDeploymentError, R>) -> Self {
650 match err {
651 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
652 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
653 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
654 source: err.into(),
655 }),
656 }
657 }
658}
659impl From<crate::operation::delete_deployment::DeleteDeploymentError> for Error {
660 fn from(err: crate::operation::delete_deployment::DeleteDeploymentError) -> Self {
661 match err {
662 crate::operation::delete_deployment::DeleteDeploymentError::NotFoundException(inner) => Error::NotFoundException(inner),
663 crate::operation::delete_deployment::DeleteDeploymentError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
664 crate::operation::delete_deployment::DeleteDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
665 }
666 }
667}
668impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain_name::DeleteDomainNameError, R>> for Error
669where
670 R: Send + Sync + std::fmt::Debug + 'static,
671{
672 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain_name::DeleteDomainNameError, R>) -> Self {
673 match err {
674 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
675 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
676 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
677 source: err.into(),
678 }),
679 }
680 }
681}
682impl From<crate::operation::delete_domain_name::DeleteDomainNameError> for Error {
683 fn from(err: crate::operation::delete_domain_name::DeleteDomainNameError) -> Self {
684 match err {
685 crate::operation::delete_domain_name::DeleteDomainNameError::NotFoundException(inner) => Error::NotFoundException(inner),
686 crate::operation::delete_domain_name::DeleteDomainNameError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
687 crate::operation::delete_domain_name::DeleteDomainNameError::Unhandled(inner) => Error::Unhandled(inner),
688 }
689 }
690}
691impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>> for Error
692where
693 R: Send + Sync + std::fmt::Debug + 'static,
694{
695 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>) -> Self {
696 match err {
697 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
698 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
699 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
700 source: err.into(),
701 }),
702 }
703 }
704}
705impl From<crate::operation::delete_integration::DeleteIntegrationError> for Error {
706 fn from(err: crate::operation::delete_integration::DeleteIntegrationError) -> Self {
707 match err {
708 crate::operation::delete_integration::DeleteIntegrationError::NotFoundException(inner) => Error::NotFoundException(inner),
709 crate::operation::delete_integration::DeleteIntegrationError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
710 crate::operation::delete_integration::DeleteIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
711 }
712 }
713}
714impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration_response::DeleteIntegrationResponseError, R>>
715 for Error
716where
717 R: Send + Sync + std::fmt::Debug + 'static,
718{
719 fn from(
720 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration_response::DeleteIntegrationResponseError, R>,
721 ) -> Self {
722 match err {
723 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
724 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
725 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
726 source: err.into(),
727 }),
728 }
729 }
730}
731impl From<crate::operation::delete_integration_response::DeleteIntegrationResponseError> for Error {
732 fn from(err: crate::operation::delete_integration_response::DeleteIntegrationResponseError) -> Self {
733 match err {
734 crate::operation::delete_integration_response::DeleteIntegrationResponseError::NotFoundException(inner) => {
735 Error::NotFoundException(inner)
736 }
737 crate::operation::delete_integration_response::DeleteIntegrationResponseError::TooManyRequestsException(inner) => {
738 Error::TooManyRequestsException(inner)
739 }
740 crate::operation::delete_integration_response::DeleteIntegrationResponseError::Unhandled(inner) => Error::Unhandled(inner),
741 }
742 }
743}
744impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>> for Error
745where
746 R: Send + Sync + std::fmt::Debug + 'static,
747{
748 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>) -> Self {
749 match err {
750 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
751 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
752 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
753 source: err.into(),
754 }),
755 }
756 }
757}
758impl From<crate::operation::delete_model::DeleteModelError> for Error {
759 fn from(err: crate::operation::delete_model::DeleteModelError) -> Self {
760 match err {
761 crate::operation::delete_model::DeleteModelError::NotFoundException(inner) => Error::NotFoundException(inner),
762 crate::operation::delete_model::DeleteModelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
763 crate::operation::delete_model::DeleteModelError::Unhandled(inner) => Error::Unhandled(inner),
764 }
765 }
766}
767impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_portal::DeletePortalError, R>> for Error
768where
769 R: Send + Sync + std::fmt::Debug + 'static,
770{
771 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_portal::DeletePortalError, R>) -> Self {
772 match err {
773 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
774 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
775 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
776 source: err.into(),
777 }),
778 }
779 }
780}
781impl From<crate::operation::delete_portal::DeletePortalError> for Error {
782 fn from(err: crate::operation::delete_portal::DeletePortalError) -> Self {
783 match err {
784 crate::operation::delete_portal::DeletePortalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
785 crate::operation::delete_portal::DeletePortalError::BadRequestException(inner) => Error::BadRequestException(inner),
786 crate::operation::delete_portal::DeletePortalError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
787 crate::operation::delete_portal::DeletePortalError::Unhandled(inner) => Error::Unhandled(inner),
788 }
789 }
790}
791impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_portal_product::DeletePortalProductError, R>> for Error
792where
793 R: Send + Sync + std::fmt::Debug + 'static,
794{
795 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_portal_product::DeletePortalProductError, R>) -> Self {
796 match err {
797 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
798 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
799 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
800 source: err.into(),
801 }),
802 }
803 }
804}
805impl From<crate::operation::delete_portal_product::DeletePortalProductError> for Error {
806 fn from(err: crate::operation::delete_portal_product::DeletePortalProductError) -> Self {
807 match err {
808 crate::operation::delete_portal_product::DeletePortalProductError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
809 crate::operation::delete_portal_product::DeletePortalProductError::BadRequestException(inner) => Error::BadRequestException(inner),
810 crate::operation::delete_portal_product::DeletePortalProductError::NotFoundException(inner) => Error::NotFoundException(inner),
811 crate::operation::delete_portal_product::DeletePortalProductError::TooManyRequestsException(inner) => {
812 Error::TooManyRequestsException(inner)
813 }
814 crate::operation::delete_portal_product::DeletePortalProductError::Unhandled(inner) => Error::Unhandled(inner),
815 }
816 }
817}
818impl<R>
819 From<
820 ::aws_smithy_runtime_api::client::result::SdkError<
821 crate::operation::delete_portal_product_sharing_policy::DeletePortalProductSharingPolicyError,
822 R,
823 >,
824 > for Error
825where
826 R: Send + Sync + std::fmt::Debug + 'static,
827{
828 fn from(
829 err: ::aws_smithy_runtime_api::client::result::SdkError<
830 crate::operation::delete_portal_product_sharing_policy::DeletePortalProductSharingPolicyError,
831 R,
832 >,
833 ) -> Self {
834 match err {
835 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
836 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
837 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
838 source: err.into(),
839 }),
840 }
841 }
842}
843impl From<crate::operation::delete_portal_product_sharing_policy::DeletePortalProductSharingPolicyError> for Error {
844 fn from(err: crate::operation::delete_portal_product_sharing_policy::DeletePortalProductSharingPolicyError) -> Self {
845 match err {
846 crate::operation::delete_portal_product_sharing_policy::DeletePortalProductSharingPolicyError::AccessDeniedException(inner) => {
847 Error::AccessDeniedException(inner)
848 }
849 crate::operation::delete_portal_product_sharing_policy::DeletePortalProductSharingPolicyError::BadRequestException(inner) => {
850 Error::BadRequestException(inner)
851 }
852 crate::operation::delete_portal_product_sharing_policy::DeletePortalProductSharingPolicyError::NotFoundException(inner) => {
853 Error::NotFoundException(inner)
854 }
855 crate::operation::delete_portal_product_sharing_policy::DeletePortalProductSharingPolicyError::TooManyRequestsException(inner) => {
856 Error::TooManyRequestsException(inner)
857 }
858 crate::operation::delete_portal_product_sharing_policy::DeletePortalProductSharingPolicyError::Unhandled(inner) => {
859 Error::Unhandled(inner)
860 }
861 }
862 }
863}
864impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_product_page::DeleteProductPageError, R>> for Error
865where
866 R: Send + Sync + std::fmt::Debug + 'static,
867{
868 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_product_page::DeleteProductPageError, R>) -> Self {
869 match err {
870 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
871 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
872 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
873 source: err.into(),
874 }),
875 }
876 }
877}
878impl From<crate::operation::delete_product_page::DeleteProductPageError> for Error {
879 fn from(err: crate::operation::delete_product_page::DeleteProductPageError) -> Self {
880 match err {
881 crate::operation::delete_product_page::DeleteProductPageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
882 crate::operation::delete_product_page::DeleteProductPageError::BadRequestException(inner) => Error::BadRequestException(inner),
883 crate::operation::delete_product_page::DeleteProductPageError::NotFoundException(inner) => Error::NotFoundException(inner),
884 crate::operation::delete_product_page::DeleteProductPageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
885 crate::operation::delete_product_page::DeleteProductPageError::Unhandled(inner) => Error::Unhandled(inner),
886 }
887 }
888}
889impl<R>
890 From<
891 ::aws_smithy_runtime_api::client::result::SdkError<
892 crate::operation::delete_product_rest_endpoint_page::DeleteProductRestEndpointPageError,
893 R,
894 >,
895 > for Error
896where
897 R: Send + Sync + std::fmt::Debug + 'static,
898{
899 fn from(
900 err: ::aws_smithy_runtime_api::client::result::SdkError<
901 crate::operation::delete_product_rest_endpoint_page::DeleteProductRestEndpointPageError,
902 R,
903 >,
904 ) -> Self {
905 match err {
906 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
907 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
908 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
909 source: err.into(),
910 }),
911 }
912 }
913}
914impl From<crate::operation::delete_product_rest_endpoint_page::DeleteProductRestEndpointPageError> for Error {
915 fn from(err: crate::operation::delete_product_rest_endpoint_page::DeleteProductRestEndpointPageError) -> Self {
916 match err {
917 crate::operation::delete_product_rest_endpoint_page::DeleteProductRestEndpointPageError::AccessDeniedException(inner) => {
918 Error::AccessDeniedException(inner)
919 }
920 crate::operation::delete_product_rest_endpoint_page::DeleteProductRestEndpointPageError::BadRequestException(inner) => {
921 Error::BadRequestException(inner)
922 }
923 crate::operation::delete_product_rest_endpoint_page::DeleteProductRestEndpointPageError::NotFoundException(inner) => {
924 Error::NotFoundException(inner)
925 }
926 crate::operation::delete_product_rest_endpoint_page::DeleteProductRestEndpointPageError::TooManyRequestsException(inner) => {
927 Error::TooManyRequestsException(inner)
928 }
929 crate::operation::delete_product_rest_endpoint_page::DeleteProductRestEndpointPageError::Unhandled(inner) => Error::Unhandled(inner),
930 }
931 }
932}
933impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>> for Error
934where
935 R: Send + Sync + std::fmt::Debug + 'static,
936{
937 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>) -> Self {
938 match err {
939 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
940 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
941 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
942 source: err.into(),
943 }),
944 }
945 }
946}
947impl From<crate::operation::delete_route::DeleteRouteError> for Error {
948 fn from(err: crate::operation::delete_route::DeleteRouteError) -> Self {
949 match err {
950 crate::operation::delete_route::DeleteRouteError::NotFoundException(inner) => Error::NotFoundException(inner),
951 crate::operation::delete_route::DeleteRouteError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
952 crate::operation::delete_route::DeleteRouteError::Unhandled(inner) => Error::Unhandled(inner),
953 }
954 }
955}
956impl<R>
957 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError, R>>
958 for Error
959where
960 R: Send + Sync + std::fmt::Debug + 'static,
961{
962 fn from(
963 err: ::aws_smithy_runtime_api::client::result::SdkError<
964 crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError,
965 R,
966 >,
967 ) -> Self {
968 match err {
969 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
970 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
971 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
972 source: err.into(),
973 }),
974 }
975 }
976}
977impl From<crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError> for Error {
978 fn from(err: crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError) -> Self {
979 match err {
980 crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError::NotFoundException(inner) => {
981 Error::NotFoundException(inner)
982 }
983 crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError::TooManyRequestsException(inner) => {
984 Error::TooManyRequestsException(inner)
985 }
986 crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError::Unhandled(inner) => Error::Unhandled(inner),
987 }
988 }
989}
990impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_response::DeleteRouteResponseError, R>> for Error
991where
992 R: Send + Sync + std::fmt::Debug + 'static,
993{
994 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_response::DeleteRouteResponseError, R>) -> Self {
995 match err {
996 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
997 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
998 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
999 source: err.into(),
1000 }),
1001 }
1002 }
1003}
1004impl From<crate::operation::delete_route_response::DeleteRouteResponseError> for Error {
1005 fn from(err: crate::operation::delete_route_response::DeleteRouteResponseError) -> Self {
1006 match err {
1007 crate::operation::delete_route_response::DeleteRouteResponseError::NotFoundException(inner) => Error::NotFoundException(inner),
1008 crate::operation::delete_route_response::DeleteRouteResponseError::TooManyRequestsException(inner) => {
1009 Error::TooManyRequestsException(inner)
1010 }
1011 crate::operation::delete_route_response::DeleteRouteResponseError::Unhandled(inner) => Error::Unhandled(inner),
1012 }
1013 }
1014}
1015impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_settings::DeleteRouteSettingsError, R>> for Error
1016where
1017 R: Send + Sync + std::fmt::Debug + 'static,
1018{
1019 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_settings::DeleteRouteSettingsError, R>) -> Self {
1020 match err {
1021 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1022 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1023 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1024 source: err.into(),
1025 }),
1026 }
1027 }
1028}
1029impl From<crate::operation::delete_route_settings::DeleteRouteSettingsError> for Error {
1030 fn from(err: crate::operation::delete_route_settings::DeleteRouteSettingsError) -> Self {
1031 match err {
1032 crate::operation::delete_route_settings::DeleteRouteSettingsError::NotFoundException(inner) => Error::NotFoundException(inner),
1033 crate::operation::delete_route_settings::DeleteRouteSettingsError::TooManyRequestsException(inner) => {
1034 Error::TooManyRequestsException(inner)
1035 }
1036 crate::operation::delete_route_settings::DeleteRouteSettingsError::Unhandled(inner) => Error::Unhandled(inner),
1037 }
1038 }
1039}
1040impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_routing_rule::DeleteRoutingRuleError, R>> for Error
1041where
1042 R: Send + Sync + std::fmt::Debug + 'static,
1043{
1044 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_routing_rule::DeleteRoutingRuleError, R>) -> Self {
1045 match err {
1046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1049 source: err.into(),
1050 }),
1051 }
1052 }
1053}
1054impl From<crate::operation::delete_routing_rule::DeleteRoutingRuleError> for Error {
1055 fn from(err: crate::operation::delete_routing_rule::DeleteRoutingRuleError) -> Self {
1056 match err {
1057 crate::operation::delete_routing_rule::DeleteRoutingRuleError::BadRequestException(inner) => Error::BadRequestException(inner),
1058 crate::operation::delete_routing_rule::DeleteRoutingRuleError::NotFoundException(inner) => Error::NotFoundException(inner),
1059 crate::operation::delete_routing_rule::DeleteRoutingRuleError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1060 crate::operation::delete_routing_rule::DeleteRoutingRuleError::Unhandled(inner) => Error::Unhandled(inner),
1061 }
1062 }
1063}
1064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stage::DeleteStageError, R>> for Error
1065where
1066 R: Send + Sync + std::fmt::Debug + 'static,
1067{
1068 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stage::DeleteStageError, R>) -> Self {
1069 match err {
1070 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1071 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1072 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1073 source: err.into(),
1074 }),
1075 }
1076 }
1077}
1078impl From<crate::operation::delete_stage::DeleteStageError> for Error {
1079 fn from(err: crate::operation::delete_stage::DeleteStageError) -> Self {
1080 match err {
1081 crate::operation::delete_stage::DeleteStageError::NotFoundException(inner) => Error::NotFoundException(inner),
1082 crate::operation::delete_stage::DeleteStageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1083 crate::operation::delete_stage::DeleteStageError::Unhandled(inner) => Error::Unhandled(inner),
1084 }
1085 }
1086}
1087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_link::DeleteVpcLinkError, R>> for Error
1088where
1089 R: Send + Sync + std::fmt::Debug + 'static,
1090{
1091 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_link::DeleteVpcLinkError, R>) -> Self {
1092 match err {
1093 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1094 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1095 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1096 source: err.into(),
1097 }),
1098 }
1099 }
1100}
1101impl From<crate::operation::delete_vpc_link::DeleteVpcLinkError> for Error {
1102 fn from(err: crate::operation::delete_vpc_link::DeleteVpcLinkError) -> Self {
1103 match err {
1104 crate::operation::delete_vpc_link::DeleteVpcLinkError::NotFoundException(inner) => Error::NotFoundException(inner),
1105 crate::operation::delete_vpc_link::DeleteVpcLinkError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1106 crate::operation::delete_vpc_link::DeleteVpcLinkError::Unhandled(inner) => Error::Unhandled(inner),
1107 }
1108 }
1109}
1110impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_portal::DisablePortalError, R>> for Error
1111where
1112 R: Send + Sync + std::fmt::Debug + 'static,
1113{
1114 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_portal::DisablePortalError, R>) -> Self {
1115 match err {
1116 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1117 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1118 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1119 source: err.into(),
1120 }),
1121 }
1122 }
1123}
1124impl From<crate::operation::disable_portal::DisablePortalError> for Error {
1125 fn from(err: crate::operation::disable_portal::DisablePortalError) -> Self {
1126 match err {
1127 crate::operation::disable_portal::DisablePortalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1128 crate::operation::disable_portal::DisablePortalError::BadRequestException(inner) => Error::BadRequestException(inner),
1129 crate::operation::disable_portal::DisablePortalError::ConflictException(inner) => Error::ConflictException(inner),
1130 crate::operation::disable_portal::DisablePortalError::NotFoundException(inner) => Error::NotFoundException(inner),
1131 crate::operation::disable_portal::DisablePortalError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1132 crate::operation::disable_portal::DisablePortalError::Unhandled(inner) => Error::Unhandled(inner),
1133 }
1134 }
1135}
1136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_api::ExportApiError, R>> for Error
1137where
1138 R: Send + Sync + std::fmt::Debug + 'static,
1139{
1140 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_api::ExportApiError, R>) -> Self {
1141 match err {
1142 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1143 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1144 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1145 source: err.into(),
1146 }),
1147 }
1148 }
1149}
1150impl From<crate::operation::export_api::ExportApiError> for Error {
1151 fn from(err: crate::operation::export_api::ExportApiError) -> Self {
1152 match err {
1153 crate::operation::export_api::ExportApiError::BadRequestException(inner) => Error::BadRequestException(inner),
1154 crate::operation::export_api::ExportApiError::NotFoundException(inner) => Error::NotFoundException(inner),
1155 crate::operation::export_api::ExportApiError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1156 crate::operation::export_api::ExportApiError::Unhandled(inner) => Error::Unhandled(inner),
1157 }
1158 }
1159}
1160impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api::GetApiError, R>> for Error
1161where
1162 R: Send + Sync + std::fmt::Debug + 'static,
1163{
1164 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api::GetApiError, R>) -> Self {
1165 match err {
1166 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1167 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1168 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1169 source: err.into(),
1170 }),
1171 }
1172 }
1173}
1174impl From<crate::operation::get_api::GetApiError> for Error {
1175 fn from(err: crate::operation::get_api::GetApiError) -> Self {
1176 match err {
1177 crate::operation::get_api::GetApiError::NotFoundException(inner) => Error::NotFoundException(inner),
1178 crate::operation::get_api::GetApiError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1179 crate::operation::get_api::GetApiError::Unhandled(inner) => Error::Unhandled(inner),
1180 }
1181 }
1182}
1183impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api_mapping::GetApiMappingError, R>> for Error
1184where
1185 R: Send + Sync + std::fmt::Debug + 'static,
1186{
1187 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api_mapping::GetApiMappingError, R>) -> Self {
1188 match err {
1189 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1190 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1191 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1192 source: err.into(),
1193 }),
1194 }
1195 }
1196}
1197impl From<crate::operation::get_api_mapping::GetApiMappingError> for Error {
1198 fn from(err: crate::operation::get_api_mapping::GetApiMappingError) -> Self {
1199 match err {
1200 crate::operation::get_api_mapping::GetApiMappingError::BadRequestException(inner) => Error::BadRequestException(inner),
1201 crate::operation::get_api_mapping::GetApiMappingError::NotFoundException(inner) => Error::NotFoundException(inner),
1202 crate::operation::get_api_mapping::GetApiMappingError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1203 crate::operation::get_api_mapping::GetApiMappingError::Unhandled(inner) => Error::Unhandled(inner),
1204 }
1205 }
1206}
1207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api_mappings::GetApiMappingsError, R>> for Error
1208where
1209 R: Send + Sync + std::fmt::Debug + 'static,
1210{
1211 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api_mappings::GetApiMappingsError, R>) -> Self {
1212 match err {
1213 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1214 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1215 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1216 source: err.into(),
1217 }),
1218 }
1219 }
1220}
1221impl From<crate::operation::get_api_mappings::GetApiMappingsError> for Error {
1222 fn from(err: crate::operation::get_api_mappings::GetApiMappingsError) -> Self {
1223 match err {
1224 crate::operation::get_api_mappings::GetApiMappingsError::BadRequestException(inner) => Error::BadRequestException(inner),
1225 crate::operation::get_api_mappings::GetApiMappingsError::NotFoundException(inner) => Error::NotFoundException(inner),
1226 crate::operation::get_api_mappings::GetApiMappingsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1227 crate::operation::get_api_mappings::GetApiMappingsError::Unhandled(inner) => Error::Unhandled(inner),
1228 }
1229 }
1230}
1231impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apis::GetApisError, R>> for Error
1232where
1233 R: Send + Sync + std::fmt::Debug + 'static,
1234{
1235 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apis::GetApisError, R>) -> Self {
1236 match err {
1237 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1238 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1239 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1240 source: err.into(),
1241 }),
1242 }
1243 }
1244}
1245impl From<crate::operation::get_apis::GetApisError> for Error {
1246 fn from(err: crate::operation::get_apis::GetApisError) -> Self {
1247 match err {
1248 crate::operation::get_apis::GetApisError::BadRequestException(inner) => Error::BadRequestException(inner),
1249 crate::operation::get_apis::GetApisError::NotFoundException(inner) => Error::NotFoundException(inner),
1250 crate::operation::get_apis::GetApisError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1251 crate::operation::get_apis::GetApisError::Unhandled(inner) => Error::Unhandled(inner),
1252 }
1253 }
1254}
1255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_authorizer::GetAuthorizerError, R>> for Error
1256where
1257 R: Send + Sync + std::fmt::Debug + 'static,
1258{
1259 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_authorizer::GetAuthorizerError, R>) -> Self {
1260 match err {
1261 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1262 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1263 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1264 source: err.into(),
1265 }),
1266 }
1267 }
1268}
1269impl From<crate::operation::get_authorizer::GetAuthorizerError> for Error {
1270 fn from(err: crate::operation::get_authorizer::GetAuthorizerError) -> Self {
1271 match err {
1272 crate::operation::get_authorizer::GetAuthorizerError::NotFoundException(inner) => Error::NotFoundException(inner),
1273 crate::operation::get_authorizer::GetAuthorizerError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1274 crate::operation::get_authorizer::GetAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
1275 }
1276 }
1277}
1278impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_authorizers::GetAuthorizersError, R>> for Error
1279where
1280 R: Send + Sync + std::fmt::Debug + 'static,
1281{
1282 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_authorizers::GetAuthorizersError, R>) -> Self {
1283 match err {
1284 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1285 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1286 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1287 source: err.into(),
1288 }),
1289 }
1290 }
1291}
1292impl From<crate::operation::get_authorizers::GetAuthorizersError> for Error {
1293 fn from(err: crate::operation::get_authorizers::GetAuthorizersError) -> Self {
1294 match err {
1295 crate::operation::get_authorizers::GetAuthorizersError::BadRequestException(inner) => Error::BadRequestException(inner),
1296 crate::operation::get_authorizers::GetAuthorizersError::NotFoundException(inner) => Error::NotFoundException(inner),
1297 crate::operation::get_authorizers::GetAuthorizersError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1298 crate::operation::get_authorizers::GetAuthorizersError::Unhandled(inner) => Error::Unhandled(inner),
1299 }
1300 }
1301}
1302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deployment::GetDeploymentError, R>> for Error
1303where
1304 R: Send + Sync + std::fmt::Debug + 'static,
1305{
1306 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deployment::GetDeploymentError, R>) -> Self {
1307 match err {
1308 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1309 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1310 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1311 source: err.into(),
1312 }),
1313 }
1314 }
1315}
1316impl From<crate::operation::get_deployment::GetDeploymentError> for Error {
1317 fn from(err: crate::operation::get_deployment::GetDeploymentError) -> Self {
1318 match err {
1319 crate::operation::get_deployment::GetDeploymentError::NotFoundException(inner) => Error::NotFoundException(inner),
1320 crate::operation::get_deployment::GetDeploymentError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1321 crate::operation::get_deployment::GetDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
1322 }
1323 }
1324}
1325impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deployments::GetDeploymentsError, R>> for Error
1326where
1327 R: Send + Sync + std::fmt::Debug + 'static,
1328{
1329 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deployments::GetDeploymentsError, R>) -> 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::get_deployments::GetDeploymentsError> for Error {
1340 fn from(err: crate::operation::get_deployments::GetDeploymentsError) -> Self {
1341 match err {
1342 crate::operation::get_deployments::GetDeploymentsError::BadRequestException(inner) => Error::BadRequestException(inner),
1343 crate::operation::get_deployments::GetDeploymentsError::NotFoundException(inner) => Error::NotFoundException(inner),
1344 crate::operation::get_deployments::GetDeploymentsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1345 crate::operation::get_deployments::GetDeploymentsError::Unhandled(inner) => Error::Unhandled(inner),
1346 }
1347 }
1348}
1349impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_name::GetDomainNameError, R>> for Error
1350where
1351 R: Send + Sync + std::fmt::Debug + 'static,
1352{
1353 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_name::GetDomainNameError, R>) -> Self {
1354 match err {
1355 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1356 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1357 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1358 source: err.into(),
1359 }),
1360 }
1361 }
1362}
1363impl From<crate::operation::get_domain_name::GetDomainNameError> for Error {
1364 fn from(err: crate::operation::get_domain_name::GetDomainNameError) -> Self {
1365 match err {
1366 crate::operation::get_domain_name::GetDomainNameError::NotFoundException(inner) => Error::NotFoundException(inner),
1367 crate::operation::get_domain_name::GetDomainNameError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1368 crate::operation::get_domain_name::GetDomainNameError::Unhandled(inner) => Error::Unhandled(inner),
1369 }
1370 }
1371}
1372impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_names::GetDomainNamesError, R>> for Error
1373where
1374 R: Send + Sync + std::fmt::Debug + 'static,
1375{
1376 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_names::GetDomainNamesError, R>) -> Self {
1377 match err {
1378 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1379 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1380 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1381 source: err.into(),
1382 }),
1383 }
1384 }
1385}
1386impl From<crate::operation::get_domain_names::GetDomainNamesError> for Error {
1387 fn from(err: crate::operation::get_domain_names::GetDomainNamesError) -> Self {
1388 match err {
1389 crate::operation::get_domain_names::GetDomainNamesError::BadRequestException(inner) => Error::BadRequestException(inner),
1390 crate::operation::get_domain_names::GetDomainNamesError::NotFoundException(inner) => Error::NotFoundException(inner),
1391 crate::operation::get_domain_names::GetDomainNamesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1392 crate::operation::get_domain_names::GetDomainNamesError::Unhandled(inner) => Error::Unhandled(inner),
1393 }
1394 }
1395}
1396impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>> for Error
1397where
1398 R: Send + Sync + std::fmt::Debug + 'static,
1399{
1400 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>) -> Self {
1401 match err {
1402 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1403 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1404 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1405 source: err.into(),
1406 }),
1407 }
1408 }
1409}
1410impl From<crate::operation::get_integration::GetIntegrationError> for Error {
1411 fn from(err: crate::operation::get_integration::GetIntegrationError) -> Self {
1412 match err {
1413 crate::operation::get_integration::GetIntegrationError::NotFoundException(inner) => Error::NotFoundException(inner),
1414 crate::operation::get_integration::GetIntegrationError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1415 crate::operation::get_integration::GetIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1416 }
1417 }
1418}
1419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration_response::GetIntegrationResponseError, R>> for Error
1420where
1421 R: Send + Sync + std::fmt::Debug + 'static,
1422{
1423 fn from(
1424 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration_response::GetIntegrationResponseError, R>,
1425 ) -> Self {
1426 match err {
1427 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1428 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1429 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1430 source: err.into(),
1431 }),
1432 }
1433 }
1434}
1435impl From<crate::operation::get_integration_response::GetIntegrationResponseError> for Error {
1436 fn from(err: crate::operation::get_integration_response::GetIntegrationResponseError) -> Self {
1437 match err {
1438 crate::operation::get_integration_response::GetIntegrationResponseError::NotFoundException(inner) => Error::NotFoundException(inner),
1439 crate::operation::get_integration_response::GetIntegrationResponseError::TooManyRequestsException(inner) => {
1440 Error::TooManyRequestsException(inner)
1441 }
1442 crate::operation::get_integration_response::GetIntegrationResponseError::Unhandled(inner) => Error::Unhandled(inner),
1443 }
1444 }
1445}
1446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration_responses::GetIntegrationResponsesError, R>>
1447 for Error
1448where
1449 R: Send + Sync + std::fmt::Debug + 'static,
1450{
1451 fn from(
1452 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration_responses::GetIntegrationResponsesError, R>,
1453 ) -> Self {
1454 match err {
1455 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1456 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1457 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1458 source: err.into(),
1459 }),
1460 }
1461 }
1462}
1463impl From<crate::operation::get_integration_responses::GetIntegrationResponsesError> for Error {
1464 fn from(err: crate::operation::get_integration_responses::GetIntegrationResponsesError) -> Self {
1465 match err {
1466 crate::operation::get_integration_responses::GetIntegrationResponsesError::BadRequestException(inner) => {
1467 Error::BadRequestException(inner)
1468 }
1469 crate::operation::get_integration_responses::GetIntegrationResponsesError::NotFoundException(inner) => Error::NotFoundException(inner),
1470 crate::operation::get_integration_responses::GetIntegrationResponsesError::TooManyRequestsException(inner) => {
1471 Error::TooManyRequestsException(inner)
1472 }
1473 crate::operation::get_integration_responses::GetIntegrationResponsesError::Unhandled(inner) => Error::Unhandled(inner),
1474 }
1475 }
1476}
1477impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integrations::GetIntegrationsError, R>> for Error
1478where
1479 R: Send + Sync + std::fmt::Debug + 'static,
1480{
1481 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integrations::GetIntegrationsError, R>) -> Self {
1482 match err {
1483 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1484 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1485 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1486 source: err.into(),
1487 }),
1488 }
1489 }
1490}
1491impl From<crate::operation::get_integrations::GetIntegrationsError> for Error {
1492 fn from(err: crate::operation::get_integrations::GetIntegrationsError) -> Self {
1493 match err {
1494 crate::operation::get_integrations::GetIntegrationsError::BadRequestException(inner) => Error::BadRequestException(inner),
1495 crate::operation::get_integrations::GetIntegrationsError::NotFoundException(inner) => Error::NotFoundException(inner),
1496 crate::operation::get_integrations::GetIntegrationsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1497 crate::operation::get_integrations::GetIntegrationsError::Unhandled(inner) => Error::Unhandled(inner),
1498 }
1499 }
1500}
1501impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model::GetModelError, R>> for Error
1502where
1503 R: Send + Sync + std::fmt::Debug + 'static,
1504{
1505 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model::GetModelError, R>) -> Self {
1506 match err {
1507 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1508 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1509 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1510 source: err.into(),
1511 }),
1512 }
1513 }
1514}
1515impl From<crate::operation::get_model::GetModelError> for Error {
1516 fn from(err: crate::operation::get_model::GetModelError) -> Self {
1517 match err {
1518 crate::operation::get_model::GetModelError::NotFoundException(inner) => Error::NotFoundException(inner),
1519 crate::operation::get_model::GetModelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1520 crate::operation::get_model::GetModelError::Unhandled(inner) => Error::Unhandled(inner),
1521 }
1522 }
1523}
1524impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_models::GetModelsError, R>> for Error
1525where
1526 R: Send + Sync + std::fmt::Debug + 'static,
1527{
1528 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_models::GetModelsError, R>) -> Self {
1529 match err {
1530 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1531 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1532 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1533 source: err.into(),
1534 }),
1535 }
1536 }
1537}
1538impl From<crate::operation::get_models::GetModelsError> for Error {
1539 fn from(err: crate::operation::get_models::GetModelsError) -> Self {
1540 match err {
1541 crate::operation::get_models::GetModelsError::BadRequestException(inner) => Error::BadRequestException(inner),
1542 crate::operation::get_models::GetModelsError::NotFoundException(inner) => Error::NotFoundException(inner),
1543 crate::operation::get_models::GetModelsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1544 crate::operation::get_models::GetModelsError::Unhandled(inner) => Error::Unhandled(inner),
1545 }
1546 }
1547}
1548impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_template::GetModelTemplateError, R>> for Error
1549where
1550 R: Send + Sync + std::fmt::Debug + 'static,
1551{
1552 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_template::GetModelTemplateError, R>) -> Self {
1553 match err {
1554 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1555 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1556 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1557 source: err.into(),
1558 }),
1559 }
1560 }
1561}
1562impl From<crate::operation::get_model_template::GetModelTemplateError> for Error {
1563 fn from(err: crate::operation::get_model_template::GetModelTemplateError) -> Self {
1564 match err {
1565 crate::operation::get_model_template::GetModelTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
1566 crate::operation::get_model_template::GetModelTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1567 crate::operation::get_model_template::GetModelTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1568 }
1569 }
1570}
1571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_portal::GetPortalError, R>> for Error
1572where
1573 R: Send + Sync + std::fmt::Debug + 'static,
1574{
1575 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_portal::GetPortalError, R>) -> Self {
1576 match err {
1577 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1578 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1579 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1580 source: err.into(),
1581 }),
1582 }
1583 }
1584}
1585impl From<crate::operation::get_portal::GetPortalError> for Error {
1586 fn from(err: crate::operation::get_portal::GetPortalError) -> Self {
1587 match err {
1588 crate::operation::get_portal::GetPortalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1589 crate::operation::get_portal::GetPortalError::BadRequestException(inner) => Error::BadRequestException(inner),
1590 crate::operation::get_portal::GetPortalError::NotFoundException(inner) => Error::NotFoundException(inner),
1591 crate::operation::get_portal::GetPortalError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1592 crate::operation::get_portal::GetPortalError::Unhandled(inner) => Error::Unhandled(inner),
1593 }
1594 }
1595}
1596impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_portal_product::GetPortalProductError, R>> for Error
1597where
1598 R: Send + Sync + std::fmt::Debug + 'static,
1599{
1600 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_portal_product::GetPortalProductError, R>) -> Self {
1601 match err {
1602 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1603 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1604 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1605 source: err.into(),
1606 }),
1607 }
1608 }
1609}
1610impl From<crate::operation::get_portal_product::GetPortalProductError> for Error {
1611 fn from(err: crate::operation::get_portal_product::GetPortalProductError) -> Self {
1612 match err {
1613 crate::operation::get_portal_product::GetPortalProductError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1614 crate::operation::get_portal_product::GetPortalProductError::BadRequestException(inner) => Error::BadRequestException(inner),
1615 crate::operation::get_portal_product::GetPortalProductError::NotFoundException(inner) => Error::NotFoundException(inner),
1616 crate::operation::get_portal_product::GetPortalProductError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1617 crate::operation::get_portal_product::GetPortalProductError::Unhandled(inner) => Error::Unhandled(inner),
1618 }
1619 }
1620}
1621impl<R>
1622 From<
1623 ::aws_smithy_runtime_api::client::result::SdkError<
1624 crate::operation::get_portal_product_sharing_policy::GetPortalProductSharingPolicyError,
1625 R,
1626 >,
1627 > for Error
1628where
1629 R: Send + Sync + std::fmt::Debug + 'static,
1630{
1631 fn from(
1632 err: ::aws_smithy_runtime_api::client::result::SdkError<
1633 crate::operation::get_portal_product_sharing_policy::GetPortalProductSharingPolicyError,
1634 R,
1635 >,
1636 ) -> Self {
1637 match err {
1638 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1639 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1640 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1641 source: err.into(),
1642 }),
1643 }
1644 }
1645}
1646impl From<crate::operation::get_portal_product_sharing_policy::GetPortalProductSharingPolicyError> for Error {
1647 fn from(err: crate::operation::get_portal_product_sharing_policy::GetPortalProductSharingPolicyError) -> Self {
1648 match err {
1649 crate::operation::get_portal_product_sharing_policy::GetPortalProductSharingPolicyError::AccessDeniedException(inner) => {
1650 Error::AccessDeniedException(inner)
1651 }
1652 crate::operation::get_portal_product_sharing_policy::GetPortalProductSharingPolicyError::BadRequestException(inner) => {
1653 Error::BadRequestException(inner)
1654 }
1655 crate::operation::get_portal_product_sharing_policy::GetPortalProductSharingPolicyError::NotFoundException(inner) => {
1656 Error::NotFoundException(inner)
1657 }
1658 crate::operation::get_portal_product_sharing_policy::GetPortalProductSharingPolicyError::TooManyRequestsException(inner) => {
1659 Error::TooManyRequestsException(inner)
1660 }
1661 crate::operation::get_portal_product_sharing_policy::GetPortalProductSharingPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1662 }
1663 }
1664}
1665impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_product_page::GetProductPageError, R>> for Error
1666where
1667 R: Send + Sync + std::fmt::Debug + 'static,
1668{
1669 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_product_page::GetProductPageError, R>) -> Self {
1670 match err {
1671 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1672 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1673 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1674 source: err.into(),
1675 }),
1676 }
1677 }
1678}
1679impl From<crate::operation::get_product_page::GetProductPageError> for Error {
1680 fn from(err: crate::operation::get_product_page::GetProductPageError) -> Self {
1681 match err {
1682 crate::operation::get_product_page::GetProductPageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1683 crate::operation::get_product_page::GetProductPageError::BadRequestException(inner) => Error::BadRequestException(inner),
1684 crate::operation::get_product_page::GetProductPageError::NotFoundException(inner) => Error::NotFoundException(inner),
1685 crate::operation::get_product_page::GetProductPageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1686 crate::operation::get_product_page::GetProductPageError::Unhandled(inner) => Error::Unhandled(inner),
1687 }
1688 }
1689}
1690impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_product_rest_endpoint_page::GetProductRestEndpointPageError, R>>
1691 for Error
1692where
1693 R: Send + Sync + std::fmt::Debug + 'static,
1694{
1695 fn from(
1696 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_product_rest_endpoint_page::GetProductRestEndpointPageError, R>,
1697 ) -> Self {
1698 match err {
1699 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1700 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1701 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1702 source: err.into(),
1703 }),
1704 }
1705 }
1706}
1707impl From<crate::operation::get_product_rest_endpoint_page::GetProductRestEndpointPageError> for Error {
1708 fn from(err: crate::operation::get_product_rest_endpoint_page::GetProductRestEndpointPageError) -> Self {
1709 match err {
1710 crate::operation::get_product_rest_endpoint_page::GetProductRestEndpointPageError::AccessDeniedException(inner) => {
1711 Error::AccessDeniedException(inner)
1712 }
1713 crate::operation::get_product_rest_endpoint_page::GetProductRestEndpointPageError::BadRequestException(inner) => {
1714 Error::BadRequestException(inner)
1715 }
1716 crate::operation::get_product_rest_endpoint_page::GetProductRestEndpointPageError::NotFoundException(inner) => {
1717 Error::NotFoundException(inner)
1718 }
1719 crate::operation::get_product_rest_endpoint_page::GetProductRestEndpointPageError::TooManyRequestsException(inner) => {
1720 Error::TooManyRequestsException(inner)
1721 }
1722 crate::operation::get_product_rest_endpoint_page::GetProductRestEndpointPageError::Unhandled(inner) => Error::Unhandled(inner),
1723 }
1724 }
1725}
1726impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route::GetRouteError, R>> for Error
1727where
1728 R: Send + Sync + std::fmt::Debug + 'static,
1729{
1730 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route::GetRouteError, R>) -> Self {
1731 match err {
1732 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1733 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1734 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1735 source: err.into(),
1736 }),
1737 }
1738 }
1739}
1740impl From<crate::operation::get_route::GetRouteError> for Error {
1741 fn from(err: crate::operation::get_route::GetRouteError) -> Self {
1742 match err {
1743 crate::operation::get_route::GetRouteError::NotFoundException(inner) => Error::NotFoundException(inner),
1744 crate::operation::get_route::GetRouteError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1745 crate::operation::get_route::GetRouteError::Unhandled(inner) => Error::Unhandled(inner),
1746 }
1747 }
1748}
1749impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_response::GetRouteResponseError, R>> for Error
1750where
1751 R: Send + Sync + std::fmt::Debug + 'static,
1752{
1753 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_response::GetRouteResponseError, R>) -> Self {
1754 match err {
1755 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1756 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1757 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1758 source: err.into(),
1759 }),
1760 }
1761 }
1762}
1763impl From<crate::operation::get_route_response::GetRouteResponseError> for Error {
1764 fn from(err: crate::operation::get_route_response::GetRouteResponseError) -> Self {
1765 match err {
1766 crate::operation::get_route_response::GetRouteResponseError::NotFoundException(inner) => Error::NotFoundException(inner),
1767 crate::operation::get_route_response::GetRouteResponseError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1768 crate::operation::get_route_response::GetRouteResponseError::Unhandled(inner) => Error::Unhandled(inner),
1769 }
1770 }
1771}
1772impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_responses::GetRouteResponsesError, R>> for Error
1773where
1774 R: Send + Sync + std::fmt::Debug + 'static,
1775{
1776 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_responses::GetRouteResponsesError, R>) -> Self {
1777 match err {
1778 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1779 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1780 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1781 source: err.into(),
1782 }),
1783 }
1784 }
1785}
1786impl From<crate::operation::get_route_responses::GetRouteResponsesError> for Error {
1787 fn from(err: crate::operation::get_route_responses::GetRouteResponsesError) -> Self {
1788 match err {
1789 crate::operation::get_route_responses::GetRouteResponsesError::BadRequestException(inner) => Error::BadRequestException(inner),
1790 crate::operation::get_route_responses::GetRouteResponsesError::NotFoundException(inner) => Error::NotFoundException(inner),
1791 crate::operation::get_route_responses::GetRouteResponsesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1792 crate::operation::get_route_responses::GetRouteResponsesError::Unhandled(inner) => Error::Unhandled(inner),
1793 }
1794 }
1795}
1796impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_routes::GetRoutesError, R>> for Error
1797where
1798 R: Send + Sync + std::fmt::Debug + 'static,
1799{
1800 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_routes::GetRoutesError, R>) -> Self {
1801 match err {
1802 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1803 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1804 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1805 source: err.into(),
1806 }),
1807 }
1808 }
1809}
1810impl From<crate::operation::get_routes::GetRoutesError> for Error {
1811 fn from(err: crate::operation::get_routes::GetRoutesError) -> Self {
1812 match err {
1813 crate::operation::get_routes::GetRoutesError::BadRequestException(inner) => Error::BadRequestException(inner),
1814 crate::operation::get_routes::GetRoutesError::NotFoundException(inner) => Error::NotFoundException(inner),
1815 crate::operation::get_routes::GetRoutesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1816 crate::operation::get_routes::GetRoutesError::Unhandled(inner) => Error::Unhandled(inner),
1817 }
1818 }
1819}
1820impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_routing_rule::GetRoutingRuleError, R>> for Error
1821where
1822 R: Send + Sync + std::fmt::Debug + 'static,
1823{
1824 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_routing_rule::GetRoutingRuleError, R>) -> Self {
1825 match err {
1826 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1827 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1828 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1829 source: err.into(),
1830 }),
1831 }
1832 }
1833}
1834impl From<crate::operation::get_routing_rule::GetRoutingRuleError> for Error {
1835 fn from(err: crate::operation::get_routing_rule::GetRoutingRuleError) -> Self {
1836 match err {
1837 crate::operation::get_routing_rule::GetRoutingRuleError::BadRequestException(inner) => Error::BadRequestException(inner),
1838 crate::operation::get_routing_rule::GetRoutingRuleError::NotFoundException(inner) => Error::NotFoundException(inner),
1839 crate::operation::get_routing_rule::GetRoutingRuleError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1840 crate::operation::get_routing_rule::GetRoutingRuleError::Unhandled(inner) => Error::Unhandled(inner),
1841 }
1842 }
1843}
1844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stage::GetStageError, R>> for Error
1845where
1846 R: Send + Sync + std::fmt::Debug + 'static,
1847{
1848 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stage::GetStageError, R>) -> Self {
1849 match err {
1850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1853 source: err.into(),
1854 }),
1855 }
1856 }
1857}
1858impl From<crate::operation::get_stage::GetStageError> for Error {
1859 fn from(err: crate::operation::get_stage::GetStageError) -> Self {
1860 match err {
1861 crate::operation::get_stage::GetStageError::NotFoundException(inner) => Error::NotFoundException(inner),
1862 crate::operation::get_stage::GetStageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1863 crate::operation::get_stage::GetStageError::Unhandled(inner) => Error::Unhandled(inner),
1864 }
1865 }
1866}
1867impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stages::GetStagesError, R>> for Error
1868where
1869 R: Send + Sync + std::fmt::Debug + 'static,
1870{
1871 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stages::GetStagesError, R>) -> Self {
1872 match err {
1873 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1874 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1875 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1876 source: err.into(),
1877 }),
1878 }
1879 }
1880}
1881impl From<crate::operation::get_stages::GetStagesError> for Error {
1882 fn from(err: crate::operation::get_stages::GetStagesError) -> Self {
1883 match err {
1884 crate::operation::get_stages::GetStagesError::BadRequestException(inner) => Error::BadRequestException(inner),
1885 crate::operation::get_stages::GetStagesError::NotFoundException(inner) => Error::NotFoundException(inner),
1886 crate::operation::get_stages::GetStagesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1887 crate::operation::get_stages::GetStagesError::Unhandled(inner) => Error::Unhandled(inner),
1888 }
1889 }
1890}
1891impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_tags::GetTagsError, R>> for Error
1892where
1893 R: Send + Sync + std::fmt::Debug + 'static,
1894{
1895 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_tags::GetTagsError, R>) -> Self {
1896 match err {
1897 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1898 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1899 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1900 source: err.into(),
1901 }),
1902 }
1903 }
1904}
1905impl From<crate::operation::get_tags::GetTagsError> for Error {
1906 fn from(err: crate::operation::get_tags::GetTagsError) -> Self {
1907 match err {
1908 crate::operation::get_tags::GetTagsError::BadRequestException(inner) => Error::BadRequestException(inner),
1909 crate::operation::get_tags::GetTagsError::ConflictException(inner) => Error::ConflictException(inner),
1910 crate::operation::get_tags::GetTagsError::NotFoundException(inner) => Error::NotFoundException(inner),
1911 crate::operation::get_tags::GetTagsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1912 crate::operation::get_tags::GetTagsError::Unhandled(inner) => Error::Unhandled(inner),
1913 }
1914 }
1915}
1916impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpc_link::GetVpcLinkError, R>> for Error
1917where
1918 R: Send + Sync + std::fmt::Debug + 'static,
1919{
1920 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpc_link::GetVpcLinkError, R>) -> Self {
1921 match err {
1922 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1923 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1924 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1925 source: err.into(),
1926 }),
1927 }
1928 }
1929}
1930impl From<crate::operation::get_vpc_link::GetVpcLinkError> for Error {
1931 fn from(err: crate::operation::get_vpc_link::GetVpcLinkError) -> Self {
1932 match err {
1933 crate::operation::get_vpc_link::GetVpcLinkError::NotFoundException(inner) => Error::NotFoundException(inner),
1934 crate::operation::get_vpc_link::GetVpcLinkError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1935 crate::operation::get_vpc_link::GetVpcLinkError::Unhandled(inner) => Error::Unhandled(inner),
1936 }
1937 }
1938}
1939impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpc_links::GetVpcLinksError, R>> for Error
1940where
1941 R: Send + Sync + std::fmt::Debug + 'static,
1942{
1943 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpc_links::GetVpcLinksError, R>) -> Self {
1944 match err {
1945 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1946 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1947 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1948 source: err.into(),
1949 }),
1950 }
1951 }
1952}
1953impl From<crate::operation::get_vpc_links::GetVpcLinksError> for Error {
1954 fn from(err: crate::operation::get_vpc_links::GetVpcLinksError) -> Self {
1955 match err {
1956 crate::operation::get_vpc_links::GetVpcLinksError::BadRequestException(inner) => Error::BadRequestException(inner),
1957 crate::operation::get_vpc_links::GetVpcLinksError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1958 crate::operation::get_vpc_links::GetVpcLinksError::Unhandled(inner) => Error::Unhandled(inner),
1959 }
1960 }
1961}
1962impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_api::ImportApiError, R>> for Error
1963where
1964 R: Send + Sync + std::fmt::Debug + 'static,
1965{
1966 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_api::ImportApiError, R>) -> Self {
1967 match err {
1968 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1969 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1970 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1971 source: err.into(),
1972 }),
1973 }
1974 }
1975}
1976impl From<crate::operation::import_api::ImportApiError> for Error {
1977 fn from(err: crate::operation::import_api::ImportApiError) -> Self {
1978 match err {
1979 crate::operation::import_api::ImportApiError::BadRequestException(inner) => Error::BadRequestException(inner),
1980 crate::operation::import_api::ImportApiError::ConflictException(inner) => Error::ConflictException(inner),
1981 crate::operation::import_api::ImportApiError::NotFoundException(inner) => Error::NotFoundException(inner),
1982 crate::operation::import_api::ImportApiError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1983 crate::operation::import_api::ImportApiError::Unhandled(inner) => Error::Unhandled(inner),
1984 }
1985 }
1986}
1987impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_portal_products::ListPortalProductsError, R>> for Error
1988where
1989 R: Send + Sync + std::fmt::Debug + 'static,
1990{
1991 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_portal_products::ListPortalProductsError, R>) -> Self {
1992 match err {
1993 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1994 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1995 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1996 source: err.into(),
1997 }),
1998 }
1999 }
2000}
2001impl From<crate::operation::list_portal_products::ListPortalProductsError> for Error {
2002 fn from(err: crate::operation::list_portal_products::ListPortalProductsError) -> Self {
2003 match err {
2004 crate::operation::list_portal_products::ListPortalProductsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2005 crate::operation::list_portal_products::ListPortalProductsError::BadRequestException(inner) => Error::BadRequestException(inner),
2006 crate::operation::list_portal_products::ListPortalProductsError::TooManyRequestsException(inner) => {
2007 Error::TooManyRequestsException(inner)
2008 }
2009 crate::operation::list_portal_products::ListPortalProductsError::Unhandled(inner) => Error::Unhandled(inner),
2010 }
2011 }
2012}
2013impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_portals::ListPortalsError, R>> for Error
2014where
2015 R: Send + Sync + std::fmt::Debug + 'static,
2016{
2017 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_portals::ListPortalsError, R>) -> Self {
2018 match err {
2019 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2020 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2021 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2022 source: err.into(),
2023 }),
2024 }
2025 }
2026}
2027impl From<crate::operation::list_portals::ListPortalsError> for Error {
2028 fn from(err: crate::operation::list_portals::ListPortalsError) -> Self {
2029 match err {
2030 crate::operation::list_portals::ListPortalsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2031 crate::operation::list_portals::ListPortalsError::BadRequestException(inner) => Error::BadRequestException(inner),
2032 crate::operation::list_portals::ListPortalsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2033 crate::operation::list_portals::ListPortalsError::Unhandled(inner) => Error::Unhandled(inner),
2034 }
2035 }
2036}
2037impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_product_pages::ListProductPagesError, R>> for Error
2038where
2039 R: Send + Sync + std::fmt::Debug + 'static,
2040{
2041 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_product_pages::ListProductPagesError, R>) -> Self {
2042 match err {
2043 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2044 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2045 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2046 source: err.into(),
2047 }),
2048 }
2049 }
2050}
2051impl From<crate::operation::list_product_pages::ListProductPagesError> for Error {
2052 fn from(err: crate::operation::list_product_pages::ListProductPagesError) -> Self {
2053 match err {
2054 crate::operation::list_product_pages::ListProductPagesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2055 crate::operation::list_product_pages::ListProductPagesError::BadRequestException(inner) => Error::BadRequestException(inner),
2056 crate::operation::list_product_pages::ListProductPagesError::NotFoundException(inner) => Error::NotFoundException(inner),
2057 crate::operation::list_product_pages::ListProductPagesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2058 crate::operation::list_product_pages::ListProductPagesError::Unhandled(inner) => Error::Unhandled(inner),
2059 }
2060 }
2061}
2062impl<R>
2063 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_product_rest_endpoint_pages::ListProductRestEndpointPagesError, R>>
2064 for Error
2065where
2066 R: Send + Sync + std::fmt::Debug + 'static,
2067{
2068 fn from(
2069 err: ::aws_smithy_runtime_api::client::result::SdkError<
2070 crate::operation::list_product_rest_endpoint_pages::ListProductRestEndpointPagesError,
2071 R,
2072 >,
2073 ) -> Self {
2074 match err {
2075 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2076 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2077 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2078 source: err.into(),
2079 }),
2080 }
2081 }
2082}
2083impl From<crate::operation::list_product_rest_endpoint_pages::ListProductRestEndpointPagesError> for Error {
2084 fn from(err: crate::operation::list_product_rest_endpoint_pages::ListProductRestEndpointPagesError) -> Self {
2085 match err {
2086 crate::operation::list_product_rest_endpoint_pages::ListProductRestEndpointPagesError::AccessDeniedException(inner) => {
2087 Error::AccessDeniedException(inner)
2088 }
2089 crate::operation::list_product_rest_endpoint_pages::ListProductRestEndpointPagesError::BadRequestException(inner) => {
2090 Error::BadRequestException(inner)
2091 }
2092 crate::operation::list_product_rest_endpoint_pages::ListProductRestEndpointPagesError::NotFoundException(inner) => {
2093 Error::NotFoundException(inner)
2094 }
2095 crate::operation::list_product_rest_endpoint_pages::ListProductRestEndpointPagesError::TooManyRequestsException(inner) => {
2096 Error::TooManyRequestsException(inner)
2097 }
2098 crate::operation::list_product_rest_endpoint_pages::ListProductRestEndpointPagesError::Unhandled(inner) => Error::Unhandled(inner),
2099 }
2100 }
2101}
2102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_routing_rules::ListRoutingRulesError, R>> for Error
2103where
2104 R: Send + Sync + std::fmt::Debug + 'static,
2105{
2106 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_routing_rules::ListRoutingRulesError, R>) -> Self {
2107 match err {
2108 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2109 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2110 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2111 source: err.into(),
2112 }),
2113 }
2114 }
2115}
2116impl From<crate::operation::list_routing_rules::ListRoutingRulesError> for Error {
2117 fn from(err: crate::operation::list_routing_rules::ListRoutingRulesError) -> Self {
2118 match err {
2119 crate::operation::list_routing_rules::ListRoutingRulesError::BadRequestException(inner) => Error::BadRequestException(inner),
2120 crate::operation::list_routing_rules::ListRoutingRulesError::NotFoundException(inner) => Error::NotFoundException(inner),
2121 crate::operation::list_routing_rules::ListRoutingRulesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2122 crate::operation::list_routing_rules::ListRoutingRulesError::Unhandled(inner) => Error::Unhandled(inner),
2123 }
2124 }
2125}
2126impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::preview_portal::PreviewPortalError, R>> for Error
2127where
2128 R: Send + Sync + std::fmt::Debug + 'static,
2129{
2130 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::preview_portal::PreviewPortalError, R>) -> Self {
2131 match err {
2132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2135 source: err.into(),
2136 }),
2137 }
2138 }
2139}
2140impl From<crate::operation::preview_portal::PreviewPortalError> for Error {
2141 fn from(err: crate::operation::preview_portal::PreviewPortalError) -> Self {
2142 match err {
2143 crate::operation::preview_portal::PreviewPortalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2144 crate::operation::preview_portal::PreviewPortalError::BadRequestException(inner) => Error::BadRequestException(inner),
2145 crate::operation::preview_portal::PreviewPortalError::ConflictException(inner) => Error::ConflictException(inner),
2146 crate::operation::preview_portal::PreviewPortalError::NotFoundException(inner) => Error::NotFoundException(inner),
2147 crate::operation::preview_portal::PreviewPortalError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2148 crate::operation::preview_portal::PreviewPortalError::Unhandled(inner) => Error::Unhandled(inner),
2149 }
2150 }
2151}
2152impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::publish_portal::PublishPortalError, R>> for Error
2153where
2154 R: Send + Sync + std::fmt::Debug + 'static,
2155{
2156 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::publish_portal::PublishPortalError, R>) -> Self {
2157 match err {
2158 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2159 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2160 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2161 source: err.into(),
2162 }),
2163 }
2164 }
2165}
2166impl From<crate::operation::publish_portal::PublishPortalError> for Error {
2167 fn from(err: crate::operation::publish_portal::PublishPortalError) -> Self {
2168 match err {
2169 crate::operation::publish_portal::PublishPortalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2170 crate::operation::publish_portal::PublishPortalError::BadRequestException(inner) => Error::BadRequestException(inner),
2171 crate::operation::publish_portal::PublishPortalError::ConflictException(inner) => Error::ConflictException(inner),
2172 crate::operation::publish_portal::PublishPortalError::NotFoundException(inner) => Error::NotFoundException(inner),
2173 crate::operation::publish_portal::PublishPortalError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2174 crate::operation::publish_portal::PublishPortalError::Unhandled(inner) => Error::Unhandled(inner),
2175 }
2176 }
2177}
2178impl<R>
2179 From<
2180 ::aws_smithy_runtime_api::client::result::SdkError<
2181 crate::operation::put_portal_product_sharing_policy::PutPortalProductSharingPolicyError,
2182 R,
2183 >,
2184 > for Error
2185where
2186 R: Send + Sync + std::fmt::Debug + 'static,
2187{
2188 fn from(
2189 err: ::aws_smithy_runtime_api::client::result::SdkError<
2190 crate::operation::put_portal_product_sharing_policy::PutPortalProductSharingPolicyError,
2191 R,
2192 >,
2193 ) -> Self {
2194 match err {
2195 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2196 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2197 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2198 source: err.into(),
2199 }),
2200 }
2201 }
2202}
2203impl From<crate::operation::put_portal_product_sharing_policy::PutPortalProductSharingPolicyError> for Error {
2204 fn from(err: crate::operation::put_portal_product_sharing_policy::PutPortalProductSharingPolicyError) -> Self {
2205 match err {
2206 crate::operation::put_portal_product_sharing_policy::PutPortalProductSharingPolicyError::AccessDeniedException(inner) => {
2207 Error::AccessDeniedException(inner)
2208 }
2209 crate::operation::put_portal_product_sharing_policy::PutPortalProductSharingPolicyError::BadRequestException(inner) => {
2210 Error::BadRequestException(inner)
2211 }
2212 crate::operation::put_portal_product_sharing_policy::PutPortalProductSharingPolicyError::NotFoundException(inner) => {
2213 Error::NotFoundException(inner)
2214 }
2215 crate::operation::put_portal_product_sharing_policy::PutPortalProductSharingPolicyError::TooManyRequestsException(inner) => {
2216 Error::TooManyRequestsException(inner)
2217 }
2218 crate::operation::put_portal_product_sharing_policy::PutPortalProductSharingPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2219 }
2220 }
2221}
2222impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_routing_rule::PutRoutingRuleError, R>> for Error
2223where
2224 R: Send + Sync + std::fmt::Debug + 'static,
2225{
2226 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_routing_rule::PutRoutingRuleError, R>) -> Self {
2227 match err {
2228 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2229 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2230 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2231 source: err.into(),
2232 }),
2233 }
2234 }
2235}
2236impl From<crate::operation::put_routing_rule::PutRoutingRuleError> for Error {
2237 fn from(err: crate::operation::put_routing_rule::PutRoutingRuleError) -> Self {
2238 match err {
2239 crate::operation::put_routing_rule::PutRoutingRuleError::BadRequestException(inner) => Error::BadRequestException(inner),
2240 crate::operation::put_routing_rule::PutRoutingRuleError::ConflictException(inner) => Error::ConflictException(inner),
2241 crate::operation::put_routing_rule::PutRoutingRuleError::NotFoundException(inner) => Error::NotFoundException(inner),
2242 crate::operation::put_routing_rule::PutRoutingRuleError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2243 crate::operation::put_routing_rule::PutRoutingRuleError::Unhandled(inner) => Error::Unhandled(inner),
2244 }
2245 }
2246}
2247impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reimport_api::ReimportApiError, R>> for Error
2248where
2249 R: Send + Sync + std::fmt::Debug + 'static,
2250{
2251 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reimport_api::ReimportApiError, R>) -> Self {
2252 match err {
2253 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2254 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2255 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2256 source: err.into(),
2257 }),
2258 }
2259 }
2260}
2261impl From<crate::operation::reimport_api::ReimportApiError> for Error {
2262 fn from(err: crate::operation::reimport_api::ReimportApiError) -> Self {
2263 match err {
2264 crate::operation::reimport_api::ReimportApiError::BadRequestException(inner) => Error::BadRequestException(inner),
2265 crate::operation::reimport_api::ReimportApiError::ConflictException(inner) => Error::ConflictException(inner),
2266 crate::operation::reimport_api::ReimportApiError::NotFoundException(inner) => Error::NotFoundException(inner),
2267 crate::operation::reimport_api::ReimportApiError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2268 crate::operation::reimport_api::ReimportApiError::Unhandled(inner) => Error::Unhandled(inner),
2269 }
2270 }
2271}
2272impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError, R>> for Error
2273where
2274 R: Send + Sync + std::fmt::Debug + 'static,
2275{
2276 fn from(
2277 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError, R>,
2278 ) -> Self {
2279 match err {
2280 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2281 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2282 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2283 source: err.into(),
2284 }),
2285 }
2286 }
2287}
2288impl From<crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError> for Error {
2289 fn from(err: crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError) -> Self {
2290 match err {
2291 crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError::NotFoundException(inner) => Error::NotFoundException(inner),
2292 crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError::TooManyRequestsException(inner) => {
2293 Error::TooManyRequestsException(inner)
2294 }
2295 crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError::Unhandled(inner) => Error::Unhandled(inner),
2296 }
2297 }
2298}
2299impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2300where
2301 R: Send + Sync + std::fmt::Debug + 'static,
2302{
2303 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2304 match err {
2305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2308 source: err.into(),
2309 }),
2310 }
2311 }
2312}
2313impl From<crate::operation::tag_resource::TagResourceError> for Error {
2314 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2315 match err {
2316 crate::operation::tag_resource::TagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
2317 crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
2318 crate::operation::tag_resource::TagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
2319 crate::operation::tag_resource::TagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2320 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2321 }
2322 }
2323}
2324impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2325where
2326 R: Send + Sync + std::fmt::Debug + 'static,
2327{
2328 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2329 match err {
2330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2333 source: err.into(),
2334 }),
2335 }
2336 }
2337}
2338impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2339 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2340 match err {
2341 crate::operation::untag_resource::UntagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
2342 crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
2343 crate::operation::untag_resource::UntagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
2344 crate::operation::untag_resource::UntagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2345 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2346 }
2347 }
2348}
2349impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api::UpdateApiError, R>> for Error
2350where
2351 R: Send + Sync + std::fmt::Debug + 'static,
2352{
2353 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api::UpdateApiError, R>) -> Self {
2354 match err {
2355 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2356 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2357 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2358 source: err.into(),
2359 }),
2360 }
2361 }
2362}
2363impl From<crate::operation::update_api::UpdateApiError> for Error {
2364 fn from(err: crate::operation::update_api::UpdateApiError) -> Self {
2365 match err {
2366 crate::operation::update_api::UpdateApiError::BadRequestException(inner) => Error::BadRequestException(inner),
2367 crate::operation::update_api::UpdateApiError::ConflictException(inner) => Error::ConflictException(inner),
2368 crate::operation::update_api::UpdateApiError::NotFoundException(inner) => Error::NotFoundException(inner),
2369 crate::operation::update_api::UpdateApiError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2370 crate::operation::update_api::UpdateApiError::Unhandled(inner) => Error::Unhandled(inner),
2371 }
2372 }
2373}
2374impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api_mapping::UpdateApiMappingError, R>> for Error
2375where
2376 R: Send + Sync + std::fmt::Debug + 'static,
2377{
2378 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api_mapping::UpdateApiMappingError, R>) -> Self {
2379 match err {
2380 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2381 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2382 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2383 source: err.into(),
2384 }),
2385 }
2386 }
2387}
2388impl From<crate::operation::update_api_mapping::UpdateApiMappingError> for Error {
2389 fn from(err: crate::operation::update_api_mapping::UpdateApiMappingError) -> Self {
2390 match err {
2391 crate::operation::update_api_mapping::UpdateApiMappingError::BadRequestException(inner) => Error::BadRequestException(inner),
2392 crate::operation::update_api_mapping::UpdateApiMappingError::ConflictException(inner) => Error::ConflictException(inner),
2393 crate::operation::update_api_mapping::UpdateApiMappingError::NotFoundException(inner) => Error::NotFoundException(inner),
2394 crate::operation::update_api_mapping::UpdateApiMappingError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2395 crate::operation::update_api_mapping::UpdateApiMappingError::Unhandled(inner) => Error::Unhandled(inner),
2396 }
2397 }
2398}
2399impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_authorizer::UpdateAuthorizerError, R>> for Error
2400where
2401 R: Send + Sync + std::fmt::Debug + 'static,
2402{
2403 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_authorizer::UpdateAuthorizerError, R>) -> Self {
2404 match err {
2405 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2406 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2407 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2408 source: err.into(),
2409 }),
2410 }
2411 }
2412}
2413impl From<crate::operation::update_authorizer::UpdateAuthorizerError> for Error {
2414 fn from(err: crate::operation::update_authorizer::UpdateAuthorizerError) -> Self {
2415 match err {
2416 crate::operation::update_authorizer::UpdateAuthorizerError::BadRequestException(inner) => Error::BadRequestException(inner),
2417 crate::operation::update_authorizer::UpdateAuthorizerError::ConflictException(inner) => Error::ConflictException(inner),
2418 crate::operation::update_authorizer::UpdateAuthorizerError::NotFoundException(inner) => Error::NotFoundException(inner),
2419 crate::operation::update_authorizer::UpdateAuthorizerError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2420 crate::operation::update_authorizer::UpdateAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
2421 }
2422 }
2423}
2424impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_deployment::UpdateDeploymentError, R>> for Error
2425where
2426 R: Send + Sync + std::fmt::Debug + 'static,
2427{
2428 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_deployment::UpdateDeploymentError, R>) -> Self {
2429 match err {
2430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2433 source: err.into(),
2434 }),
2435 }
2436 }
2437}
2438impl From<crate::operation::update_deployment::UpdateDeploymentError> for Error {
2439 fn from(err: crate::operation::update_deployment::UpdateDeploymentError) -> Self {
2440 match err {
2441 crate::operation::update_deployment::UpdateDeploymentError::BadRequestException(inner) => Error::BadRequestException(inner),
2442 crate::operation::update_deployment::UpdateDeploymentError::ConflictException(inner) => Error::ConflictException(inner),
2443 crate::operation::update_deployment::UpdateDeploymentError::NotFoundException(inner) => Error::NotFoundException(inner),
2444 crate::operation::update_deployment::UpdateDeploymentError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2445 crate::operation::update_deployment::UpdateDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
2446 }
2447 }
2448}
2449impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_name::UpdateDomainNameError, R>> for Error
2450where
2451 R: Send + Sync + std::fmt::Debug + 'static,
2452{
2453 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_name::UpdateDomainNameError, R>) -> Self {
2454 match err {
2455 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2456 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2457 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2458 source: err.into(),
2459 }),
2460 }
2461 }
2462}
2463impl From<crate::operation::update_domain_name::UpdateDomainNameError> for Error {
2464 fn from(err: crate::operation::update_domain_name::UpdateDomainNameError) -> Self {
2465 match err {
2466 crate::operation::update_domain_name::UpdateDomainNameError::BadRequestException(inner) => Error::BadRequestException(inner),
2467 crate::operation::update_domain_name::UpdateDomainNameError::ConflictException(inner) => Error::ConflictException(inner),
2468 crate::operation::update_domain_name::UpdateDomainNameError::NotFoundException(inner) => Error::NotFoundException(inner),
2469 crate::operation::update_domain_name::UpdateDomainNameError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2470 crate::operation::update_domain_name::UpdateDomainNameError::Unhandled(inner) => Error::Unhandled(inner),
2471 }
2472 }
2473}
2474impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integration::UpdateIntegrationError, R>> for Error
2475where
2476 R: Send + Sync + std::fmt::Debug + 'static,
2477{
2478 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integration::UpdateIntegrationError, R>) -> Self {
2479 match err {
2480 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2481 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2482 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2483 source: err.into(),
2484 }),
2485 }
2486 }
2487}
2488impl From<crate::operation::update_integration::UpdateIntegrationError> for Error {
2489 fn from(err: crate::operation::update_integration::UpdateIntegrationError) -> Self {
2490 match err {
2491 crate::operation::update_integration::UpdateIntegrationError::BadRequestException(inner) => Error::BadRequestException(inner),
2492 crate::operation::update_integration::UpdateIntegrationError::ConflictException(inner) => Error::ConflictException(inner),
2493 crate::operation::update_integration::UpdateIntegrationError::NotFoundException(inner) => Error::NotFoundException(inner),
2494 crate::operation::update_integration::UpdateIntegrationError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2495 crate::operation::update_integration::UpdateIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
2496 }
2497 }
2498}
2499impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integration_response::UpdateIntegrationResponseError, R>>
2500 for Error
2501where
2502 R: Send + Sync + std::fmt::Debug + 'static,
2503{
2504 fn from(
2505 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integration_response::UpdateIntegrationResponseError, R>,
2506 ) -> Self {
2507 match err {
2508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2511 source: err.into(),
2512 }),
2513 }
2514 }
2515}
2516impl From<crate::operation::update_integration_response::UpdateIntegrationResponseError> for Error {
2517 fn from(err: crate::operation::update_integration_response::UpdateIntegrationResponseError) -> Self {
2518 match err {
2519 crate::operation::update_integration_response::UpdateIntegrationResponseError::BadRequestException(inner) => {
2520 Error::BadRequestException(inner)
2521 }
2522 crate::operation::update_integration_response::UpdateIntegrationResponseError::ConflictException(inner) => {
2523 Error::ConflictException(inner)
2524 }
2525 crate::operation::update_integration_response::UpdateIntegrationResponseError::NotFoundException(inner) => {
2526 Error::NotFoundException(inner)
2527 }
2528 crate::operation::update_integration_response::UpdateIntegrationResponseError::TooManyRequestsException(inner) => {
2529 Error::TooManyRequestsException(inner)
2530 }
2531 crate::operation::update_integration_response::UpdateIntegrationResponseError::Unhandled(inner) => Error::Unhandled(inner),
2532 }
2533 }
2534}
2535impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model::UpdateModelError, R>> for Error
2536where
2537 R: Send + Sync + std::fmt::Debug + 'static,
2538{
2539 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model::UpdateModelError, R>) -> 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::update_model::UpdateModelError> for Error {
2550 fn from(err: crate::operation::update_model::UpdateModelError) -> Self {
2551 match err {
2552 crate::operation::update_model::UpdateModelError::BadRequestException(inner) => Error::BadRequestException(inner),
2553 crate::operation::update_model::UpdateModelError::ConflictException(inner) => Error::ConflictException(inner),
2554 crate::operation::update_model::UpdateModelError::NotFoundException(inner) => Error::NotFoundException(inner),
2555 crate::operation::update_model::UpdateModelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2556 crate::operation::update_model::UpdateModelError::Unhandled(inner) => Error::Unhandled(inner),
2557 }
2558 }
2559}
2560impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_portal::UpdatePortalError, R>> for Error
2561where
2562 R: Send + Sync + std::fmt::Debug + 'static,
2563{
2564 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_portal::UpdatePortalError, R>) -> Self {
2565 match err {
2566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2569 source: err.into(),
2570 }),
2571 }
2572 }
2573}
2574impl From<crate::operation::update_portal::UpdatePortalError> for Error {
2575 fn from(err: crate::operation::update_portal::UpdatePortalError) -> Self {
2576 match err {
2577 crate::operation::update_portal::UpdatePortalError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2578 crate::operation::update_portal::UpdatePortalError::BadRequestException(inner) => Error::BadRequestException(inner),
2579 crate::operation::update_portal::UpdatePortalError::ConflictException(inner) => Error::ConflictException(inner),
2580 crate::operation::update_portal::UpdatePortalError::NotFoundException(inner) => Error::NotFoundException(inner),
2581 crate::operation::update_portal::UpdatePortalError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2582 crate::operation::update_portal::UpdatePortalError::Unhandled(inner) => Error::Unhandled(inner),
2583 }
2584 }
2585}
2586impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_portal_product::UpdatePortalProductError, R>> for Error
2587where
2588 R: Send + Sync + std::fmt::Debug + 'static,
2589{
2590 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_portal_product::UpdatePortalProductError, R>) -> Self {
2591 match err {
2592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2595 source: err.into(),
2596 }),
2597 }
2598 }
2599}
2600impl From<crate::operation::update_portal_product::UpdatePortalProductError> for Error {
2601 fn from(err: crate::operation::update_portal_product::UpdatePortalProductError) -> Self {
2602 match err {
2603 crate::operation::update_portal_product::UpdatePortalProductError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2604 crate::operation::update_portal_product::UpdatePortalProductError::BadRequestException(inner) => Error::BadRequestException(inner),
2605 crate::operation::update_portal_product::UpdatePortalProductError::NotFoundException(inner) => Error::NotFoundException(inner),
2606 crate::operation::update_portal_product::UpdatePortalProductError::TooManyRequestsException(inner) => {
2607 Error::TooManyRequestsException(inner)
2608 }
2609 crate::operation::update_portal_product::UpdatePortalProductError::Unhandled(inner) => Error::Unhandled(inner),
2610 }
2611 }
2612}
2613impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_product_page::UpdateProductPageError, R>> for Error
2614where
2615 R: Send + Sync + std::fmt::Debug + 'static,
2616{
2617 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_product_page::UpdateProductPageError, R>) -> Self {
2618 match err {
2619 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2620 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2621 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2622 source: err.into(),
2623 }),
2624 }
2625 }
2626}
2627impl From<crate::operation::update_product_page::UpdateProductPageError> for Error {
2628 fn from(err: crate::operation::update_product_page::UpdateProductPageError) -> Self {
2629 match err {
2630 crate::operation::update_product_page::UpdateProductPageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2631 crate::operation::update_product_page::UpdateProductPageError::BadRequestException(inner) => Error::BadRequestException(inner),
2632 crate::operation::update_product_page::UpdateProductPageError::NotFoundException(inner) => Error::NotFoundException(inner),
2633 crate::operation::update_product_page::UpdateProductPageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2634 crate::operation::update_product_page::UpdateProductPageError::Unhandled(inner) => Error::Unhandled(inner),
2635 }
2636 }
2637}
2638impl<R>
2639 From<
2640 ::aws_smithy_runtime_api::client::result::SdkError<
2641 crate::operation::update_product_rest_endpoint_page::UpdateProductRestEndpointPageError,
2642 R,
2643 >,
2644 > for Error
2645where
2646 R: Send + Sync + std::fmt::Debug + 'static,
2647{
2648 fn from(
2649 err: ::aws_smithy_runtime_api::client::result::SdkError<
2650 crate::operation::update_product_rest_endpoint_page::UpdateProductRestEndpointPageError,
2651 R,
2652 >,
2653 ) -> Self {
2654 match err {
2655 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2656 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2657 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2658 source: err.into(),
2659 }),
2660 }
2661 }
2662}
2663impl From<crate::operation::update_product_rest_endpoint_page::UpdateProductRestEndpointPageError> for Error {
2664 fn from(err: crate::operation::update_product_rest_endpoint_page::UpdateProductRestEndpointPageError) -> Self {
2665 match err {
2666 crate::operation::update_product_rest_endpoint_page::UpdateProductRestEndpointPageError::AccessDeniedException(inner) => {
2667 Error::AccessDeniedException(inner)
2668 }
2669 crate::operation::update_product_rest_endpoint_page::UpdateProductRestEndpointPageError::BadRequestException(inner) => {
2670 Error::BadRequestException(inner)
2671 }
2672 crate::operation::update_product_rest_endpoint_page::UpdateProductRestEndpointPageError::NotFoundException(inner) => {
2673 Error::NotFoundException(inner)
2674 }
2675 crate::operation::update_product_rest_endpoint_page::UpdateProductRestEndpointPageError::TooManyRequestsException(inner) => {
2676 Error::TooManyRequestsException(inner)
2677 }
2678 crate::operation::update_product_rest_endpoint_page::UpdateProductRestEndpointPageError::Unhandled(inner) => Error::Unhandled(inner),
2679 }
2680 }
2681}
2682impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_route::UpdateRouteError, R>> for Error
2683where
2684 R: Send + Sync + std::fmt::Debug + 'static,
2685{
2686 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_route::UpdateRouteError, R>) -> Self {
2687 match err {
2688 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2689 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2690 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2691 source: err.into(),
2692 }),
2693 }
2694 }
2695}
2696impl From<crate::operation::update_route::UpdateRouteError> for Error {
2697 fn from(err: crate::operation::update_route::UpdateRouteError) -> Self {
2698 match err {
2699 crate::operation::update_route::UpdateRouteError::BadRequestException(inner) => Error::BadRequestException(inner),
2700 crate::operation::update_route::UpdateRouteError::ConflictException(inner) => Error::ConflictException(inner),
2701 crate::operation::update_route::UpdateRouteError::NotFoundException(inner) => Error::NotFoundException(inner),
2702 crate::operation::update_route::UpdateRouteError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2703 crate::operation::update_route::UpdateRouteError::Unhandled(inner) => Error::Unhandled(inner),
2704 }
2705 }
2706}
2707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_route_response::UpdateRouteResponseError, R>> for Error
2708where
2709 R: Send + Sync + std::fmt::Debug + 'static,
2710{
2711 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_route_response::UpdateRouteResponseError, R>) -> Self {
2712 match err {
2713 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2714 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2715 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2716 source: err.into(),
2717 }),
2718 }
2719 }
2720}
2721impl From<crate::operation::update_route_response::UpdateRouteResponseError> for Error {
2722 fn from(err: crate::operation::update_route_response::UpdateRouteResponseError) -> Self {
2723 match err {
2724 crate::operation::update_route_response::UpdateRouteResponseError::BadRequestException(inner) => Error::BadRequestException(inner),
2725 crate::operation::update_route_response::UpdateRouteResponseError::ConflictException(inner) => Error::ConflictException(inner),
2726 crate::operation::update_route_response::UpdateRouteResponseError::NotFoundException(inner) => Error::NotFoundException(inner),
2727 crate::operation::update_route_response::UpdateRouteResponseError::TooManyRequestsException(inner) => {
2728 Error::TooManyRequestsException(inner)
2729 }
2730 crate::operation::update_route_response::UpdateRouteResponseError::Unhandled(inner) => Error::Unhandled(inner),
2731 }
2732 }
2733}
2734impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stage::UpdateStageError, R>> for Error
2735where
2736 R: Send + Sync + std::fmt::Debug + 'static,
2737{
2738 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stage::UpdateStageError, R>) -> Self {
2739 match err {
2740 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2741 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2742 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2743 source: err.into(),
2744 }),
2745 }
2746 }
2747}
2748impl From<crate::operation::update_stage::UpdateStageError> for Error {
2749 fn from(err: crate::operation::update_stage::UpdateStageError) -> Self {
2750 match err {
2751 crate::operation::update_stage::UpdateStageError::BadRequestException(inner) => Error::BadRequestException(inner),
2752 crate::operation::update_stage::UpdateStageError::ConflictException(inner) => Error::ConflictException(inner),
2753 crate::operation::update_stage::UpdateStageError::NotFoundException(inner) => Error::NotFoundException(inner),
2754 crate::operation::update_stage::UpdateStageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2755 crate::operation::update_stage::UpdateStageError::Unhandled(inner) => Error::Unhandled(inner),
2756 }
2757 }
2758}
2759impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpc_link::UpdateVpcLinkError, R>> for Error
2760where
2761 R: Send + Sync + std::fmt::Debug + 'static,
2762{
2763 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpc_link::UpdateVpcLinkError, R>) -> Self {
2764 match err {
2765 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2766 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2767 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2768 source: err.into(),
2769 }),
2770 }
2771 }
2772}
2773impl From<crate::operation::update_vpc_link::UpdateVpcLinkError> for Error {
2774 fn from(err: crate::operation::update_vpc_link::UpdateVpcLinkError) -> Self {
2775 match err {
2776 crate::operation::update_vpc_link::UpdateVpcLinkError::BadRequestException(inner) => Error::BadRequestException(inner),
2777 crate::operation::update_vpc_link::UpdateVpcLinkError::NotFoundException(inner) => Error::NotFoundException(inner),
2778 crate::operation::update_vpc_link::UpdateVpcLinkError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
2779 crate::operation::update_vpc_link::UpdateVpcLinkError::Unhandled(inner) => Error::Unhandled(inner),
2780 }
2781 }
2782}
2783impl ::std::error::Error for Error {
2784 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2785 match self {
2786 Error::AccessDeniedException(inner) => inner.source(),
2787 Error::BadRequestException(inner) => inner.source(),
2788 Error::ConflictException(inner) => inner.source(),
2789 Error::NotFoundException(inner) => inner.source(),
2790 Error::TooManyRequestsException(inner) => inner.source(),
2791 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2792 }
2793 }
2794}
2795impl ::aws_types::request_id::RequestId for Error {
2796 fn request_id(&self) -> Option<&str> {
2797 match self {
2798 Self::AccessDeniedException(e) => e.request_id(),
2799 Self::BadRequestException(e) => e.request_id(),
2800 Self::ConflictException(e) => e.request_id(),
2801 Self::NotFoundException(e) => e.request_id(),
2802 Self::TooManyRequestsException(e) => e.request_id(),
2803 Self::Unhandled(e) => e.meta.request_id(),
2804 }
2805 }
2806}