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_route::CreateRouteError, 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_route::CreateRouteError, 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_route::CreateRouteError> for Error {
290 fn from(err: crate::operation::create_route::CreateRouteError) -> Self {
291 match err {
292 crate::operation::create_route::CreateRouteError::BadRequestException(inner) => Error::BadRequestException(inner),
293 crate::operation::create_route::CreateRouteError::ConflictException(inner) => Error::ConflictException(inner),
294 crate::operation::create_route::CreateRouteError::NotFoundException(inner) => Error::NotFoundException(inner),
295 crate::operation::create_route::CreateRouteError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
296 crate::operation::create_route::CreateRouteError::Unhandled(inner) => Error::Unhandled(inner),
297 }
298 }
299}
300impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_response::CreateRouteResponseError, R>> for Error
301where
302 R: Send + Sync + std::fmt::Debug + 'static,
303{
304 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_route_response::CreateRouteResponseError, R>) -> Self {
305 match err {
306 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
307 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
308 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
309 source: err.into(),
310 }),
311 }
312 }
313}
314impl From<crate::operation::create_route_response::CreateRouteResponseError> for Error {
315 fn from(err: crate::operation::create_route_response::CreateRouteResponseError) -> Self {
316 match err {
317 crate::operation::create_route_response::CreateRouteResponseError::BadRequestException(inner) => Error::BadRequestException(inner),
318 crate::operation::create_route_response::CreateRouteResponseError::ConflictException(inner) => Error::ConflictException(inner),
319 crate::operation::create_route_response::CreateRouteResponseError::NotFoundException(inner) => Error::NotFoundException(inner),
320 crate::operation::create_route_response::CreateRouteResponseError::TooManyRequestsException(inner) => {
321 Error::TooManyRequestsException(inner)
322 }
323 crate::operation::create_route_response::CreateRouteResponseError::Unhandled(inner) => Error::Unhandled(inner),
324 }
325 }
326}
327impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_routing_rule::CreateRoutingRuleError, R>> for Error
328where
329 R: Send + Sync + std::fmt::Debug + 'static,
330{
331 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_routing_rule::CreateRoutingRuleError, R>) -> Self {
332 match err {
333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
336 source: err.into(),
337 }),
338 }
339 }
340}
341impl From<crate::operation::create_routing_rule::CreateRoutingRuleError> for Error {
342 fn from(err: crate::operation::create_routing_rule::CreateRoutingRuleError) -> Self {
343 match err {
344 crate::operation::create_routing_rule::CreateRoutingRuleError::BadRequestException(inner) => Error::BadRequestException(inner),
345 crate::operation::create_routing_rule::CreateRoutingRuleError::ConflictException(inner) => Error::ConflictException(inner),
346 crate::operation::create_routing_rule::CreateRoutingRuleError::NotFoundException(inner) => Error::NotFoundException(inner),
347 crate::operation::create_routing_rule::CreateRoutingRuleError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
348 crate::operation::create_routing_rule::CreateRoutingRuleError::Unhandled(inner) => Error::Unhandled(inner),
349 }
350 }
351}
352impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stage::CreateStageError, R>> for Error
353where
354 R: Send + Sync + std::fmt::Debug + 'static,
355{
356 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stage::CreateStageError, R>) -> Self {
357 match err {
358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
361 source: err.into(),
362 }),
363 }
364 }
365}
366impl From<crate::operation::create_stage::CreateStageError> for Error {
367 fn from(err: crate::operation::create_stage::CreateStageError) -> Self {
368 match err {
369 crate::operation::create_stage::CreateStageError::BadRequestException(inner) => Error::BadRequestException(inner),
370 crate::operation::create_stage::CreateStageError::ConflictException(inner) => Error::ConflictException(inner),
371 crate::operation::create_stage::CreateStageError::NotFoundException(inner) => Error::NotFoundException(inner),
372 crate::operation::create_stage::CreateStageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
373 crate::operation::create_stage::CreateStageError::Unhandled(inner) => Error::Unhandled(inner),
374 }
375 }
376}
377impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_link::CreateVpcLinkError, R>> for Error
378where
379 R: Send + Sync + std::fmt::Debug + 'static,
380{
381 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_link::CreateVpcLinkError, R>) -> Self {
382 match err {
383 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
384 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
385 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
386 source: err.into(),
387 }),
388 }
389 }
390}
391impl From<crate::operation::create_vpc_link::CreateVpcLinkError> for Error {
392 fn from(err: crate::operation::create_vpc_link::CreateVpcLinkError) -> Self {
393 match err {
394 crate::operation::create_vpc_link::CreateVpcLinkError::BadRequestException(inner) => Error::BadRequestException(inner),
395 crate::operation::create_vpc_link::CreateVpcLinkError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
396 crate::operation::create_vpc_link::CreateVpcLinkError::Unhandled(inner) => Error::Unhandled(inner),
397 }
398 }
399}
400impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError, R>>
401 for Error
402where
403 R: Send + Sync + std::fmt::Debug + 'static,
404{
405 fn from(
406 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError, R>,
407 ) -> Self {
408 match err {
409 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
410 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
411 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
412 source: err.into(),
413 }),
414 }
415 }
416}
417impl From<crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError> for Error {
418 fn from(err: crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError) -> Self {
419 match err {
420 crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError::NotFoundException(inner) => Error::NotFoundException(inner),
421 crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError::TooManyRequestsException(inner) => {
422 Error::TooManyRequestsException(inner)
423 }
424 crate::operation::delete_access_log_settings::DeleteAccessLogSettingsError::Unhandled(inner) => Error::Unhandled(inner),
425 }
426 }
427}
428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api::DeleteApiError, R>> for Error
429where
430 R: Send + Sync + std::fmt::Debug + 'static,
431{
432 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api::DeleteApiError, R>) -> Self {
433 match err {
434 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
435 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
436 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
437 source: err.into(),
438 }),
439 }
440 }
441}
442impl From<crate::operation::delete_api::DeleteApiError> for Error {
443 fn from(err: crate::operation::delete_api::DeleteApiError) -> Self {
444 match err {
445 crate::operation::delete_api::DeleteApiError::NotFoundException(inner) => Error::NotFoundException(inner),
446 crate::operation::delete_api::DeleteApiError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
447 crate::operation::delete_api::DeleteApiError::Unhandled(inner) => Error::Unhandled(inner),
448 }
449 }
450}
451impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api_mapping::DeleteApiMappingError, R>> for Error
452where
453 R: Send + Sync + std::fmt::Debug + 'static,
454{
455 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_api_mapping::DeleteApiMappingError, R>) -> Self {
456 match err {
457 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
458 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
459 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
460 source: err.into(),
461 }),
462 }
463 }
464}
465impl From<crate::operation::delete_api_mapping::DeleteApiMappingError> for Error {
466 fn from(err: crate::operation::delete_api_mapping::DeleteApiMappingError) -> Self {
467 match err {
468 crate::operation::delete_api_mapping::DeleteApiMappingError::BadRequestException(inner) => Error::BadRequestException(inner),
469 crate::operation::delete_api_mapping::DeleteApiMappingError::NotFoundException(inner) => Error::NotFoundException(inner),
470 crate::operation::delete_api_mapping::DeleteApiMappingError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
471 crate::operation::delete_api_mapping::DeleteApiMappingError::Unhandled(inner) => Error::Unhandled(inner),
472 }
473 }
474}
475impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_authorizer::DeleteAuthorizerError, R>> for Error
476where
477 R: Send + Sync + std::fmt::Debug + 'static,
478{
479 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_authorizer::DeleteAuthorizerError, R>) -> Self {
480 match err {
481 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
482 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
483 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
484 source: err.into(),
485 }),
486 }
487 }
488}
489impl From<crate::operation::delete_authorizer::DeleteAuthorizerError> for Error {
490 fn from(err: crate::operation::delete_authorizer::DeleteAuthorizerError) -> Self {
491 match err {
492 crate::operation::delete_authorizer::DeleteAuthorizerError::NotFoundException(inner) => Error::NotFoundException(inner),
493 crate::operation::delete_authorizer::DeleteAuthorizerError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
494 crate::operation::delete_authorizer::DeleteAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
495 }
496 }
497}
498impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cors_configuration::DeleteCorsConfigurationError, R>>
499 for Error
500where
501 R: Send + Sync + std::fmt::Debug + 'static,
502{
503 fn from(
504 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cors_configuration::DeleteCorsConfigurationError, R>,
505 ) -> Self {
506 match err {
507 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
508 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
509 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
510 source: err.into(),
511 }),
512 }
513 }
514}
515impl From<crate::operation::delete_cors_configuration::DeleteCorsConfigurationError> for Error {
516 fn from(err: crate::operation::delete_cors_configuration::DeleteCorsConfigurationError) -> Self {
517 match err {
518 crate::operation::delete_cors_configuration::DeleteCorsConfigurationError::NotFoundException(inner) => Error::NotFoundException(inner),
519 crate::operation::delete_cors_configuration::DeleteCorsConfigurationError::TooManyRequestsException(inner) => {
520 Error::TooManyRequestsException(inner)
521 }
522 crate::operation::delete_cors_configuration::DeleteCorsConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
523 }
524 }
525}
526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_deployment::DeleteDeploymentError, R>> for Error
527where
528 R: Send + Sync + std::fmt::Debug + 'static,
529{
530 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_deployment::DeleteDeploymentError, R>) -> Self {
531 match err {
532 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
533 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
534 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
535 source: err.into(),
536 }),
537 }
538 }
539}
540impl From<crate::operation::delete_deployment::DeleteDeploymentError> for Error {
541 fn from(err: crate::operation::delete_deployment::DeleteDeploymentError) -> Self {
542 match err {
543 crate::operation::delete_deployment::DeleteDeploymentError::NotFoundException(inner) => Error::NotFoundException(inner),
544 crate::operation::delete_deployment::DeleteDeploymentError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
545 crate::operation::delete_deployment::DeleteDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
546 }
547 }
548}
549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain_name::DeleteDomainNameError, R>> for Error
550where
551 R: Send + Sync + std::fmt::Debug + 'static,
552{
553 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain_name::DeleteDomainNameError, R>) -> Self {
554 match err {
555 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
556 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
557 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
558 source: err.into(),
559 }),
560 }
561 }
562}
563impl From<crate::operation::delete_domain_name::DeleteDomainNameError> for Error {
564 fn from(err: crate::operation::delete_domain_name::DeleteDomainNameError) -> Self {
565 match err {
566 crate::operation::delete_domain_name::DeleteDomainNameError::NotFoundException(inner) => Error::NotFoundException(inner),
567 crate::operation::delete_domain_name::DeleteDomainNameError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
568 crate::operation::delete_domain_name::DeleteDomainNameError::Unhandled(inner) => Error::Unhandled(inner),
569 }
570 }
571}
572impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>> for Error
573where
574 R: Send + Sync + std::fmt::Debug + 'static,
575{
576 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>) -> Self {
577 match err {
578 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
579 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
580 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
581 source: err.into(),
582 }),
583 }
584 }
585}
586impl From<crate::operation::delete_integration::DeleteIntegrationError> for Error {
587 fn from(err: crate::operation::delete_integration::DeleteIntegrationError) -> Self {
588 match err {
589 crate::operation::delete_integration::DeleteIntegrationError::NotFoundException(inner) => Error::NotFoundException(inner),
590 crate::operation::delete_integration::DeleteIntegrationError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
591 crate::operation::delete_integration::DeleteIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
592 }
593 }
594}
595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration_response::DeleteIntegrationResponseError, R>>
596 for Error
597where
598 R: Send + Sync + std::fmt::Debug + 'static,
599{
600 fn from(
601 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration_response::DeleteIntegrationResponseError, R>,
602 ) -> Self {
603 match err {
604 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
605 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
606 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
607 source: err.into(),
608 }),
609 }
610 }
611}
612impl From<crate::operation::delete_integration_response::DeleteIntegrationResponseError> for Error {
613 fn from(err: crate::operation::delete_integration_response::DeleteIntegrationResponseError) -> Self {
614 match err {
615 crate::operation::delete_integration_response::DeleteIntegrationResponseError::NotFoundException(inner) => {
616 Error::NotFoundException(inner)
617 }
618 crate::operation::delete_integration_response::DeleteIntegrationResponseError::TooManyRequestsException(inner) => {
619 Error::TooManyRequestsException(inner)
620 }
621 crate::operation::delete_integration_response::DeleteIntegrationResponseError::Unhandled(inner) => Error::Unhandled(inner),
622 }
623 }
624}
625impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>> for Error
626where
627 R: Send + Sync + std::fmt::Debug + 'static,
628{
629 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_model::DeleteModelError, R>) -> Self {
630 match err {
631 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
632 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
633 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
634 source: err.into(),
635 }),
636 }
637 }
638}
639impl From<crate::operation::delete_model::DeleteModelError> for Error {
640 fn from(err: crate::operation::delete_model::DeleteModelError) -> Self {
641 match err {
642 crate::operation::delete_model::DeleteModelError::NotFoundException(inner) => Error::NotFoundException(inner),
643 crate::operation::delete_model::DeleteModelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
644 crate::operation::delete_model::DeleteModelError::Unhandled(inner) => Error::Unhandled(inner),
645 }
646 }
647}
648impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>> for Error
649where
650 R: Send + Sync + std::fmt::Debug + 'static,
651{
652 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route::DeleteRouteError, R>) -> Self {
653 match err {
654 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
655 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
656 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
657 source: err.into(),
658 }),
659 }
660 }
661}
662impl From<crate::operation::delete_route::DeleteRouteError> for Error {
663 fn from(err: crate::operation::delete_route::DeleteRouteError) -> Self {
664 match err {
665 crate::operation::delete_route::DeleteRouteError::NotFoundException(inner) => Error::NotFoundException(inner),
666 crate::operation::delete_route::DeleteRouteError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
667 crate::operation::delete_route::DeleteRouteError::Unhandled(inner) => Error::Unhandled(inner),
668 }
669 }
670}
671impl<R>
672 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError, R>>
673 for Error
674where
675 R: Send + Sync + std::fmt::Debug + 'static,
676{
677 fn from(
678 err: ::aws_smithy_runtime_api::client::result::SdkError<
679 crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError,
680 R,
681 >,
682 ) -> Self {
683 match err {
684 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
685 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
686 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
687 source: err.into(),
688 }),
689 }
690 }
691}
692impl From<crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError> for Error {
693 fn from(err: crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError) -> Self {
694 match err {
695 crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError::NotFoundException(inner) => {
696 Error::NotFoundException(inner)
697 }
698 crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError::TooManyRequestsException(inner) => {
699 Error::TooManyRequestsException(inner)
700 }
701 crate::operation::delete_route_request_parameter::DeleteRouteRequestParameterError::Unhandled(inner) => Error::Unhandled(inner),
702 }
703 }
704}
705impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_response::DeleteRouteResponseError, R>> for Error
706where
707 R: Send + Sync + std::fmt::Debug + 'static,
708{
709 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_response::DeleteRouteResponseError, R>) -> Self {
710 match err {
711 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
712 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
713 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
714 source: err.into(),
715 }),
716 }
717 }
718}
719impl From<crate::operation::delete_route_response::DeleteRouteResponseError> for Error {
720 fn from(err: crate::operation::delete_route_response::DeleteRouteResponseError) -> Self {
721 match err {
722 crate::operation::delete_route_response::DeleteRouteResponseError::NotFoundException(inner) => Error::NotFoundException(inner),
723 crate::operation::delete_route_response::DeleteRouteResponseError::TooManyRequestsException(inner) => {
724 Error::TooManyRequestsException(inner)
725 }
726 crate::operation::delete_route_response::DeleteRouteResponseError::Unhandled(inner) => Error::Unhandled(inner),
727 }
728 }
729}
730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_settings::DeleteRouteSettingsError, R>> for Error
731where
732 R: Send + Sync + std::fmt::Debug + 'static,
733{
734 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_route_settings::DeleteRouteSettingsError, R>) -> Self {
735 match err {
736 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
737 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
738 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
739 source: err.into(),
740 }),
741 }
742 }
743}
744impl From<crate::operation::delete_route_settings::DeleteRouteSettingsError> for Error {
745 fn from(err: crate::operation::delete_route_settings::DeleteRouteSettingsError) -> Self {
746 match err {
747 crate::operation::delete_route_settings::DeleteRouteSettingsError::NotFoundException(inner) => Error::NotFoundException(inner),
748 crate::operation::delete_route_settings::DeleteRouteSettingsError::TooManyRequestsException(inner) => {
749 Error::TooManyRequestsException(inner)
750 }
751 crate::operation::delete_route_settings::DeleteRouteSettingsError::Unhandled(inner) => Error::Unhandled(inner),
752 }
753 }
754}
755impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_routing_rule::DeleteRoutingRuleError, R>> for Error
756where
757 R: Send + Sync + std::fmt::Debug + 'static,
758{
759 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_routing_rule::DeleteRoutingRuleError, R>) -> Self {
760 match err {
761 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
762 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
763 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
764 source: err.into(),
765 }),
766 }
767 }
768}
769impl From<crate::operation::delete_routing_rule::DeleteRoutingRuleError> for Error {
770 fn from(err: crate::operation::delete_routing_rule::DeleteRoutingRuleError) -> Self {
771 match err {
772 crate::operation::delete_routing_rule::DeleteRoutingRuleError::BadRequestException(inner) => Error::BadRequestException(inner),
773 crate::operation::delete_routing_rule::DeleteRoutingRuleError::NotFoundException(inner) => Error::NotFoundException(inner),
774 crate::operation::delete_routing_rule::DeleteRoutingRuleError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
775 crate::operation::delete_routing_rule::DeleteRoutingRuleError::Unhandled(inner) => Error::Unhandled(inner),
776 }
777 }
778}
779impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stage::DeleteStageError, R>> for Error
780where
781 R: Send + Sync + std::fmt::Debug + 'static,
782{
783 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stage::DeleteStageError, R>) -> Self {
784 match err {
785 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
786 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
787 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
788 source: err.into(),
789 }),
790 }
791 }
792}
793impl From<crate::operation::delete_stage::DeleteStageError> for Error {
794 fn from(err: crate::operation::delete_stage::DeleteStageError) -> Self {
795 match err {
796 crate::operation::delete_stage::DeleteStageError::NotFoundException(inner) => Error::NotFoundException(inner),
797 crate::operation::delete_stage::DeleteStageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
798 crate::operation::delete_stage::DeleteStageError::Unhandled(inner) => Error::Unhandled(inner),
799 }
800 }
801}
802impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_link::DeleteVpcLinkError, R>> for Error
803where
804 R: Send + Sync + std::fmt::Debug + 'static,
805{
806 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_link::DeleteVpcLinkError, R>) -> Self {
807 match err {
808 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
809 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
810 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
811 source: err.into(),
812 }),
813 }
814 }
815}
816impl From<crate::operation::delete_vpc_link::DeleteVpcLinkError> for Error {
817 fn from(err: crate::operation::delete_vpc_link::DeleteVpcLinkError) -> Self {
818 match err {
819 crate::operation::delete_vpc_link::DeleteVpcLinkError::NotFoundException(inner) => Error::NotFoundException(inner),
820 crate::operation::delete_vpc_link::DeleteVpcLinkError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
821 crate::operation::delete_vpc_link::DeleteVpcLinkError::Unhandled(inner) => Error::Unhandled(inner),
822 }
823 }
824}
825impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_api::ExportApiError, R>> for Error
826where
827 R: Send + Sync + std::fmt::Debug + 'static,
828{
829 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_api::ExportApiError, R>) -> Self {
830 match err {
831 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
832 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
833 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
834 source: err.into(),
835 }),
836 }
837 }
838}
839impl From<crate::operation::export_api::ExportApiError> for Error {
840 fn from(err: crate::operation::export_api::ExportApiError) -> Self {
841 match err {
842 crate::operation::export_api::ExportApiError::BadRequestException(inner) => Error::BadRequestException(inner),
843 crate::operation::export_api::ExportApiError::NotFoundException(inner) => Error::NotFoundException(inner),
844 crate::operation::export_api::ExportApiError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
845 crate::operation::export_api::ExportApiError::Unhandled(inner) => Error::Unhandled(inner),
846 }
847 }
848}
849impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api::GetApiError, R>> for Error
850where
851 R: Send + Sync + std::fmt::Debug + 'static,
852{
853 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api::GetApiError, R>) -> Self {
854 match err {
855 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
856 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
857 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
858 source: err.into(),
859 }),
860 }
861 }
862}
863impl From<crate::operation::get_api::GetApiError> for Error {
864 fn from(err: crate::operation::get_api::GetApiError) -> Self {
865 match err {
866 crate::operation::get_api::GetApiError::NotFoundException(inner) => Error::NotFoundException(inner),
867 crate::operation::get_api::GetApiError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
868 crate::operation::get_api::GetApiError::Unhandled(inner) => Error::Unhandled(inner),
869 }
870 }
871}
872impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api_mapping::GetApiMappingError, R>> for Error
873where
874 R: Send + Sync + std::fmt::Debug + 'static,
875{
876 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api_mapping::GetApiMappingError, R>) -> Self {
877 match err {
878 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
879 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
880 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
881 source: err.into(),
882 }),
883 }
884 }
885}
886impl From<crate::operation::get_api_mapping::GetApiMappingError> for Error {
887 fn from(err: crate::operation::get_api_mapping::GetApiMappingError) -> Self {
888 match err {
889 crate::operation::get_api_mapping::GetApiMappingError::BadRequestException(inner) => Error::BadRequestException(inner),
890 crate::operation::get_api_mapping::GetApiMappingError::NotFoundException(inner) => Error::NotFoundException(inner),
891 crate::operation::get_api_mapping::GetApiMappingError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
892 crate::operation::get_api_mapping::GetApiMappingError::Unhandled(inner) => Error::Unhandled(inner),
893 }
894 }
895}
896impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api_mappings::GetApiMappingsError, R>> for Error
897where
898 R: Send + Sync + std::fmt::Debug + 'static,
899{
900 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_api_mappings::GetApiMappingsError, R>) -> Self {
901 match err {
902 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
903 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
904 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
905 source: err.into(),
906 }),
907 }
908 }
909}
910impl From<crate::operation::get_api_mappings::GetApiMappingsError> for Error {
911 fn from(err: crate::operation::get_api_mappings::GetApiMappingsError) -> Self {
912 match err {
913 crate::operation::get_api_mappings::GetApiMappingsError::BadRequestException(inner) => Error::BadRequestException(inner),
914 crate::operation::get_api_mappings::GetApiMappingsError::NotFoundException(inner) => Error::NotFoundException(inner),
915 crate::operation::get_api_mappings::GetApiMappingsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
916 crate::operation::get_api_mappings::GetApiMappingsError::Unhandled(inner) => Error::Unhandled(inner),
917 }
918 }
919}
920impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apis::GetApisError, R>> for Error
921where
922 R: Send + Sync + std::fmt::Debug + 'static,
923{
924 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_apis::GetApisError, R>) -> Self {
925 match err {
926 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
927 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
928 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
929 source: err.into(),
930 }),
931 }
932 }
933}
934impl From<crate::operation::get_apis::GetApisError> for Error {
935 fn from(err: crate::operation::get_apis::GetApisError) -> Self {
936 match err {
937 crate::operation::get_apis::GetApisError::BadRequestException(inner) => Error::BadRequestException(inner),
938 crate::operation::get_apis::GetApisError::NotFoundException(inner) => Error::NotFoundException(inner),
939 crate::operation::get_apis::GetApisError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
940 crate::operation::get_apis::GetApisError::Unhandled(inner) => Error::Unhandled(inner),
941 }
942 }
943}
944impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_authorizer::GetAuthorizerError, R>> for Error
945where
946 R: Send + Sync + std::fmt::Debug + 'static,
947{
948 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_authorizer::GetAuthorizerError, R>) -> Self {
949 match err {
950 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
951 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
952 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
953 source: err.into(),
954 }),
955 }
956 }
957}
958impl From<crate::operation::get_authorizer::GetAuthorizerError> for Error {
959 fn from(err: crate::operation::get_authorizer::GetAuthorizerError) -> Self {
960 match err {
961 crate::operation::get_authorizer::GetAuthorizerError::NotFoundException(inner) => Error::NotFoundException(inner),
962 crate::operation::get_authorizer::GetAuthorizerError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
963 crate::operation::get_authorizer::GetAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
964 }
965 }
966}
967impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_authorizers::GetAuthorizersError, R>> for Error
968where
969 R: Send + Sync + std::fmt::Debug + 'static,
970{
971 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_authorizers::GetAuthorizersError, R>) -> Self {
972 match err {
973 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
974 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
975 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
976 source: err.into(),
977 }),
978 }
979 }
980}
981impl From<crate::operation::get_authorizers::GetAuthorizersError> for Error {
982 fn from(err: crate::operation::get_authorizers::GetAuthorizersError) -> Self {
983 match err {
984 crate::operation::get_authorizers::GetAuthorizersError::BadRequestException(inner) => Error::BadRequestException(inner),
985 crate::operation::get_authorizers::GetAuthorizersError::NotFoundException(inner) => Error::NotFoundException(inner),
986 crate::operation::get_authorizers::GetAuthorizersError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
987 crate::operation::get_authorizers::GetAuthorizersError::Unhandled(inner) => Error::Unhandled(inner),
988 }
989 }
990}
991impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deployment::GetDeploymentError, R>> for Error
992where
993 R: Send + Sync + std::fmt::Debug + 'static,
994{
995 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deployment::GetDeploymentError, R>) -> Self {
996 match err {
997 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
998 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
999 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1000 source: err.into(),
1001 }),
1002 }
1003 }
1004}
1005impl From<crate::operation::get_deployment::GetDeploymentError> for Error {
1006 fn from(err: crate::operation::get_deployment::GetDeploymentError) -> Self {
1007 match err {
1008 crate::operation::get_deployment::GetDeploymentError::NotFoundException(inner) => Error::NotFoundException(inner),
1009 crate::operation::get_deployment::GetDeploymentError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1010 crate::operation::get_deployment::GetDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
1011 }
1012 }
1013}
1014impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deployments::GetDeploymentsError, R>> for Error
1015where
1016 R: Send + Sync + std::fmt::Debug + 'static,
1017{
1018 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_deployments::GetDeploymentsError, R>) -> Self {
1019 match err {
1020 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1021 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1022 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1023 source: err.into(),
1024 }),
1025 }
1026 }
1027}
1028impl From<crate::operation::get_deployments::GetDeploymentsError> for Error {
1029 fn from(err: crate::operation::get_deployments::GetDeploymentsError) -> Self {
1030 match err {
1031 crate::operation::get_deployments::GetDeploymentsError::BadRequestException(inner) => Error::BadRequestException(inner),
1032 crate::operation::get_deployments::GetDeploymentsError::NotFoundException(inner) => Error::NotFoundException(inner),
1033 crate::operation::get_deployments::GetDeploymentsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1034 crate::operation::get_deployments::GetDeploymentsError::Unhandled(inner) => Error::Unhandled(inner),
1035 }
1036 }
1037}
1038impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_name::GetDomainNameError, R>> for Error
1039where
1040 R: Send + Sync + std::fmt::Debug + 'static,
1041{
1042 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_name::GetDomainNameError, R>) -> Self {
1043 match err {
1044 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1045 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1046 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1047 source: err.into(),
1048 }),
1049 }
1050 }
1051}
1052impl From<crate::operation::get_domain_name::GetDomainNameError> for Error {
1053 fn from(err: crate::operation::get_domain_name::GetDomainNameError) -> Self {
1054 match err {
1055 crate::operation::get_domain_name::GetDomainNameError::NotFoundException(inner) => Error::NotFoundException(inner),
1056 crate::operation::get_domain_name::GetDomainNameError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1057 crate::operation::get_domain_name::GetDomainNameError::Unhandled(inner) => Error::Unhandled(inner),
1058 }
1059 }
1060}
1061impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_names::GetDomainNamesError, R>> for Error
1062where
1063 R: Send + Sync + std::fmt::Debug + 'static,
1064{
1065 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_names::GetDomainNamesError, R>) -> Self {
1066 match err {
1067 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1068 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1069 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1070 source: err.into(),
1071 }),
1072 }
1073 }
1074}
1075impl From<crate::operation::get_domain_names::GetDomainNamesError> for Error {
1076 fn from(err: crate::operation::get_domain_names::GetDomainNamesError) -> Self {
1077 match err {
1078 crate::operation::get_domain_names::GetDomainNamesError::BadRequestException(inner) => Error::BadRequestException(inner),
1079 crate::operation::get_domain_names::GetDomainNamesError::NotFoundException(inner) => Error::NotFoundException(inner),
1080 crate::operation::get_domain_names::GetDomainNamesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1081 crate::operation::get_domain_names::GetDomainNamesError::Unhandled(inner) => Error::Unhandled(inner),
1082 }
1083 }
1084}
1085impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>> for Error
1086where
1087 R: Send + Sync + std::fmt::Debug + 'static,
1088{
1089 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>) -> Self {
1090 match err {
1091 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1092 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1093 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1094 source: err.into(),
1095 }),
1096 }
1097 }
1098}
1099impl From<crate::operation::get_integration::GetIntegrationError> for Error {
1100 fn from(err: crate::operation::get_integration::GetIntegrationError) -> Self {
1101 match err {
1102 crate::operation::get_integration::GetIntegrationError::NotFoundException(inner) => Error::NotFoundException(inner),
1103 crate::operation::get_integration::GetIntegrationError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1104 crate::operation::get_integration::GetIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1105 }
1106 }
1107}
1108impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration_response::GetIntegrationResponseError, R>> for Error
1109where
1110 R: Send + Sync + std::fmt::Debug + 'static,
1111{
1112 fn from(
1113 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration_response::GetIntegrationResponseError, R>,
1114 ) -> 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::get_integration_response::GetIntegrationResponseError> for Error {
1125 fn from(err: crate::operation::get_integration_response::GetIntegrationResponseError) -> Self {
1126 match err {
1127 crate::operation::get_integration_response::GetIntegrationResponseError::NotFoundException(inner) => Error::NotFoundException(inner),
1128 crate::operation::get_integration_response::GetIntegrationResponseError::TooManyRequestsException(inner) => {
1129 Error::TooManyRequestsException(inner)
1130 }
1131 crate::operation::get_integration_response::GetIntegrationResponseError::Unhandled(inner) => Error::Unhandled(inner),
1132 }
1133 }
1134}
1135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration_responses::GetIntegrationResponsesError, R>>
1136 for Error
1137where
1138 R: Send + Sync + std::fmt::Debug + 'static,
1139{
1140 fn from(
1141 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration_responses::GetIntegrationResponsesError, R>,
1142 ) -> Self {
1143 match err {
1144 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1145 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1146 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1147 source: err.into(),
1148 }),
1149 }
1150 }
1151}
1152impl From<crate::operation::get_integration_responses::GetIntegrationResponsesError> for Error {
1153 fn from(err: crate::operation::get_integration_responses::GetIntegrationResponsesError) -> Self {
1154 match err {
1155 crate::operation::get_integration_responses::GetIntegrationResponsesError::BadRequestException(inner) => {
1156 Error::BadRequestException(inner)
1157 }
1158 crate::operation::get_integration_responses::GetIntegrationResponsesError::NotFoundException(inner) => Error::NotFoundException(inner),
1159 crate::operation::get_integration_responses::GetIntegrationResponsesError::TooManyRequestsException(inner) => {
1160 Error::TooManyRequestsException(inner)
1161 }
1162 crate::operation::get_integration_responses::GetIntegrationResponsesError::Unhandled(inner) => Error::Unhandled(inner),
1163 }
1164 }
1165}
1166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integrations::GetIntegrationsError, R>> for Error
1167where
1168 R: Send + Sync + std::fmt::Debug + 'static,
1169{
1170 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integrations::GetIntegrationsError, R>) -> Self {
1171 match err {
1172 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1173 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1174 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1175 source: err.into(),
1176 }),
1177 }
1178 }
1179}
1180impl From<crate::operation::get_integrations::GetIntegrationsError> for Error {
1181 fn from(err: crate::operation::get_integrations::GetIntegrationsError) -> Self {
1182 match err {
1183 crate::operation::get_integrations::GetIntegrationsError::BadRequestException(inner) => Error::BadRequestException(inner),
1184 crate::operation::get_integrations::GetIntegrationsError::NotFoundException(inner) => Error::NotFoundException(inner),
1185 crate::operation::get_integrations::GetIntegrationsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1186 crate::operation::get_integrations::GetIntegrationsError::Unhandled(inner) => Error::Unhandled(inner),
1187 }
1188 }
1189}
1190impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model::GetModelError, R>> for Error
1191where
1192 R: Send + Sync + std::fmt::Debug + 'static,
1193{
1194 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model::GetModelError, R>) -> Self {
1195 match err {
1196 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1197 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1198 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1199 source: err.into(),
1200 }),
1201 }
1202 }
1203}
1204impl From<crate::operation::get_model::GetModelError> for Error {
1205 fn from(err: crate::operation::get_model::GetModelError) -> Self {
1206 match err {
1207 crate::operation::get_model::GetModelError::NotFoundException(inner) => Error::NotFoundException(inner),
1208 crate::operation::get_model::GetModelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1209 crate::operation::get_model::GetModelError::Unhandled(inner) => Error::Unhandled(inner),
1210 }
1211 }
1212}
1213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_models::GetModelsError, R>> for Error
1214where
1215 R: Send + Sync + std::fmt::Debug + 'static,
1216{
1217 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_models::GetModelsError, R>) -> Self {
1218 match err {
1219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1222 source: err.into(),
1223 }),
1224 }
1225 }
1226}
1227impl From<crate::operation::get_models::GetModelsError> for Error {
1228 fn from(err: crate::operation::get_models::GetModelsError) -> Self {
1229 match err {
1230 crate::operation::get_models::GetModelsError::BadRequestException(inner) => Error::BadRequestException(inner),
1231 crate::operation::get_models::GetModelsError::NotFoundException(inner) => Error::NotFoundException(inner),
1232 crate::operation::get_models::GetModelsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1233 crate::operation::get_models::GetModelsError::Unhandled(inner) => Error::Unhandled(inner),
1234 }
1235 }
1236}
1237impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_template::GetModelTemplateError, R>> for Error
1238where
1239 R: Send + Sync + std::fmt::Debug + 'static,
1240{
1241 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_model_template::GetModelTemplateError, R>) -> Self {
1242 match err {
1243 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1244 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1245 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1246 source: err.into(),
1247 }),
1248 }
1249 }
1250}
1251impl From<crate::operation::get_model_template::GetModelTemplateError> for Error {
1252 fn from(err: crate::operation::get_model_template::GetModelTemplateError) -> Self {
1253 match err {
1254 crate::operation::get_model_template::GetModelTemplateError::NotFoundException(inner) => Error::NotFoundException(inner),
1255 crate::operation::get_model_template::GetModelTemplateError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1256 crate::operation::get_model_template::GetModelTemplateError::Unhandled(inner) => Error::Unhandled(inner),
1257 }
1258 }
1259}
1260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route::GetRouteError, R>> for Error
1261where
1262 R: Send + Sync + std::fmt::Debug + 'static,
1263{
1264 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route::GetRouteError, R>) -> Self {
1265 match err {
1266 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1267 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1268 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1269 source: err.into(),
1270 }),
1271 }
1272 }
1273}
1274impl From<crate::operation::get_route::GetRouteError> for Error {
1275 fn from(err: crate::operation::get_route::GetRouteError) -> Self {
1276 match err {
1277 crate::operation::get_route::GetRouteError::NotFoundException(inner) => Error::NotFoundException(inner),
1278 crate::operation::get_route::GetRouteError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1279 crate::operation::get_route::GetRouteError::Unhandled(inner) => Error::Unhandled(inner),
1280 }
1281 }
1282}
1283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_response::GetRouteResponseError, R>> for Error
1284where
1285 R: Send + Sync + std::fmt::Debug + 'static,
1286{
1287 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_response::GetRouteResponseError, R>) -> Self {
1288 match err {
1289 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1290 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1291 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1292 source: err.into(),
1293 }),
1294 }
1295 }
1296}
1297impl From<crate::operation::get_route_response::GetRouteResponseError> for Error {
1298 fn from(err: crate::operation::get_route_response::GetRouteResponseError) -> Self {
1299 match err {
1300 crate::operation::get_route_response::GetRouteResponseError::NotFoundException(inner) => Error::NotFoundException(inner),
1301 crate::operation::get_route_response::GetRouteResponseError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1302 crate::operation::get_route_response::GetRouteResponseError::Unhandled(inner) => Error::Unhandled(inner),
1303 }
1304 }
1305}
1306impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_responses::GetRouteResponsesError, R>> for Error
1307where
1308 R: Send + Sync + std::fmt::Debug + 'static,
1309{
1310 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_route_responses::GetRouteResponsesError, R>) -> Self {
1311 match err {
1312 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1313 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1314 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1315 source: err.into(),
1316 }),
1317 }
1318 }
1319}
1320impl From<crate::operation::get_route_responses::GetRouteResponsesError> for Error {
1321 fn from(err: crate::operation::get_route_responses::GetRouteResponsesError) -> Self {
1322 match err {
1323 crate::operation::get_route_responses::GetRouteResponsesError::BadRequestException(inner) => Error::BadRequestException(inner),
1324 crate::operation::get_route_responses::GetRouteResponsesError::NotFoundException(inner) => Error::NotFoundException(inner),
1325 crate::operation::get_route_responses::GetRouteResponsesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1326 crate::operation::get_route_responses::GetRouteResponsesError::Unhandled(inner) => Error::Unhandled(inner),
1327 }
1328 }
1329}
1330impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_routes::GetRoutesError, R>> for Error
1331where
1332 R: Send + Sync + std::fmt::Debug + 'static,
1333{
1334 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_routes::GetRoutesError, R>) -> Self {
1335 match err {
1336 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1337 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1338 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1339 source: err.into(),
1340 }),
1341 }
1342 }
1343}
1344impl From<crate::operation::get_routes::GetRoutesError> for Error {
1345 fn from(err: crate::operation::get_routes::GetRoutesError) -> Self {
1346 match err {
1347 crate::operation::get_routes::GetRoutesError::BadRequestException(inner) => Error::BadRequestException(inner),
1348 crate::operation::get_routes::GetRoutesError::NotFoundException(inner) => Error::NotFoundException(inner),
1349 crate::operation::get_routes::GetRoutesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1350 crate::operation::get_routes::GetRoutesError::Unhandled(inner) => Error::Unhandled(inner),
1351 }
1352 }
1353}
1354impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_routing_rule::GetRoutingRuleError, R>> for Error
1355where
1356 R: Send + Sync + std::fmt::Debug + 'static,
1357{
1358 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_routing_rule::GetRoutingRuleError, R>) -> Self {
1359 match err {
1360 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1361 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1362 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1363 source: err.into(),
1364 }),
1365 }
1366 }
1367}
1368impl From<crate::operation::get_routing_rule::GetRoutingRuleError> for Error {
1369 fn from(err: crate::operation::get_routing_rule::GetRoutingRuleError) -> Self {
1370 match err {
1371 crate::operation::get_routing_rule::GetRoutingRuleError::BadRequestException(inner) => Error::BadRequestException(inner),
1372 crate::operation::get_routing_rule::GetRoutingRuleError::NotFoundException(inner) => Error::NotFoundException(inner),
1373 crate::operation::get_routing_rule::GetRoutingRuleError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1374 crate::operation::get_routing_rule::GetRoutingRuleError::Unhandled(inner) => Error::Unhandled(inner),
1375 }
1376 }
1377}
1378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stage::GetStageError, R>> for Error
1379where
1380 R: Send + Sync + std::fmt::Debug + 'static,
1381{
1382 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stage::GetStageError, R>) -> Self {
1383 match err {
1384 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1385 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1386 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1387 source: err.into(),
1388 }),
1389 }
1390 }
1391}
1392impl From<crate::operation::get_stage::GetStageError> for Error {
1393 fn from(err: crate::operation::get_stage::GetStageError) -> Self {
1394 match err {
1395 crate::operation::get_stage::GetStageError::NotFoundException(inner) => Error::NotFoundException(inner),
1396 crate::operation::get_stage::GetStageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1397 crate::operation::get_stage::GetStageError::Unhandled(inner) => Error::Unhandled(inner),
1398 }
1399 }
1400}
1401impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stages::GetStagesError, R>> for Error
1402where
1403 R: Send + Sync + std::fmt::Debug + 'static,
1404{
1405 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_stages::GetStagesError, R>) -> Self {
1406 match err {
1407 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1408 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1409 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1410 source: err.into(),
1411 }),
1412 }
1413 }
1414}
1415impl From<crate::operation::get_stages::GetStagesError> for Error {
1416 fn from(err: crate::operation::get_stages::GetStagesError) -> Self {
1417 match err {
1418 crate::operation::get_stages::GetStagesError::BadRequestException(inner) => Error::BadRequestException(inner),
1419 crate::operation::get_stages::GetStagesError::NotFoundException(inner) => Error::NotFoundException(inner),
1420 crate::operation::get_stages::GetStagesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1421 crate::operation::get_stages::GetStagesError::Unhandled(inner) => Error::Unhandled(inner),
1422 }
1423 }
1424}
1425impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_tags::GetTagsError, R>> for Error
1426where
1427 R: Send + Sync + std::fmt::Debug + 'static,
1428{
1429 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_tags::GetTagsError, R>) -> Self {
1430 match err {
1431 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1432 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1433 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1434 source: err.into(),
1435 }),
1436 }
1437 }
1438}
1439impl From<crate::operation::get_tags::GetTagsError> for Error {
1440 fn from(err: crate::operation::get_tags::GetTagsError) -> Self {
1441 match err {
1442 crate::operation::get_tags::GetTagsError::BadRequestException(inner) => Error::BadRequestException(inner),
1443 crate::operation::get_tags::GetTagsError::ConflictException(inner) => Error::ConflictException(inner),
1444 crate::operation::get_tags::GetTagsError::NotFoundException(inner) => Error::NotFoundException(inner),
1445 crate::operation::get_tags::GetTagsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1446 crate::operation::get_tags::GetTagsError::Unhandled(inner) => Error::Unhandled(inner),
1447 }
1448 }
1449}
1450impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpc_link::GetVpcLinkError, R>> for Error
1451where
1452 R: Send + Sync + std::fmt::Debug + 'static,
1453{
1454 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpc_link::GetVpcLinkError, R>) -> Self {
1455 match err {
1456 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1457 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1458 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1459 source: err.into(),
1460 }),
1461 }
1462 }
1463}
1464impl From<crate::operation::get_vpc_link::GetVpcLinkError> for Error {
1465 fn from(err: crate::operation::get_vpc_link::GetVpcLinkError) -> Self {
1466 match err {
1467 crate::operation::get_vpc_link::GetVpcLinkError::NotFoundException(inner) => Error::NotFoundException(inner),
1468 crate::operation::get_vpc_link::GetVpcLinkError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1469 crate::operation::get_vpc_link::GetVpcLinkError::Unhandled(inner) => Error::Unhandled(inner),
1470 }
1471 }
1472}
1473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpc_links::GetVpcLinksError, R>> for Error
1474where
1475 R: Send + Sync + std::fmt::Debug + 'static,
1476{
1477 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vpc_links::GetVpcLinksError, R>) -> Self {
1478 match err {
1479 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1480 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1481 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1482 source: err.into(),
1483 }),
1484 }
1485 }
1486}
1487impl From<crate::operation::get_vpc_links::GetVpcLinksError> for Error {
1488 fn from(err: crate::operation::get_vpc_links::GetVpcLinksError) -> Self {
1489 match err {
1490 crate::operation::get_vpc_links::GetVpcLinksError::BadRequestException(inner) => Error::BadRequestException(inner),
1491 crate::operation::get_vpc_links::GetVpcLinksError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1492 crate::operation::get_vpc_links::GetVpcLinksError::Unhandled(inner) => Error::Unhandled(inner),
1493 }
1494 }
1495}
1496impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_api::ImportApiError, R>> for Error
1497where
1498 R: Send + Sync + std::fmt::Debug + 'static,
1499{
1500 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_api::ImportApiError, R>) -> Self {
1501 match err {
1502 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1503 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1504 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1505 source: err.into(),
1506 }),
1507 }
1508 }
1509}
1510impl From<crate::operation::import_api::ImportApiError> for Error {
1511 fn from(err: crate::operation::import_api::ImportApiError) -> Self {
1512 match err {
1513 crate::operation::import_api::ImportApiError::BadRequestException(inner) => Error::BadRequestException(inner),
1514 crate::operation::import_api::ImportApiError::ConflictException(inner) => Error::ConflictException(inner),
1515 crate::operation::import_api::ImportApiError::NotFoundException(inner) => Error::NotFoundException(inner),
1516 crate::operation::import_api::ImportApiError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1517 crate::operation::import_api::ImportApiError::Unhandled(inner) => Error::Unhandled(inner),
1518 }
1519 }
1520}
1521impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_routing_rules::ListRoutingRulesError, R>> for Error
1522where
1523 R: Send + Sync + std::fmt::Debug + 'static,
1524{
1525 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_routing_rules::ListRoutingRulesError, R>) -> Self {
1526 match err {
1527 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1528 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1529 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1530 source: err.into(),
1531 }),
1532 }
1533 }
1534}
1535impl From<crate::operation::list_routing_rules::ListRoutingRulesError> for Error {
1536 fn from(err: crate::operation::list_routing_rules::ListRoutingRulesError) -> Self {
1537 match err {
1538 crate::operation::list_routing_rules::ListRoutingRulesError::BadRequestException(inner) => Error::BadRequestException(inner),
1539 crate::operation::list_routing_rules::ListRoutingRulesError::NotFoundException(inner) => Error::NotFoundException(inner),
1540 crate::operation::list_routing_rules::ListRoutingRulesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1541 crate::operation::list_routing_rules::ListRoutingRulesError::Unhandled(inner) => Error::Unhandled(inner),
1542 }
1543 }
1544}
1545impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_routing_rule::PutRoutingRuleError, R>> for Error
1546where
1547 R: Send + Sync + std::fmt::Debug + 'static,
1548{
1549 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_routing_rule::PutRoutingRuleError, R>) -> Self {
1550 match err {
1551 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1552 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1553 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1554 source: err.into(),
1555 }),
1556 }
1557 }
1558}
1559impl From<crate::operation::put_routing_rule::PutRoutingRuleError> for Error {
1560 fn from(err: crate::operation::put_routing_rule::PutRoutingRuleError) -> Self {
1561 match err {
1562 crate::operation::put_routing_rule::PutRoutingRuleError::BadRequestException(inner) => Error::BadRequestException(inner),
1563 crate::operation::put_routing_rule::PutRoutingRuleError::ConflictException(inner) => Error::ConflictException(inner),
1564 crate::operation::put_routing_rule::PutRoutingRuleError::NotFoundException(inner) => Error::NotFoundException(inner),
1565 crate::operation::put_routing_rule::PutRoutingRuleError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1566 crate::operation::put_routing_rule::PutRoutingRuleError::Unhandled(inner) => Error::Unhandled(inner),
1567 }
1568 }
1569}
1570impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reimport_api::ReimportApiError, R>> for Error
1571where
1572 R: Send + Sync + std::fmt::Debug + 'static,
1573{
1574 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reimport_api::ReimportApiError, R>) -> Self {
1575 match err {
1576 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1577 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1578 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1579 source: err.into(),
1580 }),
1581 }
1582 }
1583}
1584impl From<crate::operation::reimport_api::ReimportApiError> for Error {
1585 fn from(err: crate::operation::reimport_api::ReimportApiError) -> Self {
1586 match err {
1587 crate::operation::reimport_api::ReimportApiError::BadRequestException(inner) => Error::BadRequestException(inner),
1588 crate::operation::reimport_api::ReimportApiError::ConflictException(inner) => Error::ConflictException(inner),
1589 crate::operation::reimport_api::ReimportApiError::NotFoundException(inner) => Error::NotFoundException(inner),
1590 crate::operation::reimport_api::ReimportApiError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1591 crate::operation::reimport_api::ReimportApiError::Unhandled(inner) => Error::Unhandled(inner),
1592 }
1593 }
1594}
1595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError, R>> for Error
1596where
1597 R: Send + Sync + std::fmt::Debug + 'static,
1598{
1599 fn from(
1600 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError, R>,
1601 ) -> Self {
1602 match err {
1603 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1604 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1605 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1606 source: err.into(),
1607 }),
1608 }
1609 }
1610}
1611impl From<crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError> for Error {
1612 fn from(err: crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError) -> Self {
1613 match err {
1614 crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError::NotFoundException(inner) => Error::NotFoundException(inner),
1615 crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError::TooManyRequestsException(inner) => {
1616 Error::TooManyRequestsException(inner)
1617 }
1618 crate::operation::reset_authorizers_cache::ResetAuthorizersCacheError::Unhandled(inner) => Error::Unhandled(inner),
1619 }
1620 }
1621}
1622impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1623where
1624 R: Send + Sync + std::fmt::Debug + 'static,
1625{
1626 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1627 match err {
1628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1631 source: err.into(),
1632 }),
1633 }
1634 }
1635}
1636impl From<crate::operation::tag_resource::TagResourceError> for Error {
1637 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1638 match err {
1639 crate::operation::tag_resource::TagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1640 crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1641 crate::operation::tag_resource::TagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1642 crate::operation::tag_resource::TagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1643 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1644 }
1645 }
1646}
1647impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1648where
1649 R: Send + Sync + std::fmt::Debug + 'static,
1650{
1651 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1652 match err {
1653 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1654 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1655 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1656 source: err.into(),
1657 }),
1658 }
1659 }
1660}
1661impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1662 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1663 match err {
1664 crate::operation::untag_resource::UntagResourceError::BadRequestException(inner) => Error::BadRequestException(inner),
1665 crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1666 crate::operation::untag_resource::UntagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
1667 crate::operation::untag_resource::UntagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1668 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1669 }
1670 }
1671}
1672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api::UpdateApiError, R>> for Error
1673where
1674 R: Send + Sync + std::fmt::Debug + 'static,
1675{
1676 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api::UpdateApiError, R>) -> Self {
1677 match err {
1678 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1679 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1680 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1681 source: err.into(),
1682 }),
1683 }
1684 }
1685}
1686impl From<crate::operation::update_api::UpdateApiError> for Error {
1687 fn from(err: crate::operation::update_api::UpdateApiError) -> Self {
1688 match err {
1689 crate::operation::update_api::UpdateApiError::BadRequestException(inner) => Error::BadRequestException(inner),
1690 crate::operation::update_api::UpdateApiError::ConflictException(inner) => Error::ConflictException(inner),
1691 crate::operation::update_api::UpdateApiError::NotFoundException(inner) => Error::NotFoundException(inner),
1692 crate::operation::update_api::UpdateApiError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1693 crate::operation::update_api::UpdateApiError::Unhandled(inner) => Error::Unhandled(inner),
1694 }
1695 }
1696}
1697impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api_mapping::UpdateApiMappingError, R>> for Error
1698where
1699 R: Send + Sync + std::fmt::Debug + 'static,
1700{
1701 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_api_mapping::UpdateApiMappingError, R>) -> Self {
1702 match err {
1703 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1704 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1705 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1706 source: err.into(),
1707 }),
1708 }
1709 }
1710}
1711impl From<crate::operation::update_api_mapping::UpdateApiMappingError> for Error {
1712 fn from(err: crate::operation::update_api_mapping::UpdateApiMappingError) -> Self {
1713 match err {
1714 crate::operation::update_api_mapping::UpdateApiMappingError::BadRequestException(inner) => Error::BadRequestException(inner),
1715 crate::operation::update_api_mapping::UpdateApiMappingError::ConflictException(inner) => Error::ConflictException(inner),
1716 crate::operation::update_api_mapping::UpdateApiMappingError::NotFoundException(inner) => Error::NotFoundException(inner),
1717 crate::operation::update_api_mapping::UpdateApiMappingError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1718 crate::operation::update_api_mapping::UpdateApiMappingError::Unhandled(inner) => Error::Unhandled(inner),
1719 }
1720 }
1721}
1722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_authorizer::UpdateAuthorizerError, R>> for Error
1723where
1724 R: Send + Sync + std::fmt::Debug + 'static,
1725{
1726 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_authorizer::UpdateAuthorizerError, R>) -> Self {
1727 match err {
1728 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1729 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1730 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1731 source: err.into(),
1732 }),
1733 }
1734 }
1735}
1736impl From<crate::operation::update_authorizer::UpdateAuthorizerError> for Error {
1737 fn from(err: crate::operation::update_authorizer::UpdateAuthorizerError) -> Self {
1738 match err {
1739 crate::operation::update_authorizer::UpdateAuthorizerError::BadRequestException(inner) => Error::BadRequestException(inner),
1740 crate::operation::update_authorizer::UpdateAuthorizerError::ConflictException(inner) => Error::ConflictException(inner),
1741 crate::operation::update_authorizer::UpdateAuthorizerError::NotFoundException(inner) => Error::NotFoundException(inner),
1742 crate::operation::update_authorizer::UpdateAuthorizerError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1743 crate::operation::update_authorizer::UpdateAuthorizerError::Unhandled(inner) => Error::Unhandled(inner),
1744 }
1745 }
1746}
1747impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_deployment::UpdateDeploymentError, R>> for Error
1748where
1749 R: Send + Sync + std::fmt::Debug + 'static,
1750{
1751 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_deployment::UpdateDeploymentError, R>) -> Self {
1752 match err {
1753 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1754 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1755 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1756 source: err.into(),
1757 }),
1758 }
1759 }
1760}
1761impl From<crate::operation::update_deployment::UpdateDeploymentError> for Error {
1762 fn from(err: crate::operation::update_deployment::UpdateDeploymentError) -> Self {
1763 match err {
1764 crate::operation::update_deployment::UpdateDeploymentError::BadRequestException(inner) => Error::BadRequestException(inner),
1765 crate::operation::update_deployment::UpdateDeploymentError::ConflictException(inner) => Error::ConflictException(inner),
1766 crate::operation::update_deployment::UpdateDeploymentError::NotFoundException(inner) => Error::NotFoundException(inner),
1767 crate::operation::update_deployment::UpdateDeploymentError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1768 crate::operation::update_deployment::UpdateDeploymentError::Unhandled(inner) => Error::Unhandled(inner),
1769 }
1770 }
1771}
1772impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_name::UpdateDomainNameError, 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::update_domain_name::UpdateDomainNameError, 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::update_domain_name::UpdateDomainNameError> for Error {
1787 fn from(err: crate::operation::update_domain_name::UpdateDomainNameError) -> Self {
1788 match err {
1789 crate::operation::update_domain_name::UpdateDomainNameError::BadRequestException(inner) => Error::BadRequestException(inner),
1790 crate::operation::update_domain_name::UpdateDomainNameError::ConflictException(inner) => Error::ConflictException(inner),
1791 crate::operation::update_domain_name::UpdateDomainNameError::NotFoundException(inner) => Error::NotFoundException(inner),
1792 crate::operation::update_domain_name::UpdateDomainNameError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1793 crate::operation::update_domain_name::UpdateDomainNameError::Unhandled(inner) => Error::Unhandled(inner),
1794 }
1795 }
1796}
1797impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integration::UpdateIntegrationError, R>> for Error
1798where
1799 R: Send + Sync + std::fmt::Debug + 'static,
1800{
1801 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integration::UpdateIntegrationError, R>) -> Self {
1802 match err {
1803 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1804 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1805 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1806 source: err.into(),
1807 }),
1808 }
1809 }
1810}
1811impl From<crate::operation::update_integration::UpdateIntegrationError> for Error {
1812 fn from(err: crate::operation::update_integration::UpdateIntegrationError) -> Self {
1813 match err {
1814 crate::operation::update_integration::UpdateIntegrationError::BadRequestException(inner) => Error::BadRequestException(inner),
1815 crate::operation::update_integration::UpdateIntegrationError::ConflictException(inner) => Error::ConflictException(inner),
1816 crate::operation::update_integration::UpdateIntegrationError::NotFoundException(inner) => Error::NotFoundException(inner),
1817 crate::operation::update_integration::UpdateIntegrationError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1818 crate::operation::update_integration::UpdateIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1819 }
1820 }
1821}
1822impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integration_response::UpdateIntegrationResponseError, R>>
1823 for Error
1824where
1825 R: Send + Sync + std::fmt::Debug + 'static,
1826{
1827 fn from(
1828 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_integration_response::UpdateIntegrationResponseError, R>,
1829 ) -> Self {
1830 match err {
1831 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1832 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1833 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1834 source: err.into(),
1835 }),
1836 }
1837 }
1838}
1839impl From<crate::operation::update_integration_response::UpdateIntegrationResponseError> for Error {
1840 fn from(err: crate::operation::update_integration_response::UpdateIntegrationResponseError) -> Self {
1841 match err {
1842 crate::operation::update_integration_response::UpdateIntegrationResponseError::BadRequestException(inner) => {
1843 Error::BadRequestException(inner)
1844 }
1845 crate::operation::update_integration_response::UpdateIntegrationResponseError::ConflictException(inner) => {
1846 Error::ConflictException(inner)
1847 }
1848 crate::operation::update_integration_response::UpdateIntegrationResponseError::NotFoundException(inner) => {
1849 Error::NotFoundException(inner)
1850 }
1851 crate::operation::update_integration_response::UpdateIntegrationResponseError::TooManyRequestsException(inner) => {
1852 Error::TooManyRequestsException(inner)
1853 }
1854 crate::operation::update_integration_response::UpdateIntegrationResponseError::Unhandled(inner) => Error::Unhandled(inner),
1855 }
1856 }
1857}
1858impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model::UpdateModelError, R>> for Error
1859where
1860 R: Send + Sync + std::fmt::Debug + 'static,
1861{
1862 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_model::UpdateModelError, R>) -> Self {
1863 match err {
1864 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1865 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1866 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1867 source: err.into(),
1868 }),
1869 }
1870 }
1871}
1872impl From<crate::operation::update_model::UpdateModelError> for Error {
1873 fn from(err: crate::operation::update_model::UpdateModelError) -> Self {
1874 match err {
1875 crate::operation::update_model::UpdateModelError::BadRequestException(inner) => Error::BadRequestException(inner),
1876 crate::operation::update_model::UpdateModelError::ConflictException(inner) => Error::ConflictException(inner),
1877 crate::operation::update_model::UpdateModelError::NotFoundException(inner) => Error::NotFoundException(inner),
1878 crate::operation::update_model::UpdateModelError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1879 crate::operation::update_model::UpdateModelError::Unhandled(inner) => Error::Unhandled(inner),
1880 }
1881 }
1882}
1883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_route::UpdateRouteError, R>> for Error
1884where
1885 R: Send + Sync + std::fmt::Debug + 'static,
1886{
1887 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_route::UpdateRouteError, R>) -> Self {
1888 match err {
1889 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1890 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1891 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1892 source: err.into(),
1893 }),
1894 }
1895 }
1896}
1897impl From<crate::operation::update_route::UpdateRouteError> for Error {
1898 fn from(err: crate::operation::update_route::UpdateRouteError) -> Self {
1899 match err {
1900 crate::operation::update_route::UpdateRouteError::BadRequestException(inner) => Error::BadRequestException(inner),
1901 crate::operation::update_route::UpdateRouteError::ConflictException(inner) => Error::ConflictException(inner),
1902 crate::operation::update_route::UpdateRouteError::NotFoundException(inner) => Error::NotFoundException(inner),
1903 crate::operation::update_route::UpdateRouteError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1904 crate::operation::update_route::UpdateRouteError::Unhandled(inner) => Error::Unhandled(inner),
1905 }
1906 }
1907}
1908impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_route_response::UpdateRouteResponseError, R>> for Error
1909where
1910 R: Send + Sync + std::fmt::Debug + 'static,
1911{
1912 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_route_response::UpdateRouteResponseError, R>) -> Self {
1913 match err {
1914 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1915 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1916 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1917 source: err.into(),
1918 }),
1919 }
1920 }
1921}
1922impl From<crate::operation::update_route_response::UpdateRouteResponseError> for Error {
1923 fn from(err: crate::operation::update_route_response::UpdateRouteResponseError) -> Self {
1924 match err {
1925 crate::operation::update_route_response::UpdateRouteResponseError::BadRequestException(inner) => Error::BadRequestException(inner),
1926 crate::operation::update_route_response::UpdateRouteResponseError::ConflictException(inner) => Error::ConflictException(inner),
1927 crate::operation::update_route_response::UpdateRouteResponseError::NotFoundException(inner) => Error::NotFoundException(inner),
1928 crate::operation::update_route_response::UpdateRouteResponseError::TooManyRequestsException(inner) => {
1929 Error::TooManyRequestsException(inner)
1930 }
1931 crate::operation::update_route_response::UpdateRouteResponseError::Unhandled(inner) => Error::Unhandled(inner),
1932 }
1933 }
1934}
1935impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stage::UpdateStageError, R>> for Error
1936where
1937 R: Send + Sync + std::fmt::Debug + 'static,
1938{
1939 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stage::UpdateStageError, R>) -> Self {
1940 match err {
1941 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1942 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1943 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1944 source: err.into(),
1945 }),
1946 }
1947 }
1948}
1949impl From<crate::operation::update_stage::UpdateStageError> for Error {
1950 fn from(err: crate::operation::update_stage::UpdateStageError) -> Self {
1951 match err {
1952 crate::operation::update_stage::UpdateStageError::BadRequestException(inner) => Error::BadRequestException(inner),
1953 crate::operation::update_stage::UpdateStageError::ConflictException(inner) => Error::ConflictException(inner),
1954 crate::operation::update_stage::UpdateStageError::NotFoundException(inner) => Error::NotFoundException(inner),
1955 crate::operation::update_stage::UpdateStageError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1956 crate::operation::update_stage::UpdateStageError::Unhandled(inner) => Error::Unhandled(inner),
1957 }
1958 }
1959}
1960impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpc_link::UpdateVpcLinkError, R>> for Error
1961where
1962 R: Send + Sync + std::fmt::Debug + 'static,
1963{
1964 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpc_link::UpdateVpcLinkError, R>) -> Self {
1965 match err {
1966 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1967 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1968 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1969 source: err.into(),
1970 }),
1971 }
1972 }
1973}
1974impl From<crate::operation::update_vpc_link::UpdateVpcLinkError> for Error {
1975 fn from(err: crate::operation::update_vpc_link::UpdateVpcLinkError) -> Self {
1976 match err {
1977 crate::operation::update_vpc_link::UpdateVpcLinkError::BadRequestException(inner) => Error::BadRequestException(inner),
1978 crate::operation::update_vpc_link::UpdateVpcLinkError::NotFoundException(inner) => Error::NotFoundException(inner),
1979 crate::operation::update_vpc_link::UpdateVpcLinkError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
1980 crate::operation::update_vpc_link::UpdateVpcLinkError::Unhandled(inner) => Error::Unhandled(inner),
1981 }
1982 }
1983}
1984impl ::std::error::Error for Error {
1985 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1986 match self {
1987 Error::AccessDeniedException(inner) => inner.source(),
1988 Error::BadRequestException(inner) => inner.source(),
1989 Error::ConflictException(inner) => inner.source(),
1990 Error::NotFoundException(inner) => inner.source(),
1991 Error::TooManyRequestsException(inner) => inner.source(),
1992 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1993 }
1994 }
1995}
1996impl ::aws_types::request_id::RequestId for Error {
1997 fn request_id(&self) -> Option<&str> {
1998 match self {
1999 Self::AccessDeniedException(e) => e.request_id(),
2000 Self::BadRequestException(e) => e.request_id(),
2001 Self::ConflictException(e) => e.request_id(),
2002 Self::NotFoundException(e) => e.request_id(),
2003 Self::TooManyRequestsException(e) => e.request_id(),
2004 Self::Unhandled(e) => e.meta.request_id(),
2005 }
2006 }
2007}