1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 InternalServerException(crate::types::error::InternalServerException),
12 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16 ThrottlingException(crate::types::error::ThrottlingException),
18 UnauthorizedException(crate::types::error::UnauthorizedException),
20 ValidationException(crate::types::error::ValidationException),
22 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
24 variable wildcard pattern and check `.code()`:
25 \
26 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
27 \
28 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
29 Unhandled(crate::error::sealed_unhandled::Unhandled),
30}
31impl ::std::fmt::Display for Error {
32 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33 match self {
34 Error::AccessDeniedException(inner) => inner.fmt(f),
35 Error::ConflictException(inner) => inner.fmt(f),
36 Error::InternalServerException(inner) => inner.fmt(f),
37 Error::ResourceNotFoundException(inner) => inner.fmt(f),
38 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
39 Error::ThrottlingException(inner) => inner.fmt(f),
40 Error::UnauthorizedException(inner) => inner.fmt(f),
41 Error::ValidationException(inner) => inner.fmt(f),
42 Error::Unhandled(_) => {
43 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
44 write!(f, "unhandled error ({code})")
45 } else {
46 f.write_str("unhandled error")
47 }
48 }
49 }
50 }
51}
52impl From<::aws_smithy_types::error::operation::BuildError> for Error {
53 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
54 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
55 source: value.into(),
56 meta: ::std::default::Default::default(),
57 })
58 }
59}
60impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
61 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
62 match self {
63 Self::AccessDeniedException(inner) => inner.meta(),
64 Self::ConflictException(inner) => inner.meta(),
65 Self::InternalServerException(inner) => inner.meta(),
66 Self::ResourceNotFoundException(inner) => inner.meta(),
67 Self::ServiceQuotaExceededException(inner) => inner.meta(),
68 Self::ThrottlingException(inner) => inner.meta(),
69 Self::UnauthorizedException(inner) => inner.meta(),
70 Self::ValidationException(inner) => inner.meta(),
71 Self::Unhandled(inner) => &inner.meta,
72 }
73 }
74}
75impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_predictions::AcceptPredictionsError, R>> for Error
76where
77 R: Send + Sync + std::fmt::Debug + 'static,
78{
79 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_predictions::AcceptPredictionsError, R>) -> Self {
80 match err {
81 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
82 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
83 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
84 source: err.into(),
85 }),
86 }
87 }
88}
89impl From<crate::operation::accept_predictions::AcceptPredictionsError> for Error {
90 fn from(err: crate::operation::accept_predictions::AcceptPredictionsError) -> Self {
91 match err {
92 crate::operation::accept_predictions::AcceptPredictionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
93 crate::operation::accept_predictions::AcceptPredictionsError::ConflictException(inner) => Error::ConflictException(inner),
94 crate::operation::accept_predictions::AcceptPredictionsError::InternalServerException(inner) => Error::InternalServerException(inner),
95 crate::operation::accept_predictions::AcceptPredictionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
96 crate::operation::accept_predictions::AcceptPredictionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
97 crate::operation::accept_predictions::AcceptPredictionsError::ValidationException(inner) => Error::ValidationException(inner),
98 crate::operation::accept_predictions::AcceptPredictionsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
99 crate::operation::accept_predictions::AcceptPredictionsError::Unhandled(inner) => Error::Unhandled(inner),
100 }
101 }
102}
103impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_subscription_request::AcceptSubscriptionRequestError, R>>
104 for Error
105where
106 R: Send + Sync + std::fmt::Debug + 'static,
107{
108 fn from(
109 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_subscription_request::AcceptSubscriptionRequestError, R>,
110 ) -> Self {
111 match err {
112 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
113 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
114 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
115 source: err.into(),
116 }),
117 }
118 }
119}
120impl From<crate::operation::accept_subscription_request::AcceptSubscriptionRequestError> for Error {
121 fn from(err: crate::operation::accept_subscription_request::AcceptSubscriptionRequestError) -> Self {
122 match err {
123 crate::operation::accept_subscription_request::AcceptSubscriptionRequestError::AccessDeniedException(inner) => {
124 Error::AccessDeniedException(inner)
125 }
126 crate::operation::accept_subscription_request::AcceptSubscriptionRequestError::ConflictException(inner) => {
127 Error::ConflictException(inner)
128 }
129 crate::operation::accept_subscription_request::AcceptSubscriptionRequestError::InternalServerException(inner) => {
130 Error::InternalServerException(inner)
131 }
132 crate::operation::accept_subscription_request::AcceptSubscriptionRequestError::ResourceNotFoundException(inner) => {
133 Error::ResourceNotFoundException(inner)
134 }
135 crate::operation::accept_subscription_request::AcceptSubscriptionRequestError::ServiceQuotaExceededException(inner) => {
136 Error::ServiceQuotaExceededException(inner)
137 }
138 crate::operation::accept_subscription_request::AcceptSubscriptionRequestError::ThrottlingException(inner) => {
139 Error::ThrottlingException(inner)
140 }
141 crate::operation::accept_subscription_request::AcceptSubscriptionRequestError::ValidationException(inner) => {
142 Error::ValidationException(inner)
143 }
144 crate::operation::accept_subscription_request::AcceptSubscriptionRequestError::UnauthorizedException(inner) => {
145 Error::UnauthorizedException(inner)
146 }
147 crate::operation::accept_subscription_request::AcceptSubscriptionRequestError::Unhandled(inner) => Error::Unhandled(inner),
148 }
149 }
150}
151impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_entity_owner::AddEntityOwnerError, R>> for Error
152where
153 R: Send + Sync + std::fmt::Debug + 'static,
154{
155 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_entity_owner::AddEntityOwnerError, R>) -> Self {
156 match err {
157 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
158 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
159 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
160 source: err.into(),
161 }),
162 }
163 }
164}
165impl From<crate::operation::add_entity_owner::AddEntityOwnerError> for Error {
166 fn from(err: crate::operation::add_entity_owner::AddEntityOwnerError) -> Self {
167 match err {
168 crate::operation::add_entity_owner::AddEntityOwnerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
169 crate::operation::add_entity_owner::AddEntityOwnerError::ConflictException(inner) => Error::ConflictException(inner),
170 crate::operation::add_entity_owner::AddEntityOwnerError::InternalServerException(inner) => Error::InternalServerException(inner),
171 crate::operation::add_entity_owner::AddEntityOwnerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
172 crate::operation::add_entity_owner::AddEntityOwnerError::ServiceQuotaExceededException(inner) => {
173 Error::ServiceQuotaExceededException(inner)
174 }
175 crate::operation::add_entity_owner::AddEntityOwnerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
176 crate::operation::add_entity_owner::AddEntityOwnerError::ValidationException(inner) => Error::ValidationException(inner),
177 crate::operation::add_entity_owner::AddEntityOwnerError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
178 crate::operation::add_entity_owner::AddEntityOwnerError::Unhandled(inner) => Error::Unhandled(inner),
179 }
180 }
181}
182impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_policy_grant::AddPolicyGrantError, R>> for Error
183where
184 R: Send + Sync + std::fmt::Debug + 'static,
185{
186 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_policy_grant::AddPolicyGrantError, R>) -> Self {
187 match err {
188 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
189 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
190 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
191 source: err.into(),
192 }),
193 }
194 }
195}
196impl From<crate::operation::add_policy_grant::AddPolicyGrantError> for Error {
197 fn from(err: crate::operation::add_policy_grant::AddPolicyGrantError) -> Self {
198 match err {
199 crate::operation::add_policy_grant::AddPolicyGrantError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
200 crate::operation::add_policy_grant::AddPolicyGrantError::ConflictException(inner) => Error::ConflictException(inner),
201 crate::operation::add_policy_grant::AddPolicyGrantError::InternalServerException(inner) => Error::InternalServerException(inner),
202 crate::operation::add_policy_grant::AddPolicyGrantError::ServiceQuotaExceededException(inner) => {
203 Error::ServiceQuotaExceededException(inner)
204 }
205 crate::operation::add_policy_grant::AddPolicyGrantError::ThrottlingException(inner) => Error::ThrottlingException(inner),
206 crate::operation::add_policy_grant::AddPolicyGrantError::ValidationException(inner) => Error::ValidationException(inner),
207 crate::operation::add_policy_grant::AddPolicyGrantError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
208 crate::operation::add_policy_grant::AddPolicyGrantError::Unhandled(inner) => Error::Unhandled(inner),
209 }
210 }
211}
212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_environment_role::AssociateEnvironmentRoleError, R>>
213 for Error
214where
215 R: Send + Sync + std::fmt::Debug + 'static,
216{
217 fn from(
218 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_environment_role::AssociateEnvironmentRoleError, R>,
219 ) -> Self {
220 match err {
221 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
222 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
223 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
224 source: err.into(),
225 }),
226 }
227 }
228}
229impl From<crate::operation::associate_environment_role::AssociateEnvironmentRoleError> for Error {
230 fn from(err: crate::operation::associate_environment_role::AssociateEnvironmentRoleError) -> Self {
231 match err {
232 crate::operation::associate_environment_role::AssociateEnvironmentRoleError::AccessDeniedException(inner) => {
233 Error::AccessDeniedException(inner)
234 }
235 crate::operation::associate_environment_role::AssociateEnvironmentRoleError::ConflictException(inner) => Error::ConflictException(inner),
236 crate::operation::associate_environment_role::AssociateEnvironmentRoleError::InternalServerException(inner) => {
237 Error::InternalServerException(inner)
238 }
239 crate::operation::associate_environment_role::AssociateEnvironmentRoleError::ResourceNotFoundException(inner) => {
240 Error::ResourceNotFoundException(inner)
241 }
242 crate::operation::associate_environment_role::AssociateEnvironmentRoleError::ThrottlingException(inner) => {
243 Error::ThrottlingException(inner)
244 }
245 crate::operation::associate_environment_role::AssociateEnvironmentRoleError::ValidationException(inner) => {
246 Error::ValidationException(inner)
247 }
248 crate::operation::associate_environment_role::AssociateEnvironmentRoleError::UnauthorizedException(inner) => {
249 Error::UnauthorizedException(inner)
250 }
251 crate::operation::associate_environment_role::AssociateEnvironmentRoleError::Unhandled(inner) => Error::Unhandled(inner),
252 }
253 }
254}
255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_governed_terms::AssociateGovernedTermsError, R>> for Error
256where
257 R: Send + Sync + std::fmt::Debug + 'static,
258{
259 fn from(
260 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_governed_terms::AssociateGovernedTermsError, R>,
261 ) -> Self {
262 match err {
263 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
264 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
265 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
266 source: err.into(),
267 }),
268 }
269 }
270}
271impl From<crate::operation::associate_governed_terms::AssociateGovernedTermsError> for Error {
272 fn from(err: crate::operation::associate_governed_terms::AssociateGovernedTermsError) -> Self {
273 match err {
274 crate::operation::associate_governed_terms::AssociateGovernedTermsError::AccessDeniedException(inner) => {
275 Error::AccessDeniedException(inner)
276 }
277 crate::operation::associate_governed_terms::AssociateGovernedTermsError::ConflictException(inner) => Error::ConflictException(inner),
278 crate::operation::associate_governed_terms::AssociateGovernedTermsError::InternalServerException(inner) => {
279 Error::InternalServerException(inner)
280 }
281 crate::operation::associate_governed_terms::AssociateGovernedTermsError::ResourceNotFoundException(inner) => {
282 Error::ResourceNotFoundException(inner)
283 }
284 crate::operation::associate_governed_terms::AssociateGovernedTermsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
285 crate::operation::associate_governed_terms::AssociateGovernedTermsError::ValidationException(inner) => Error::ValidationException(inner),
286 crate::operation::associate_governed_terms::AssociateGovernedTermsError::UnauthorizedException(inner) => {
287 Error::UnauthorizedException(inner)
288 }
289 crate::operation::associate_governed_terms::AssociateGovernedTermsError::Unhandled(inner) => Error::Unhandled(inner),
290 }
291 }
292}
293impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_attributes_metadata::BatchGetAttributesMetadataError, R>>
294 for Error
295where
296 R: Send + Sync + std::fmt::Debug + 'static,
297{
298 fn from(
299 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_attributes_metadata::BatchGetAttributesMetadataError, R>,
300 ) -> Self {
301 match err {
302 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
303 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
304 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
305 source: err.into(),
306 }),
307 }
308 }
309}
310impl From<crate::operation::batch_get_attributes_metadata::BatchGetAttributesMetadataError> for Error {
311 fn from(err: crate::operation::batch_get_attributes_metadata::BatchGetAttributesMetadataError) -> Self {
312 match err {
313 crate::operation::batch_get_attributes_metadata::BatchGetAttributesMetadataError::AccessDeniedException(inner) => {
314 Error::AccessDeniedException(inner)
315 }
316 crate::operation::batch_get_attributes_metadata::BatchGetAttributesMetadataError::InternalServerException(inner) => {
317 Error::InternalServerException(inner)
318 }
319 crate::operation::batch_get_attributes_metadata::BatchGetAttributesMetadataError::ResourceNotFoundException(inner) => {
320 Error::ResourceNotFoundException(inner)
321 }
322 crate::operation::batch_get_attributes_metadata::BatchGetAttributesMetadataError::ThrottlingException(inner) => {
323 Error::ThrottlingException(inner)
324 }
325 crate::operation::batch_get_attributes_metadata::BatchGetAttributesMetadataError::ValidationException(inner) => {
326 Error::ValidationException(inner)
327 }
328 crate::operation::batch_get_attributes_metadata::BatchGetAttributesMetadataError::UnauthorizedException(inner) => {
329 Error::UnauthorizedException(inner)
330 }
331 crate::operation::batch_get_attributes_metadata::BatchGetAttributesMetadataError::Unhandled(inner) => Error::Unhandled(inner),
332 }
333 }
334}
335impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_put_attributes_metadata::BatchPutAttributesMetadataError, R>>
336 for Error
337where
338 R: Send + Sync + std::fmt::Debug + 'static,
339{
340 fn from(
341 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_put_attributes_metadata::BatchPutAttributesMetadataError, R>,
342 ) -> Self {
343 match err {
344 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
345 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
346 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
347 source: err.into(),
348 }),
349 }
350 }
351}
352impl From<crate::operation::batch_put_attributes_metadata::BatchPutAttributesMetadataError> for Error {
353 fn from(err: crate::operation::batch_put_attributes_metadata::BatchPutAttributesMetadataError) -> Self {
354 match err {
355 crate::operation::batch_put_attributes_metadata::BatchPutAttributesMetadataError::AccessDeniedException(inner) => {
356 Error::AccessDeniedException(inner)
357 }
358 crate::operation::batch_put_attributes_metadata::BatchPutAttributesMetadataError::ConflictException(inner) => {
359 Error::ConflictException(inner)
360 }
361 crate::operation::batch_put_attributes_metadata::BatchPutAttributesMetadataError::InternalServerException(inner) => {
362 Error::InternalServerException(inner)
363 }
364 crate::operation::batch_put_attributes_metadata::BatchPutAttributesMetadataError::ResourceNotFoundException(inner) => {
365 Error::ResourceNotFoundException(inner)
366 }
367 crate::operation::batch_put_attributes_metadata::BatchPutAttributesMetadataError::ThrottlingException(inner) => {
368 Error::ThrottlingException(inner)
369 }
370 crate::operation::batch_put_attributes_metadata::BatchPutAttributesMetadataError::ValidationException(inner) => {
371 Error::ValidationException(inner)
372 }
373 crate::operation::batch_put_attributes_metadata::BatchPutAttributesMetadataError::UnauthorizedException(inner) => {
374 Error::UnauthorizedException(inner)
375 }
376 crate::operation::batch_put_attributes_metadata::BatchPutAttributesMetadataError::Unhandled(inner) => Error::Unhandled(inner),
377 }
378 }
379}
380impl<R>
381 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_metadata_generation_run::CancelMetadataGenerationRunError, R>>
382 for Error
383where
384 R: Send + Sync + std::fmt::Debug + 'static,
385{
386 fn from(
387 err: ::aws_smithy_runtime_api::client::result::SdkError<
388 crate::operation::cancel_metadata_generation_run::CancelMetadataGenerationRunError,
389 R,
390 >,
391 ) -> Self {
392 match err {
393 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
394 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
395 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
396 source: err.into(),
397 }),
398 }
399 }
400}
401impl From<crate::operation::cancel_metadata_generation_run::CancelMetadataGenerationRunError> for Error {
402 fn from(err: crate::operation::cancel_metadata_generation_run::CancelMetadataGenerationRunError) -> Self {
403 match err {
404 crate::operation::cancel_metadata_generation_run::CancelMetadataGenerationRunError::AccessDeniedException(inner) => {
405 Error::AccessDeniedException(inner)
406 }
407 crate::operation::cancel_metadata_generation_run::CancelMetadataGenerationRunError::ConflictException(inner) => {
408 Error::ConflictException(inner)
409 }
410 crate::operation::cancel_metadata_generation_run::CancelMetadataGenerationRunError::InternalServerException(inner) => {
411 Error::InternalServerException(inner)
412 }
413 crate::operation::cancel_metadata_generation_run::CancelMetadataGenerationRunError::ResourceNotFoundException(inner) => {
414 Error::ResourceNotFoundException(inner)
415 }
416 crate::operation::cancel_metadata_generation_run::CancelMetadataGenerationRunError::ThrottlingException(inner) => {
417 Error::ThrottlingException(inner)
418 }
419 crate::operation::cancel_metadata_generation_run::CancelMetadataGenerationRunError::ValidationException(inner) => {
420 Error::ValidationException(inner)
421 }
422 crate::operation::cancel_metadata_generation_run::CancelMetadataGenerationRunError::UnauthorizedException(inner) => {
423 Error::UnauthorizedException(inner)
424 }
425 crate::operation::cancel_metadata_generation_run::CancelMetadataGenerationRunError::Unhandled(inner) => Error::Unhandled(inner),
426 }
427 }
428}
429impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_subscription::CancelSubscriptionError, R>> for Error
430where
431 R: Send + Sync + std::fmt::Debug + 'static,
432{
433 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_subscription::CancelSubscriptionError, R>) -> Self {
434 match err {
435 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
436 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
437 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
438 source: err.into(),
439 }),
440 }
441 }
442}
443impl From<crate::operation::cancel_subscription::CancelSubscriptionError> for Error {
444 fn from(err: crate::operation::cancel_subscription::CancelSubscriptionError) -> Self {
445 match err {
446 crate::operation::cancel_subscription::CancelSubscriptionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
447 crate::operation::cancel_subscription::CancelSubscriptionError::ConflictException(inner) => Error::ConflictException(inner),
448 crate::operation::cancel_subscription::CancelSubscriptionError::InternalServerException(inner) => Error::InternalServerException(inner),
449 crate::operation::cancel_subscription::CancelSubscriptionError::ResourceNotFoundException(inner) => {
450 Error::ResourceNotFoundException(inner)
451 }
452 crate::operation::cancel_subscription::CancelSubscriptionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
453 crate::operation::cancel_subscription::CancelSubscriptionError::ValidationException(inner) => Error::ValidationException(inner),
454 crate::operation::cancel_subscription::CancelSubscriptionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
455 crate::operation::cancel_subscription::CancelSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
456 }
457 }
458}
459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_account_pool::CreateAccountPoolError, R>> for Error
460where
461 R: Send + Sync + std::fmt::Debug + 'static,
462{
463 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_account_pool::CreateAccountPoolError, R>) -> Self {
464 match err {
465 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
466 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
467 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
468 source: err.into(),
469 }),
470 }
471 }
472}
473impl From<crate::operation::create_account_pool::CreateAccountPoolError> for Error {
474 fn from(err: crate::operation::create_account_pool::CreateAccountPoolError) -> Self {
475 match err {
476 crate::operation::create_account_pool::CreateAccountPoolError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
477 crate::operation::create_account_pool::CreateAccountPoolError::ConflictException(inner) => Error::ConflictException(inner),
478 crate::operation::create_account_pool::CreateAccountPoolError::InternalServerException(inner) => Error::InternalServerException(inner),
479 crate::operation::create_account_pool::CreateAccountPoolError::ResourceNotFoundException(inner) => {
480 Error::ResourceNotFoundException(inner)
481 }
482 crate::operation::create_account_pool::CreateAccountPoolError::ServiceQuotaExceededException(inner) => {
483 Error::ServiceQuotaExceededException(inner)
484 }
485 crate::operation::create_account_pool::CreateAccountPoolError::ThrottlingException(inner) => Error::ThrottlingException(inner),
486 crate::operation::create_account_pool::CreateAccountPoolError::ValidationException(inner) => Error::ValidationException(inner),
487 crate::operation::create_account_pool::CreateAccountPoolError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
488 crate::operation::create_account_pool::CreateAccountPoolError::Unhandled(inner) => Error::Unhandled(inner),
489 }
490 }
491}
492impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_asset::CreateAssetError, R>> for Error
493where
494 R: Send + Sync + std::fmt::Debug + 'static,
495{
496 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_asset::CreateAssetError, R>) -> Self {
497 match err {
498 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
499 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
500 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
501 source: err.into(),
502 }),
503 }
504 }
505}
506impl From<crate::operation::create_asset::CreateAssetError> for Error {
507 fn from(err: crate::operation::create_asset::CreateAssetError) -> Self {
508 match err {
509 crate::operation::create_asset::CreateAssetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
510 crate::operation::create_asset::CreateAssetError::ConflictException(inner) => Error::ConflictException(inner),
511 crate::operation::create_asset::CreateAssetError::InternalServerException(inner) => Error::InternalServerException(inner),
512 crate::operation::create_asset::CreateAssetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
513 crate::operation::create_asset::CreateAssetError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
514 crate::operation::create_asset::CreateAssetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
515 crate::operation::create_asset::CreateAssetError::ValidationException(inner) => Error::ValidationException(inner),
516 crate::operation::create_asset::CreateAssetError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
517 crate::operation::create_asset::CreateAssetError::Unhandled(inner) => Error::Unhandled(inner),
518 }
519 }
520}
521impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_asset_filter::CreateAssetFilterError, R>> for Error
522where
523 R: Send + Sync + std::fmt::Debug + 'static,
524{
525 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_asset_filter::CreateAssetFilterError, R>) -> Self {
526 match err {
527 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
528 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
529 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
530 source: err.into(),
531 }),
532 }
533 }
534}
535impl From<crate::operation::create_asset_filter::CreateAssetFilterError> for Error {
536 fn from(err: crate::operation::create_asset_filter::CreateAssetFilterError) -> Self {
537 match err {
538 crate::operation::create_asset_filter::CreateAssetFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
539 crate::operation::create_asset_filter::CreateAssetFilterError::ConflictException(inner) => Error::ConflictException(inner),
540 crate::operation::create_asset_filter::CreateAssetFilterError::InternalServerException(inner) => Error::InternalServerException(inner),
541 crate::operation::create_asset_filter::CreateAssetFilterError::ResourceNotFoundException(inner) => {
542 Error::ResourceNotFoundException(inner)
543 }
544 crate::operation::create_asset_filter::CreateAssetFilterError::ServiceQuotaExceededException(inner) => {
545 Error::ServiceQuotaExceededException(inner)
546 }
547 crate::operation::create_asset_filter::CreateAssetFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
548 crate::operation::create_asset_filter::CreateAssetFilterError::ValidationException(inner) => Error::ValidationException(inner),
549 crate::operation::create_asset_filter::CreateAssetFilterError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
550 crate::operation::create_asset_filter::CreateAssetFilterError::Unhandled(inner) => Error::Unhandled(inner),
551 }
552 }
553}
554impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_asset_revision::CreateAssetRevisionError, R>> for Error
555where
556 R: Send + Sync + std::fmt::Debug + 'static,
557{
558 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_asset_revision::CreateAssetRevisionError, R>) -> Self {
559 match err {
560 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
561 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
562 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
563 source: err.into(),
564 }),
565 }
566 }
567}
568impl From<crate::operation::create_asset_revision::CreateAssetRevisionError> for Error {
569 fn from(err: crate::operation::create_asset_revision::CreateAssetRevisionError) -> Self {
570 match err {
571 crate::operation::create_asset_revision::CreateAssetRevisionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
572 crate::operation::create_asset_revision::CreateAssetRevisionError::ConflictException(inner) => Error::ConflictException(inner),
573 crate::operation::create_asset_revision::CreateAssetRevisionError::InternalServerException(inner) => {
574 Error::InternalServerException(inner)
575 }
576 crate::operation::create_asset_revision::CreateAssetRevisionError::ResourceNotFoundException(inner) => {
577 Error::ResourceNotFoundException(inner)
578 }
579 crate::operation::create_asset_revision::CreateAssetRevisionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
580 crate::operation::create_asset_revision::CreateAssetRevisionError::ValidationException(inner) => Error::ValidationException(inner),
581 crate::operation::create_asset_revision::CreateAssetRevisionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
582 crate::operation::create_asset_revision::CreateAssetRevisionError::Unhandled(inner) => Error::Unhandled(inner),
583 }
584 }
585}
586impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_asset_type::CreateAssetTypeError, R>> for Error
587where
588 R: Send + Sync + std::fmt::Debug + 'static,
589{
590 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_asset_type::CreateAssetTypeError, R>) -> Self {
591 match err {
592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
595 source: err.into(),
596 }),
597 }
598 }
599}
600impl From<crate::operation::create_asset_type::CreateAssetTypeError> for Error {
601 fn from(err: crate::operation::create_asset_type::CreateAssetTypeError) -> Self {
602 match err {
603 crate::operation::create_asset_type::CreateAssetTypeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
604 crate::operation::create_asset_type::CreateAssetTypeError::ConflictException(inner) => Error::ConflictException(inner),
605 crate::operation::create_asset_type::CreateAssetTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
606 crate::operation::create_asset_type::CreateAssetTypeError::ServiceQuotaExceededException(inner) => {
607 Error::ServiceQuotaExceededException(inner)
608 }
609 crate::operation::create_asset_type::CreateAssetTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
610 crate::operation::create_asset_type::CreateAssetTypeError::ValidationException(inner) => Error::ValidationException(inner),
611 crate::operation::create_asset_type::CreateAssetTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
612 crate::operation::create_asset_type::CreateAssetTypeError::Unhandled(inner) => Error::Unhandled(inner),
613 }
614 }
615}
616impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>> for Error
617where
618 R: Send + Sync + std::fmt::Debug + 'static,
619{
620 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connection::CreateConnectionError, R>) -> Self {
621 match err {
622 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
623 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
624 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
625 source: err.into(),
626 }),
627 }
628 }
629}
630impl From<crate::operation::create_connection::CreateConnectionError> for Error {
631 fn from(err: crate::operation::create_connection::CreateConnectionError) -> Self {
632 match err {
633 crate::operation::create_connection::CreateConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
634 crate::operation::create_connection::CreateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
635 crate::operation::create_connection::CreateConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
636 crate::operation::create_connection::CreateConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
637 crate::operation::create_connection::CreateConnectionError::ServiceQuotaExceededException(inner) => {
638 Error::ServiceQuotaExceededException(inner)
639 }
640 crate::operation::create_connection::CreateConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
641 crate::operation::create_connection::CreateConnectionError::ValidationException(inner) => Error::ValidationException(inner),
642 crate::operation::create_connection::CreateConnectionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
643 crate::operation::create_connection::CreateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
644 }
645 }
646}
647impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_product::CreateDataProductError, R>> for Error
648where
649 R: Send + Sync + std::fmt::Debug + 'static,
650{
651 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_product::CreateDataProductError, R>) -> Self {
652 match err {
653 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
654 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
655 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
656 source: err.into(),
657 }),
658 }
659 }
660}
661impl From<crate::operation::create_data_product::CreateDataProductError> for Error {
662 fn from(err: crate::operation::create_data_product::CreateDataProductError) -> Self {
663 match err {
664 crate::operation::create_data_product::CreateDataProductError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
665 crate::operation::create_data_product::CreateDataProductError::ConflictException(inner) => Error::ConflictException(inner),
666 crate::operation::create_data_product::CreateDataProductError::InternalServerException(inner) => Error::InternalServerException(inner),
667 crate::operation::create_data_product::CreateDataProductError::ResourceNotFoundException(inner) => {
668 Error::ResourceNotFoundException(inner)
669 }
670 crate::operation::create_data_product::CreateDataProductError::ServiceQuotaExceededException(inner) => {
671 Error::ServiceQuotaExceededException(inner)
672 }
673 crate::operation::create_data_product::CreateDataProductError::ThrottlingException(inner) => Error::ThrottlingException(inner),
674 crate::operation::create_data_product::CreateDataProductError::ValidationException(inner) => Error::ValidationException(inner),
675 crate::operation::create_data_product::CreateDataProductError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
676 crate::operation::create_data_product::CreateDataProductError::Unhandled(inner) => Error::Unhandled(inner),
677 }
678 }
679}
680impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_product_revision::CreateDataProductRevisionError, R>>
681 for Error
682where
683 R: Send + Sync + std::fmt::Debug + 'static,
684{
685 fn from(
686 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_product_revision::CreateDataProductRevisionError, R>,
687 ) -> Self {
688 match err {
689 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
690 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
691 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
692 source: err.into(),
693 }),
694 }
695 }
696}
697impl From<crate::operation::create_data_product_revision::CreateDataProductRevisionError> for Error {
698 fn from(err: crate::operation::create_data_product_revision::CreateDataProductRevisionError) -> Self {
699 match err {
700 crate::operation::create_data_product_revision::CreateDataProductRevisionError::AccessDeniedException(inner) => {
701 Error::AccessDeniedException(inner)
702 }
703 crate::operation::create_data_product_revision::CreateDataProductRevisionError::ConflictException(inner) => {
704 Error::ConflictException(inner)
705 }
706 crate::operation::create_data_product_revision::CreateDataProductRevisionError::InternalServerException(inner) => {
707 Error::InternalServerException(inner)
708 }
709 crate::operation::create_data_product_revision::CreateDataProductRevisionError::ResourceNotFoundException(inner) => {
710 Error::ResourceNotFoundException(inner)
711 }
712 crate::operation::create_data_product_revision::CreateDataProductRevisionError::ThrottlingException(inner) => {
713 Error::ThrottlingException(inner)
714 }
715 crate::operation::create_data_product_revision::CreateDataProductRevisionError::ValidationException(inner) => {
716 Error::ValidationException(inner)
717 }
718 crate::operation::create_data_product_revision::CreateDataProductRevisionError::UnauthorizedException(inner) => {
719 Error::UnauthorizedException(inner)
720 }
721 crate::operation::create_data_product_revision::CreateDataProductRevisionError::Unhandled(inner) => Error::Unhandled(inner),
722 }
723 }
724}
725impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_source::CreateDataSourceError, R>> for Error
726where
727 R: Send + Sync + std::fmt::Debug + 'static,
728{
729 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_data_source::CreateDataSourceError, R>) -> Self {
730 match err {
731 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
732 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
733 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
734 source: err.into(),
735 }),
736 }
737 }
738}
739impl From<crate::operation::create_data_source::CreateDataSourceError> for Error {
740 fn from(err: crate::operation::create_data_source::CreateDataSourceError) -> Self {
741 match err {
742 crate::operation::create_data_source::CreateDataSourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
743 crate::operation::create_data_source::CreateDataSourceError::ConflictException(inner) => Error::ConflictException(inner),
744 crate::operation::create_data_source::CreateDataSourceError::InternalServerException(inner) => Error::InternalServerException(inner),
745 crate::operation::create_data_source::CreateDataSourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
746 crate::operation::create_data_source::CreateDataSourceError::ServiceQuotaExceededException(inner) => {
747 Error::ServiceQuotaExceededException(inner)
748 }
749 crate::operation::create_data_source::CreateDataSourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
750 crate::operation::create_data_source::CreateDataSourceError::ValidationException(inner) => Error::ValidationException(inner),
751 crate::operation::create_data_source::CreateDataSourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
752 crate::operation::create_data_source::CreateDataSourceError::Unhandled(inner) => Error::Unhandled(inner),
753 }
754 }
755}
756impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>> for Error
757where
758 R: Send + Sync + std::fmt::Debug + 'static,
759{
760 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain::CreateDomainError, R>) -> Self {
761 match err {
762 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
763 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
764 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
765 source: err.into(),
766 }),
767 }
768 }
769}
770impl From<crate::operation::create_domain::CreateDomainError> for Error {
771 fn from(err: crate::operation::create_domain::CreateDomainError) -> Self {
772 match err {
773 crate::operation::create_domain::CreateDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
774 crate::operation::create_domain::CreateDomainError::ConflictException(inner) => Error::ConflictException(inner),
775 crate::operation::create_domain::CreateDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
776 crate::operation::create_domain::CreateDomainError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
777 crate::operation::create_domain::CreateDomainError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
778 crate::operation::create_domain::CreateDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
779 crate::operation::create_domain::CreateDomainError::ValidationException(inner) => Error::ValidationException(inner),
780 crate::operation::create_domain::CreateDomainError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
781 crate::operation::create_domain::CreateDomainError::Unhandled(inner) => Error::Unhandled(inner),
782 }
783 }
784}
785impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain_unit::CreateDomainUnitError, R>> for Error
786where
787 R: Send + Sync + std::fmt::Debug + 'static,
788{
789 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_domain_unit::CreateDomainUnitError, R>) -> Self {
790 match err {
791 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
792 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
793 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
794 source: err.into(),
795 }),
796 }
797 }
798}
799impl From<crate::operation::create_domain_unit::CreateDomainUnitError> for Error {
800 fn from(err: crate::operation::create_domain_unit::CreateDomainUnitError) -> Self {
801 match err {
802 crate::operation::create_domain_unit::CreateDomainUnitError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
803 crate::operation::create_domain_unit::CreateDomainUnitError::ConflictException(inner) => Error::ConflictException(inner),
804 crate::operation::create_domain_unit::CreateDomainUnitError::InternalServerException(inner) => Error::InternalServerException(inner),
805 crate::operation::create_domain_unit::CreateDomainUnitError::ServiceQuotaExceededException(inner) => {
806 Error::ServiceQuotaExceededException(inner)
807 }
808 crate::operation::create_domain_unit::CreateDomainUnitError::ThrottlingException(inner) => Error::ThrottlingException(inner),
809 crate::operation::create_domain_unit::CreateDomainUnitError::ValidationException(inner) => Error::ValidationException(inner),
810 crate::operation::create_domain_unit::CreateDomainUnitError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
811 crate::operation::create_domain_unit::CreateDomainUnitError::Unhandled(inner) => Error::Unhandled(inner),
812 }
813 }
814}
815impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment::CreateEnvironmentError, R>> for Error
816where
817 R: Send + Sync + std::fmt::Debug + 'static,
818{
819 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment::CreateEnvironmentError, R>) -> Self {
820 match err {
821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
824 source: err.into(),
825 }),
826 }
827 }
828}
829impl From<crate::operation::create_environment::CreateEnvironmentError> for Error {
830 fn from(err: crate::operation::create_environment::CreateEnvironmentError) -> Self {
831 match err {
832 crate::operation::create_environment::CreateEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
833 crate::operation::create_environment::CreateEnvironmentError::ConflictException(inner) => Error::ConflictException(inner),
834 crate::operation::create_environment::CreateEnvironmentError::InternalServerException(inner) => Error::InternalServerException(inner),
835 crate::operation::create_environment::CreateEnvironmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
836 crate::operation::create_environment::CreateEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
837 crate::operation::create_environment::CreateEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
838 crate::operation::create_environment::CreateEnvironmentError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
839 crate::operation::create_environment::CreateEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
840 }
841 }
842}
843impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment_action::CreateEnvironmentActionError, R>>
844 for Error
845where
846 R: Send + Sync + std::fmt::Debug + 'static,
847{
848 fn from(
849 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment_action::CreateEnvironmentActionError, R>,
850 ) -> Self {
851 match err {
852 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
853 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
854 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
855 source: err.into(),
856 }),
857 }
858 }
859}
860impl From<crate::operation::create_environment_action::CreateEnvironmentActionError> for Error {
861 fn from(err: crate::operation::create_environment_action::CreateEnvironmentActionError) -> Self {
862 match err {
863 crate::operation::create_environment_action::CreateEnvironmentActionError::AccessDeniedException(inner) => {
864 Error::AccessDeniedException(inner)
865 }
866 crate::operation::create_environment_action::CreateEnvironmentActionError::ConflictException(inner) => Error::ConflictException(inner),
867 crate::operation::create_environment_action::CreateEnvironmentActionError::InternalServerException(inner) => {
868 Error::InternalServerException(inner)
869 }
870 crate::operation::create_environment_action::CreateEnvironmentActionError::ResourceNotFoundException(inner) => {
871 Error::ResourceNotFoundException(inner)
872 }
873 crate::operation::create_environment_action::CreateEnvironmentActionError::ThrottlingException(inner) => {
874 Error::ThrottlingException(inner)
875 }
876 crate::operation::create_environment_action::CreateEnvironmentActionError::ValidationException(inner) => {
877 Error::ValidationException(inner)
878 }
879 crate::operation::create_environment_action::CreateEnvironmentActionError::UnauthorizedException(inner) => {
880 Error::UnauthorizedException(inner)
881 }
882 crate::operation::create_environment_action::CreateEnvironmentActionError::Unhandled(inner) => Error::Unhandled(inner),
883 }
884 }
885}
886impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment_blueprint::CreateEnvironmentBlueprintError, R>>
887 for Error
888where
889 R: Send + Sync + std::fmt::Debug + 'static,
890{
891 fn from(
892 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment_blueprint::CreateEnvironmentBlueprintError, R>,
893 ) -> Self {
894 match err {
895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
898 source: err.into(),
899 }),
900 }
901 }
902}
903impl From<crate::operation::create_environment_blueprint::CreateEnvironmentBlueprintError> for Error {
904 fn from(err: crate::operation::create_environment_blueprint::CreateEnvironmentBlueprintError) -> Self {
905 match err {
906 crate::operation::create_environment_blueprint::CreateEnvironmentBlueprintError::AccessDeniedException(inner) => {
907 Error::AccessDeniedException(inner)
908 }
909 crate::operation::create_environment_blueprint::CreateEnvironmentBlueprintError::ConflictException(inner) => {
910 Error::ConflictException(inner)
911 }
912 crate::operation::create_environment_blueprint::CreateEnvironmentBlueprintError::InternalServerException(inner) => {
913 Error::InternalServerException(inner)
914 }
915 crate::operation::create_environment_blueprint::CreateEnvironmentBlueprintError::ResourceNotFoundException(inner) => {
916 Error::ResourceNotFoundException(inner)
917 }
918 crate::operation::create_environment_blueprint::CreateEnvironmentBlueprintError::ServiceQuotaExceededException(inner) => {
919 Error::ServiceQuotaExceededException(inner)
920 }
921 crate::operation::create_environment_blueprint::CreateEnvironmentBlueprintError::ThrottlingException(inner) => {
922 Error::ThrottlingException(inner)
923 }
924 crate::operation::create_environment_blueprint::CreateEnvironmentBlueprintError::ValidationException(inner) => {
925 Error::ValidationException(inner)
926 }
927 crate::operation::create_environment_blueprint::CreateEnvironmentBlueprintError::UnauthorizedException(inner) => {
928 Error::UnauthorizedException(inner)
929 }
930 crate::operation::create_environment_blueprint::CreateEnvironmentBlueprintError::Unhandled(inner) => Error::Unhandled(inner),
931 }
932 }
933}
934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment_profile::CreateEnvironmentProfileError, R>>
935 for Error
936where
937 R: Send + Sync + std::fmt::Debug + 'static,
938{
939 fn from(
940 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_environment_profile::CreateEnvironmentProfileError, R>,
941 ) -> Self {
942 match err {
943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
946 source: err.into(),
947 }),
948 }
949 }
950}
951impl From<crate::operation::create_environment_profile::CreateEnvironmentProfileError> for Error {
952 fn from(err: crate::operation::create_environment_profile::CreateEnvironmentProfileError) -> Self {
953 match err {
954 crate::operation::create_environment_profile::CreateEnvironmentProfileError::AccessDeniedException(inner) => {
955 Error::AccessDeniedException(inner)
956 }
957 crate::operation::create_environment_profile::CreateEnvironmentProfileError::ConflictException(inner) => Error::ConflictException(inner),
958 crate::operation::create_environment_profile::CreateEnvironmentProfileError::InternalServerException(inner) => {
959 Error::InternalServerException(inner)
960 }
961 crate::operation::create_environment_profile::CreateEnvironmentProfileError::ResourceNotFoundException(inner) => {
962 Error::ResourceNotFoundException(inner)
963 }
964 crate::operation::create_environment_profile::CreateEnvironmentProfileError::ServiceQuotaExceededException(inner) => {
965 Error::ServiceQuotaExceededException(inner)
966 }
967 crate::operation::create_environment_profile::CreateEnvironmentProfileError::ThrottlingException(inner) => {
968 Error::ThrottlingException(inner)
969 }
970 crate::operation::create_environment_profile::CreateEnvironmentProfileError::ValidationException(inner) => {
971 Error::ValidationException(inner)
972 }
973 crate::operation::create_environment_profile::CreateEnvironmentProfileError::UnauthorizedException(inner) => {
974 Error::UnauthorizedException(inner)
975 }
976 crate::operation::create_environment_profile::CreateEnvironmentProfileError::Unhandled(inner) => Error::Unhandled(inner),
977 }
978 }
979}
980impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_form_type::CreateFormTypeError, R>> for Error
981where
982 R: Send + Sync + std::fmt::Debug + 'static,
983{
984 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_form_type::CreateFormTypeError, R>) -> Self {
985 match err {
986 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
987 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
988 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
989 source: err.into(),
990 }),
991 }
992 }
993}
994impl From<crate::operation::create_form_type::CreateFormTypeError> for Error {
995 fn from(err: crate::operation::create_form_type::CreateFormTypeError) -> Self {
996 match err {
997 crate::operation::create_form_type::CreateFormTypeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
998 crate::operation::create_form_type::CreateFormTypeError::ConflictException(inner) => Error::ConflictException(inner),
999 crate::operation::create_form_type::CreateFormTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
1000 crate::operation::create_form_type::CreateFormTypeError::ServiceQuotaExceededException(inner) => {
1001 Error::ServiceQuotaExceededException(inner)
1002 }
1003 crate::operation::create_form_type::CreateFormTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1004 crate::operation::create_form_type::CreateFormTypeError::ValidationException(inner) => Error::ValidationException(inner),
1005 crate::operation::create_form_type::CreateFormTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1006 crate::operation::create_form_type::CreateFormTypeError::Unhandled(inner) => Error::Unhandled(inner),
1007 }
1008 }
1009}
1010impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_glossary::CreateGlossaryError, R>> for Error
1011where
1012 R: Send + Sync + std::fmt::Debug + 'static,
1013{
1014 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_glossary::CreateGlossaryError, R>) -> Self {
1015 match err {
1016 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1017 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1018 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1019 source: err.into(),
1020 }),
1021 }
1022 }
1023}
1024impl From<crate::operation::create_glossary::CreateGlossaryError> for Error {
1025 fn from(err: crate::operation::create_glossary::CreateGlossaryError) -> Self {
1026 match err {
1027 crate::operation::create_glossary::CreateGlossaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1028 crate::operation::create_glossary::CreateGlossaryError::ConflictException(inner) => Error::ConflictException(inner),
1029 crate::operation::create_glossary::CreateGlossaryError::InternalServerException(inner) => Error::InternalServerException(inner),
1030 crate::operation::create_glossary::CreateGlossaryError::ServiceQuotaExceededException(inner) => {
1031 Error::ServiceQuotaExceededException(inner)
1032 }
1033 crate::operation::create_glossary::CreateGlossaryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1034 crate::operation::create_glossary::CreateGlossaryError::ValidationException(inner) => Error::ValidationException(inner),
1035 crate::operation::create_glossary::CreateGlossaryError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1036 crate::operation::create_glossary::CreateGlossaryError::Unhandled(inner) => Error::Unhandled(inner),
1037 }
1038 }
1039}
1040impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_glossary_term::CreateGlossaryTermError, R>> for Error
1041where
1042 R: Send + Sync + std::fmt::Debug + 'static,
1043{
1044 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_glossary_term::CreateGlossaryTermError, R>) -> Self {
1045 match err {
1046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1049 source: err.into(),
1050 }),
1051 }
1052 }
1053}
1054impl From<crate::operation::create_glossary_term::CreateGlossaryTermError> for Error {
1055 fn from(err: crate::operation::create_glossary_term::CreateGlossaryTermError) -> Self {
1056 match err {
1057 crate::operation::create_glossary_term::CreateGlossaryTermError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1058 crate::operation::create_glossary_term::CreateGlossaryTermError::ConflictException(inner) => Error::ConflictException(inner),
1059 crate::operation::create_glossary_term::CreateGlossaryTermError::InternalServerException(inner) => Error::InternalServerException(inner),
1060 crate::operation::create_glossary_term::CreateGlossaryTermError::ResourceNotFoundException(inner) => {
1061 Error::ResourceNotFoundException(inner)
1062 }
1063 crate::operation::create_glossary_term::CreateGlossaryTermError::ServiceQuotaExceededException(inner) => {
1064 Error::ServiceQuotaExceededException(inner)
1065 }
1066 crate::operation::create_glossary_term::CreateGlossaryTermError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1067 crate::operation::create_glossary_term::CreateGlossaryTermError::ValidationException(inner) => Error::ValidationException(inner),
1068 crate::operation::create_glossary_term::CreateGlossaryTermError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1069 crate::operation::create_glossary_term::CreateGlossaryTermError::Unhandled(inner) => Error::Unhandled(inner),
1070 }
1071 }
1072}
1073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_group_profile::CreateGroupProfileError, R>> for Error
1074where
1075 R: Send + Sync + std::fmt::Debug + 'static,
1076{
1077 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_group_profile::CreateGroupProfileError, R>) -> Self {
1078 match err {
1079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1082 source: err.into(),
1083 }),
1084 }
1085 }
1086}
1087impl From<crate::operation::create_group_profile::CreateGroupProfileError> for Error {
1088 fn from(err: crate::operation::create_group_profile::CreateGroupProfileError) -> Self {
1089 match err {
1090 crate::operation::create_group_profile::CreateGroupProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1091 crate::operation::create_group_profile::CreateGroupProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
1092 crate::operation::create_group_profile::CreateGroupProfileError::ResourceNotFoundException(inner) => {
1093 Error::ResourceNotFoundException(inner)
1094 }
1095 crate::operation::create_group_profile::CreateGroupProfileError::ValidationException(inner) => Error::ValidationException(inner),
1096 crate::operation::create_group_profile::CreateGroupProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1097 crate::operation::create_group_profile::CreateGroupProfileError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1098 crate::operation::create_group_profile::CreateGroupProfileError::Unhandled(inner) => Error::Unhandled(inner),
1099 }
1100 }
1101}
1102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_listing_change_set::CreateListingChangeSetError, R>>
1103 for Error
1104where
1105 R: Send + Sync + std::fmt::Debug + 'static,
1106{
1107 fn from(
1108 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_listing_change_set::CreateListingChangeSetError, R>,
1109 ) -> Self {
1110 match err {
1111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1114 source: err.into(),
1115 }),
1116 }
1117 }
1118}
1119impl From<crate::operation::create_listing_change_set::CreateListingChangeSetError> for Error {
1120 fn from(err: crate::operation::create_listing_change_set::CreateListingChangeSetError) -> Self {
1121 match err {
1122 crate::operation::create_listing_change_set::CreateListingChangeSetError::AccessDeniedException(inner) => {
1123 Error::AccessDeniedException(inner)
1124 }
1125 crate::operation::create_listing_change_set::CreateListingChangeSetError::ConflictException(inner) => Error::ConflictException(inner),
1126 crate::operation::create_listing_change_set::CreateListingChangeSetError::InternalServerException(inner) => {
1127 Error::InternalServerException(inner)
1128 }
1129 crate::operation::create_listing_change_set::CreateListingChangeSetError::ResourceNotFoundException(inner) => {
1130 Error::ResourceNotFoundException(inner)
1131 }
1132 crate::operation::create_listing_change_set::CreateListingChangeSetError::ServiceQuotaExceededException(inner) => {
1133 Error::ServiceQuotaExceededException(inner)
1134 }
1135 crate::operation::create_listing_change_set::CreateListingChangeSetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1136 crate::operation::create_listing_change_set::CreateListingChangeSetError::ValidationException(inner) => Error::ValidationException(inner),
1137 crate::operation::create_listing_change_set::CreateListingChangeSetError::UnauthorizedException(inner) => {
1138 Error::UnauthorizedException(inner)
1139 }
1140 crate::operation::create_listing_change_set::CreateListingChangeSetError::Unhandled(inner) => Error::Unhandled(inner),
1141 }
1142 }
1143}
1144impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notebook::CreateNotebookError, R>> for Error
1145where
1146 R: Send + Sync + std::fmt::Debug + 'static,
1147{
1148 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_notebook::CreateNotebookError, R>) -> Self {
1149 match err {
1150 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1151 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1152 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1153 source: err.into(),
1154 }),
1155 }
1156 }
1157}
1158impl From<crate::operation::create_notebook::CreateNotebookError> for Error {
1159 fn from(err: crate::operation::create_notebook::CreateNotebookError) -> Self {
1160 match err {
1161 crate::operation::create_notebook::CreateNotebookError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1162 crate::operation::create_notebook::CreateNotebookError::ConflictException(inner) => Error::ConflictException(inner),
1163 crate::operation::create_notebook::CreateNotebookError::InternalServerException(inner) => Error::InternalServerException(inner),
1164 crate::operation::create_notebook::CreateNotebookError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1165 crate::operation::create_notebook::CreateNotebookError::ServiceQuotaExceededException(inner) => {
1166 Error::ServiceQuotaExceededException(inner)
1167 }
1168 crate::operation::create_notebook::CreateNotebookError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1169 crate::operation::create_notebook::CreateNotebookError::ValidationException(inner) => Error::ValidationException(inner),
1170 crate::operation::create_notebook::CreateNotebookError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1171 crate::operation::create_notebook::CreateNotebookError::Unhandled(inner) => Error::Unhandled(inner),
1172 }
1173 }
1174}
1175impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
1176where
1177 R: Send + Sync + std::fmt::Debug + 'static,
1178{
1179 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
1180 match err {
1181 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1182 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1183 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1184 source: err.into(),
1185 }),
1186 }
1187 }
1188}
1189impl From<crate::operation::create_project::CreateProjectError> for Error {
1190 fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
1191 match err {
1192 crate::operation::create_project::CreateProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1193 crate::operation::create_project::CreateProjectError::ConflictException(inner) => Error::ConflictException(inner),
1194 crate::operation::create_project::CreateProjectError::InternalServerException(inner) => Error::InternalServerException(inner),
1195 crate::operation::create_project::CreateProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1196 crate::operation::create_project::CreateProjectError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1197 crate::operation::create_project::CreateProjectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1198 crate::operation::create_project::CreateProjectError::ValidationException(inner) => Error::ValidationException(inner),
1199 crate::operation::create_project::CreateProjectError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1200 crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
1201 }
1202 }
1203}
1204impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project_membership::CreateProjectMembershipError, R>>
1205 for Error
1206where
1207 R: Send + Sync + std::fmt::Debug + 'static,
1208{
1209 fn from(
1210 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project_membership::CreateProjectMembershipError, R>,
1211 ) -> Self {
1212 match err {
1213 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1214 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1215 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1216 source: err.into(),
1217 }),
1218 }
1219 }
1220}
1221impl From<crate::operation::create_project_membership::CreateProjectMembershipError> for Error {
1222 fn from(err: crate::operation::create_project_membership::CreateProjectMembershipError) -> Self {
1223 match err {
1224 crate::operation::create_project_membership::CreateProjectMembershipError::AccessDeniedException(inner) => {
1225 Error::AccessDeniedException(inner)
1226 }
1227 crate::operation::create_project_membership::CreateProjectMembershipError::InternalServerException(inner) => {
1228 Error::InternalServerException(inner)
1229 }
1230 crate::operation::create_project_membership::CreateProjectMembershipError::ResourceNotFoundException(inner) => {
1231 Error::ResourceNotFoundException(inner)
1232 }
1233 crate::operation::create_project_membership::CreateProjectMembershipError::ValidationException(inner) => {
1234 Error::ValidationException(inner)
1235 }
1236 crate::operation::create_project_membership::CreateProjectMembershipError::ThrottlingException(inner) => {
1237 Error::ThrottlingException(inner)
1238 }
1239 crate::operation::create_project_membership::CreateProjectMembershipError::UnauthorizedException(inner) => {
1240 Error::UnauthorizedException(inner)
1241 }
1242 crate::operation::create_project_membership::CreateProjectMembershipError::Unhandled(inner) => Error::Unhandled(inner),
1243 }
1244 }
1245}
1246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project_profile::CreateProjectProfileError, R>> for Error
1247where
1248 R: Send + Sync + std::fmt::Debug + 'static,
1249{
1250 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project_profile::CreateProjectProfileError, R>) -> Self {
1251 match err {
1252 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1253 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1254 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1255 source: err.into(),
1256 }),
1257 }
1258 }
1259}
1260impl From<crate::operation::create_project_profile::CreateProjectProfileError> for Error {
1261 fn from(err: crate::operation::create_project_profile::CreateProjectProfileError) -> Self {
1262 match err {
1263 crate::operation::create_project_profile::CreateProjectProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1264 crate::operation::create_project_profile::CreateProjectProfileError::ConflictException(inner) => Error::ConflictException(inner),
1265 crate::operation::create_project_profile::CreateProjectProfileError::InternalServerException(inner) => {
1266 Error::InternalServerException(inner)
1267 }
1268 crate::operation::create_project_profile::CreateProjectProfileError::ResourceNotFoundException(inner) => {
1269 Error::ResourceNotFoundException(inner)
1270 }
1271 crate::operation::create_project_profile::CreateProjectProfileError::ServiceQuotaExceededException(inner) => {
1272 Error::ServiceQuotaExceededException(inner)
1273 }
1274 crate::operation::create_project_profile::CreateProjectProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1275 crate::operation::create_project_profile::CreateProjectProfileError::ValidationException(inner) => Error::ValidationException(inner),
1276 crate::operation::create_project_profile::CreateProjectProfileError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1277 crate::operation::create_project_profile::CreateProjectProfileError::Unhandled(inner) => Error::Unhandled(inner),
1278 }
1279 }
1280}
1281impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule::CreateRuleError, R>> for Error
1282where
1283 R: Send + Sync + std::fmt::Debug + 'static,
1284{
1285 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule::CreateRuleError, R>) -> Self {
1286 match err {
1287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1290 source: err.into(),
1291 }),
1292 }
1293 }
1294}
1295impl From<crate::operation::create_rule::CreateRuleError> for Error {
1296 fn from(err: crate::operation::create_rule::CreateRuleError) -> Self {
1297 match err {
1298 crate::operation::create_rule::CreateRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1299 crate::operation::create_rule::CreateRuleError::ConflictException(inner) => Error::ConflictException(inner),
1300 crate::operation::create_rule::CreateRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
1301 crate::operation::create_rule::CreateRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1302 crate::operation::create_rule::CreateRuleError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1303 crate::operation::create_rule::CreateRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1304 crate::operation::create_rule::CreateRuleError::ValidationException(inner) => Error::ValidationException(inner),
1305 crate::operation::create_rule::CreateRuleError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1306 crate::operation::create_rule::CreateRuleError::Unhandled(inner) => Error::Unhandled(inner),
1307 }
1308 }
1309}
1310impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subscription_grant::CreateSubscriptionGrantError, R>>
1311 for Error
1312where
1313 R: Send + Sync + std::fmt::Debug + 'static,
1314{
1315 fn from(
1316 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subscription_grant::CreateSubscriptionGrantError, R>,
1317 ) -> Self {
1318 match err {
1319 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1320 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1321 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1322 source: err.into(),
1323 }),
1324 }
1325 }
1326}
1327impl From<crate::operation::create_subscription_grant::CreateSubscriptionGrantError> for Error {
1328 fn from(err: crate::operation::create_subscription_grant::CreateSubscriptionGrantError) -> Self {
1329 match err {
1330 crate::operation::create_subscription_grant::CreateSubscriptionGrantError::AccessDeniedException(inner) => {
1331 Error::AccessDeniedException(inner)
1332 }
1333 crate::operation::create_subscription_grant::CreateSubscriptionGrantError::ConflictException(inner) => Error::ConflictException(inner),
1334 crate::operation::create_subscription_grant::CreateSubscriptionGrantError::InternalServerException(inner) => {
1335 Error::InternalServerException(inner)
1336 }
1337 crate::operation::create_subscription_grant::CreateSubscriptionGrantError::ResourceNotFoundException(inner) => {
1338 Error::ResourceNotFoundException(inner)
1339 }
1340 crate::operation::create_subscription_grant::CreateSubscriptionGrantError::ThrottlingException(inner) => {
1341 Error::ThrottlingException(inner)
1342 }
1343 crate::operation::create_subscription_grant::CreateSubscriptionGrantError::ValidationException(inner) => {
1344 Error::ValidationException(inner)
1345 }
1346 crate::operation::create_subscription_grant::CreateSubscriptionGrantError::UnauthorizedException(inner) => {
1347 Error::UnauthorizedException(inner)
1348 }
1349 crate::operation::create_subscription_grant::CreateSubscriptionGrantError::Unhandled(inner) => Error::Unhandled(inner),
1350 }
1351 }
1352}
1353impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subscription_request::CreateSubscriptionRequestError, R>>
1354 for Error
1355where
1356 R: Send + Sync + std::fmt::Debug + 'static,
1357{
1358 fn from(
1359 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subscription_request::CreateSubscriptionRequestError, R>,
1360 ) -> Self {
1361 match err {
1362 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1363 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1364 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1365 source: err.into(),
1366 }),
1367 }
1368 }
1369}
1370impl From<crate::operation::create_subscription_request::CreateSubscriptionRequestError> for Error {
1371 fn from(err: crate::operation::create_subscription_request::CreateSubscriptionRequestError) -> Self {
1372 match err {
1373 crate::operation::create_subscription_request::CreateSubscriptionRequestError::AccessDeniedException(inner) => {
1374 Error::AccessDeniedException(inner)
1375 }
1376 crate::operation::create_subscription_request::CreateSubscriptionRequestError::ConflictException(inner) => {
1377 Error::ConflictException(inner)
1378 }
1379 crate::operation::create_subscription_request::CreateSubscriptionRequestError::InternalServerException(inner) => {
1380 Error::InternalServerException(inner)
1381 }
1382 crate::operation::create_subscription_request::CreateSubscriptionRequestError::ResourceNotFoundException(inner) => {
1383 Error::ResourceNotFoundException(inner)
1384 }
1385 crate::operation::create_subscription_request::CreateSubscriptionRequestError::ServiceQuotaExceededException(inner) => {
1386 Error::ServiceQuotaExceededException(inner)
1387 }
1388 crate::operation::create_subscription_request::CreateSubscriptionRequestError::ThrottlingException(inner) => {
1389 Error::ThrottlingException(inner)
1390 }
1391 crate::operation::create_subscription_request::CreateSubscriptionRequestError::ValidationException(inner) => {
1392 Error::ValidationException(inner)
1393 }
1394 crate::operation::create_subscription_request::CreateSubscriptionRequestError::UnauthorizedException(inner) => {
1395 Error::UnauthorizedException(inner)
1396 }
1397 crate::operation::create_subscription_request::CreateSubscriptionRequestError::Unhandled(inner) => Error::Unhandled(inner),
1398 }
1399 }
1400}
1401impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subscription_target::CreateSubscriptionTargetError, R>>
1402 for Error
1403where
1404 R: Send + Sync + std::fmt::Debug + 'static,
1405{
1406 fn from(
1407 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subscription_target::CreateSubscriptionTargetError, R>,
1408 ) -> Self {
1409 match err {
1410 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1411 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1412 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1413 source: err.into(),
1414 }),
1415 }
1416 }
1417}
1418impl From<crate::operation::create_subscription_target::CreateSubscriptionTargetError> for Error {
1419 fn from(err: crate::operation::create_subscription_target::CreateSubscriptionTargetError) -> Self {
1420 match err {
1421 crate::operation::create_subscription_target::CreateSubscriptionTargetError::AccessDeniedException(inner) => {
1422 Error::AccessDeniedException(inner)
1423 }
1424 crate::operation::create_subscription_target::CreateSubscriptionTargetError::ConflictException(inner) => Error::ConflictException(inner),
1425 crate::operation::create_subscription_target::CreateSubscriptionTargetError::InternalServerException(inner) => {
1426 Error::InternalServerException(inner)
1427 }
1428 crate::operation::create_subscription_target::CreateSubscriptionTargetError::ResourceNotFoundException(inner) => {
1429 Error::ResourceNotFoundException(inner)
1430 }
1431 crate::operation::create_subscription_target::CreateSubscriptionTargetError::ThrottlingException(inner) => {
1432 Error::ThrottlingException(inner)
1433 }
1434 crate::operation::create_subscription_target::CreateSubscriptionTargetError::ValidationException(inner) => {
1435 Error::ValidationException(inner)
1436 }
1437 crate::operation::create_subscription_target::CreateSubscriptionTargetError::UnauthorizedException(inner) => {
1438 Error::UnauthorizedException(inner)
1439 }
1440 crate::operation::create_subscription_target::CreateSubscriptionTargetError::Unhandled(inner) => Error::Unhandled(inner),
1441 }
1442 }
1443}
1444impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>> for Error
1445where
1446 R: Send + Sync + std::fmt::Debug + 'static,
1447{
1448 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user_profile::CreateUserProfileError, R>) -> Self {
1449 match err {
1450 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1451 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1452 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1453 source: err.into(),
1454 }),
1455 }
1456 }
1457}
1458impl From<crate::operation::create_user_profile::CreateUserProfileError> for Error {
1459 fn from(err: crate::operation::create_user_profile::CreateUserProfileError) -> Self {
1460 match err {
1461 crate::operation::create_user_profile::CreateUserProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1462 crate::operation::create_user_profile::CreateUserProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
1463 crate::operation::create_user_profile::CreateUserProfileError::ResourceNotFoundException(inner) => {
1464 Error::ResourceNotFoundException(inner)
1465 }
1466 crate::operation::create_user_profile::CreateUserProfileError::ValidationException(inner) => Error::ValidationException(inner),
1467 crate::operation::create_user_profile::CreateUserProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1468 crate::operation::create_user_profile::CreateUserProfileError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1469 crate::operation::create_user_profile::CreateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
1470 }
1471 }
1472}
1473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_account_pool::DeleteAccountPoolError, 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::delete_account_pool::DeleteAccountPoolError, 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::delete_account_pool::DeleteAccountPoolError> for Error {
1488 fn from(err: crate::operation::delete_account_pool::DeleteAccountPoolError) -> Self {
1489 match err {
1490 crate::operation::delete_account_pool::DeleteAccountPoolError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1491 crate::operation::delete_account_pool::DeleteAccountPoolError::InternalServerException(inner) => Error::InternalServerException(inner),
1492 crate::operation::delete_account_pool::DeleteAccountPoolError::ResourceNotFoundException(inner) => {
1493 Error::ResourceNotFoundException(inner)
1494 }
1495 crate::operation::delete_account_pool::DeleteAccountPoolError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1496 crate::operation::delete_account_pool::DeleteAccountPoolError::ValidationException(inner) => Error::ValidationException(inner),
1497 crate::operation::delete_account_pool::DeleteAccountPoolError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1498 crate::operation::delete_account_pool::DeleteAccountPoolError::Unhandled(inner) => Error::Unhandled(inner),
1499 }
1500 }
1501}
1502impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_asset::DeleteAssetError, R>> for Error
1503where
1504 R: Send + Sync + std::fmt::Debug + 'static,
1505{
1506 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_asset::DeleteAssetError, R>) -> Self {
1507 match err {
1508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1511 source: err.into(),
1512 }),
1513 }
1514 }
1515}
1516impl From<crate::operation::delete_asset::DeleteAssetError> for Error {
1517 fn from(err: crate::operation::delete_asset::DeleteAssetError) -> Self {
1518 match err {
1519 crate::operation::delete_asset::DeleteAssetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1520 crate::operation::delete_asset::DeleteAssetError::ConflictException(inner) => Error::ConflictException(inner),
1521 crate::operation::delete_asset::DeleteAssetError::InternalServerException(inner) => Error::InternalServerException(inner),
1522 crate::operation::delete_asset::DeleteAssetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1523 crate::operation::delete_asset::DeleteAssetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1524 crate::operation::delete_asset::DeleteAssetError::ValidationException(inner) => Error::ValidationException(inner),
1525 crate::operation::delete_asset::DeleteAssetError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1526 crate::operation::delete_asset::DeleteAssetError::Unhandled(inner) => Error::Unhandled(inner),
1527 }
1528 }
1529}
1530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_asset_filter::DeleteAssetFilterError, R>> for Error
1531where
1532 R: Send + Sync + std::fmt::Debug + 'static,
1533{
1534 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_asset_filter::DeleteAssetFilterError, R>) -> Self {
1535 match err {
1536 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1537 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1538 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1539 source: err.into(),
1540 }),
1541 }
1542 }
1543}
1544impl From<crate::operation::delete_asset_filter::DeleteAssetFilterError> for Error {
1545 fn from(err: crate::operation::delete_asset_filter::DeleteAssetFilterError) -> Self {
1546 match err {
1547 crate::operation::delete_asset_filter::DeleteAssetFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1548 crate::operation::delete_asset_filter::DeleteAssetFilterError::ConflictException(inner) => Error::ConflictException(inner),
1549 crate::operation::delete_asset_filter::DeleteAssetFilterError::InternalServerException(inner) => Error::InternalServerException(inner),
1550 crate::operation::delete_asset_filter::DeleteAssetFilterError::ResourceNotFoundException(inner) => {
1551 Error::ResourceNotFoundException(inner)
1552 }
1553 crate::operation::delete_asset_filter::DeleteAssetFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1554 crate::operation::delete_asset_filter::DeleteAssetFilterError::ValidationException(inner) => Error::ValidationException(inner),
1555 crate::operation::delete_asset_filter::DeleteAssetFilterError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1556 crate::operation::delete_asset_filter::DeleteAssetFilterError::Unhandled(inner) => Error::Unhandled(inner),
1557 }
1558 }
1559}
1560impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_asset_type::DeleteAssetTypeError, R>> for Error
1561where
1562 R: Send + Sync + std::fmt::Debug + 'static,
1563{
1564 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_asset_type::DeleteAssetTypeError, R>) -> Self {
1565 match err {
1566 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1567 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1568 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1569 source: err.into(),
1570 }),
1571 }
1572 }
1573}
1574impl From<crate::operation::delete_asset_type::DeleteAssetTypeError> for Error {
1575 fn from(err: crate::operation::delete_asset_type::DeleteAssetTypeError) -> Self {
1576 match err {
1577 crate::operation::delete_asset_type::DeleteAssetTypeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1578 crate::operation::delete_asset_type::DeleteAssetTypeError::ConflictException(inner) => Error::ConflictException(inner),
1579 crate::operation::delete_asset_type::DeleteAssetTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
1580 crate::operation::delete_asset_type::DeleteAssetTypeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1581 crate::operation::delete_asset_type::DeleteAssetTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1582 crate::operation::delete_asset_type::DeleteAssetTypeError::ValidationException(inner) => Error::ValidationException(inner),
1583 crate::operation::delete_asset_type::DeleteAssetTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1584 crate::operation::delete_asset_type::DeleteAssetTypeError::Unhandled(inner) => Error::Unhandled(inner),
1585 }
1586 }
1587}
1588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>> for Error
1589where
1590 R: Send + Sync + std::fmt::Debug + 'static,
1591{
1592 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connection::DeleteConnectionError, R>) -> Self {
1593 match err {
1594 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1595 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1596 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1597 source: err.into(),
1598 }),
1599 }
1600 }
1601}
1602impl From<crate::operation::delete_connection::DeleteConnectionError> for Error {
1603 fn from(err: crate::operation::delete_connection::DeleteConnectionError) -> Self {
1604 match err {
1605 crate::operation::delete_connection::DeleteConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1606 crate::operation::delete_connection::DeleteConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
1607 crate::operation::delete_connection::DeleteConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1608 crate::operation::delete_connection::DeleteConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1609 crate::operation::delete_connection::DeleteConnectionError::ValidationException(inner) => Error::ValidationException(inner),
1610 crate::operation::delete_connection::DeleteConnectionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1611 crate::operation::delete_connection::DeleteConnectionError::Unhandled(inner) => Error::Unhandled(inner),
1612 }
1613 }
1614}
1615impl<R>
1616 From<
1617 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_export_configuration::DeleteDataExportConfigurationError, R>,
1618 > for Error
1619where
1620 R: Send + Sync + std::fmt::Debug + 'static,
1621{
1622 fn from(
1623 err: ::aws_smithy_runtime_api::client::result::SdkError<
1624 crate::operation::delete_data_export_configuration::DeleteDataExportConfigurationError,
1625 R,
1626 >,
1627 ) -> Self {
1628 match err {
1629 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1630 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1631 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1632 source: err.into(),
1633 }),
1634 }
1635 }
1636}
1637impl From<crate::operation::delete_data_export_configuration::DeleteDataExportConfigurationError> for Error {
1638 fn from(err: crate::operation::delete_data_export_configuration::DeleteDataExportConfigurationError) -> Self {
1639 match err {
1640 crate::operation::delete_data_export_configuration::DeleteDataExportConfigurationError::AccessDeniedException(inner) => {
1641 Error::AccessDeniedException(inner)
1642 }
1643 crate::operation::delete_data_export_configuration::DeleteDataExportConfigurationError::ConflictException(inner) => {
1644 Error::ConflictException(inner)
1645 }
1646 crate::operation::delete_data_export_configuration::DeleteDataExportConfigurationError::InternalServerException(inner) => {
1647 Error::InternalServerException(inner)
1648 }
1649 crate::operation::delete_data_export_configuration::DeleteDataExportConfigurationError::ResourceNotFoundException(inner) => {
1650 Error::ResourceNotFoundException(inner)
1651 }
1652 crate::operation::delete_data_export_configuration::DeleteDataExportConfigurationError::ThrottlingException(inner) => {
1653 Error::ThrottlingException(inner)
1654 }
1655 crate::operation::delete_data_export_configuration::DeleteDataExportConfigurationError::ValidationException(inner) => {
1656 Error::ValidationException(inner)
1657 }
1658 crate::operation::delete_data_export_configuration::DeleteDataExportConfigurationError::UnauthorizedException(inner) => {
1659 Error::UnauthorizedException(inner)
1660 }
1661 crate::operation::delete_data_export_configuration::DeleteDataExportConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1662 }
1663 }
1664}
1665impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_product::DeleteDataProductError, R>> for Error
1666where
1667 R: Send + Sync + std::fmt::Debug + 'static,
1668{
1669 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_product::DeleteDataProductError, R>) -> Self {
1670 match err {
1671 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1672 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1673 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1674 source: err.into(),
1675 }),
1676 }
1677 }
1678}
1679impl From<crate::operation::delete_data_product::DeleteDataProductError> for Error {
1680 fn from(err: crate::operation::delete_data_product::DeleteDataProductError) -> Self {
1681 match err {
1682 crate::operation::delete_data_product::DeleteDataProductError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1683 crate::operation::delete_data_product::DeleteDataProductError::ConflictException(inner) => Error::ConflictException(inner),
1684 crate::operation::delete_data_product::DeleteDataProductError::InternalServerException(inner) => Error::InternalServerException(inner),
1685 crate::operation::delete_data_product::DeleteDataProductError::ResourceNotFoundException(inner) => {
1686 Error::ResourceNotFoundException(inner)
1687 }
1688 crate::operation::delete_data_product::DeleteDataProductError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1689 crate::operation::delete_data_product::DeleteDataProductError::ValidationException(inner) => Error::ValidationException(inner),
1690 crate::operation::delete_data_product::DeleteDataProductError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1691 crate::operation::delete_data_product::DeleteDataProductError::Unhandled(inner) => Error::Unhandled(inner),
1692 }
1693 }
1694}
1695impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_source::DeleteDataSourceError, R>> for Error
1696where
1697 R: Send + Sync + std::fmt::Debug + 'static,
1698{
1699 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_source::DeleteDataSourceError, R>) -> Self {
1700 match err {
1701 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1702 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1703 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1704 source: err.into(),
1705 }),
1706 }
1707 }
1708}
1709impl From<crate::operation::delete_data_source::DeleteDataSourceError> for Error {
1710 fn from(err: crate::operation::delete_data_source::DeleteDataSourceError) -> Self {
1711 match err {
1712 crate::operation::delete_data_source::DeleteDataSourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1713 crate::operation::delete_data_source::DeleteDataSourceError::ConflictException(inner) => Error::ConflictException(inner),
1714 crate::operation::delete_data_source::DeleteDataSourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1715 crate::operation::delete_data_source::DeleteDataSourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1716 crate::operation::delete_data_source::DeleteDataSourceError::ServiceQuotaExceededException(inner) => {
1717 Error::ServiceQuotaExceededException(inner)
1718 }
1719 crate::operation::delete_data_source::DeleteDataSourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1720 crate::operation::delete_data_source::DeleteDataSourceError::ValidationException(inner) => Error::ValidationException(inner),
1721 crate::operation::delete_data_source::DeleteDataSourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1722 crate::operation::delete_data_source::DeleteDataSourceError::Unhandled(inner) => Error::Unhandled(inner),
1723 }
1724 }
1725}
1726impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>> for Error
1727where
1728 R: Send + Sync + std::fmt::Debug + 'static,
1729{
1730 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain::DeleteDomainError, R>) -> Self {
1731 match err {
1732 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1733 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1734 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1735 source: err.into(),
1736 }),
1737 }
1738 }
1739}
1740impl From<crate::operation::delete_domain::DeleteDomainError> for Error {
1741 fn from(err: crate::operation::delete_domain::DeleteDomainError) -> Self {
1742 match err {
1743 crate::operation::delete_domain::DeleteDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1744 crate::operation::delete_domain::DeleteDomainError::ConflictException(inner) => Error::ConflictException(inner),
1745 crate::operation::delete_domain::DeleteDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
1746 crate::operation::delete_domain::DeleteDomainError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1747 crate::operation::delete_domain::DeleteDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1748 crate::operation::delete_domain::DeleteDomainError::ValidationException(inner) => Error::ValidationException(inner),
1749 crate::operation::delete_domain::DeleteDomainError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1750 crate::operation::delete_domain::DeleteDomainError::Unhandled(inner) => Error::Unhandled(inner),
1751 }
1752 }
1753}
1754impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain_unit::DeleteDomainUnitError, R>> for Error
1755where
1756 R: Send + Sync + std::fmt::Debug + 'static,
1757{
1758 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_domain_unit::DeleteDomainUnitError, R>) -> Self {
1759 match err {
1760 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1761 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1762 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1763 source: err.into(),
1764 }),
1765 }
1766 }
1767}
1768impl From<crate::operation::delete_domain_unit::DeleteDomainUnitError> for Error {
1769 fn from(err: crate::operation::delete_domain_unit::DeleteDomainUnitError) -> Self {
1770 match err {
1771 crate::operation::delete_domain_unit::DeleteDomainUnitError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1772 crate::operation::delete_domain_unit::DeleteDomainUnitError::ConflictException(inner) => Error::ConflictException(inner),
1773 crate::operation::delete_domain_unit::DeleteDomainUnitError::InternalServerException(inner) => Error::InternalServerException(inner),
1774 crate::operation::delete_domain_unit::DeleteDomainUnitError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1775 crate::operation::delete_domain_unit::DeleteDomainUnitError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1776 crate::operation::delete_domain_unit::DeleteDomainUnitError::ValidationException(inner) => Error::ValidationException(inner),
1777 crate::operation::delete_domain_unit::DeleteDomainUnitError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1778 crate::operation::delete_domain_unit::DeleteDomainUnitError::Unhandled(inner) => Error::Unhandled(inner),
1779 }
1780 }
1781}
1782impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_environment::DeleteEnvironmentError, R>> for Error
1783where
1784 R: Send + Sync + std::fmt::Debug + 'static,
1785{
1786 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_environment::DeleteEnvironmentError, R>) -> Self {
1787 match err {
1788 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1789 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1790 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1791 source: err.into(),
1792 }),
1793 }
1794 }
1795}
1796impl From<crate::operation::delete_environment::DeleteEnvironmentError> for Error {
1797 fn from(err: crate::operation::delete_environment::DeleteEnvironmentError) -> Self {
1798 match err {
1799 crate::operation::delete_environment::DeleteEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1800 crate::operation::delete_environment::DeleteEnvironmentError::InternalServerException(inner) => Error::InternalServerException(inner),
1801 crate::operation::delete_environment::DeleteEnvironmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1802 crate::operation::delete_environment::DeleteEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1803 crate::operation::delete_environment::DeleteEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
1804 crate::operation::delete_environment::DeleteEnvironmentError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
1805 crate::operation::delete_environment::DeleteEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
1806 }
1807 }
1808}
1809impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_environment_action::DeleteEnvironmentActionError, R>>
1810 for Error
1811where
1812 R: Send + Sync + std::fmt::Debug + 'static,
1813{
1814 fn from(
1815 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_environment_action::DeleteEnvironmentActionError, R>,
1816 ) -> Self {
1817 match err {
1818 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1819 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1820 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1821 source: err.into(),
1822 }),
1823 }
1824 }
1825}
1826impl From<crate::operation::delete_environment_action::DeleteEnvironmentActionError> for Error {
1827 fn from(err: crate::operation::delete_environment_action::DeleteEnvironmentActionError) -> Self {
1828 match err {
1829 crate::operation::delete_environment_action::DeleteEnvironmentActionError::AccessDeniedException(inner) => {
1830 Error::AccessDeniedException(inner)
1831 }
1832 crate::operation::delete_environment_action::DeleteEnvironmentActionError::ConflictException(inner) => Error::ConflictException(inner),
1833 crate::operation::delete_environment_action::DeleteEnvironmentActionError::InternalServerException(inner) => {
1834 Error::InternalServerException(inner)
1835 }
1836 crate::operation::delete_environment_action::DeleteEnvironmentActionError::ResourceNotFoundException(inner) => {
1837 Error::ResourceNotFoundException(inner)
1838 }
1839 crate::operation::delete_environment_action::DeleteEnvironmentActionError::ThrottlingException(inner) => {
1840 Error::ThrottlingException(inner)
1841 }
1842 crate::operation::delete_environment_action::DeleteEnvironmentActionError::ValidationException(inner) => {
1843 Error::ValidationException(inner)
1844 }
1845 crate::operation::delete_environment_action::DeleteEnvironmentActionError::UnauthorizedException(inner) => {
1846 Error::UnauthorizedException(inner)
1847 }
1848 crate::operation::delete_environment_action::DeleteEnvironmentActionError::Unhandled(inner) => Error::Unhandled(inner),
1849 }
1850 }
1851}
1852impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_environment_blueprint::DeleteEnvironmentBlueprintError, R>>
1853 for Error
1854where
1855 R: Send + Sync + std::fmt::Debug + 'static,
1856{
1857 fn from(
1858 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_environment_blueprint::DeleteEnvironmentBlueprintError, R>,
1859 ) -> Self {
1860 match err {
1861 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1862 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1863 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1864 source: err.into(),
1865 }),
1866 }
1867 }
1868}
1869impl From<crate::operation::delete_environment_blueprint::DeleteEnvironmentBlueprintError> for Error {
1870 fn from(err: crate::operation::delete_environment_blueprint::DeleteEnvironmentBlueprintError) -> Self {
1871 match err {
1872 crate::operation::delete_environment_blueprint::DeleteEnvironmentBlueprintError::AccessDeniedException(inner) => {
1873 Error::AccessDeniedException(inner)
1874 }
1875 crate::operation::delete_environment_blueprint::DeleteEnvironmentBlueprintError::ConflictException(inner) => {
1876 Error::ConflictException(inner)
1877 }
1878 crate::operation::delete_environment_blueprint::DeleteEnvironmentBlueprintError::InternalServerException(inner) => {
1879 Error::InternalServerException(inner)
1880 }
1881 crate::operation::delete_environment_blueprint::DeleteEnvironmentBlueprintError::ResourceNotFoundException(inner) => {
1882 Error::ResourceNotFoundException(inner)
1883 }
1884 crate::operation::delete_environment_blueprint::DeleteEnvironmentBlueprintError::ThrottlingException(inner) => {
1885 Error::ThrottlingException(inner)
1886 }
1887 crate::operation::delete_environment_blueprint::DeleteEnvironmentBlueprintError::ValidationException(inner) => {
1888 Error::ValidationException(inner)
1889 }
1890 crate::operation::delete_environment_blueprint::DeleteEnvironmentBlueprintError::UnauthorizedException(inner) => {
1891 Error::UnauthorizedException(inner)
1892 }
1893 crate::operation::delete_environment_blueprint::DeleteEnvironmentBlueprintError::Unhandled(inner) => Error::Unhandled(inner),
1894 }
1895 }
1896}
1897impl<R>
1898 From<
1899 ::aws_smithy_runtime_api::client::result::SdkError<
1900 crate::operation::delete_environment_blueprint_configuration::DeleteEnvironmentBlueprintConfigurationError,
1901 R,
1902 >,
1903 > for Error
1904where
1905 R: Send + Sync + std::fmt::Debug + 'static,
1906{
1907 fn from(
1908 err: ::aws_smithy_runtime_api::client::result::SdkError<
1909 crate::operation::delete_environment_blueprint_configuration::DeleteEnvironmentBlueprintConfigurationError,
1910 R,
1911 >,
1912 ) -> 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::delete_environment_blueprint_configuration::DeleteEnvironmentBlueprintConfigurationError> for Error {
1923 fn from(err: crate::operation::delete_environment_blueprint_configuration::DeleteEnvironmentBlueprintConfigurationError) -> Self {
1924 match err {
1925 crate::operation::delete_environment_blueprint_configuration::DeleteEnvironmentBlueprintConfigurationError::AccessDeniedException(
1926 inner,
1927 ) => Error::AccessDeniedException(inner),
1928 crate::operation::delete_environment_blueprint_configuration::DeleteEnvironmentBlueprintConfigurationError::InternalServerException(
1929 inner,
1930 ) => Error::InternalServerException(inner),
1931 crate::operation::delete_environment_blueprint_configuration::DeleteEnvironmentBlueprintConfigurationError::ValidationException(
1932 inner,
1933 ) => Error::ValidationException(inner),
1934 crate::operation::delete_environment_blueprint_configuration::DeleteEnvironmentBlueprintConfigurationError::ThrottlingException(
1935 inner,
1936 ) => Error::ThrottlingException(inner),
1937 crate::operation::delete_environment_blueprint_configuration::DeleteEnvironmentBlueprintConfigurationError::UnauthorizedException(
1938 inner,
1939 ) => Error::UnauthorizedException(inner),
1940 crate::operation::delete_environment_blueprint_configuration::DeleteEnvironmentBlueprintConfigurationError::Unhandled(inner) => {
1941 Error::Unhandled(inner)
1942 }
1943 }
1944 }
1945}
1946impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_environment_profile::DeleteEnvironmentProfileError, R>>
1947 for Error
1948where
1949 R: Send + Sync + std::fmt::Debug + 'static,
1950{
1951 fn from(
1952 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_environment_profile::DeleteEnvironmentProfileError, R>,
1953 ) -> Self {
1954 match err {
1955 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1956 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1957 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1958 source: err.into(),
1959 }),
1960 }
1961 }
1962}
1963impl From<crate::operation::delete_environment_profile::DeleteEnvironmentProfileError> for Error {
1964 fn from(err: crate::operation::delete_environment_profile::DeleteEnvironmentProfileError) -> Self {
1965 match err {
1966 crate::operation::delete_environment_profile::DeleteEnvironmentProfileError::AccessDeniedException(inner) => {
1967 Error::AccessDeniedException(inner)
1968 }
1969 crate::operation::delete_environment_profile::DeleteEnvironmentProfileError::InternalServerException(inner) => {
1970 Error::InternalServerException(inner)
1971 }
1972 crate::operation::delete_environment_profile::DeleteEnvironmentProfileError::ResourceNotFoundException(inner) => {
1973 Error::ResourceNotFoundException(inner)
1974 }
1975 crate::operation::delete_environment_profile::DeleteEnvironmentProfileError::ThrottlingException(inner) => {
1976 Error::ThrottlingException(inner)
1977 }
1978 crate::operation::delete_environment_profile::DeleteEnvironmentProfileError::ValidationException(inner) => {
1979 Error::ValidationException(inner)
1980 }
1981 crate::operation::delete_environment_profile::DeleteEnvironmentProfileError::UnauthorizedException(inner) => {
1982 Error::UnauthorizedException(inner)
1983 }
1984 crate::operation::delete_environment_profile::DeleteEnvironmentProfileError::Unhandled(inner) => Error::Unhandled(inner),
1985 }
1986 }
1987}
1988impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_form_type::DeleteFormTypeError, R>> for Error
1989where
1990 R: Send + Sync + std::fmt::Debug + 'static,
1991{
1992 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_form_type::DeleteFormTypeError, R>) -> Self {
1993 match err {
1994 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1995 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1996 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1997 source: err.into(),
1998 }),
1999 }
2000 }
2001}
2002impl From<crate::operation::delete_form_type::DeleteFormTypeError> for Error {
2003 fn from(err: crate::operation::delete_form_type::DeleteFormTypeError) -> Self {
2004 match err {
2005 crate::operation::delete_form_type::DeleteFormTypeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2006 crate::operation::delete_form_type::DeleteFormTypeError::ConflictException(inner) => Error::ConflictException(inner),
2007 crate::operation::delete_form_type::DeleteFormTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
2008 crate::operation::delete_form_type::DeleteFormTypeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2009 crate::operation::delete_form_type::DeleteFormTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2010 crate::operation::delete_form_type::DeleteFormTypeError::ValidationException(inner) => Error::ValidationException(inner),
2011 crate::operation::delete_form_type::DeleteFormTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2012 crate::operation::delete_form_type::DeleteFormTypeError::Unhandled(inner) => Error::Unhandled(inner),
2013 }
2014 }
2015}
2016impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_glossary::DeleteGlossaryError, R>> for Error
2017where
2018 R: Send + Sync + std::fmt::Debug + 'static,
2019{
2020 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_glossary::DeleteGlossaryError, R>) -> Self {
2021 match err {
2022 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2023 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2024 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2025 source: err.into(),
2026 }),
2027 }
2028 }
2029}
2030impl From<crate::operation::delete_glossary::DeleteGlossaryError> for Error {
2031 fn from(err: crate::operation::delete_glossary::DeleteGlossaryError) -> Self {
2032 match err {
2033 crate::operation::delete_glossary::DeleteGlossaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2034 crate::operation::delete_glossary::DeleteGlossaryError::ConflictException(inner) => Error::ConflictException(inner),
2035 crate::operation::delete_glossary::DeleteGlossaryError::InternalServerException(inner) => Error::InternalServerException(inner),
2036 crate::operation::delete_glossary::DeleteGlossaryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2037 crate::operation::delete_glossary::DeleteGlossaryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2038 crate::operation::delete_glossary::DeleteGlossaryError::ValidationException(inner) => Error::ValidationException(inner),
2039 crate::operation::delete_glossary::DeleteGlossaryError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2040 crate::operation::delete_glossary::DeleteGlossaryError::Unhandled(inner) => Error::Unhandled(inner),
2041 }
2042 }
2043}
2044impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_glossary_term::DeleteGlossaryTermError, R>> for Error
2045where
2046 R: Send + Sync + std::fmt::Debug + 'static,
2047{
2048 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_glossary_term::DeleteGlossaryTermError, R>) -> Self {
2049 match err {
2050 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2051 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2052 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2053 source: err.into(),
2054 }),
2055 }
2056 }
2057}
2058impl From<crate::operation::delete_glossary_term::DeleteGlossaryTermError> for Error {
2059 fn from(err: crate::operation::delete_glossary_term::DeleteGlossaryTermError) -> Self {
2060 match err {
2061 crate::operation::delete_glossary_term::DeleteGlossaryTermError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2062 crate::operation::delete_glossary_term::DeleteGlossaryTermError::ConflictException(inner) => Error::ConflictException(inner),
2063 crate::operation::delete_glossary_term::DeleteGlossaryTermError::InternalServerException(inner) => Error::InternalServerException(inner),
2064 crate::operation::delete_glossary_term::DeleteGlossaryTermError::ResourceNotFoundException(inner) => {
2065 Error::ResourceNotFoundException(inner)
2066 }
2067 crate::operation::delete_glossary_term::DeleteGlossaryTermError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2068 crate::operation::delete_glossary_term::DeleteGlossaryTermError::ValidationException(inner) => Error::ValidationException(inner),
2069 crate::operation::delete_glossary_term::DeleteGlossaryTermError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2070 crate::operation::delete_glossary_term::DeleteGlossaryTermError::Unhandled(inner) => Error::Unhandled(inner),
2071 }
2072 }
2073}
2074impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_listing::DeleteListingError, R>> for Error
2075where
2076 R: Send + Sync + std::fmt::Debug + 'static,
2077{
2078 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_listing::DeleteListingError, R>) -> Self {
2079 match err {
2080 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2081 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2082 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2083 source: err.into(),
2084 }),
2085 }
2086 }
2087}
2088impl From<crate::operation::delete_listing::DeleteListingError> for Error {
2089 fn from(err: crate::operation::delete_listing::DeleteListingError) -> Self {
2090 match err {
2091 crate::operation::delete_listing::DeleteListingError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2092 crate::operation::delete_listing::DeleteListingError::ConflictException(inner) => Error::ConflictException(inner),
2093 crate::operation::delete_listing::DeleteListingError::InternalServerException(inner) => Error::InternalServerException(inner),
2094 crate::operation::delete_listing::DeleteListingError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2095 crate::operation::delete_listing::DeleteListingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2096 crate::operation::delete_listing::DeleteListingError::ValidationException(inner) => Error::ValidationException(inner),
2097 crate::operation::delete_listing::DeleteListingError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2098 crate::operation::delete_listing::DeleteListingError::Unhandled(inner) => Error::Unhandled(inner),
2099 }
2100 }
2101}
2102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notebook::DeleteNotebookError, R>> for Error
2103where
2104 R: Send + Sync + std::fmt::Debug + 'static,
2105{
2106 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_notebook::DeleteNotebookError, R>) -> Self {
2107 match err {
2108 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2109 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2110 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2111 source: err.into(),
2112 }),
2113 }
2114 }
2115}
2116impl From<crate::operation::delete_notebook::DeleteNotebookError> for Error {
2117 fn from(err: crate::operation::delete_notebook::DeleteNotebookError) -> Self {
2118 match err {
2119 crate::operation::delete_notebook::DeleteNotebookError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2120 crate::operation::delete_notebook::DeleteNotebookError::ConflictException(inner) => Error::ConflictException(inner),
2121 crate::operation::delete_notebook::DeleteNotebookError::InternalServerException(inner) => Error::InternalServerException(inner),
2122 crate::operation::delete_notebook::DeleteNotebookError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2123 crate::operation::delete_notebook::DeleteNotebookError::ValidationException(inner) => Error::ValidationException(inner),
2124 crate::operation::delete_notebook::DeleteNotebookError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2125 crate::operation::delete_notebook::DeleteNotebookError::Unhandled(inner) => Error::Unhandled(inner),
2126 }
2127 }
2128}
2129impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
2130where
2131 R: Send + Sync + std::fmt::Debug + 'static,
2132{
2133 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>) -> Self {
2134 match err {
2135 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2136 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2137 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2138 source: err.into(),
2139 }),
2140 }
2141 }
2142}
2143impl From<crate::operation::delete_project::DeleteProjectError> for Error {
2144 fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
2145 match err {
2146 crate::operation::delete_project::DeleteProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2147 crate::operation::delete_project::DeleteProjectError::InternalServerException(inner) => Error::InternalServerException(inner),
2148 crate::operation::delete_project::DeleteProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2149 crate::operation::delete_project::DeleteProjectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2150 crate::operation::delete_project::DeleteProjectError::ValidationException(inner) => Error::ValidationException(inner),
2151 crate::operation::delete_project::DeleteProjectError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2152 crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
2153 }
2154 }
2155}
2156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project_membership::DeleteProjectMembershipError, R>>
2157 for Error
2158where
2159 R: Send + Sync + std::fmt::Debug + 'static,
2160{
2161 fn from(
2162 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project_membership::DeleteProjectMembershipError, R>,
2163 ) -> Self {
2164 match err {
2165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2168 source: err.into(),
2169 }),
2170 }
2171 }
2172}
2173impl From<crate::operation::delete_project_membership::DeleteProjectMembershipError> for Error {
2174 fn from(err: crate::operation::delete_project_membership::DeleteProjectMembershipError) -> Self {
2175 match err {
2176 crate::operation::delete_project_membership::DeleteProjectMembershipError::AccessDeniedException(inner) => {
2177 Error::AccessDeniedException(inner)
2178 }
2179 crate::operation::delete_project_membership::DeleteProjectMembershipError::InternalServerException(inner) => {
2180 Error::InternalServerException(inner)
2181 }
2182 crate::operation::delete_project_membership::DeleteProjectMembershipError::ResourceNotFoundException(inner) => {
2183 Error::ResourceNotFoundException(inner)
2184 }
2185 crate::operation::delete_project_membership::DeleteProjectMembershipError::ServiceQuotaExceededException(inner) => {
2186 Error::ServiceQuotaExceededException(inner)
2187 }
2188 crate::operation::delete_project_membership::DeleteProjectMembershipError::ThrottlingException(inner) => {
2189 Error::ThrottlingException(inner)
2190 }
2191 crate::operation::delete_project_membership::DeleteProjectMembershipError::ValidationException(inner) => {
2192 Error::ValidationException(inner)
2193 }
2194 crate::operation::delete_project_membership::DeleteProjectMembershipError::UnauthorizedException(inner) => {
2195 Error::UnauthorizedException(inner)
2196 }
2197 crate::operation::delete_project_membership::DeleteProjectMembershipError::Unhandled(inner) => Error::Unhandled(inner),
2198 }
2199 }
2200}
2201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project_profile::DeleteProjectProfileError, R>> for Error
2202where
2203 R: Send + Sync + std::fmt::Debug + 'static,
2204{
2205 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project_profile::DeleteProjectProfileError, R>) -> Self {
2206 match err {
2207 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2208 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2209 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2210 source: err.into(),
2211 }),
2212 }
2213 }
2214}
2215impl From<crate::operation::delete_project_profile::DeleteProjectProfileError> for Error {
2216 fn from(err: crate::operation::delete_project_profile::DeleteProjectProfileError) -> Self {
2217 match err {
2218 crate::operation::delete_project_profile::DeleteProjectProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2219 crate::operation::delete_project_profile::DeleteProjectProfileError::InternalServerException(inner) => {
2220 Error::InternalServerException(inner)
2221 }
2222 crate::operation::delete_project_profile::DeleteProjectProfileError::ResourceNotFoundException(inner) => {
2223 Error::ResourceNotFoundException(inner)
2224 }
2225 crate::operation::delete_project_profile::DeleteProjectProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2226 crate::operation::delete_project_profile::DeleteProjectProfileError::ValidationException(inner) => Error::ValidationException(inner),
2227 crate::operation::delete_project_profile::DeleteProjectProfileError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2228 crate::operation::delete_project_profile::DeleteProjectProfileError::Unhandled(inner) => Error::Unhandled(inner),
2229 }
2230 }
2231}
2232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule::DeleteRuleError, R>> for Error
2233where
2234 R: Send + Sync + std::fmt::Debug + 'static,
2235{
2236 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule::DeleteRuleError, R>) -> Self {
2237 match err {
2238 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2239 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2240 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2241 source: err.into(),
2242 }),
2243 }
2244 }
2245}
2246impl From<crate::operation::delete_rule::DeleteRuleError> for Error {
2247 fn from(err: crate::operation::delete_rule::DeleteRuleError) -> Self {
2248 match err {
2249 crate::operation::delete_rule::DeleteRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2250 crate::operation::delete_rule::DeleteRuleError::ConflictException(inner) => Error::ConflictException(inner),
2251 crate::operation::delete_rule::DeleteRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
2252 crate::operation::delete_rule::DeleteRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2253 crate::operation::delete_rule::DeleteRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2254 crate::operation::delete_rule::DeleteRuleError::ValidationException(inner) => Error::ValidationException(inner),
2255 crate::operation::delete_rule::DeleteRuleError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2256 crate::operation::delete_rule::DeleteRuleError::Unhandled(inner) => Error::Unhandled(inner),
2257 }
2258 }
2259}
2260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subscription_grant::DeleteSubscriptionGrantError, R>>
2261 for Error
2262where
2263 R: Send + Sync + std::fmt::Debug + 'static,
2264{
2265 fn from(
2266 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subscription_grant::DeleteSubscriptionGrantError, R>,
2267 ) -> Self {
2268 match err {
2269 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2270 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2271 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2272 source: err.into(),
2273 }),
2274 }
2275 }
2276}
2277impl From<crate::operation::delete_subscription_grant::DeleteSubscriptionGrantError> for Error {
2278 fn from(err: crate::operation::delete_subscription_grant::DeleteSubscriptionGrantError) -> Self {
2279 match err {
2280 crate::operation::delete_subscription_grant::DeleteSubscriptionGrantError::AccessDeniedException(inner) => {
2281 Error::AccessDeniedException(inner)
2282 }
2283 crate::operation::delete_subscription_grant::DeleteSubscriptionGrantError::ConflictException(inner) => Error::ConflictException(inner),
2284 crate::operation::delete_subscription_grant::DeleteSubscriptionGrantError::InternalServerException(inner) => {
2285 Error::InternalServerException(inner)
2286 }
2287 crate::operation::delete_subscription_grant::DeleteSubscriptionGrantError::ResourceNotFoundException(inner) => {
2288 Error::ResourceNotFoundException(inner)
2289 }
2290 crate::operation::delete_subscription_grant::DeleteSubscriptionGrantError::ThrottlingException(inner) => {
2291 Error::ThrottlingException(inner)
2292 }
2293 crate::operation::delete_subscription_grant::DeleteSubscriptionGrantError::ValidationException(inner) => {
2294 Error::ValidationException(inner)
2295 }
2296 crate::operation::delete_subscription_grant::DeleteSubscriptionGrantError::UnauthorizedException(inner) => {
2297 Error::UnauthorizedException(inner)
2298 }
2299 crate::operation::delete_subscription_grant::DeleteSubscriptionGrantError::Unhandled(inner) => Error::Unhandled(inner),
2300 }
2301 }
2302}
2303impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subscription_request::DeleteSubscriptionRequestError, R>>
2304 for Error
2305where
2306 R: Send + Sync + std::fmt::Debug + 'static,
2307{
2308 fn from(
2309 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subscription_request::DeleteSubscriptionRequestError, R>,
2310 ) -> Self {
2311 match err {
2312 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2313 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2314 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2315 source: err.into(),
2316 }),
2317 }
2318 }
2319}
2320impl From<crate::operation::delete_subscription_request::DeleteSubscriptionRequestError> for Error {
2321 fn from(err: crate::operation::delete_subscription_request::DeleteSubscriptionRequestError) -> Self {
2322 match err {
2323 crate::operation::delete_subscription_request::DeleteSubscriptionRequestError::AccessDeniedException(inner) => {
2324 Error::AccessDeniedException(inner)
2325 }
2326 crate::operation::delete_subscription_request::DeleteSubscriptionRequestError::ConflictException(inner) => {
2327 Error::ConflictException(inner)
2328 }
2329 crate::operation::delete_subscription_request::DeleteSubscriptionRequestError::InternalServerException(inner) => {
2330 Error::InternalServerException(inner)
2331 }
2332 crate::operation::delete_subscription_request::DeleteSubscriptionRequestError::ResourceNotFoundException(inner) => {
2333 Error::ResourceNotFoundException(inner)
2334 }
2335 crate::operation::delete_subscription_request::DeleteSubscriptionRequestError::ThrottlingException(inner) => {
2336 Error::ThrottlingException(inner)
2337 }
2338 crate::operation::delete_subscription_request::DeleteSubscriptionRequestError::ValidationException(inner) => {
2339 Error::ValidationException(inner)
2340 }
2341 crate::operation::delete_subscription_request::DeleteSubscriptionRequestError::UnauthorizedException(inner) => {
2342 Error::UnauthorizedException(inner)
2343 }
2344 crate::operation::delete_subscription_request::DeleteSubscriptionRequestError::Unhandled(inner) => Error::Unhandled(inner),
2345 }
2346 }
2347}
2348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subscription_target::DeleteSubscriptionTargetError, R>>
2349 for Error
2350where
2351 R: Send + Sync + std::fmt::Debug + 'static,
2352{
2353 fn from(
2354 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subscription_target::DeleteSubscriptionTargetError, R>,
2355 ) -> Self {
2356 match err {
2357 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2358 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2359 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2360 source: err.into(),
2361 }),
2362 }
2363 }
2364}
2365impl From<crate::operation::delete_subscription_target::DeleteSubscriptionTargetError> for Error {
2366 fn from(err: crate::operation::delete_subscription_target::DeleteSubscriptionTargetError) -> Self {
2367 match err {
2368 crate::operation::delete_subscription_target::DeleteSubscriptionTargetError::AccessDeniedException(inner) => {
2369 Error::AccessDeniedException(inner)
2370 }
2371 crate::operation::delete_subscription_target::DeleteSubscriptionTargetError::ConflictException(inner) => Error::ConflictException(inner),
2372 crate::operation::delete_subscription_target::DeleteSubscriptionTargetError::InternalServerException(inner) => {
2373 Error::InternalServerException(inner)
2374 }
2375 crate::operation::delete_subscription_target::DeleteSubscriptionTargetError::ResourceNotFoundException(inner) => {
2376 Error::ResourceNotFoundException(inner)
2377 }
2378 crate::operation::delete_subscription_target::DeleteSubscriptionTargetError::ThrottlingException(inner) => {
2379 Error::ThrottlingException(inner)
2380 }
2381 crate::operation::delete_subscription_target::DeleteSubscriptionTargetError::ValidationException(inner) => {
2382 Error::ValidationException(inner)
2383 }
2384 crate::operation::delete_subscription_target::DeleteSubscriptionTargetError::UnauthorizedException(inner) => {
2385 Error::UnauthorizedException(inner)
2386 }
2387 crate::operation::delete_subscription_target::DeleteSubscriptionTargetError::Unhandled(inner) => Error::Unhandled(inner),
2388 }
2389 }
2390}
2391impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_time_series_data_points::DeleteTimeSeriesDataPointsError, R>>
2392 for Error
2393where
2394 R: Send + Sync + std::fmt::Debug + 'static,
2395{
2396 fn from(
2397 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_time_series_data_points::DeleteTimeSeriesDataPointsError, R>,
2398 ) -> Self {
2399 match err {
2400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2403 source: err.into(),
2404 }),
2405 }
2406 }
2407}
2408impl From<crate::operation::delete_time_series_data_points::DeleteTimeSeriesDataPointsError> for Error {
2409 fn from(err: crate::operation::delete_time_series_data_points::DeleteTimeSeriesDataPointsError) -> Self {
2410 match err {
2411 crate::operation::delete_time_series_data_points::DeleteTimeSeriesDataPointsError::AccessDeniedException(inner) => {
2412 Error::AccessDeniedException(inner)
2413 }
2414 crate::operation::delete_time_series_data_points::DeleteTimeSeriesDataPointsError::InternalServerException(inner) => {
2415 Error::InternalServerException(inner)
2416 }
2417 crate::operation::delete_time_series_data_points::DeleteTimeSeriesDataPointsError::ResourceNotFoundException(inner) => {
2418 Error::ResourceNotFoundException(inner)
2419 }
2420 crate::operation::delete_time_series_data_points::DeleteTimeSeriesDataPointsError::ThrottlingException(inner) => {
2421 Error::ThrottlingException(inner)
2422 }
2423 crate::operation::delete_time_series_data_points::DeleteTimeSeriesDataPointsError::ValidationException(inner) => {
2424 Error::ValidationException(inner)
2425 }
2426 crate::operation::delete_time_series_data_points::DeleteTimeSeriesDataPointsError::UnauthorizedException(inner) => {
2427 Error::UnauthorizedException(inner)
2428 }
2429 crate::operation::delete_time_series_data_points::DeleteTimeSeriesDataPointsError::Unhandled(inner) => Error::Unhandled(inner),
2430 }
2431 }
2432}
2433impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_environment_role::DisassociateEnvironmentRoleError, R>>
2434 for Error
2435where
2436 R: Send + Sync + std::fmt::Debug + 'static,
2437{
2438 fn from(
2439 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_environment_role::DisassociateEnvironmentRoleError, R>,
2440 ) -> Self {
2441 match err {
2442 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2443 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2444 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2445 source: err.into(),
2446 }),
2447 }
2448 }
2449}
2450impl From<crate::operation::disassociate_environment_role::DisassociateEnvironmentRoleError> for Error {
2451 fn from(err: crate::operation::disassociate_environment_role::DisassociateEnvironmentRoleError) -> Self {
2452 match err {
2453 crate::operation::disassociate_environment_role::DisassociateEnvironmentRoleError::AccessDeniedException(inner) => {
2454 Error::AccessDeniedException(inner)
2455 }
2456 crate::operation::disassociate_environment_role::DisassociateEnvironmentRoleError::ConflictException(inner) => {
2457 Error::ConflictException(inner)
2458 }
2459 crate::operation::disassociate_environment_role::DisassociateEnvironmentRoleError::InternalServerException(inner) => {
2460 Error::InternalServerException(inner)
2461 }
2462 crate::operation::disassociate_environment_role::DisassociateEnvironmentRoleError::ResourceNotFoundException(inner) => {
2463 Error::ResourceNotFoundException(inner)
2464 }
2465 crate::operation::disassociate_environment_role::DisassociateEnvironmentRoleError::ThrottlingException(inner) => {
2466 Error::ThrottlingException(inner)
2467 }
2468 crate::operation::disassociate_environment_role::DisassociateEnvironmentRoleError::ValidationException(inner) => {
2469 Error::ValidationException(inner)
2470 }
2471 crate::operation::disassociate_environment_role::DisassociateEnvironmentRoleError::UnauthorizedException(inner) => {
2472 Error::UnauthorizedException(inner)
2473 }
2474 crate::operation::disassociate_environment_role::DisassociateEnvironmentRoleError::Unhandled(inner) => Error::Unhandled(inner),
2475 }
2476 }
2477}
2478impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_governed_terms::DisassociateGovernedTermsError, R>>
2479 for Error
2480where
2481 R: Send + Sync + std::fmt::Debug + 'static,
2482{
2483 fn from(
2484 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_governed_terms::DisassociateGovernedTermsError, R>,
2485 ) -> Self {
2486 match err {
2487 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2488 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2489 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2490 source: err.into(),
2491 }),
2492 }
2493 }
2494}
2495impl From<crate::operation::disassociate_governed_terms::DisassociateGovernedTermsError> for Error {
2496 fn from(err: crate::operation::disassociate_governed_terms::DisassociateGovernedTermsError) -> Self {
2497 match err {
2498 crate::operation::disassociate_governed_terms::DisassociateGovernedTermsError::AccessDeniedException(inner) => {
2499 Error::AccessDeniedException(inner)
2500 }
2501 crate::operation::disassociate_governed_terms::DisassociateGovernedTermsError::ConflictException(inner) => {
2502 Error::ConflictException(inner)
2503 }
2504 crate::operation::disassociate_governed_terms::DisassociateGovernedTermsError::InternalServerException(inner) => {
2505 Error::InternalServerException(inner)
2506 }
2507 crate::operation::disassociate_governed_terms::DisassociateGovernedTermsError::ResourceNotFoundException(inner) => {
2508 Error::ResourceNotFoundException(inner)
2509 }
2510 crate::operation::disassociate_governed_terms::DisassociateGovernedTermsError::ThrottlingException(inner) => {
2511 Error::ThrottlingException(inner)
2512 }
2513 crate::operation::disassociate_governed_terms::DisassociateGovernedTermsError::ValidationException(inner) => {
2514 Error::ValidationException(inner)
2515 }
2516 crate::operation::disassociate_governed_terms::DisassociateGovernedTermsError::UnauthorizedException(inner) => {
2517 Error::UnauthorizedException(inner)
2518 }
2519 crate::operation::disassociate_governed_terms::DisassociateGovernedTermsError::Unhandled(inner) => Error::Unhandled(inner),
2520 }
2521 }
2522}
2523impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_pool::GetAccountPoolError, R>> for Error
2524where
2525 R: Send + Sync + std::fmt::Debug + 'static,
2526{
2527 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_pool::GetAccountPoolError, R>) -> Self {
2528 match err {
2529 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2530 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2531 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2532 source: err.into(),
2533 }),
2534 }
2535 }
2536}
2537impl From<crate::operation::get_account_pool::GetAccountPoolError> for Error {
2538 fn from(err: crate::operation::get_account_pool::GetAccountPoolError) -> Self {
2539 match err {
2540 crate::operation::get_account_pool::GetAccountPoolError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2541 crate::operation::get_account_pool::GetAccountPoolError::InternalServerException(inner) => Error::InternalServerException(inner),
2542 crate::operation::get_account_pool::GetAccountPoolError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2543 crate::operation::get_account_pool::GetAccountPoolError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2544 crate::operation::get_account_pool::GetAccountPoolError::ValidationException(inner) => Error::ValidationException(inner),
2545 crate::operation::get_account_pool::GetAccountPoolError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2546 crate::operation::get_account_pool::GetAccountPoolError::Unhandled(inner) => Error::Unhandled(inner),
2547 }
2548 }
2549}
2550impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_asset::GetAssetError, R>> for Error
2551where
2552 R: Send + Sync + std::fmt::Debug + 'static,
2553{
2554 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_asset::GetAssetError, R>) -> Self {
2555 match err {
2556 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2557 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2558 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2559 source: err.into(),
2560 }),
2561 }
2562 }
2563}
2564impl From<crate::operation::get_asset::GetAssetError> for Error {
2565 fn from(err: crate::operation::get_asset::GetAssetError) -> Self {
2566 match err {
2567 crate::operation::get_asset::GetAssetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2568 crate::operation::get_asset::GetAssetError::InternalServerException(inner) => Error::InternalServerException(inner),
2569 crate::operation::get_asset::GetAssetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2570 crate::operation::get_asset::GetAssetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2571 crate::operation::get_asset::GetAssetError::ValidationException(inner) => Error::ValidationException(inner),
2572 crate::operation::get_asset::GetAssetError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2573 crate::operation::get_asset::GetAssetError::Unhandled(inner) => Error::Unhandled(inner),
2574 }
2575 }
2576}
2577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_asset_filter::GetAssetFilterError, R>> for Error
2578where
2579 R: Send + Sync + std::fmt::Debug + 'static,
2580{
2581 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_asset_filter::GetAssetFilterError, R>) -> Self {
2582 match err {
2583 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2584 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2585 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2586 source: err.into(),
2587 }),
2588 }
2589 }
2590}
2591impl From<crate::operation::get_asset_filter::GetAssetFilterError> for Error {
2592 fn from(err: crate::operation::get_asset_filter::GetAssetFilterError) -> Self {
2593 match err {
2594 crate::operation::get_asset_filter::GetAssetFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2595 crate::operation::get_asset_filter::GetAssetFilterError::InternalServerException(inner) => Error::InternalServerException(inner),
2596 crate::operation::get_asset_filter::GetAssetFilterError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2597 crate::operation::get_asset_filter::GetAssetFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2598 crate::operation::get_asset_filter::GetAssetFilterError::ValidationException(inner) => Error::ValidationException(inner),
2599 crate::operation::get_asset_filter::GetAssetFilterError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2600 crate::operation::get_asset_filter::GetAssetFilterError::Unhandled(inner) => Error::Unhandled(inner),
2601 }
2602 }
2603}
2604impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_asset_type::GetAssetTypeError, R>> for Error
2605where
2606 R: Send + Sync + std::fmt::Debug + 'static,
2607{
2608 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_asset_type::GetAssetTypeError, R>) -> Self {
2609 match err {
2610 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2611 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2612 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2613 source: err.into(),
2614 }),
2615 }
2616 }
2617}
2618impl From<crate::operation::get_asset_type::GetAssetTypeError> for Error {
2619 fn from(err: crate::operation::get_asset_type::GetAssetTypeError) -> Self {
2620 match err {
2621 crate::operation::get_asset_type::GetAssetTypeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2622 crate::operation::get_asset_type::GetAssetTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
2623 crate::operation::get_asset_type::GetAssetTypeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2624 crate::operation::get_asset_type::GetAssetTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2625 crate::operation::get_asset_type::GetAssetTypeError::ValidationException(inner) => Error::ValidationException(inner),
2626 crate::operation::get_asset_type::GetAssetTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2627 crate::operation::get_asset_type::GetAssetTypeError::Unhandled(inner) => Error::Unhandled(inner),
2628 }
2629 }
2630}
2631impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connection::GetConnectionError, R>> for Error
2632where
2633 R: Send + Sync + std::fmt::Debug + 'static,
2634{
2635 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connection::GetConnectionError, R>) -> Self {
2636 match err {
2637 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2638 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2639 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2640 source: err.into(),
2641 }),
2642 }
2643 }
2644}
2645impl From<crate::operation::get_connection::GetConnectionError> for Error {
2646 fn from(err: crate::operation::get_connection::GetConnectionError) -> Self {
2647 match err {
2648 crate::operation::get_connection::GetConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2649 crate::operation::get_connection::GetConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
2650 crate::operation::get_connection::GetConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2651 crate::operation::get_connection::GetConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2652 crate::operation::get_connection::GetConnectionError::ValidationException(inner) => Error::ValidationException(inner),
2653 crate::operation::get_connection::GetConnectionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2654 crate::operation::get_connection::GetConnectionError::Unhandled(inner) => Error::Unhandled(inner),
2655 }
2656 }
2657}
2658impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_export_configuration::GetDataExportConfigurationError, R>>
2659 for Error
2660where
2661 R: Send + Sync + std::fmt::Debug + 'static,
2662{
2663 fn from(
2664 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_export_configuration::GetDataExportConfigurationError, R>,
2665 ) -> Self {
2666 match err {
2667 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2668 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2669 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2670 source: err.into(),
2671 }),
2672 }
2673 }
2674}
2675impl From<crate::operation::get_data_export_configuration::GetDataExportConfigurationError> for Error {
2676 fn from(err: crate::operation::get_data_export_configuration::GetDataExportConfigurationError) -> Self {
2677 match err {
2678 crate::operation::get_data_export_configuration::GetDataExportConfigurationError::AccessDeniedException(inner) => {
2679 Error::AccessDeniedException(inner)
2680 }
2681 crate::operation::get_data_export_configuration::GetDataExportConfigurationError::InternalServerException(inner) => {
2682 Error::InternalServerException(inner)
2683 }
2684 crate::operation::get_data_export_configuration::GetDataExportConfigurationError::ResourceNotFoundException(inner) => {
2685 Error::ResourceNotFoundException(inner)
2686 }
2687 crate::operation::get_data_export_configuration::GetDataExportConfigurationError::ThrottlingException(inner) => {
2688 Error::ThrottlingException(inner)
2689 }
2690 crate::operation::get_data_export_configuration::GetDataExportConfigurationError::ValidationException(inner) => {
2691 Error::ValidationException(inner)
2692 }
2693 crate::operation::get_data_export_configuration::GetDataExportConfigurationError::UnauthorizedException(inner) => {
2694 Error::UnauthorizedException(inner)
2695 }
2696 crate::operation::get_data_export_configuration::GetDataExportConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2697 }
2698 }
2699}
2700impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_product::GetDataProductError, R>> for Error
2701where
2702 R: Send + Sync + std::fmt::Debug + 'static,
2703{
2704 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_product::GetDataProductError, R>) -> Self {
2705 match err {
2706 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2707 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2708 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2709 source: err.into(),
2710 }),
2711 }
2712 }
2713}
2714impl From<crate::operation::get_data_product::GetDataProductError> for Error {
2715 fn from(err: crate::operation::get_data_product::GetDataProductError) -> Self {
2716 match err {
2717 crate::operation::get_data_product::GetDataProductError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2718 crate::operation::get_data_product::GetDataProductError::InternalServerException(inner) => Error::InternalServerException(inner),
2719 crate::operation::get_data_product::GetDataProductError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2720 crate::operation::get_data_product::GetDataProductError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2721 crate::operation::get_data_product::GetDataProductError::ValidationException(inner) => Error::ValidationException(inner),
2722 crate::operation::get_data_product::GetDataProductError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2723 crate::operation::get_data_product::GetDataProductError::Unhandled(inner) => Error::Unhandled(inner),
2724 }
2725 }
2726}
2727impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_source::GetDataSourceError, R>> for Error
2728where
2729 R: Send + Sync + std::fmt::Debug + 'static,
2730{
2731 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_source::GetDataSourceError, R>) -> Self {
2732 match err {
2733 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2734 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2735 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2736 source: err.into(),
2737 }),
2738 }
2739 }
2740}
2741impl From<crate::operation::get_data_source::GetDataSourceError> for Error {
2742 fn from(err: crate::operation::get_data_source::GetDataSourceError) -> Self {
2743 match err {
2744 crate::operation::get_data_source::GetDataSourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2745 crate::operation::get_data_source::GetDataSourceError::ConflictException(inner) => Error::ConflictException(inner),
2746 crate::operation::get_data_source::GetDataSourceError::InternalServerException(inner) => Error::InternalServerException(inner),
2747 crate::operation::get_data_source::GetDataSourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2748 crate::operation::get_data_source::GetDataSourceError::ServiceQuotaExceededException(inner) => {
2749 Error::ServiceQuotaExceededException(inner)
2750 }
2751 crate::operation::get_data_source::GetDataSourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2752 crate::operation::get_data_source::GetDataSourceError::ValidationException(inner) => Error::ValidationException(inner),
2753 crate::operation::get_data_source::GetDataSourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2754 crate::operation::get_data_source::GetDataSourceError::Unhandled(inner) => Error::Unhandled(inner),
2755 }
2756 }
2757}
2758impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_source_run::GetDataSourceRunError, R>> for Error
2759where
2760 R: Send + Sync + std::fmt::Debug + 'static,
2761{
2762 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_source_run::GetDataSourceRunError, R>) -> Self {
2763 match err {
2764 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2765 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2766 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2767 source: err.into(),
2768 }),
2769 }
2770 }
2771}
2772impl From<crate::operation::get_data_source_run::GetDataSourceRunError> for Error {
2773 fn from(err: crate::operation::get_data_source_run::GetDataSourceRunError) -> Self {
2774 match err {
2775 crate::operation::get_data_source_run::GetDataSourceRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2776 crate::operation::get_data_source_run::GetDataSourceRunError::ConflictException(inner) => Error::ConflictException(inner),
2777 crate::operation::get_data_source_run::GetDataSourceRunError::InternalServerException(inner) => Error::InternalServerException(inner),
2778 crate::operation::get_data_source_run::GetDataSourceRunError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2779 crate::operation::get_data_source_run::GetDataSourceRunError::ServiceQuotaExceededException(inner) => {
2780 Error::ServiceQuotaExceededException(inner)
2781 }
2782 crate::operation::get_data_source_run::GetDataSourceRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2783 crate::operation::get_data_source_run::GetDataSourceRunError::ValidationException(inner) => Error::ValidationException(inner),
2784 crate::operation::get_data_source_run::GetDataSourceRunError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2785 crate::operation::get_data_source_run::GetDataSourceRunError::Unhandled(inner) => Error::Unhandled(inner),
2786 }
2787 }
2788}
2789impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain::GetDomainError, R>> for Error
2790where
2791 R: Send + Sync + std::fmt::Debug + 'static,
2792{
2793 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain::GetDomainError, R>) -> Self {
2794 match err {
2795 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2796 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2797 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2798 source: err.into(),
2799 }),
2800 }
2801 }
2802}
2803impl From<crate::operation::get_domain::GetDomainError> for Error {
2804 fn from(err: crate::operation::get_domain::GetDomainError) -> Self {
2805 match err {
2806 crate::operation::get_domain::GetDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2807 crate::operation::get_domain::GetDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
2808 crate::operation::get_domain::GetDomainError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2809 crate::operation::get_domain::GetDomainError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2810 crate::operation::get_domain::GetDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2811 crate::operation::get_domain::GetDomainError::ValidationException(inner) => Error::ValidationException(inner),
2812 crate::operation::get_domain::GetDomainError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2813 crate::operation::get_domain::GetDomainError::Unhandled(inner) => Error::Unhandled(inner),
2814 }
2815 }
2816}
2817impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_unit::GetDomainUnitError, R>> for Error
2818where
2819 R: Send + Sync + std::fmt::Debug + 'static,
2820{
2821 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_domain_unit::GetDomainUnitError, R>) -> Self {
2822 match err {
2823 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2824 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2825 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2826 source: err.into(),
2827 }),
2828 }
2829 }
2830}
2831impl From<crate::operation::get_domain_unit::GetDomainUnitError> for Error {
2832 fn from(err: crate::operation::get_domain_unit::GetDomainUnitError) -> Self {
2833 match err {
2834 crate::operation::get_domain_unit::GetDomainUnitError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2835 crate::operation::get_domain_unit::GetDomainUnitError::InternalServerException(inner) => Error::InternalServerException(inner),
2836 crate::operation::get_domain_unit::GetDomainUnitError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2837 crate::operation::get_domain_unit::GetDomainUnitError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2838 crate::operation::get_domain_unit::GetDomainUnitError::ValidationException(inner) => Error::ValidationException(inner),
2839 crate::operation::get_domain_unit::GetDomainUnitError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2840 crate::operation::get_domain_unit::GetDomainUnitError::Unhandled(inner) => Error::Unhandled(inner),
2841 }
2842 }
2843}
2844impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment::GetEnvironmentError, R>> for Error
2845where
2846 R: Send + Sync + std::fmt::Debug + 'static,
2847{
2848 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment::GetEnvironmentError, R>) -> Self {
2849 match err {
2850 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2851 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2852 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2853 source: err.into(),
2854 }),
2855 }
2856 }
2857}
2858impl From<crate::operation::get_environment::GetEnvironmentError> for Error {
2859 fn from(err: crate::operation::get_environment::GetEnvironmentError) -> Self {
2860 match err {
2861 crate::operation::get_environment::GetEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2862 crate::operation::get_environment::GetEnvironmentError::InternalServerException(inner) => Error::InternalServerException(inner),
2863 crate::operation::get_environment::GetEnvironmentError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2864 crate::operation::get_environment::GetEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2865 crate::operation::get_environment::GetEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
2866 crate::operation::get_environment::GetEnvironmentError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2867 crate::operation::get_environment::GetEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
2868 }
2869 }
2870}
2871impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment_action::GetEnvironmentActionError, R>> for Error
2872where
2873 R: Send + Sync + std::fmt::Debug + 'static,
2874{
2875 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment_action::GetEnvironmentActionError, R>) -> Self {
2876 match err {
2877 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2878 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2879 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2880 source: err.into(),
2881 }),
2882 }
2883 }
2884}
2885impl From<crate::operation::get_environment_action::GetEnvironmentActionError> for Error {
2886 fn from(err: crate::operation::get_environment_action::GetEnvironmentActionError) -> Self {
2887 match err {
2888 crate::operation::get_environment_action::GetEnvironmentActionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2889 crate::operation::get_environment_action::GetEnvironmentActionError::InternalServerException(inner) => {
2890 Error::InternalServerException(inner)
2891 }
2892 crate::operation::get_environment_action::GetEnvironmentActionError::ResourceNotFoundException(inner) => {
2893 Error::ResourceNotFoundException(inner)
2894 }
2895 crate::operation::get_environment_action::GetEnvironmentActionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2896 crate::operation::get_environment_action::GetEnvironmentActionError::ValidationException(inner) => Error::ValidationException(inner),
2897 crate::operation::get_environment_action::GetEnvironmentActionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
2898 crate::operation::get_environment_action::GetEnvironmentActionError::Unhandled(inner) => Error::Unhandled(inner),
2899 }
2900 }
2901}
2902impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment_blueprint::GetEnvironmentBlueprintError, R>>
2903 for Error
2904where
2905 R: Send + Sync + std::fmt::Debug + 'static,
2906{
2907 fn from(
2908 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment_blueprint::GetEnvironmentBlueprintError, R>,
2909 ) -> Self {
2910 match err {
2911 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2912 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2913 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2914 source: err.into(),
2915 }),
2916 }
2917 }
2918}
2919impl From<crate::operation::get_environment_blueprint::GetEnvironmentBlueprintError> for Error {
2920 fn from(err: crate::operation::get_environment_blueprint::GetEnvironmentBlueprintError) -> Self {
2921 match err {
2922 crate::operation::get_environment_blueprint::GetEnvironmentBlueprintError::AccessDeniedException(inner) => {
2923 Error::AccessDeniedException(inner)
2924 }
2925 crate::operation::get_environment_blueprint::GetEnvironmentBlueprintError::InternalServerException(inner) => {
2926 Error::InternalServerException(inner)
2927 }
2928 crate::operation::get_environment_blueprint::GetEnvironmentBlueprintError::ResourceNotFoundException(inner) => {
2929 Error::ResourceNotFoundException(inner)
2930 }
2931 crate::operation::get_environment_blueprint::GetEnvironmentBlueprintError::ThrottlingException(inner) => {
2932 Error::ThrottlingException(inner)
2933 }
2934 crate::operation::get_environment_blueprint::GetEnvironmentBlueprintError::ValidationException(inner) => {
2935 Error::ValidationException(inner)
2936 }
2937 crate::operation::get_environment_blueprint::GetEnvironmentBlueprintError::UnauthorizedException(inner) => {
2938 Error::UnauthorizedException(inner)
2939 }
2940 crate::operation::get_environment_blueprint::GetEnvironmentBlueprintError::Unhandled(inner) => Error::Unhandled(inner),
2941 }
2942 }
2943}
2944impl<R>
2945 From<
2946 ::aws_smithy_runtime_api::client::result::SdkError<
2947 crate::operation::get_environment_blueprint_configuration::GetEnvironmentBlueprintConfigurationError,
2948 R,
2949 >,
2950 > for Error
2951where
2952 R: Send + Sync + std::fmt::Debug + 'static,
2953{
2954 fn from(
2955 err: ::aws_smithy_runtime_api::client::result::SdkError<
2956 crate::operation::get_environment_blueprint_configuration::GetEnvironmentBlueprintConfigurationError,
2957 R,
2958 >,
2959 ) -> Self {
2960 match err {
2961 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2962 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2963 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2964 source: err.into(),
2965 }),
2966 }
2967 }
2968}
2969impl From<crate::operation::get_environment_blueprint_configuration::GetEnvironmentBlueprintConfigurationError> for Error {
2970 fn from(err: crate::operation::get_environment_blueprint_configuration::GetEnvironmentBlueprintConfigurationError) -> Self {
2971 match err {
2972 crate::operation::get_environment_blueprint_configuration::GetEnvironmentBlueprintConfigurationError::AccessDeniedException(inner) => {
2973 Error::AccessDeniedException(inner)
2974 }
2975 crate::operation::get_environment_blueprint_configuration::GetEnvironmentBlueprintConfigurationError::InternalServerException(inner) => {
2976 Error::InternalServerException(inner)
2977 }
2978 crate::operation::get_environment_blueprint_configuration::GetEnvironmentBlueprintConfigurationError::ResourceNotFoundException(
2979 inner,
2980 ) => Error::ResourceNotFoundException(inner),
2981 crate::operation::get_environment_blueprint_configuration::GetEnvironmentBlueprintConfigurationError::ValidationException(inner) => {
2982 Error::ValidationException(inner)
2983 }
2984 crate::operation::get_environment_blueprint_configuration::GetEnvironmentBlueprintConfigurationError::ThrottlingException(inner) => {
2985 Error::ThrottlingException(inner)
2986 }
2987 crate::operation::get_environment_blueprint_configuration::GetEnvironmentBlueprintConfigurationError::UnauthorizedException(inner) => {
2988 Error::UnauthorizedException(inner)
2989 }
2990 crate::operation::get_environment_blueprint_configuration::GetEnvironmentBlueprintConfigurationError::Unhandled(inner) => {
2991 Error::Unhandled(inner)
2992 }
2993 }
2994 }
2995}
2996impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment_credentials::GetEnvironmentCredentialsError, R>>
2997 for Error
2998where
2999 R: Send + Sync + std::fmt::Debug + 'static,
3000{
3001 fn from(
3002 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment_credentials::GetEnvironmentCredentialsError, R>,
3003 ) -> Self {
3004 match err {
3005 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3006 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3007 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3008 source: err.into(),
3009 }),
3010 }
3011 }
3012}
3013impl From<crate::operation::get_environment_credentials::GetEnvironmentCredentialsError> for Error {
3014 fn from(err: crate::operation::get_environment_credentials::GetEnvironmentCredentialsError) -> Self {
3015 match err {
3016 crate::operation::get_environment_credentials::GetEnvironmentCredentialsError::AccessDeniedException(inner) => {
3017 Error::AccessDeniedException(inner)
3018 }
3019 crate::operation::get_environment_credentials::GetEnvironmentCredentialsError::InternalServerException(inner) => {
3020 Error::InternalServerException(inner)
3021 }
3022 crate::operation::get_environment_credentials::GetEnvironmentCredentialsError::ResourceNotFoundException(inner) => {
3023 Error::ResourceNotFoundException(inner)
3024 }
3025 crate::operation::get_environment_credentials::GetEnvironmentCredentialsError::ThrottlingException(inner) => {
3026 Error::ThrottlingException(inner)
3027 }
3028 crate::operation::get_environment_credentials::GetEnvironmentCredentialsError::ValidationException(inner) => {
3029 Error::ValidationException(inner)
3030 }
3031 crate::operation::get_environment_credentials::GetEnvironmentCredentialsError::UnauthorizedException(inner) => {
3032 Error::UnauthorizedException(inner)
3033 }
3034 crate::operation::get_environment_credentials::GetEnvironmentCredentialsError::Unhandled(inner) => Error::Unhandled(inner),
3035 }
3036 }
3037}
3038impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment_profile::GetEnvironmentProfileError, R>> for Error
3039where
3040 R: Send + Sync + std::fmt::Debug + 'static,
3041{
3042 fn from(
3043 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_environment_profile::GetEnvironmentProfileError, R>,
3044 ) -> Self {
3045 match err {
3046 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3047 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3048 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3049 source: err.into(),
3050 }),
3051 }
3052 }
3053}
3054impl From<crate::operation::get_environment_profile::GetEnvironmentProfileError> for Error {
3055 fn from(err: crate::operation::get_environment_profile::GetEnvironmentProfileError) -> Self {
3056 match err {
3057 crate::operation::get_environment_profile::GetEnvironmentProfileError::AccessDeniedException(inner) => {
3058 Error::AccessDeniedException(inner)
3059 }
3060 crate::operation::get_environment_profile::GetEnvironmentProfileError::InternalServerException(inner) => {
3061 Error::InternalServerException(inner)
3062 }
3063 crate::operation::get_environment_profile::GetEnvironmentProfileError::ResourceNotFoundException(inner) => {
3064 Error::ResourceNotFoundException(inner)
3065 }
3066 crate::operation::get_environment_profile::GetEnvironmentProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3067 crate::operation::get_environment_profile::GetEnvironmentProfileError::ValidationException(inner) => Error::ValidationException(inner),
3068 crate::operation::get_environment_profile::GetEnvironmentProfileError::UnauthorizedException(inner) => {
3069 Error::UnauthorizedException(inner)
3070 }
3071 crate::operation::get_environment_profile::GetEnvironmentProfileError::Unhandled(inner) => Error::Unhandled(inner),
3072 }
3073 }
3074}
3075impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_form_type::GetFormTypeError, R>> for Error
3076where
3077 R: Send + Sync + std::fmt::Debug + 'static,
3078{
3079 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_form_type::GetFormTypeError, R>) -> Self {
3080 match err {
3081 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3082 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3083 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3084 source: err.into(),
3085 }),
3086 }
3087 }
3088}
3089impl From<crate::operation::get_form_type::GetFormTypeError> for Error {
3090 fn from(err: crate::operation::get_form_type::GetFormTypeError) -> Self {
3091 match err {
3092 crate::operation::get_form_type::GetFormTypeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3093 crate::operation::get_form_type::GetFormTypeError::InternalServerException(inner) => Error::InternalServerException(inner),
3094 crate::operation::get_form_type::GetFormTypeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3095 crate::operation::get_form_type::GetFormTypeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3096 crate::operation::get_form_type::GetFormTypeError::ValidationException(inner) => Error::ValidationException(inner),
3097 crate::operation::get_form_type::GetFormTypeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3098 crate::operation::get_form_type::GetFormTypeError::Unhandled(inner) => Error::Unhandled(inner),
3099 }
3100 }
3101}
3102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_glossary::GetGlossaryError, R>> for Error
3103where
3104 R: Send + Sync + std::fmt::Debug + 'static,
3105{
3106 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_glossary::GetGlossaryError, R>) -> Self {
3107 match err {
3108 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3109 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3110 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3111 source: err.into(),
3112 }),
3113 }
3114 }
3115}
3116impl From<crate::operation::get_glossary::GetGlossaryError> for Error {
3117 fn from(err: crate::operation::get_glossary::GetGlossaryError) -> Self {
3118 match err {
3119 crate::operation::get_glossary::GetGlossaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3120 crate::operation::get_glossary::GetGlossaryError::InternalServerException(inner) => Error::InternalServerException(inner),
3121 crate::operation::get_glossary::GetGlossaryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3122 crate::operation::get_glossary::GetGlossaryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3123 crate::operation::get_glossary::GetGlossaryError::ValidationException(inner) => Error::ValidationException(inner),
3124 crate::operation::get_glossary::GetGlossaryError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3125 crate::operation::get_glossary::GetGlossaryError::Unhandled(inner) => Error::Unhandled(inner),
3126 }
3127 }
3128}
3129impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_glossary_term::GetGlossaryTermError, R>> for Error
3130where
3131 R: Send + Sync + std::fmt::Debug + 'static,
3132{
3133 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_glossary_term::GetGlossaryTermError, R>) -> Self {
3134 match err {
3135 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3136 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3137 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3138 source: err.into(),
3139 }),
3140 }
3141 }
3142}
3143impl From<crate::operation::get_glossary_term::GetGlossaryTermError> for Error {
3144 fn from(err: crate::operation::get_glossary_term::GetGlossaryTermError) -> Self {
3145 match err {
3146 crate::operation::get_glossary_term::GetGlossaryTermError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3147 crate::operation::get_glossary_term::GetGlossaryTermError::InternalServerException(inner) => Error::InternalServerException(inner),
3148 crate::operation::get_glossary_term::GetGlossaryTermError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3149 crate::operation::get_glossary_term::GetGlossaryTermError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3150 crate::operation::get_glossary_term::GetGlossaryTermError::ValidationException(inner) => Error::ValidationException(inner),
3151 crate::operation::get_glossary_term::GetGlossaryTermError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3152 crate::operation::get_glossary_term::GetGlossaryTermError::Unhandled(inner) => Error::Unhandled(inner),
3153 }
3154 }
3155}
3156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_group_profile::GetGroupProfileError, R>> for Error
3157where
3158 R: Send + Sync + std::fmt::Debug + 'static,
3159{
3160 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_group_profile::GetGroupProfileError, R>) -> Self {
3161 match err {
3162 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3163 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3164 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3165 source: err.into(),
3166 }),
3167 }
3168 }
3169}
3170impl From<crate::operation::get_group_profile::GetGroupProfileError> for Error {
3171 fn from(err: crate::operation::get_group_profile::GetGroupProfileError) -> Self {
3172 match err {
3173 crate::operation::get_group_profile::GetGroupProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3174 crate::operation::get_group_profile::GetGroupProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
3175 crate::operation::get_group_profile::GetGroupProfileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3176 crate::operation::get_group_profile::GetGroupProfileError::ValidationException(inner) => Error::ValidationException(inner),
3177 crate::operation::get_group_profile::GetGroupProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3178 crate::operation::get_group_profile::GetGroupProfileError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3179 crate::operation::get_group_profile::GetGroupProfileError::Unhandled(inner) => Error::Unhandled(inner),
3180 }
3181 }
3182}
3183impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_iam_portal_login_url::GetIamPortalLoginUrlError, R>> for Error
3184where
3185 R: Send + Sync + std::fmt::Debug + 'static,
3186{
3187 fn from(
3188 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_iam_portal_login_url::GetIamPortalLoginUrlError, R>,
3189 ) -> Self {
3190 match err {
3191 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3192 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3193 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3194 source: err.into(),
3195 }),
3196 }
3197 }
3198}
3199impl From<crate::operation::get_iam_portal_login_url::GetIamPortalLoginUrlError> for Error {
3200 fn from(err: crate::operation::get_iam_portal_login_url::GetIamPortalLoginUrlError) -> Self {
3201 match err {
3202 crate::operation::get_iam_portal_login_url::GetIamPortalLoginUrlError::AccessDeniedException(inner) => {
3203 Error::AccessDeniedException(inner)
3204 }
3205 crate::operation::get_iam_portal_login_url::GetIamPortalLoginUrlError::ConflictException(inner) => Error::ConflictException(inner),
3206 crate::operation::get_iam_portal_login_url::GetIamPortalLoginUrlError::InternalServerException(inner) => {
3207 Error::InternalServerException(inner)
3208 }
3209 crate::operation::get_iam_portal_login_url::GetIamPortalLoginUrlError::ResourceNotFoundException(inner) => {
3210 Error::ResourceNotFoundException(inner)
3211 }
3212 crate::operation::get_iam_portal_login_url::GetIamPortalLoginUrlError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3213 crate::operation::get_iam_portal_login_url::GetIamPortalLoginUrlError::ValidationException(inner) => Error::ValidationException(inner),
3214 crate::operation::get_iam_portal_login_url::GetIamPortalLoginUrlError::UnauthorizedException(inner) => {
3215 Error::UnauthorizedException(inner)
3216 }
3217 crate::operation::get_iam_portal_login_url::GetIamPortalLoginUrlError::Unhandled(inner) => Error::Unhandled(inner),
3218 }
3219 }
3220}
3221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job_run::GetJobRunError, R>> for Error
3222where
3223 R: Send + Sync + std::fmt::Debug + 'static,
3224{
3225 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_job_run::GetJobRunError, R>) -> Self {
3226 match err {
3227 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3228 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3229 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3230 source: err.into(),
3231 }),
3232 }
3233 }
3234}
3235impl From<crate::operation::get_job_run::GetJobRunError> for Error {
3236 fn from(err: crate::operation::get_job_run::GetJobRunError) -> Self {
3237 match err {
3238 crate::operation::get_job_run::GetJobRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3239 crate::operation::get_job_run::GetJobRunError::InternalServerException(inner) => Error::InternalServerException(inner),
3240 crate::operation::get_job_run::GetJobRunError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3241 crate::operation::get_job_run::GetJobRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3242 crate::operation::get_job_run::GetJobRunError::ValidationException(inner) => Error::ValidationException(inner),
3243 crate::operation::get_job_run::GetJobRunError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3244 crate::operation::get_job_run::GetJobRunError::Unhandled(inner) => Error::Unhandled(inner),
3245 }
3246 }
3247}
3248impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_event::GetLineageEventError, R>> for Error
3249where
3250 R: Send + Sync + std::fmt::Debug + 'static,
3251{
3252 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_event::GetLineageEventError, R>) -> Self {
3253 match err {
3254 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3255 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3256 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3257 source: err.into(),
3258 }),
3259 }
3260 }
3261}
3262impl From<crate::operation::get_lineage_event::GetLineageEventError> for Error {
3263 fn from(err: crate::operation::get_lineage_event::GetLineageEventError) -> Self {
3264 match err {
3265 crate::operation::get_lineage_event::GetLineageEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3266 crate::operation::get_lineage_event::GetLineageEventError::InternalServerException(inner) => Error::InternalServerException(inner),
3267 crate::operation::get_lineage_event::GetLineageEventError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3268 crate::operation::get_lineage_event::GetLineageEventError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3269 crate::operation::get_lineage_event::GetLineageEventError::ValidationException(inner) => Error::ValidationException(inner),
3270 crate::operation::get_lineage_event::GetLineageEventError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3271 crate::operation::get_lineage_event::GetLineageEventError::Unhandled(inner) => Error::Unhandled(inner),
3272 }
3273 }
3274}
3275impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_node::GetLineageNodeError, R>> for Error
3276where
3277 R: Send + Sync + std::fmt::Debug + 'static,
3278{
3279 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lineage_node::GetLineageNodeError, R>) -> Self {
3280 match err {
3281 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3282 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3283 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3284 source: err.into(),
3285 }),
3286 }
3287 }
3288}
3289impl From<crate::operation::get_lineage_node::GetLineageNodeError> for Error {
3290 fn from(err: crate::operation::get_lineage_node::GetLineageNodeError) -> Self {
3291 match err {
3292 crate::operation::get_lineage_node::GetLineageNodeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3293 crate::operation::get_lineage_node::GetLineageNodeError::InternalServerException(inner) => Error::InternalServerException(inner),
3294 crate::operation::get_lineage_node::GetLineageNodeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3295 crate::operation::get_lineage_node::GetLineageNodeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3296 crate::operation::get_lineage_node::GetLineageNodeError::ValidationException(inner) => Error::ValidationException(inner),
3297 crate::operation::get_lineage_node::GetLineageNodeError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3298 crate::operation::get_lineage_node::GetLineageNodeError::Unhandled(inner) => Error::Unhandled(inner),
3299 }
3300 }
3301}
3302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_listing::GetListingError, R>> for Error
3303where
3304 R: Send + Sync + std::fmt::Debug + 'static,
3305{
3306 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_listing::GetListingError, R>) -> Self {
3307 match err {
3308 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3309 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3310 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3311 source: err.into(),
3312 }),
3313 }
3314 }
3315}
3316impl From<crate::operation::get_listing::GetListingError> for Error {
3317 fn from(err: crate::operation::get_listing::GetListingError) -> Self {
3318 match err {
3319 crate::operation::get_listing::GetListingError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3320 crate::operation::get_listing::GetListingError::InternalServerException(inner) => Error::InternalServerException(inner),
3321 crate::operation::get_listing::GetListingError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3322 crate::operation::get_listing::GetListingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3323 crate::operation::get_listing::GetListingError::ValidationException(inner) => Error::ValidationException(inner),
3324 crate::operation::get_listing::GetListingError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3325 crate::operation::get_listing::GetListingError::Unhandled(inner) => Error::Unhandled(inner),
3326 }
3327 }
3328}
3329impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metadata_generation_run::GetMetadataGenerationRunError, R>>
3330 for Error
3331where
3332 R: Send + Sync + std::fmt::Debug + 'static,
3333{
3334 fn from(
3335 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metadata_generation_run::GetMetadataGenerationRunError, R>,
3336 ) -> Self {
3337 match err {
3338 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3339 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3340 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3341 source: err.into(),
3342 }),
3343 }
3344 }
3345}
3346impl From<crate::operation::get_metadata_generation_run::GetMetadataGenerationRunError> for Error {
3347 fn from(err: crate::operation::get_metadata_generation_run::GetMetadataGenerationRunError) -> Self {
3348 match err {
3349 crate::operation::get_metadata_generation_run::GetMetadataGenerationRunError::AccessDeniedException(inner) => {
3350 Error::AccessDeniedException(inner)
3351 }
3352 crate::operation::get_metadata_generation_run::GetMetadataGenerationRunError::InternalServerException(inner) => {
3353 Error::InternalServerException(inner)
3354 }
3355 crate::operation::get_metadata_generation_run::GetMetadataGenerationRunError::ResourceNotFoundException(inner) => {
3356 Error::ResourceNotFoundException(inner)
3357 }
3358 crate::operation::get_metadata_generation_run::GetMetadataGenerationRunError::ThrottlingException(inner) => {
3359 Error::ThrottlingException(inner)
3360 }
3361 crate::operation::get_metadata_generation_run::GetMetadataGenerationRunError::ValidationException(inner) => {
3362 Error::ValidationException(inner)
3363 }
3364 crate::operation::get_metadata_generation_run::GetMetadataGenerationRunError::UnauthorizedException(inner) => {
3365 Error::UnauthorizedException(inner)
3366 }
3367 crate::operation::get_metadata_generation_run::GetMetadataGenerationRunError::Unhandled(inner) => Error::Unhandled(inner),
3368 }
3369 }
3370}
3371impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notebook::GetNotebookError, R>> for Error
3372where
3373 R: Send + Sync + std::fmt::Debug + 'static,
3374{
3375 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notebook::GetNotebookError, R>) -> Self {
3376 match err {
3377 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3378 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3379 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3380 source: err.into(),
3381 }),
3382 }
3383 }
3384}
3385impl From<crate::operation::get_notebook::GetNotebookError> for Error {
3386 fn from(err: crate::operation::get_notebook::GetNotebookError) -> Self {
3387 match err {
3388 crate::operation::get_notebook::GetNotebookError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3389 crate::operation::get_notebook::GetNotebookError::InternalServerException(inner) => Error::InternalServerException(inner),
3390 crate::operation::get_notebook::GetNotebookError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3391 crate::operation::get_notebook::GetNotebookError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3392 crate::operation::get_notebook::GetNotebookError::ValidationException(inner) => Error::ValidationException(inner),
3393 crate::operation::get_notebook::GetNotebookError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3394 crate::operation::get_notebook::GetNotebookError::Unhandled(inner) => Error::Unhandled(inner),
3395 }
3396 }
3397}
3398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notebook_export::GetNotebookExportError, R>> for Error
3399where
3400 R: Send + Sync + std::fmt::Debug + 'static,
3401{
3402 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notebook_export::GetNotebookExportError, R>) -> Self {
3403 match err {
3404 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3405 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3406 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3407 source: err.into(),
3408 }),
3409 }
3410 }
3411}
3412impl From<crate::operation::get_notebook_export::GetNotebookExportError> for Error {
3413 fn from(err: crate::operation::get_notebook_export::GetNotebookExportError) -> Self {
3414 match err {
3415 crate::operation::get_notebook_export::GetNotebookExportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3416 crate::operation::get_notebook_export::GetNotebookExportError::InternalServerException(inner) => Error::InternalServerException(inner),
3417 crate::operation::get_notebook_export::GetNotebookExportError::ResourceNotFoundException(inner) => {
3418 Error::ResourceNotFoundException(inner)
3419 }
3420 crate::operation::get_notebook_export::GetNotebookExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3421 crate::operation::get_notebook_export::GetNotebookExportError::ValidationException(inner) => Error::ValidationException(inner),
3422 crate::operation::get_notebook_export::GetNotebookExportError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3423 crate::operation::get_notebook_export::GetNotebookExportError::Unhandled(inner) => Error::Unhandled(inner),
3424 }
3425 }
3426}
3427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notebook_run::GetNotebookRunError, R>> for Error
3428where
3429 R: Send + Sync + std::fmt::Debug + 'static,
3430{
3431 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_notebook_run::GetNotebookRunError, R>) -> Self {
3432 match err {
3433 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3434 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3435 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3436 source: err.into(),
3437 }),
3438 }
3439 }
3440}
3441impl From<crate::operation::get_notebook_run::GetNotebookRunError> for Error {
3442 fn from(err: crate::operation::get_notebook_run::GetNotebookRunError) -> Self {
3443 match err {
3444 crate::operation::get_notebook_run::GetNotebookRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3445 crate::operation::get_notebook_run::GetNotebookRunError::InternalServerException(inner) => Error::InternalServerException(inner),
3446 crate::operation::get_notebook_run::GetNotebookRunError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3447 crate::operation::get_notebook_run::GetNotebookRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3448 crate::operation::get_notebook_run::GetNotebookRunError::ValidationException(inner) => Error::ValidationException(inner),
3449 crate::operation::get_notebook_run::GetNotebookRunError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3450 crate::operation::get_notebook_run::GetNotebookRunError::Unhandled(inner) => Error::Unhandled(inner),
3451 }
3452 }
3453}
3454impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_project::GetProjectError, R>> for Error
3455where
3456 R: Send + Sync + std::fmt::Debug + 'static,
3457{
3458 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_project::GetProjectError, R>) -> Self {
3459 match err {
3460 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3461 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3462 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3463 source: err.into(),
3464 }),
3465 }
3466 }
3467}
3468impl From<crate::operation::get_project::GetProjectError> for Error {
3469 fn from(err: crate::operation::get_project::GetProjectError) -> Self {
3470 match err {
3471 crate::operation::get_project::GetProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3472 crate::operation::get_project::GetProjectError::InternalServerException(inner) => Error::InternalServerException(inner),
3473 crate::operation::get_project::GetProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3474 crate::operation::get_project::GetProjectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3475 crate::operation::get_project::GetProjectError::ValidationException(inner) => Error::ValidationException(inner),
3476 crate::operation::get_project::GetProjectError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3477 crate::operation::get_project::GetProjectError::Unhandled(inner) => Error::Unhandled(inner),
3478 }
3479 }
3480}
3481impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_project_profile::GetProjectProfileError, R>> for Error
3482where
3483 R: Send + Sync + std::fmt::Debug + 'static,
3484{
3485 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_project_profile::GetProjectProfileError, R>) -> Self {
3486 match err {
3487 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3488 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3489 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3490 source: err.into(),
3491 }),
3492 }
3493 }
3494}
3495impl From<crate::operation::get_project_profile::GetProjectProfileError> for Error {
3496 fn from(err: crate::operation::get_project_profile::GetProjectProfileError) -> Self {
3497 match err {
3498 crate::operation::get_project_profile::GetProjectProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3499 crate::operation::get_project_profile::GetProjectProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
3500 crate::operation::get_project_profile::GetProjectProfileError::ResourceNotFoundException(inner) => {
3501 Error::ResourceNotFoundException(inner)
3502 }
3503 crate::operation::get_project_profile::GetProjectProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3504 crate::operation::get_project_profile::GetProjectProfileError::ValidationException(inner) => Error::ValidationException(inner),
3505 crate::operation::get_project_profile::GetProjectProfileError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3506 crate::operation::get_project_profile::GetProjectProfileError::Unhandled(inner) => Error::Unhandled(inner),
3507 }
3508 }
3509}
3510impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_rule::GetRuleError, R>> for Error
3511where
3512 R: Send + Sync + std::fmt::Debug + 'static,
3513{
3514 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_rule::GetRuleError, R>) -> Self {
3515 match err {
3516 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3517 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3518 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3519 source: err.into(),
3520 }),
3521 }
3522 }
3523}
3524impl From<crate::operation::get_rule::GetRuleError> for Error {
3525 fn from(err: crate::operation::get_rule::GetRuleError) -> Self {
3526 match err {
3527 crate::operation::get_rule::GetRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3528 crate::operation::get_rule::GetRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
3529 crate::operation::get_rule::GetRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3530 crate::operation::get_rule::GetRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3531 crate::operation::get_rule::GetRuleError::ValidationException(inner) => Error::ValidationException(inner),
3532 crate::operation::get_rule::GetRuleError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3533 crate::operation::get_rule::GetRuleError::Unhandled(inner) => Error::Unhandled(inner),
3534 }
3535 }
3536}
3537impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscription::GetSubscriptionError, R>> for Error
3538where
3539 R: Send + Sync + std::fmt::Debug + 'static,
3540{
3541 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscription::GetSubscriptionError, R>) -> Self {
3542 match err {
3543 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3544 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3545 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3546 source: err.into(),
3547 }),
3548 }
3549 }
3550}
3551impl From<crate::operation::get_subscription::GetSubscriptionError> for Error {
3552 fn from(err: crate::operation::get_subscription::GetSubscriptionError) -> Self {
3553 match err {
3554 crate::operation::get_subscription::GetSubscriptionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3555 crate::operation::get_subscription::GetSubscriptionError::InternalServerException(inner) => Error::InternalServerException(inner),
3556 crate::operation::get_subscription::GetSubscriptionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3557 crate::operation::get_subscription::GetSubscriptionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3558 crate::operation::get_subscription::GetSubscriptionError::ValidationException(inner) => Error::ValidationException(inner),
3559 crate::operation::get_subscription::GetSubscriptionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3560 crate::operation::get_subscription::GetSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
3561 }
3562 }
3563}
3564impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscription_grant::GetSubscriptionGrantError, R>> for Error
3565where
3566 R: Send + Sync + std::fmt::Debug + 'static,
3567{
3568 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscription_grant::GetSubscriptionGrantError, R>) -> Self {
3569 match err {
3570 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3571 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3572 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3573 source: err.into(),
3574 }),
3575 }
3576 }
3577}
3578impl From<crate::operation::get_subscription_grant::GetSubscriptionGrantError> for Error {
3579 fn from(err: crate::operation::get_subscription_grant::GetSubscriptionGrantError) -> Self {
3580 match err {
3581 crate::operation::get_subscription_grant::GetSubscriptionGrantError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3582 crate::operation::get_subscription_grant::GetSubscriptionGrantError::InternalServerException(inner) => {
3583 Error::InternalServerException(inner)
3584 }
3585 crate::operation::get_subscription_grant::GetSubscriptionGrantError::ResourceNotFoundException(inner) => {
3586 Error::ResourceNotFoundException(inner)
3587 }
3588 crate::operation::get_subscription_grant::GetSubscriptionGrantError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3589 crate::operation::get_subscription_grant::GetSubscriptionGrantError::ValidationException(inner) => Error::ValidationException(inner),
3590 crate::operation::get_subscription_grant::GetSubscriptionGrantError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3591 crate::operation::get_subscription_grant::GetSubscriptionGrantError::Unhandled(inner) => Error::Unhandled(inner),
3592 }
3593 }
3594}
3595impl<R>
3596 From<
3597 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscription_request_details::GetSubscriptionRequestDetailsError, R>,
3598 > for Error
3599where
3600 R: Send + Sync + std::fmt::Debug + 'static,
3601{
3602 fn from(
3603 err: ::aws_smithy_runtime_api::client::result::SdkError<
3604 crate::operation::get_subscription_request_details::GetSubscriptionRequestDetailsError,
3605 R,
3606 >,
3607 ) -> Self {
3608 match err {
3609 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3610 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3611 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3612 source: err.into(),
3613 }),
3614 }
3615 }
3616}
3617impl From<crate::operation::get_subscription_request_details::GetSubscriptionRequestDetailsError> for Error {
3618 fn from(err: crate::operation::get_subscription_request_details::GetSubscriptionRequestDetailsError) -> Self {
3619 match err {
3620 crate::operation::get_subscription_request_details::GetSubscriptionRequestDetailsError::AccessDeniedException(inner) => {
3621 Error::AccessDeniedException(inner)
3622 }
3623 crate::operation::get_subscription_request_details::GetSubscriptionRequestDetailsError::InternalServerException(inner) => {
3624 Error::InternalServerException(inner)
3625 }
3626 crate::operation::get_subscription_request_details::GetSubscriptionRequestDetailsError::ResourceNotFoundException(inner) => {
3627 Error::ResourceNotFoundException(inner)
3628 }
3629 crate::operation::get_subscription_request_details::GetSubscriptionRequestDetailsError::ThrottlingException(inner) => {
3630 Error::ThrottlingException(inner)
3631 }
3632 crate::operation::get_subscription_request_details::GetSubscriptionRequestDetailsError::ValidationException(inner) => {
3633 Error::ValidationException(inner)
3634 }
3635 crate::operation::get_subscription_request_details::GetSubscriptionRequestDetailsError::UnauthorizedException(inner) => {
3636 Error::UnauthorizedException(inner)
3637 }
3638 crate::operation::get_subscription_request_details::GetSubscriptionRequestDetailsError::Unhandled(inner) => Error::Unhandled(inner),
3639 }
3640 }
3641}
3642impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscription_target::GetSubscriptionTargetError, R>> for Error
3643where
3644 R: Send + Sync + std::fmt::Debug + 'static,
3645{
3646 fn from(
3647 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscription_target::GetSubscriptionTargetError, R>,
3648 ) -> Self {
3649 match err {
3650 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3651 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3652 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3653 source: err.into(),
3654 }),
3655 }
3656 }
3657}
3658impl From<crate::operation::get_subscription_target::GetSubscriptionTargetError> for Error {
3659 fn from(err: crate::operation::get_subscription_target::GetSubscriptionTargetError) -> Self {
3660 match err {
3661 crate::operation::get_subscription_target::GetSubscriptionTargetError::AccessDeniedException(inner) => {
3662 Error::AccessDeniedException(inner)
3663 }
3664 crate::operation::get_subscription_target::GetSubscriptionTargetError::InternalServerException(inner) => {
3665 Error::InternalServerException(inner)
3666 }
3667 crate::operation::get_subscription_target::GetSubscriptionTargetError::ResourceNotFoundException(inner) => {
3668 Error::ResourceNotFoundException(inner)
3669 }
3670 crate::operation::get_subscription_target::GetSubscriptionTargetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3671 crate::operation::get_subscription_target::GetSubscriptionTargetError::ValidationException(inner) => Error::ValidationException(inner),
3672 crate::operation::get_subscription_target::GetSubscriptionTargetError::UnauthorizedException(inner) => {
3673 Error::UnauthorizedException(inner)
3674 }
3675 crate::operation::get_subscription_target::GetSubscriptionTargetError::Unhandled(inner) => Error::Unhandled(inner),
3676 }
3677 }
3678}
3679impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError, R>>
3680 for Error
3681where
3682 R: Send + Sync + std::fmt::Debug + 'static,
3683{
3684 fn from(
3685 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError, R>,
3686 ) -> Self {
3687 match err {
3688 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3689 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3690 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3691 source: err.into(),
3692 }),
3693 }
3694 }
3695}
3696impl From<crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError> for Error {
3697 fn from(err: crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError) -> Self {
3698 match err {
3699 crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError::AccessDeniedException(inner) => {
3700 Error::AccessDeniedException(inner)
3701 }
3702 crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError::InternalServerException(inner) => {
3703 Error::InternalServerException(inner)
3704 }
3705 crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError::ResourceNotFoundException(inner) => {
3706 Error::ResourceNotFoundException(inner)
3707 }
3708 crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError::ThrottlingException(inner) => {
3709 Error::ThrottlingException(inner)
3710 }
3711 crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError::ValidationException(inner) => {
3712 Error::ValidationException(inner)
3713 }
3714 crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError::UnauthorizedException(inner) => {
3715 Error::UnauthorizedException(inner)
3716 }
3717 crate::operation::get_time_series_data_point::GetTimeSeriesDataPointError::Unhandled(inner) => Error::Unhandled(inner),
3718 }
3719 }
3720}
3721impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user_profile::GetUserProfileError, R>> for Error
3722where
3723 R: Send + Sync + std::fmt::Debug + 'static,
3724{
3725 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_user_profile::GetUserProfileError, R>) -> Self {
3726 match err {
3727 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3728 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3729 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3730 source: err.into(),
3731 }),
3732 }
3733 }
3734}
3735impl From<crate::operation::get_user_profile::GetUserProfileError> for Error {
3736 fn from(err: crate::operation::get_user_profile::GetUserProfileError) -> Self {
3737 match err {
3738 crate::operation::get_user_profile::GetUserProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3739 crate::operation::get_user_profile::GetUserProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
3740 crate::operation::get_user_profile::GetUserProfileError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3741 crate::operation::get_user_profile::GetUserProfileError::ValidationException(inner) => Error::ValidationException(inner),
3742 crate::operation::get_user_profile::GetUserProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3743 crate::operation::get_user_profile::GetUserProfileError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3744 crate::operation::get_user_profile::GetUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
3745 }
3746 }
3747}
3748impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_account_pools::ListAccountPoolsError, R>> for Error
3749where
3750 R: Send + Sync + std::fmt::Debug + 'static,
3751{
3752 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_account_pools::ListAccountPoolsError, R>) -> Self {
3753 match err {
3754 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3755 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3756 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3757 source: err.into(),
3758 }),
3759 }
3760 }
3761}
3762impl From<crate::operation::list_account_pools::ListAccountPoolsError> for Error {
3763 fn from(err: crate::operation::list_account_pools::ListAccountPoolsError) -> Self {
3764 match err {
3765 crate::operation::list_account_pools::ListAccountPoolsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3766 crate::operation::list_account_pools::ListAccountPoolsError::InternalServerException(inner) => Error::InternalServerException(inner),
3767 crate::operation::list_account_pools::ListAccountPoolsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3768 crate::operation::list_account_pools::ListAccountPoolsError::ValidationException(inner) => Error::ValidationException(inner),
3769 crate::operation::list_account_pools::ListAccountPoolsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3770 crate::operation::list_account_pools::ListAccountPoolsError::Unhandled(inner) => Error::Unhandled(inner),
3771 }
3772 }
3773}
3774impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolError, R>>
3775 for Error
3776where
3777 R: Send + Sync + std::fmt::Debug + 'static,
3778{
3779 fn from(
3780 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolError, R>,
3781 ) -> Self {
3782 match err {
3783 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3784 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3785 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3786 source: err.into(),
3787 }),
3788 }
3789 }
3790}
3791impl From<crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolError> for Error {
3792 fn from(err: crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolError) -> Self {
3793 match err {
3794 crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolError::AccessDeniedException(inner) => {
3795 Error::AccessDeniedException(inner)
3796 }
3797 crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolError::InternalServerException(inner) => {
3798 Error::InternalServerException(inner)
3799 }
3800 crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolError::ResourceNotFoundException(inner) => {
3801 Error::ResourceNotFoundException(inner)
3802 }
3803 crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolError::ThrottlingException(inner) => {
3804 Error::ThrottlingException(inner)
3805 }
3806 crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolError::ValidationException(inner) => {
3807 Error::ValidationException(inner)
3808 }
3809 crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolError::UnauthorizedException(inner) => {
3810 Error::UnauthorizedException(inner)
3811 }
3812 crate::operation::list_accounts_in_account_pool::ListAccountsInAccountPoolError::Unhandled(inner) => Error::Unhandled(inner),
3813 }
3814 }
3815}
3816impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_asset_filters::ListAssetFiltersError, R>> for Error
3817where
3818 R: Send + Sync + std::fmt::Debug + 'static,
3819{
3820 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_asset_filters::ListAssetFiltersError, R>) -> Self {
3821 match err {
3822 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3823 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3824 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3825 source: err.into(),
3826 }),
3827 }
3828 }
3829}
3830impl From<crate::operation::list_asset_filters::ListAssetFiltersError> for Error {
3831 fn from(err: crate::operation::list_asset_filters::ListAssetFiltersError) -> Self {
3832 match err {
3833 crate::operation::list_asset_filters::ListAssetFiltersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3834 crate::operation::list_asset_filters::ListAssetFiltersError::InternalServerException(inner) => Error::InternalServerException(inner),
3835 crate::operation::list_asset_filters::ListAssetFiltersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3836 crate::operation::list_asset_filters::ListAssetFiltersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3837 crate::operation::list_asset_filters::ListAssetFiltersError::ValidationException(inner) => Error::ValidationException(inner),
3838 crate::operation::list_asset_filters::ListAssetFiltersError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3839 crate::operation::list_asset_filters::ListAssetFiltersError::Unhandled(inner) => Error::Unhandled(inner),
3840 }
3841 }
3842}
3843impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_asset_revisions::ListAssetRevisionsError, R>> for Error
3844where
3845 R: Send + Sync + std::fmt::Debug + 'static,
3846{
3847 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_asset_revisions::ListAssetRevisionsError, R>) -> Self {
3848 match err {
3849 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3850 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3851 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3852 source: err.into(),
3853 }),
3854 }
3855 }
3856}
3857impl From<crate::operation::list_asset_revisions::ListAssetRevisionsError> for Error {
3858 fn from(err: crate::operation::list_asset_revisions::ListAssetRevisionsError) -> Self {
3859 match err {
3860 crate::operation::list_asset_revisions::ListAssetRevisionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3861 crate::operation::list_asset_revisions::ListAssetRevisionsError::InternalServerException(inner) => Error::InternalServerException(inner),
3862 crate::operation::list_asset_revisions::ListAssetRevisionsError::ResourceNotFoundException(inner) => {
3863 Error::ResourceNotFoundException(inner)
3864 }
3865 crate::operation::list_asset_revisions::ListAssetRevisionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3866 crate::operation::list_asset_revisions::ListAssetRevisionsError::ValidationException(inner) => Error::ValidationException(inner),
3867 crate::operation::list_asset_revisions::ListAssetRevisionsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3868 crate::operation::list_asset_revisions::ListAssetRevisionsError::Unhandled(inner) => Error::Unhandled(inner),
3869 }
3870 }
3871}
3872impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connections::ListConnectionsError, R>> for Error
3873where
3874 R: Send + Sync + std::fmt::Debug + 'static,
3875{
3876 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connections::ListConnectionsError, R>) -> Self {
3877 match err {
3878 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3879 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3880 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3881 source: err.into(),
3882 }),
3883 }
3884 }
3885}
3886impl From<crate::operation::list_connections::ListConnectionsError> for Error {
3887 fn from(err: crate::operation::list_connections::ListConnectionsError) -> Self {
3888 match err {
3889 crate::operation::list_connections::ListConnectionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3890 crate::operation::list_connections::ListConnectionsError::InternalServerException(inner) => Error::InternalServerException(inner),
3891 crate::operation::list_connections::ListConnectionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3892 crate::operation::list_connections::ListConnectionsError::ValidationException(inner) => Error::ValidationException(inner),
3893 crate::operation::list_connections::ListConnectionsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
3894 crate::operation::list_connections::ListConnectionsError::Unhandled(inner) => Error::Unhandled(inner),
3895 }
3896 }
3897}
3898impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_product_revisions::ListDataProductRevisionsError, R>>
3899 for Error
3900where
3901 R: Send + Sync + std::fmt::Debug + 'static,
3902{
3903 fn from(
3904 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_product_revisions::ListDataProductRevisionsError, R>,
3905 ) -> Self {
3906 match err {
3907 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3908 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3909 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3910 source: err.into(),
3911 }),
3912 }
3913 }
3914}
3915impl From<crate::operation::list_data_product_revisions::ListDataProductRevisionsError> for Error {
3916 fn from(err: crate::operation::list_data_product_revisions::ListDataProductRevisionsError) -> Self {
3917 match err {
3918 crate::operation::list_data_product_revisions::ListDataProductRevisionsError::AccessDeniedException(inner) => {
3919 Error::AccessDeniedException(inner)
3920 }
3921 crate::operation::list_data_product_revisions::ListDataProductRevisionsError::InternalServerException(inner) => {
3922 Error::InternalServerException(inner)
3923 }
3924 crate::operation::list_data_product_revisions::ListDataProductRevisionsError::ResourceNotFoundException(inner) => {
3925 Error::ResourceNotFoundException(inner)
3926 }
3927 crate::operation::list_data_product_revisions::ListDataProductRevisionsError::ThrottlingException(inner) => {
3928 Error::ThrottlingException(inner)
3929 }
3930 crate::operation::list_data_product_revisions::ListDataProductRevisionsError::ValidationException(inner) => {
3931 Error::ValidationException(inner)
3932 }
3933 crate::operation::list_data_product_revisions::ListDataProductRevisionsError::UnauthorizedException(inner) => {
3934 Error::UnauthorizedException(inner)
3935 }
3936 crate::operation::list_data_product_revisions::ListDataProductRevisionsError::Unhandled(inner) => Error::Unhandled(inner),
3937 }
3938 }
3939}
3940impl<R>
3941 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_source_run_activities::ListDataSourceRunActivitiesError, R>>
3942 for Error
3943where
3944 R: Send + Sync + std::fmt::Debug + 'static,
3945{
3946 fn from(
3947 err: ::aws_smithy_runtime_api::client::result::SdkError<
3948 crate::operation::list_data_source_run_activities::ListDataSourceRunActivitiesError,
3949 R,
3950 >,
3951 ) -> Self {
3952 match err {
3953 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3954 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3955 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3956 source: err.into(),
3957 }),
3958 }
3959 }
3960}
3961impl From<crate::operation::list_data_source_run_activities::ListDataSourceRunActivitiesError> for Error {
3962 fn from(err: crate::operation::list_data_source_run_activities::ListDataSourceRunActivitiesError) -> Self {
3963 match err {
3964 crate::operation::list_data_source_run_activities::ListDataSourceRunActivitiesError::AccessDeniedException(inner) => {
3965 Error::AccessDeniedException(inner)
3966 }
3967 crate::operation::list_data_source_run_activities::ListDataSourceRunActivitiesError::ConflictException(inner) => {
3968 Error::ConflictException(inner)
3969 }
3970 crate::operation::list_data_source_run_activities::ListDataSourceRunActivitiesError::InternalServerException(inner) => {
3971 Error::InternalServerException(inner)
3972 }
3973 crate::operation::list_data_source_run_activities::ListDataSourceRunActivitiesError::ResourceNotFoundException(inner) => {
3974 Error::ResourceNotFoundException(inner)
3975 }
3976 crate::operation::list_data_source_run_activities::ListDataSourceRunActivitiesError::ServiceQuotaExceededException(inner) => {
3977 Error::ServiceQuotaExceededException(inner)
3978 }
3979 crate::operation::list_data_source_run_activities::ListDataSourceRunActivitiesError::ThrottlingException(inner) => {
3980 Error::ThrottlingException(inner)
3981 }
3982 crate::operation::list_data_source_run_activities::ListDataSourceRunActivitiesError::ValidationException(inner) => {
3983 Error::ValidationException(inner)
3984 }
3985 crate::operation::list_data_source_run_activities::ListDataSourceRunActivitiesError::UnauthorizedException(inner) => {
3986 Error::UnauthorizedException(inner)
3987 }
3988 crate::operation::list_data_source_run_activities::ListDataSourceRunActivitiesError::Unhandled(inner) => Error::Unhandled(inner),
3989 }
3990 }
3991}
3992impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_source_runs::ListDataSourceRunsError, R>> for Error
3993where
3994 R: Send + Sync + std::fmt::Debug + 'static,
3995{
3996 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_source_runs::ListDataSourceRunsError, R>) -> Self {
3997 match err {
3998 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3999 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4000 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4001 source: err.into(),
4002 }),
4003 }
4004 }
4005}
4006impl From<crate::operation::list_data_source_runs::ListDataSourceRunsError> for Error {
4007 fn from(err: crate::operation::list_data_source_runs::ListDataSourceRunsError) -> Self {
4008 match err {
4009 crate::operation::list_data_source_runs::ListDataSourceRunsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4010 crate::operation::list_data_source_runs::ListDataSourceRunsError::ConflictException(inner) => Error::ConflictException(inner),
4011 crate::operation::list_data_source_runs::ListDataSourceRunsError::InternalServerException(inner) => Error::InternalServerException(inner),
4012 crate::operation::list_data_source_runs::ListDataSourceRunsError::ResourceNotFoundException(inner) => {
4013 Error::ResourceNotFoundException(inner)
4014 }
4015 crate::operation::list_data_source_runs::ListDataSourceRunsError::ServiceQuotaExceededException(inner) => {
4016 Error::ServiceQuotaExceededException(inner)
4017 }
4018 crate::operation::list_data_source_runs::ListDataSourceRunsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4019 crate::operation::list_data_source_runs::ListDataSourceRunsError::ValidationException(inner) => Error::ValidationException(inner),
4020 crate::operation::list_data_source_runs::ListDataSourceRunsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4021 crate::operation::list_data_source_runs::ListDataSourceRunsError::Unhandled(inner) => Error::Unhandled(inner),
4022 }
4023 }
4024}
4025impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_sources::ListDataSourcesError, R>> for Error
4026where
4027 R: Send + Sync + std::fmt::Debug + 'static,
4028{
4029 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_data_sources::ListDataSourcesError, R>) -> Self {
4030 match err {
4031 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4032 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4033 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4034 source: err.into(),
4035 }),
4036 }
4037 }
4038}
4039impl From<crate::operation::list_data_sources::ListDataSourcesError> for Error {
4040 fn from(err: crate::operation::list_data_sources::ListDataSourcesError) -> Self {
4041 match err {
4042 crate::operation::list_data_sources::ListDataSourcesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4043 crate::operation::list_data_sources::ListDataSourcesError::ConflictException(inner) => Error::ConflictException(inner),
4044 crate::operation::list_data_sources::ListDataSourcesError::InternalServerException(inner) => Error::InternalServerException(inner),
4045 crate::operation::list_data_sources::ListDataSourcesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4046 crate::operation::list_data_sources::ListDataSourcesError::ServiceQuotaExceededException(inner) => {
4047 Error::ServiceQuotaExceededException(inner)
4048 }
4049 crate::operation::list_data_sources::ListDataSourcesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4050 crate::operation::list_data_sources::ListDataSourcesError::ValidationException(inner) => Error::ValidationException(inner),
4051 crate::operation::list_data_sources::ListDataSourcesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4052 crate::operation::list_data_sources::ListDataSourcesError::Unhandled(inner) => Error::Unhandled(inner),
4053 }
4054 }
4055}
4056impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>> for Error
4057where
4058 R: Send + Sync + std::fmt::Debug + 'static,
4059{
4060 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domains::ListDomainsError, R>) -> Self {
4061 match err {
4062 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4063 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4064 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4065 source: err.into(),
4066 }),
4067 }
4068 }
4069}
4070impl From<crate::operation::list_domains::ListDomainsError> for Error {
4071 fn from(err: crate::operation::list_domains::ListDomainsError) -> Self {
4072 match err {
4073 crate::operation::list_domains::ListDomainsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4074 crate::operation::list_domains::ListDomainsError::ConflictException(inner) => Error::ConflictException(inner),
4075 crate::operation::list_domains::ListDomainsError::InternalServerException(inner) => Error::InternalServerException(inner),
4076 crate::operation::list_domains::ListDomainsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4077 crate::operation::list_domains::ListDomainsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
4078 crate::operation::list_domains::ListDomainsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4079 crate::operation::list_domains::ListDomainsError::ValidationException(inner) => Error::ValidationException(inner),
4080 crate::operation::list_domains::ListDomainsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4081 crate::operation::list_domains::ListDomainsError::Unhandled(inner) => Error::Unhandled(inner),
4082 }
4083 }
4084}
4085impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domain_units_for_parent::ListDomainUnitsForParentError, R>>
4086 for Error
4087where
4088 R: Send + Sync + std::fmt::Debug + 'static,
4089{
4090 fn from(
4091 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_domain_units_for_parent::ListDomainUnitsForParentError, R>,
4092 ) -> Self {
4093 match err {
4094 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4095 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4096 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4097 source: err.into(),
4098 }),
4099 }
4100 }
4101}
4102impl From<crate::operation::list_domain_units_for_parent::ListDomainUnitsForParentError> for Error {
4103 fn from(err: crate::operation::list_domain_units_for_parent::ListDomainUnitsForParentError) -> Self {
4104 match err {
4105 crate::operation::list_domain_units_for_parent::ListDomainUnitsForParentError::AccessDeniedException(inner) => {
4106 Error::AccessDeniedException(inner)
4107 }
4108 crate::operation::list_domain_units_for_parent::ListDomainUnitsForParentError::InternalServerException(inner) => {
4109 Error::InternalServerException(inner)
4110 }
4111 crate::operation::list_domain_units_for_parent::ListDomainUnitsForParentError::ThrottlingException(inner) => {
4112 Error::ThrottlingException(inner)
4113 }
4114 crate::operation::list_domain_units_for_parent::ListDomainUnitsForParentError::ValidationException(inner) => {
4115 Error::ValidationException(inner)
4116 }
4117 crate::operation::list_domain_units_for_parent::ListDomainUnitsForParentError::UnauthorizedException(inner) => {
4118 Error::UnauthorizedException(inner)
4119 }
4120 crate::operation::list_domain_units_for_parent::ListDomainUnitsForParentError::Unhandled(inner) => Error::Unhandled(inner),
4121 }
4122 }
4123}
4124impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_entity_owners::ListEntityOwnersError, R>> for Error
4125where
4126 R: Send + Sync + std::fmt::Debug + 'static,
4127{
4128 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_entity_owners::ListEntityOwnersError, R>) -> Self {
4129 match err {
4130 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4131 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4132 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4133 source: err.into(),
4134 }),
4135 }
4136 }
4137}
4138impl From<crate::operation::list_entity_owners::ListEntityOwnersError> for Error {
4139 fn from(err: crate::operation::list_entity_owners::ListEntityOwnersError) -> Self {
4140 match err {
4141 crate::operation::list_entity_owners::ListEntityOwnersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4142 crate::operation::list_entity_owners::ListEntityOwnersError::InternalServerException(inner) => Error::InternalServerException(inner),
4143 crate::operation::list_entity_owners::ListEntityOwnersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4144 crate::operation::list_entity_owners::ListEntityOwnersError::ValidationException(inner) => Error::ValidationException(inner),
4145 crate::operation::list_entity_owners::ListEntityOwnersError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4146 crate::operation::list_entity_owners::ListEntityOwnersError::Unhandled(inner) => Error::Unhandled(inner),
4147 }
4148 }
4149}
4150impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environment_actions::ListEnvironmentActionsError, R>> for Error
4151where
4152 R: Send + Sync + std::fmt::Debug + 'static,
4153{
4154 fn from(
4155 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environment_actions::ListEnvironmentActionsError, R>,
4156 ) -> Self {
4157 match err {
4158 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4159 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4160 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4161 source: err.into(),
4162 }),
4163 }
4164 }
4165}
4166impl From<crate::operation::list_environment_actions::ListEnvironmentActionsError> for Error {
4167 fn from(err: crate::operation::list_environment_actions::ListEnvironmentActionsError) -> Self {
4168 match err {
4169 crate::operation::list_environment_actions::ListEnvironmentActionsError::AccessDeniedException(inner) => {
4170 Error::AccessDeniedException(inner)
4171 }
4172 crate::operation::list_environment_actions::ListEnvironmentActionsError::InternalServerException(inner) => {
4173 Error::InternalServerException(inner)
4174 }
4175 crate::operation::list_environment_actions::ListEnvironmentActionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4176 crate::operation::list_environment_actions::ListEnvironmentActionsError::ValidationException(inner) => Error::ValidationException(inner),
4177 crate::operation::list_environment_actions::ListEnvironmentActionsError::UnauthorizedException(inner) => {
4178 Error::UnauthorizedException(inner)
4179 }
4180 crate::operation::list_environment_actions::ListEnvironmentActionsError::Unhandled(inner) => Error::Unhandled(inner),
4181 }
4182 }
4183}
4184impl<R>
4185 From<
4186 ::aws_smithy_runtime_api::client::result::SdkError<
4187 crate::operation::list_environment_blueprint_configurations::ListEnvironmentBlueprintConfigurationsError,
4188 R,
4189 >,
4190 > for Error
4191where
4192 R: Send + Sync + std::fmt::Debug + 'static,
4193{
4194 fn from(
4195 err: ::aws_smithy_runtime_api::client::result::SdkError<
4196 crate::operation::list_environment_blueprint_configurations::ListEnvironmentBlueprintConfigurationsError,
4197 R,
4198 >,
4199 ) -> Self {
4200 match err {
4201 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4202 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4203 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4204 source: err.into(),
4205 }),
4206 }
4207 }
4208}
4209impl From<crate::operation::list_environment_blueprint_configurations::ListEnvironmentBlueprintConfigurationsError> for Error {
4210 fn from(err: crate::operation::list_environment_blueprint_configurations::ListEnvironmentBlueprintConfigurationsError) -> Self {
4211 match err {
4212 crate::operation::list_environment_blueprint_configurations::ListEnvironmentBlueprintConfigurationsError::AccessDeniedException(
4213 inner,
4214 ) => Error::AccessDeniedException(inner),
4215 crate::operation::list_environment_blueprint_configurations::ListEnvironmentBlueprintConfigurationsError::InternalServerException(
4216 inner,
4217 ) => Error::InternalServerException(inner),
4218 crate::operation::list_environment_blueprint_configurations::ListEnvironmentBlueprintConfigurationsError::ResourceNotFoundException(
4219 inner,
4220 ) => Error::ResourceNotFoundException(inner),
4221 crate::operation::list_environment_blueprint_configurations::ListEnvironmentBlueprintConfigurationsError::ValidationException(inner) => {
4222 Error::ValidationException(inner)
4223 }
4224 crate::operation::list_environment_blueprint_configurations::ListEnvironmentBlueprintConfigurationsError::ThrottlingException(inner) => {
4225 Error::ThrottlingException(inner)
4226 }
4227 crate::operation::list_environment_blueprint_configurations::ListEnvironmentBlueprintConfigurationsError::UnauthorizedException(
4228 inner,
4229 ) => Error::UnauthorizedException(inner),
4230 crate::operation::list_environment_blueprint_configurations::ListEnvironmentBlueprintConfigurationsError::Unhandled(inner) => {
4231 Error::Unhandled(inner)
4232 }
4233 }
4234 }
4235}
4236impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environment_blueprints::ListEnvironmentBlueprintsError, R>>
4237 for Error
4238where
4239 R: Send + Sync + std::fmt::Debug + 'static,
4240{
4241 fn from(
4242 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environment_blueprints::ListEnvironmentBlueprintsError, R>,
4243 ) -> Self {
4244 match err {
4245 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4246 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4247 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4248 source: err.into(),
4249 }),
4250 }
4251 }
4252}
4253impl From<crate::operation::list_environment_blueprints::ListEnvironmentBlueprintsError> for Error {
4254 fn from(err: crate::operation::list_environment_blueprints::ListEnvironmentBlueprintsError) -> Self {
4255 match err {
4256 crate::operation::list_environment_blueprints::ListEnvironmentBlueprintsError::AccessDeniedException(inner) => {
4257 Error::AccessDeniedException(inner)
4258 }
4259 crate::operation::list_environment_blueprints::ListEnvironmentBlueprintsError::InternalServerException(inner) => {
4260 Error::InternalServerException(inner)
4261 }
4262 crate::operation::list_environment_blueprints::ListEnvironmentBlueprintsError::ResourceNotFoundException(inner) => {
4263 Error::ResourceNotFoundException(inner)
4264 }
4265 crate::operation::list_environment_blueprints::ListEnvironmentBlueprintsError::ThrottlingException(inner) => {
4266 Error::ThrottlingException(inner)
4267 }
4268 crate::operation::list_environment_blueprints::ListEnvironmentBlueprintsError::ValidationException(inner) => {
4269 Error::ValidationException(inner)
4270 }
4271 crate::operation::list_environment_blueprints::ListEnvironmentBlueprintsError::UnauthorizedException(inner) => {
4272 Error::UnauthorizedException(inner)
4273 }
4274 crate::operation::list_environment_blueprints::ListEnvironmentBlueprintsError::Unhandled(inner) => Error::Unhandled(inner),
4275 }
4276 }
4277}
4278impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environment_profiles::ListEnvironmentProfilesError, R>>
4279 for Error
4280where
4281 R: Send + Sync + std::fmt::Debug + 'static,
4282{
4283 fn from(
4284 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environment_profiles::ListEnvironmentProfilesError, R>,
4285 ) -> Self {
4286 match err {
4287 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4288 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4289 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4290 source: err.into(),
4291 }),
4292 }
4293 }
4294}
4295impl From<crate::operation::list_environment_profiles::ListEnvironmentProfilesError> for Error {
4296 fn from(err: crate::operation::list_environment_profiles::ListEnvironmentProfilesError) -> Self {
4297 match err {
4298 crate::operation::list_environment_profiles::ListEnvironmentProfilesError::AccessDeniedException(inner) => {
4299 Error::AccessDeniedException(inner)
4300 }
4301 crate::operation::list_environment_profiles::ListEnvironmentProfilesError::InternalServerException(inner) => {
4302 Error::InternalServerException(inner)
4303 }
4304 crate::operation::list_environment_profiles::ListEnvironmentProfilesError::ThrottlingException(inner) => {
4305 Error::ThrottlingException(inner)
4306 }
4307 crate::operation::list_environment_profiles::ListEnvironmentProfilesError::ValidationException(inner) => {
4308 Error::ValidationException(inner)
4309 }
4310 crate::operation::list_environment_profiles::ListEnvironmentProfilesError::UnauthorizedException(inner) => {
4311 Error::UnauthorizedException(inner)
4312 }
4313 crate::operation::list_environment_profiles::ListEnvironmentProfilesError::Unhandled(inner) => Error::Unhandled(inner),
4314 }
4315 }
4316}
4317impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environments::ListEnvironmentsError, R>> for Error
4318where
4319 R: Send + Sync + std::fmt::Debug + 'static,
4320{
4321 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_environments::ListEnvironmentsError, R>) -> Self {
4322 match err {
4323 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4324 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4325 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4326 source: err.into(),
4327 }),
4328 }
4329 }
4330}
4331impl From<crate::operation::list_environments::ListEnvironmentsError> for Error {
4332 fn from(err: crate::operation::list_environments::ListEnvironmentsError) -> Self {
4333 match err {
4334 crate::operation::list_environments::ListEnvironmentsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4335 crate::operation::list_environments::ListEnvironmentsError::InternalServerException(inner) => Error::InternalServerException(inner),
4336 crate::operation::list_environments::ListEnvironmentsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4337 crate::operation::list_environments::ListEnvironmentsError::ValidationException(inner) => Error::ValidationException(inner),
4338 crate::operation::list_environments::ListEnvironmentsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4339 crate::operation::list_environments::ListEnvironmentsError::Unhandled(inner) => Error::Unhandled(inner),
4340 }
4341 }
4342}
4343impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_runs::ListJobRunsError, R>> for Error
4344where
4345 R: Send + Sync + std::fmt::Debug + 'static,
4346{
4347 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_job_runs::ListJobRunsError, R>) -> Self {
4348 match err {
4349 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4350 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4351 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4352 source: err.into(),
4353 }),
4354 }
4355 }
4356}
4357impl From<crate::operation::list_job_runs::ListJobRunsError> for Error {
4358 fn from(err: crate::operation::list_job_runs::ListJobRunsError) -> Self {
4359 match err {
4360 crate::operation::list_job_runs::ListJobRunsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4361 crate::operation::list_job_runs::ListJobRunsError::InternalServerException(inner) => Error::InternalServerException(inner),
4362 crate::operation::list_job_runs::ListJobRunsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4363 crate::operation::list_job_runs::ListJobRunsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4364 crate::operation::list_job_runs::ListJobRunsError::ValidationException(inner) => Error::ValidationException(inner),
4365 crate::operation::list_job_runs::ListJobRunsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4366 crate::operation::list_job_runs::ListJobRunsError::Unhandled(inner) => Error::Unhandled(inner),
4367 }
4368 }
4369}
4370impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_events::ListLineageEventsError, R>> for Error
4371where
4372 R: Send + Sync + std::fmt::Debug + 'static,
4373{
4374 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_events::ListLineageEventsError, R>) -> Self {
4375 match err {
4376 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4377 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4378 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4379 source: err.into(),
4380 }),
4381 }
4382 }
4383}
4384impl From<crate::operation::list_lineage_events::ListLineageEventsError> for Error {
4385 fn from(err: crate::operation::list_lineage_events::ListLineageEventsError) -> Self {
4386 match err {
4387 crate::operation::list_lineage_events::ListLineageEventsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4388 crate::operation::list_lineage_events::ListLineageEventsError::InternalServerException(inner) => Error::InternalServerException(inner),
4389 crate::operation::list_lineage_events::ListLineageEventsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4390 crate::operation::list_lineage_events::ListLineageEventsError::ValidationException(inner) => Error::ValidationException(inner),
4391 crate::operation::list_lineage_events::ListLineageEventsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4392 crate::operation::list_lineage_events::ListLineageEventsError::Unhandled(inner) => Error::Unhandled(inner),
4393 }
4394 }
4395}
4396impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_node_history::ListLineageNodeHistoryError, R>>
4397 for Error
4398where
4399 R: Send + Sync + std::fmt::Debug + 'static,
4400{
4401 fn from(
4402 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lineage_node_history::ListLineageNodeHistoryError, R>,
4403 ) -> Self {
4404 match err {
4405 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4406 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4407 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4408 source: err.into(),
4409 }),
4410 }
4411 }
4412}
4413impl From<crate::operation::list_lineage_node_history::ListLineageNodeHistoryError> for Error {
4414 fn from(err: crate::operation::list_lineage_node_history::ListLineageNodeHistoryError) -> Self {
4415 match err {
4416 crate::operation::list_lineage_node_history::ListLineageNodeHistoryError::AccessDeniedException(inner) => {
4417 Error::AccessDeniedException(inner)
4418 }
4419 crate::operation::list_lineage_node_history::ListLineageNodeHistoryError::InternalServerException(inner) => {
4420 Error::InternalServerException(inner)
4421 }
4422 crate::operation::list_lineage_node_history::ListLineageNodeHistoryError::ResourceNotFoundException(inner) => {
4423 Error::ResourceNotFoundException(inner)
4424 }
4425 crate::operation::list_lineage_node_history::ListLineageNodeHistoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4426 crate::operation::list_lineage_node_history::ListLineageNodeHistoryError::ValidationException(inner) => Error::ValidationException(inner),
4427 crate::operation::list_lineage_node_history::ListLineageNodeHistoryError::UnauthorizedException(inner) => {
4428 Error::UnauthorizedException(inner)
4429 }
4430 crate::operation::list_lineage_node_history::ListLineageNodeHistoryError::Unhandled(inner) => Error::Unhandled(inner),
4431 }
4432 }
4433}
4434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_metadata_generation_runs::ListMetadataGenerationRunsError, R>>
4435 for Error
4436where
4437 R: Send + Sync + std::fmt::Debug + 'static,
4438{
4439 fn from(
4440 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_metadata_generation_runs::ListMetadataGenerationRunsError, R>,
4441 ) -> Self {
4442 match err {
4443 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4444 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4445 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4446 source: err.into(),
4447 }),
4448 }
4449 }
4450}
4451impl From<crate::operation::list_metadata_generation_runs::ListMetadataGenerationRunsError> for Error {
4452 fn from(err: crate::operation::list_metadata_generation_runs::ListMetadataGenerationRunsError) -> Self {
4453 match err {
4454 crate::operation::list_metadata_generation_runs::ListMetadataGenerationRunsError::AccessDeniedException(inner) => {
4455 Error::AccessDeniedException(inner)
4456 }
4457 crate::operation::list_metadata_generation_runs::ListMetadataGenerationRunsError::InternalServerException(inner) => {
4458 Error::InternalServerException(inner)
4459 }
4460 crate::operation::list_metadata_generation_runs::ListMetadataGenerationRunsError::ResourceNotFoundException(inner) => {
4461 Error::ResourceNotFoundException(inner)
4462 }
4463 crate::operation::list_metadata_generation_runs::ListMetadataGenerationRunsError::ThrottlingException(inner) => {
4464 Error::ThrottlingException(inner)
4465 }
4466 crate::operation::list_metadata_generation_runs::ListMetadataGenerationRunsError::ValidationException(inner) => {
4467 Error::ValidationException(inner)
4468 }
4469 crate::operation::list_metadata_generation_runs::ListMetadataGenerationRunsError::UnauthorizedException(inner) => {
4470 Error::UnauthorizedException(inner)
4471 }
4472 crate::operation::list_metadata_generation_runs::ListMetadataGenerationRunsError::Unhandled(inner) => Error::Unhandled(inner),
4473 }
4474 }
4475}
4476impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebook_runs::ListNotebookRunsError, R>> for Error
4477where
4478 R: Send + Sync + std::fmt::Debug + 'static,
4479{
4480 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebook_runs::ListNotebookRunsError, R>) -> Self {
4481 match err {
4482 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4483 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4484 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4485 source: err.into(),
4486 }),
4487 }
4488 }
4489}
4490impl From<crate::operation::list_notebook_runs::ListNotebookRunsError> for Error {
4491 fn from(err: crate::operation::list_notebook_runs::ListNotebookRunsError) -> Self {
4492 match err {
4493 crate::operation::list_notebook_runs::ListNotebookRunsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4494 crate::operation::list_notebook_runs::ListNotebookRunsError::InternalServerException(inner) => Error::InternalServerException(inner),
4495 crate::operation::list_notebook_runs::ListNotebookRunsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4496 crate::operation::list_notebook_runs::ListNotebookRunsError::ValidationException(inner) => Error::ValidationException(inner),
4497 crate::operation::list_notebook_runs::ListNotebookRunsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4498 crate::operation::list_notebook_runs::ListNotebookRunsError::Unhandled(inner) => Error::Unhandled(inner),
4499 }
4500 }
4501}
4502impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebooks::ListNotebooksError, R>> for Error
4503where
4504 R: Send + Sync + std::fmt::Debug + 'static,
4505{
4506 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notebooks::ListNotebooksError, R>) -> Self {
4507 match err {
4508 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4509 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4510 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4511 source: err.into(),
4512 }),
4513 }
4514 }
4515}
4516impl From<crate::operation::list_notebooks::ListNotebooksError> for Error {
4517 fn from(err: crate::operation::list_notebooks::ListNotebooksError) -> Self {
4518 match err {
4519 crate::operation::list_notebooks::ListNotebooksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4520 crate::operation::list_notebooks::ListNotebooksError::InternalServerException(inner) => Error::InternalServerException(inner),
4521 crate::operation::list_notebooks::ListNotebooksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4522 crate::operation::list_notebooks::ListNotebooksError::ValidationException(inner) => Error::ValidationException(inner),
4523 crate::operation::list_notebooks::ListNotebooksError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4524 crate::operation::list_notebooks::ListNotebooksError::Unhandled(inner) => Error::Unhandled(inner),
4525 }
4526 }
4527}
4528impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notifications::ListNotificationsError, R>> for Error
4529where
4530 R: Send + Sync + std::fmt::Debug + 'static,
4531{
4532 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_notifications::ListNotificationsError, R>) -> Self {
4533 match err {
4534 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4535 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4536 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4537 source: err.into(),
4538 }),
4539 }
4540 }
4541}
4542impl From<crate::operation::list_notifications::ListNotificationsError> for Error {
4543 fn from(err: crate::operation::list_notifications::ListNotificationsError) -> Self {
4544 match err {
4545 crate::operation::list_notifications::ListNotificationsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4546 crate::operation::list_notifications::ListNotificationsError::InternalServerException(inner) => Error::InternalServerException(inner),
4547 crate::operation::list_notifications::ListNotificationsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4548 crate::operation::list_notifications::ListNotificationsError::ValidationException(inner) => Error::ValidationException(inner),
4549 crate::operation::list_notifications::ListNotificationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4550 crate::operation::list_notifications::ListNotificationsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4551 crate::operation::list_notifications::ListNotificationsError::Unhandled(inner) => Error::Unhandled(inner),
4552 }
4553 }
4554}
4555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_grants::ListPolicyGrantsError, R>> for Error
4556where
4557 R: Send + Sync + std::fmt::Debug + 'static,
4558{
4559 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_policy_grants::ListPolicyGrantsError, R>) -> Self {
4560 match err {
4561 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4562 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4563 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4564 source: err.into(),
4565 }),
4566 }
4567 }
4568}
4569impl From<crate::operation::list_policy_grants::ListPolicyGrantsError> for Error {
4570 fn from(err: crate::operation::list_policy_grants::ListPolicyGrantsError) -> Self {
4571 match err {
4572 crate::operation::list_policy_grants::ListPolicyGrantsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4573 crate::operation::list_policy_grants::ListPolicyGrantsError::InternalServerException(inner) => Error::InternalServerException(inner),
4574 crate::operation::list_policy_grants::ListPolicyGrantsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4575 crate::operation::list_policy_grants::ListPolicyGrantsError::ValidationException(inner) => Error::ValidationException(inner),
4576 crate::operation::list_policy_grants::ListPolicyGrantsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4577 crate::operation::list_policy_grants::ListPolicyGrantsError::Unhandled(inner) => Error::Unhandled(inner),
4578 }
4579 }
4580}
4581impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_project_memberships::ListProjectMembershipsError, R>> for Error
4582where
4583 R: Send + Sync + std::fmt::Debug + 'static,
4584{
4585 fn from(
4586 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_project_memberships::ListProjectMembershipsError, R>,
4587 ) -> Self {
4588 match err {
4589 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4590 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4591 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4592 source: err.into(),
4593 }),
4594 }
4595 }
4596}
4597impl From<crate::operation::list_project_memberships::ListProjectMembershipsError> for Error {
4598 fn from(err: crate::operation::list_project_memberships::ListProjectMembershipsError) -> Self {
4599 match err {
4600 crate::operation::list_project_memberships::ListProjectMembershipsError::AccessDeniedException(inner) => {
4601 Error::AccessDeniedException(inner)
4602 }
4603 crate::operation::list_project_memberships::ListProjectMembershipsError::InternalServerException(inner) => {
4604 Error::InternalServerException(inner)
4605 }
4606 crate::operation::list_project_memberships::ListProjectMembershipsError::ResourceNotFoundException(inner) => {
4607 Error::ResourceNotFoundException(inner)
4608 }
4609 crate::operation::list_project_memberships::ListProjectMembershipsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4610 crate::operation::list_project_memberships::ListProjectMembershipsError::ValidationException(inner) => Error::ValidationException(inner),
4611 crate::operation::list_project_memberships::ListProjectMembershipsError::UnauthorizedException(inner) => {
4612 Error::UnauthorizedException(inner)
4613 }
4614 crate::operation::list_project_memberships::ListProjectMembershipsError::Unhandled(inner) => Error::Unhandled(inner),
4615 }
4616 }
4617}
4618impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_project_profiles::ListProjectProfilesError, R>> for Error
4619where
4620 R: Send + Sync + std::fmt::Debug + 'static,
4621{
4622 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_project_profiles::ListProjectProfilesError, R>) -> Self {
4623 match err {
4624 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4625 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4626 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4627 source: err.into(),
4628 }),
4629 }
4630 }
4631}
4632impl From<crate::operation::list_project_profiles::ListProjectProfilesError> for Error {
4633 fn from(err: crate::operation::list_project_profiles::ListProjectProfilesError) -> Self {
4634 match err {
4635 crate::operation::list_project_profiles::ListProjectProfilesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4636 crate::operation::list_project_profiles::ListProjectProfilesError::InternalServerException(inner) => {
4637 Error::InternalServerException(inner)
4638 }
4639 crate::operation::list_project_profiles::ListProjectProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4640 crate::operation::list_project_profiles::ListProjectProfilesError::ValidationException(inner) => Error::ValidationException(inner),
4641 crate::operation::list_project_profiles::ListProjectProfilesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4642 crate::operation::list_project_profiles::ListProjectProfilesError::Unhandled(inner) => Error::Unhandled(inner),
4643 }
4644 }
4645}
4646impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>> for Error
4647where
4648 R: Send + Sync + std::fmt::Debug + 'static,
4649{
4650 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_projects::ListProjectsError, R>) -> Self {
4651 match err {
4652 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4653 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4654 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4655 source: err.into(),
4656 }),
4657 }
4658 }
4659}
4660impl From<crate::operation::list_projects::ListProjectsError> for Error {
4661 fn from(err: crate::operation::list_projects::ListProjectsError) -> Self {
4662 match err {
4663 crate::operation::list_projects::ListProjectsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4664 crate::operation::list_projects::ListProjectsError::InternalServerException(inner) => Error::InternalServerException(inner),
4665 crate::operation::list_projects::ListProjectsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4666 crate::operation::list_projects::ListProjectsError::ValidationException(inner) => Error::ValidationException(inner),
4667 crate::operation::list_projects::ListProjectsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4668 crate::operation::list_projects::ListProjectsError::Unhandled(inner) => Error::Unhandled(inner),
4669 }
4670 }
4671}
4672impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rules::ListRulesError, R>> for Error
4673where
4674 R: Send + Sync + std::fmt::Debug + 'static,
4675{
4676 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_rules::ListRulesError, R>) -> Self {
4677 match err {
4678 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4679 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4680 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4681 source: err.into(),
4682 }),
4683 }
4684 }
4685}
4686impl From<crate::operation::list_rules::ListRulesError> for Error {
4687 fn from(err: crate::operation::list_rules::ListRulesError) -> Self {
4688 match err {
4689 crate::operation::list_rules::ListRulesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4690 crate::operation::list_rules::ListRulesError::InternalServerException(inner) => Error::InternalServerException(inner),
4691 crate::operation::list_rules::ListRulesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4692 crate::operation::list_rules::ListRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4693 crate::operation::list_rules::ListRulesError::ValidationException(inner) => Error::ValidationException(inner),
4694 crate::operation::list_rules::ListRulesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4695 crate::operation::list_rules::ListRulesError::Unhandled(inner) => Error::Unhandled(inner),
4696 }
4697 }
4698}
4699impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscription_grants::ListSubscriptionGrantsError, R>> for Error
4700where
4701 R: Send + Sync + std::fmt::Debug + 'static,
4702{
4703 fn from(
4704 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscription_grants::ListSubscriptionGrantsError, R>,
4705 ) -> Self {
4706 match err {
4707 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4708 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4709 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4710 source: err.into(),
4711 }),
4712 }
4713 }
4714}
4715impl From<crate::operation::list_subscription_grants::ListSubscriptionGrantsError> for Error {
4716 fn from(err: crate::operation::list_subscription_grants::ListSubscriptionGrantsError) -> Self {
4717 match err {
4718 crate::operation::list_subscription_grants::ListSubscriptionGrantsError::AccessDeniedException(inner) => {
4719 Error::AccessDeniedException(inner)
4720 }
4721 crate::operation::list_subscription_grants::ListSubscriptionGrantsError::InternalServerException(inner) => {
4722 Error::InternalServerException(inner)
4723 }
4724 crate::operation::list_subscription_grants::ListSubscriptionGrantsError::ResourceNotFoundException(inner) => {
4725 Error::ResourceNotFoundException(inner)
4726 }
4727 crate::operation::list_subscription_grants::ListSubscriptionGrantsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4728 crate::operation::list_subscription_grants::ListSubscriptionGrantsError::ValidationException(inner) => Error::ValidationException(inner),
4729 crate::operation::list_subscription_grants::ListSubscriptionGrantsError::UnauthorizedException(inner) => {
4730 Error::UnauthorizedException(inner)
4731 }
4732 crate::operation::list_subscription_grants::ListSubscriptionGrantsError::Unhandled(inner) => Error::Unhandled(inner),
4733 }
4734 }
4735}
4736impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscription_requests::ListSubscriptionRequestsError, R>>
4737 for Error
4738where
4739 R: Send + Sync + std::fmt::Debug + 'static,
4740{
4741 fn from(
4742 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscription_requests::ListSubscriptionRequestsError, R>,
4743 ) -> Self {
4744 match err {
4745 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4746 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4747 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4748 source: err.into(),
4749 }),
4750 }
4751 }
4752}
4753impl From<crate::operation::list_subscription_requests::ListSubscriptionRequestsError> for Error {
4754 fn from(err: crate::operation::list_subscription_requests::ListSubscriptionRequestsError) -> Self {
4755 match err {
4756 crate::operation::list_subscription_requests::ListSubscriptionRequestsError::AccessDeniedException(inner) => {
4757 Error::AccessDeniedException(inner)
4758 }
4759 crate::operation::list_subscription_requests::ListSubscriptionRequestsError::InternalServerException(inner) => {
4760 Error::InternalServerException(inner)
4761 }
4762 crate::operation::list_subscription_requests::ListSubscriptionRequestsError::ResourceNotFoundException(inner) => {
4763 Error::ResourceNotFoundException(inner)
4764 }
4765 crate::operation::list_subscription_requests::ListSubscriptionRequestsError::ThrottlingException(inner) => {
4766 Error::ThrottlingException(inner)
4767 }
4768 crate::operation::list_subscription_requests::ListSubscriptionRequestsError::ValidationException(inner) => {
4769 Error::ValidationException(inner)
4770 }
4771 crate::operation::list_subscription_requests::ListSubscriptionRequestsError::UnauthorizedException(inner) => {
4772 Error::UnauthorizedException(inner)
4773 }
4774 crate::operation::list_subscription_requests::ListSubscriptionRequestsError::Unhandled(inner) => Error::Unhandled(inner),
4775 }
4776 }
4777}
4778impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscriptions::ListSubscriptionsError, R>> for Error
4779where
4780 R: Send + Sync + std::fmt::Debug + 'static,
4781{
4782 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscriptions::ListSubscriptionsError, R>) -> Self {
4783 match err {
4784 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4785 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4786 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4787 source: err.into(),
4788 }),
4789 }
4790 }
4791}
4792impl From<crate::operation::list_subscriptions::ListSubscriptionsError> for Error {
4793 fn from(err: crate::operation::list_subscriptions::ListSubscriptionsError) -> Self {
4794 match err {
4795 crate::operation::list_subscriptions::ListSubscriptionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4796 crate::operation::list_subscriptions::ListSubscriptionsError::InternalServerException(inner) => Error::InternalServerException(inner),
4797 crate::operation::list_subscriptions::ListSubscriptionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4798 crate::operation::list_subscriptions::ListSubscriptionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4799 crate::operation::list_subscriptions::ListSubscriptionsError::ValidationException(inner) => Error::ValidationException(inner),
4800 crate::operation::list_subscriptions::ListSubscriptionsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4801 crate::operation::list_subscriptions::ListSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
4802 }
4803 }
4804}
4805impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscription_targets::ListSubscriptionTargetsError, R>>
4806 for Error
4807where
4808 R: Send + Sync + std::fmt::Debug + 'static,
4809{
4810 fn from(
4811 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscription_targets::ListSubscriptionTargetsError, R>,
4812 ) -> Self {
4813 match err {
4814 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4815 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4816 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4817 source: err.into(),
4818 }),
4819 }
4820 }
4821}
4822impl From<crate::operation::list_subscription_targets::ListSubscriptionTargetsError> for Error {
4823 fn from(err: crate::operation::list_subscription_targets::ListSubscriptionTargetsError) -> Self {
4824 match err {
4825 crate::operation::list_subscription_targets::ListSubscriptionTargetsError::AccessDeniedException(inner) => {
4826 Error::AccessDeniedException(inner)
4827 }
4828 crate::operation::list_subscription_targets::ListSubscriptionTargetsError::InternalServerException(inner) => {
4829 Error::InternalServerException(inner)
4830 }
4831 crate::operation::list_subscription_targets::ListSubscriptionTargetsError::ResourceNotFoundException(inner) => {
4832 Error::ResourceNotFoundException(inner)
4833 }
4834 crate::operation::list_subscription_targets::ListSubscriptionTargetsError::ThrottlingException(inner) => {
4835 Error::ThrottlingException(inner)
4836 }
4837 crate::operation::list_subscription_targets::ListSubscriptionTargetsError::ValidationException(inner) => {
4838 Error::ValidationException(inner)
4839 }
4840 crate::operation::list_subscription_targets::ListSubscriptionTargetsError::UnauthorizedException(inner) => {
4841 Error::UnauthorizedException(inner)
4842 }
4843 crate::operation::list_subscription_targets::ListSubscriptionTargetsError::Unhandled(inner) => Error::Unhandled(inner),
4844 }
4845 }
4846}
4847impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
4848where
4849 R: Send + Sync + std::fmt::Debug + 'static,
4850{
4851 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
4852 match err {
4853 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4854 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4855 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4856 source: err.into(),
4857 }),
4858 }
4859 }
4860}
4861impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
4862 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
4863 match err {
4864 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
4865 Error::InternalServerException(inner)
4866 }
4867 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
4868 Error::ResourceNotFoundException(inner)
4869 }
4870 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
4871 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4872 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4873 crate::operation::list_tags_for_resource::ListTagsForResourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4874 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
4875 }
4876 }
4877}
4878impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_time_series_data_points::ListTimeSeriesDataPointsError, R>>
4879 for Error
4880where
4881 R: Send + Sync + std::fmt::Debug + 'static,
4882{
4883 fn from(
4884 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_time_series_data_points::ListTimeSeriesDataPointsError, R>,
4885 ) -> Self {
4886 match err {
4887 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4888 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4889 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4890 source: err.into(),
4891 }),
4892 }
4893 }
4894}
4895impl From<crate::operation::list_time_series_data_points::ListTimeSeriesDataPointsError> for Error {
4896 fn from(err: crate::operation::list_time_series_data_points::ListTimeSeriesDataPointsError) -> Self {
4897 match err {
4898 crate::operation::list_time_series_data_points::ListTimeSeriesDataPointsError::AccessDeniedException(inner) => {
4899 Error::AccessDeniedException(inner)
4900 }
4901 crate::operation::list_time_series_data_points::ListTimeSeriesDataPointsError::InternalServerException(inner) => {
4902 Error::InternalServerException(inner)
4903 }
4904 crate::operation::list_time_series_data_points::ListTimeSeriesDataPointsError::ResourceNotFoundException(inner) => {
4905 Error::ResourceNotFoundException(inner)
4906 }
4907 crate::operation::list_time_series_data_points::ListTimeSeriesDataPointsError::ThrottlingException(inner) => {
4908 Error::ThrottlingException(inner)
4909 }
4910 crate::operation::list_time_series_data_points::ListTimeSeriesDataPointsError::ValidationException(inner) => {
4911 Error::ValidationException(inner)
4912 }
4913 crate::operation::list_time_series_data_points::ListTimeSeriesDataPointsError::UnauthorizedException(inner) => {
4914 Error::UnauthorizedException(inner)
4915 }
4916 crate::operation::list_time_series_data_points::ListTimeSeriesDataPointsError::Unhandled(inner) => Error::Unhandled(inner),
4917 }
4918 }
4919}
4920impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::post_lineage_event::PostLineageEventError, R>> for Error
4921where
4922 R: Send + Sync + std::fmt::Debug + 'static,
4923{
4924 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::post_lineage_event::PostLineageEventError, R>) -> Self {
4925 match err {
4926 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4927 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4928 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4929 source: err.into(),
4930 }),
4931 }
4932 }
4933}
4934impl From<crate::operation::post_lineage_event::PostLineageEventError> for Error {
4935 fn from(err: crate::operation::post_lineage_event::PostLineageEventError) -> Self {
4936 match err {
4937 crate::operation::post_lineage_event::PostLineageEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
4938 crate::operation::post_lineage_event::PostLineageEventError::ConflictException(inner) => Error::ConflictException(inner),
4939 crate::operation::post_lineage_event::PostLineageEventError::InternalServerException(inner) => Error::InternalServerException(inner),
4940 crate::operation::post_lineage_event::PostLineageEventError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
4941 crate::operation::post_lineage_event::PostLineageEventError::ServiceQuotaExceededException(inner) => {
4942 Error::ServiceQuotaExceededException(inner)
4943 }
4944 crate::operation::post_lineage_event::PostLineageEventError::ThrottlingException(inner) => Error::ThrottlingException(inner),
4945 crate::operation::post_lineage_event::PostLineageEventError::ValidationException(inner) => Error::ValidationException(inner),
4946 crate::operation::post_lineage_event::PostLineageEventError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
4947 crate::operation::post_lineage_event::PostLineageEventError::Unhandled(inner) => Error::Unhandled(inner),
4948 }
4949 }
4950}
4951impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::post_time_series_data_points::PostTimeSeriesDataPointsError, R>>
4952 for Error
4953where
4954 R: Send + Sync + std::fmt::Debug + 'static,
4955{
4956 fn from(
4957 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::post_time_series_data_points::PostTimeSeriesDataPointsError, R>,
4958 ) -> Self {
4959 match err {
4960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4963 source: err.into(),
4964 }),
4965 }
4966 }
4967}
4968impl From<crate::operation::post_time_series_data_points::PostTimeSeriesDataPointsError> for Error {
4969 fn from(err: crate::operation::post_time_series_data_points::PostTimeSeriesDataPointsError) -> Self {
4970 match err {
4971 crate::operation::post_time_series_data_points::PostTimeSeriesDataPointsError::AccessDeniedException(inner) => {
4972 Error::AccessDeniedException(inner)
4973 }
4974 crate::operation::post_time_series_data_points::PostTimeSeriesDataPointsError::ConflictException(inner) => {
4975 Error::ConflictException(inner)
4976 }
4977 crate::operation::post_time_series_data_points::PostTimeSeriesDataPointsError::InternalServerException(inner) => {
4978 Error::InternalServerException(inner)
4979 }
4980 crate::operation::post_time_series_data_points::PostTimeSeriesDataPointsError::ResourceNotFoundException(inner) => {
4981 Error::ResourceNotFoundException(inner)
4982 }
4983 crate::operation::post_time_series_data_points::PostTimeSeriesDataPointsError::ServiceQuotaExceededException(inner) => {
4984 Error::ServiceQuotaExceededException(inner)
4985 }
4986 crate::operation::post_time_series_data_points::PostTimeSeriesDataPointsError::ThrottlingException(inner) => {
4987 Error::ThrottlingException(inner)
4988 }
4989 crate::operation::post_time_series_data_points::PostTimeSeriesDataPointsError::ValidationException(inner) => {
4990 Error::ValidationException(inner)
4991 }
4992 crate::operation::post_time_series_data_points::PostTimeSeriesDataPointsError::UnauthorizedException(inner) => {
4993 Error::UnauthorizedException(inner)
4994 }
4995 crate::operation::post_time_series_data_points::PostTimeSeriesDataPointsError::Unhandled(inner) => Error::Unhandled(inner),
4996 }
4997 }
4998}
4999impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_data_export_configuration::PutDataExportConfigurationError, R>>
5000 for Error
5001where
5002 R: Send + Sync + std::fmt::Debug + 'static,
5003{
5004 fn from(
5005 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_data_export_configuration::PutDataExportConfigurationError, R>,
5006 ) -> Self {
5007 match err {
5008 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5009 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5010 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5011 source: err.into(),
5012 }),
5013 }
5014 }
5015}
5016impl From<crate::operation::put_data_export_configuration::PutDataExportConfigurationError> for Error {
5017 fn from(err: crate::operation::put_data_export_configuration::PutDataExportConfigurationError) -> Self {
5018 match err {
5019 crate::operation::put_data_export_configuration::PutDataExportConfigurationError::AccessDeniedException(inner) => {
5020 Error::AccessDeniedException(inner)
5021 }
5022 crate::operation::put_data_export_configuration::PutDataExportConfigurationError::ConflictException(inner) => {
5023 Error::ConflictException(inner)
5024 }
5025 crate::operation::put_data_export_configuration::PutDataExportConfigurationError::InternalServerException(inner) => {
5026 Error::InternalServerException(inner)
5027 }
5028 crate::operation::put_data_export_configuration::PutDataExportConfigurationError::ResourceNotFoundException(inner) => {
5029 Error::ResourceNotFoundException(inner)
5030 }
5031 crate::operation::put_data_export_configuration::PutDataExportConfigurationError::ServiceQuotaExceededException(inner) => {
5032 Error::ServiceQuotaExceededException(inner)
5033 }
5034 crate::operation::put_data_export_configuration::PutDataExportConfigurationError::ThrottlingException(inner) => {
5035 Error::ThrottlingException(inner)
5036 }
5037 crate::operation::put_data_export_configuration::PutDataExportConfigurationError::ValidationException(inner) => {
5038 Error::ValidationException(inner)
5039 }
5040 crate::operation::put_data_export_configuration::PutDataExportConfigurationError::UnauthorizedException(inner) => {
5041 Error::UnauthorizedException(inner)
5042 }
5043 crate::operation::put_data_export_configuration::PutDataExportConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
5044 }
5045 }
5046}
5047impl<R>
5048 From<
5049 ::aws_smithy_runtime_api::client::result::SdkError<
5050 crate::operation::put_environment_blueprint_configuration::PutEnvironmentBlueprintConfigurationError,
5051 R,
5052 >,
5053 > for Error
5054where
5055 R: Send + Sync + std::fmt::Debug + 'static,
5056{
5057 fn from(
5058 err: ::aws_smithy_runtime_api::client::result::SdkError<
5059 crate::operation::put_environment_blueprint_configuration::PutEnvironmentBlueprintConfigurationError,
5060 R,
5061 >,
5062 ) -> Self {
5063 match err {
5064 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5065 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5066 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5067 source: err.into(),
5068 }),
5069 }
5070 }
5071}
5072impl From<crate::operation::put_environment_blueprint_configuration::PutEnvironmentBlueprintConfigurationError> for Error {
5073 fn from(err: crate::operation::put_environment_blueprint_configuration::PutEnvironmentBlueprintConfigurationError) -> Self {
5074 match err {
5075 crate::operation::put_environment_blueprint_configuration::PutEnvironmentBlueprintConfigurationError::AccessDeniedException(inner) => {
5076 Error::AccessDeniedException(inner)
5077 }
5078 crate::operation::put_environment_blueprint_configuration::PutEnvironmentBlueprintConfigurationError::ConflictException(inner) => {
5079 Error::ConflictException(inner)
5080 }
5081 crate::operation::put_environment_blueprint_configuration::PutEnvironmentBlueprintConfigurationError::InternalServerException(inner) => {
5082 Error::InternalServerException(inner)
5083 }
5084 crate::operation::put_environment_blueprint_configuration::PutEnvironmentBlueprintConfigurationError::ResourceNotFoundException(
5085 inner,
5086 ) => Error::ResourceNotFoundException(inner),
5087 crate::operation::put_environment_blueprint_configuration::PutEnvironmentBlueprintConfigurationError::ValidationException(inner) => {
5088 Error::ValidationException(inner)
5089 }
5090 crate::operation::put_environment_blueprint_configuration::PutEnvironmentBlueprintConfigurationError::ThrottlingException(inner) => {
5091 Error::ThrottlingException(inner)
5092 }
5093 crate::operation::put_environment_blueprint_configuration::PutEnvironmentBlueprintConfigurationError::UnauthorizedException(inner) => {
5094 Error::UnauthorizedException(inner)
5095 }
5096 crate::operation::put_environment_blueprint_configuration::PutEnvironmentBlueprintConfigurationError::Unhandled(inner) => {
5097 Error::Unhandled(inner)
5098 }
5099 }
5100 }
5101}
5102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_graph::QueryGraphError, R>> for Error
5103where
5104 R: Send + Sync + std::fmt::Debug + 'static,
5105{
5106 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_graph::QueryGraphError, R>) -> Self {
5107 match err {
5108 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5109 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5110 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5111 source: err.into(),
5112 }),
5113 }
5114 }
5115}
5116impl From<crate::operation::query_graph::QueryGraphError> for Error {
5117 fn from(err: crate::operation::query_graph::QueryGraphError) -> Self {
5118 match err {
5119 crate::operation::query_graph::QueryGraphError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5120 crate::operation::query_graph::QueryGraphError::InternalServerException(inner) => Error::InternalServerException(inner),
5121 crate::operation::query_graph::QueryGraphError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5122 crate::operation::query_graph::QueryGraphError::ValidationException(inner) => Error::ValidationException(inner),
5123 crate::operation::query_graph::QueryGraphError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5124 crate::operation::query_graph::QueryGraphError::Unhandled(inner) => Error::Unhandled(inner),
5125 }
5126 }
5127}
5128impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_predictions::RejectPredictionsError, R>> for Error
5129where
5130 R: Send + Sync + std::fmt::Debug + 'static,
5131{
5132 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_predictions::RejectPredictionsError, R>) -> Self {
5133 match err {
5134 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5135 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5136 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5137 source: err.into(),
5138 }),
5139 }
5140 }
5141}
5142impl From<crate::operation::reject_predictions::RejectPredictionsError> for Error {
5143 fn from(err: crate::operation::reject_predictions::RejectPredictionsError) -> Self {
5144 match err {
5145 crate::operation::reject_predictions::RejectPredictionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5146 crate::operation::reject_predictions::RejectPredictionsError::ConflictException(inner) => Error::ConflictException(inner),
5147 crate::operation::reject_predictions::RejectPredictionsError::InternalServerException(inner) => Error::InternalServerException(inner),
5148 crate::operation::reject_predictions::RejectPredictionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5149 crate::operation::reject_predictions::RejectPredictionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5150 crate::operation::reject_predictions::RejectPredictionsError::ValidationException(inner) => Error::ValidationException(inner),
5151 crate::operation::reject_predictions::RejectPredictionsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5152 crate::operation::reject_predictions::RejectPredictionsError::Unhandled(inner) => Error::Unhandled(inner),
5153 }
5154 }
5155}
5156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_subscription_request::RejectSubscriptionRequestError, R>>
5157 for Error
5158where
5159 R: Send + Sync + std::fmt::Debug + 'static,
5160{
5161 fn from(
5162 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_subscription_request::RejectSubscriptionRequestError, R>,
5163 ) -> Self {
5164 match err {
5165 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5166 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5167 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5168 source: err.into(),
5169 }),
5170 }
5171 }
5172}
5173impl From<crate::operation::reject_subscription_request::RejectSubscriptionRequestError> for Error {
5174 fn from(err: crate::operation::reject_subscription_request::RejectSubscriptionRequestError) -> Self {
5175 match err {
5176 crate::operation::reject_subscription_request::RejectSubscriptionRequestError::AccessDeniedException(inner) => {
5177 Error::AccessDeniedException(inner)
5178 }
5179 crate::operation::reject_subscription_request::RejectSubscriptionRequestError::ConflictException(inner) => {
5180 Error::ConflictException(inner)
5181 }
5182 crate::operation::reject_subscription_request::RejectSubscriptionRequestError::InternalServerException(inner) => {
5183 Error::InternalServerException(inner)
5184 }
5185 crate::operation::reject_subscription_request::RejectSubscriptionRequestError::ResourceNotFoundException(inner) => {
5186 Error::ResourceNotFoundException(inner)
5187 }
5188 crate::operation::reject_subscription_request::RejectSubscriptionRequestError::ThrottlingException(inner) => {
5189 Error::ThrottlingException(inner)
5190 }
5191 crate::operation::reject_subscription_request::RejectSubscriptionRequestError::ValidationException(inner) => {
5192 Error::ValidationException(inner)
5193 }
5194 crate::operation::reject_subscription_request::RejectSubscriptionRequestError::UnauthorizedException(inner) => {
5195 Error::UnauthorizedException(inner)
5196 }
5197 crate::operation::reject_subscription_request::RejectSubscriptionRequestError::Unhandled(inner) => Error::Unhandled(inner),
5198 }
5199 }
5200}
5201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_entity_owner::RemoveEntityOwnerError, R>> for Error
5202where
5203 R: Send + Sync + std::fmt::Debug + 'static,
5204{
5205 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_entity_owner::RemoveEntityOwnerError, R>) -> Self {
5206 match err {
5207 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5208 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5209 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5210 source: err.into(),
5211 }),
5212 }
5213 }
5214}
5215impl From<crate::operation::remove_entity_owner::RemoveEntityOwnerError> for Error {
5216 fn from(err: crate::operation::remove_entity_owner::RemoveEntityOwnerError) -> Self {
5217 match err {
5218 crate::operation::remove_entity_owner::RemoveEntityOwnerError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5219 crate::operation::remove_entity_owner::RemoveEntityOwnerError::InternalServerException(inner) => Error::InternalServerException(inner),
5220 crate::operation::remove_entity_owner::RemoveEntityOwnerError::ResourceNotFoundException(inner) => {
5221 Error::ResourceNotFoundException(inner)
5222 }
5223 crate::operation::remove_entity_owner::RemoveEntityOwnerError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5224 crate::operation::remove_entity_owner::RemoveEntityOwnerError::ValidationException(inner) => Error::ValidationException(inner),
5225 crate::operation::remove_entity_owner::RemoveEntityOwnerError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5226 crate::operation::remove_entity_owner::RemoveEntityOwnerError::Unhandled(inner) => Error::Unhandled(inner),
5227 }
5228 }
5229}
5230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_policy_grant::RemovePolicyGrantError, R>> for Error
5231where
5232 R: Send + Sync + std::fmt::Debug + 'static,
5233{
5234 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_policy_grant::RemovePolicyGrantError, R>) -> Self {
5235 match err {
5236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5239 source: err.into(),
5240 }),
5241 }
5242 }
5243}
5244impl From<crate::operation::remove_policy_grant::RemovePolicyGrantError> for Error {
5245 fn from(err: crate::operation::remove_policy_grant::RemovePolicyGrantError) -> Self {
5246 match err {
5247 crate::operation::remove_policy_grant::RemovePolicyGrantError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5248 crate::operation::remove_policy_grant::RemovePolicyGrantError::InternalServerException(inner) => Error::InternalServerException(inner),
5249 crate::operation::remove_policy_grant::RemovePolicyGrantError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5250 crate::operation::remove_policy_grant::RemovePolicyGrantError::ValidationException(inner) => Error::ValidationException(inner),
5251 crate::operation::remove_policy_grant::RemovePolicyGrantError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5252 crate::operation::remove_policy_grant::RemovePolicyGrantError::Unhandled(inner) => Error::Unhandled(inner),
5253 }
5254 }
5255}
5256impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_subscription::RevokeSubscriptionError, R>> for Error
5257where
5258 R: Send + Sync + std::fmt::Debug + 'static,
5259{
5260 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_subscription::RevokeSubscriptionError, R>) -> Self {
5261 match err {
5262 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5263 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5264 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5265 source: err.into(),
5266 }),
5267 }
5268 }
5269}
5270impl From<crate::operation::revoke_subscription::RevokeSubscriptionError> for Error {
5271 fn from(err: crate::operation::revoke_subscription::RevokeSubscriptionError) -> Self {
5272 match err {
5273 crate::operation::revoke_subscription::RevokeSubscriptionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5274 crate::operation::revoke_subscription::RevokeSubscriptionError::ConflictException(inner) => Error::ConflictException(inner),
5275 crate::operation::revoke_subscription::RevokeSubscriptionError::InternalServerException(inner) => Error::InternalServerException(inner),
5276 crate::operation::revoke_subscription::RevokeSubscriptionError::ResourceNotFoundException(inner) => {
5277 Error::ResourceNotFoundException(inner)
5278 }
5279 crate::operation::revoke_subscription::RevokeSubscriptionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5280 crate::operation::revoke_subscription::RevokeSubscriptionError::ValidationException(inner) => Error::ValidationException(inner),
5281 crate::operation::revoke_subscription::RevokeSubscriptionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5282 crate::operation::revoke_subscription::RevokeSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
5283 }
5284 }
5285}
5286impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>> for Error
5287where
5288 R: Send + Sync + std::fmt::Debug + 'static,
5289{
5290 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search::SearchError, R>) -> Self {
5291 match err {
5292 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5293 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5294 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5295 source: err.into(),
5296 }),
5297 }
5298 }
5299}
5300impl From<crate::operation::search::SearchError> for Error {
5301 fn from(err: crate::operation::search::SearchError) -> Self {
5302 match err {
5303 crate::operation::search::SearchError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5304 crate::operation::search::SearchError::InternalServerException(inner) => Error::InternalServerException(inner),
5305 crate::operation::search::SearchError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5306 crate::operation::search::SearchError::ValidationException(inner) => Error::ValidationException(inner),
5307 crate::operation::search::SearchError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5308 crate::operation::search::SearchError::Unhandled(inner) => Error::Unhandled(inner),
5309 }
5310 }
5311}
5312impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_group_profiles::SearchGroupProfilesError, R>> for Error
5313where
5314 R: Send + Sync + std::fmt::Debug + 'static,
5315{
5316 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_group_profiles::SearchGroupProfilesError, R>) -> Self {
5317 match err {
5318 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5319 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5320 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5321 source: err.into(),
5322 }),
5323 }
5324 }
5325}
5326impl From<crate::operation::search_group_profiles::SearchGroupProfilesError> for Error {
5327 fn from(err: crate::operation::search_group_profiles::SearchGroupProfilesError) -> Self {
5328 match err {
5329 crate::operation::search_group_profiles::SearchGroupProfilesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5330 crate::operation::search_group_profiles::SearchGroupProfilesError::InternalServerException(inner) => {
5331 Error::InternalServerException(inner)
5332 }
5333 crate::operation::search_group_profiles::SearchGroupProfilesError::ResourceNotFoundException(inner) => {
5334 Error::ResourceNotFoundException(inner)
5335 }
5336 crate::operation::search_group_profiles::SearchGroupProfilesError::ValidationException(inner) => Error::ValidationException(inner),
5337 crate::operation::search_group_profiles::SearchGroupProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5338 crate::operation::search_group_profiles::SearchGroupProfilesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5339 crate::operation::search_group_profiles::SearchGroupProfilesError::Unhandled(inner) => Error::Unhandled(inner),
5340 }
5341 }
5342}
5343impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_listings::SearchListingsError, R>> for Error
5344where
5345 R: Send + Sync + std::fmt::Debug + 'static,
5346{
5347 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_listings::SearchListingsError, R>) -> Self {
5348 match err {
5349 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5350 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5351 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5352 source: err.into(),
5353 }),
5354 }
5355 }
5356}
5357impl From<crate::operation::search_listings::SearchListingsError> for Error {
5358 fn from(err: crate::operation::search_listings::SearchListingsError) -> Self {
5359 match err {
5360 crate::operation::search_listings::SearchListingsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5361 crate::operation::search_listings::SearchListingsError::InternalServerException(inner) => Error::InternalServerException(inner),
5362 crate::operation::search_listings::SearchListingsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5363 crate::operation::search_listings::SearchListingsError::ValidationException(inner) => Error::ValidationException(inner),
5364 crate::operation::search_listings::SearchListingsError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5365 crate::operation::search_listings::SearchListingsError::Unhandled(inner) => Error::Unhandled(inner),
5366 }
5367 }
5368}
5369impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_types::SearchTypesError, R>> for Error
5370where
5371 R: Send + Sync + std::fmt::Debug + 'static,
5372{
5373 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_types::SearchTypesError, R>) -> Self {
5374 match err {
5375 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5376 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5377 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5378 source: err.into(),
5379 }),
5380 }
5381 }
5382}
5383impl From<crate::operation::search_types::SearchTypesError> for Error {
5384 fn from(err: crate::operation::search_types::SearchTypesError) -> Self {
5385 match err {
5386 crate::operation::search_types::SearchTypesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5387 crate::operation::search_types::SearchTypesError::InternalServerException(inner) => Error::InternalServerException(inner),
5388 crate::operation::search_types::SearchTypesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5389 crate::operation::search_types::SearchTypesError::ValidationException(inner) => Error::ValidationException(inner),
5390 crate::operation::search_types::SearchTypesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5391 crate::operation::search_types::SearchTypesError::Unhandled(inner) => Error::Unhandled(inner),
5392 }
5393 }
5394}
5395impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_user_profiles::SearchUserProfilesError, R>> for Error
5396where
5397 R: Send + Sync + std::fmt::Debug + 'static,
5398{
5399 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_user_profiles::SearchUserProfilesError, R>) -> Self {
5400 match err {
5401 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5402 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5403 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5404 source: err.into(),
5405 }),
5406 }
5407 }
5408}
5409impl From<crate::operation::search_user_profiles::SearchUserProfilesError> for Error {
5410 fn from(err: crate::operation::search_user_profiles::SearchUserProfilesError) -> Self {
5411 match err {
5412 crate::operation::search_user_profiles::SearchUserProfilesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5413 crate::operation::search_user_profiles::SearchUserProfilesError::InternalServerException(inner) => Error::InternalServerException(inner),
5414 crate::operation::search_user_profiles::SearchUserProfilesError::ResourceNotFoundException(inner) => {
5415 Error::ResourceNotFoundException(inner)
5416 }
5417 crate::operation::search_user_profiles::SearchUserProfilesError::ValidationException(inner) => Error::ValidationException(inner),
5418 crate::operation::search_user_profiles::SearchUserProfilesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5419 crate::operation::search_user_profiles::SearchUserProfilesError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5420 crate::operation::search_user_profiles::SearchUserProfilesError::Unhandled(inner) => Error::Unhandled(inner),
5421 }
5422 }
5423}
5424impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_data_source_run::StartDataSourceRunError, R>> for Error
5425where
5426 R: Send + Sync + std::fmt::Debug + 'static,
5427{
5428 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_data_source_run::StartDataSourceRunError, R>) -> Self {
5429 match err {
5430 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5431 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5432 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5433 source: err.into(),
5434 }),
5435 }
5436 }
5437}
5438impl From<crate::operation::start_data_source_run::StartDataSourceRunError> for Error {
5439 fn from(err: crate::operation::start_data_source_run::StartDataSourceRunError) -> Self {
5440 match err {
5441 crate::operation::start_data_source_run::StartDataSourceRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5442 crate::operation::start_data_source_run::StartDataSourceRunError::ConflictException(inner) => Error::ConflictException(inner),
5443 crate::operation::start_data_source_run::StartDataSourceRunError::InternalServerException(inner) => Error::InternalServerException(inner),
5444 crate::operation::start_data_source_run::StartDataSourceRunError::ResourceNotFoundException(inner) => {
5445 Error::ResourceNotFoundException(inner)
5446 }
5447 crate::operation::start_data_source_run::StartDataSourceRunError::ServiceQuotaExceededException(inner) => {
5448 Error::ServiceQuotaExceededException(inner)
5449 }
5450 crate::operation::start_data_source_run::StartDataSourceRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5451 crate::operation::start_data_source_run::StartDataSourceRunError::ValidationException(inner) => Error::ValidationException(inner),
5452 crate::operation::start_data_source_run::StartDataSourceRunError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5453 crate::operation::start_data_source_run::StartDataSourceRunError::Unhandled(inner) => Error::Unhandled(inner),
5454 }
5455 }
5456}
5457impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_metadata_generation_run::StartMetadataGenerationRunError, R>>
5458 for Error
5459where
5460 R: Send + Sync + std::fmt::Debug + 'static,
5461{
5462 fn from(
5463 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_metadata_generation_run::StartMetadataGenerationRunError, R>,
5464 ) -> Self {
5465 match err {
5466 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5467 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5468 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5469 source: err.into(),
5470 }),
5471 }
5472 }
5473}
5474impl From<crate::operation::start_metadata_generation_run::StartMetadataGenerationRunError> for Error {
5475 fn from(err: crate::operation::start_metadata_generation_run::StartMetadataGenerationRunError) -> Self {
5476 match err {
5477 crate::operation::start_metadata_generation_run::StartMetadataGenerationRunError::AccessDeniedException(inner) => {
5478 Error::AccessDeniedException(inner)
5479 }
5480 crate::operation::start_metadata_generation_run::StartMetadataGenerationRunError::ConflictException(inner) => {
5481 Error::ConflictException(inner)
5482 }
5483 crate::operation::start_metadata_generation_run::StartMetadataGenerationRunError::InternalServerException(inner) => {
5484 Error::InternalServerException(inner)
5485 }
5486 crate::operation::start_metadata_generation_run::StartMetadataGenerationRunError::ResourceNotFoundException(inner) => {
5487 Error::ResourceNotFoundException(inner)
5488 }
5489 crate::operation::start_metadata_generation_run::StartMetadataGenerationRunError::ServiceQuotaExceededException(inner) => {
5490 Error::ServiceQuotaExceededException(inner)
5491 }
5492 crate::operation::start_metadata_generation_run::StartMetadataGenerationRunError::ThrottlingException(inner) => {
5493 Error::ThrottlingException(inner)
5494 }
5495 crate::operation::start_metadata_generation_run::StartMetadataGenerationRunError::ValidationException(inner) => {
5496 Error::ValidationException(inner)
5497 }
5498 crate::operation::start_metadata_generation_run::StartMetadataGenerationRunError::UnauthorizedException(inner) => {
5499 Error::UnauthorizedException(inner)
5500 }
5501 crate::operation::start_metadata_generation_run::StartMetadataGenerationRunError::Unhandled(inner) => Error::Unhandled(inner),
5502 }
5503 }
5504}
5505impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_export::StartNotebookExportError, R>> for Error
5506where
5507 R: Send + Sync + std::fmt::Debug + 'static,
5508{
5509 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_export::StartNotebookExportError, R>) -> Self {
5510 match err {
5511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5514 source: err.into(),
5515 }),
5516 }
5517 }
5518}
5519impl From<crate::operation::start_notebook_export::StartNotebookExportError> for Error {
5520 fn from(err: crate::operation::start_notebook_export::StartNotebookExportError) -> Self {
5521 match err {
5522 crate::operation::start_notebook_export::StartNotebookExportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5523 crate::operation::start_notebook_export::StartNotebookExportError::ConflictException(inner) => Error::ConflictException(inner),
5524 crate::operation::start_notebook_export::StartNotebookExportError::InternalServerException(inner) => {
5525 Error::InternalServerException(inner)
5526 }
5527 crate::operation::start_notebook_export::StartNotebookExportError::ResourceNotFoundException(inner) => {
5528 Error::ResourceNotFoundException(inner)
5529 }
5530 crate::operation::start_notebook_export::StartNotebookExportError::ServiceQuotaExceededException(inner) => {
5531 Error::ServiceQuotaExceededException(inner)
5532 }
5533 crate::operation::start_notebook_export::StartNotebookExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5534 crate::operation::start_notebook_export::StartNotebookExportError::ValidationException(inner) => Error::ValidationException(inner),
5535 crate::operation::start_notebook_export::StartNotebookExportError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5536 crate::operation::start_notebook_export::StartNotebookExportError::Unhandled(inner) => Error::Unhandled(inner),
5537 }
5538 }
5539}
5540impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_import::StartNotebookImportError, R>> for Error
5541where
5542 R: Send + Sync + std::fmt::Debug + 'static,
5543{
5544 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_import::StartNotebookImportError, R>) -> Self {
5545 match err {
5546 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5547 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5548 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5549 source: err.into(),
5550 }),
5551 }
5552 }
5553}
5554impl From<crate::operation::start_notebook_import::StartNotebookImportError> for Error {
5555 fn from(err: crate::operation::start_notebook_import::StartNotebookImportError) -> Self {
5556 match err {
5557 crate::operation::start_notebook_import::StartNotebookImportError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5558 crate::operation::start_notebook_import::StartNotebookImportError::ConflictException(inner) => Error::ConflictException(inner),
5559 crate::operation::start_notebook_import::StartNotebookImportError::InternalServerException(inner) => {
5560 Error::InternalServerException(inner)
5561 }
5562 crate::operation::start_notebook_import::StartNotebookImportError::ResourceNotFoundException(inner) => {
5563 Error::ResourceNotFoundException(inner)
5564 }
5565 crate::operation::start_notebook_import::StartNotebookImportError::ServiceQuotaExceededException(inner) => {
5566 Error::ServiceQuotaExceededException(inner)
5567 }
5568 crate::operation::start_notebook_import::StartNotebookImportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5569 crate::operation::start_notebook_import::StartNotebookImportError::ValidationException(inner) => Error::ValidationException(inner),
5570 crate::operation::start_notebook_import::StartNotebookImportError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5571 crate::operation::start_notebook_import::StartNotebookImportError::Unhandled(inner) => Error::Unhandled(inner),
5572 }
5573 }
5574}
5575impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_run::StartNotebookRunError, R>> for Error
5576where
5577 R: Send + Sync + std::fmt::Debug + 'static,
5578{
5579 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_notebook_run::StartNotebookRunError, R>) -> Self {
5580 match err {
5581 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5582 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5583 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5584 source: err.into(),
5585 }),
5586 }
5587 }
5588}
5589impl From<crate::operation::start_notebook_run::StartNotebookRunError> for Error {
5590 fn from(err: crate::operation::start_notebook_run::StartNotebookRunError) -> Self {
5591 match err {
5592 crate::operation::start_notebook_run::StartNotebookRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5593 crate::operation::start_notebook_run::StartNotebookRunError::ConflictException(inner) => Error::ConflictException(inner),
5594 crate::operation::start_notebook_run::StartNotebookRunError::InternalServerException(inner) => Error::InternalServerException(inner),
5595 crate::operation::start_notebook_run::StartNotebookRunError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5596 crate::operation::start_notebook_run::StartNotebookRunError::ServiceQuotaExceededException(inner) => {
5597 Error::ServiceQuotaExceededException(inner)
5598 }
5599 crate::operation::start_notebook_run::StartNotebookRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5600 crate::operation::start_notebook_run::StartNotebookRunError::ValidationException(inner) => Error::ValidationException(inner),
5601 crate::operation::start_notebook_run::StartNotebookRunError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5602 crate::operation::start_notebook_run::StartNotebookRunError::Unhandled(inner) => Error::Unhandled(inner),
5603 }
5604 }
5605}
5606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_notebook_run::StopNotebookRunError, R>> for Error
5607where
5608 R: Send + Sync + std::fmt::Debug + 'static,
5609{
5610 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_notebook_run::StopNotebookRunError, R>) -> Self {
5611 match err {
5612 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5613 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5614 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5615 source: err.into(),
5616 }),
5617 }
5618 }
5619}
5620impl From<crate::operation::stop_notebook_run::StopNotebookRunError> for Error {
5621 fn from(err: crate::operation::stop_notebook_run::StopNotebookRunError) -> Self {
5622 match err {
5623 crate::operation::stop_notebook_run::StopNotebookRunError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5624 crate::operation::stop_notebook_run::StopNotebookRunError::ConflictException(inner) => Error::ConflictException(inner),
5625 crate::operation::stop_notebook_run::StopNotebookRunError::InternalServerException(inner) => Error::InternalServerException(inner),
5626 crate::operation::stop_notebook_run::StopNotebookRunError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5627 crate::operation::stop_notebook_run::StopNotebookRunError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5628 crate::operation::stop_notebook_run::StopNotebookRunError::ValidationException(inner) => Error::ValidationException(inner),
5629 crate::operation::stop_notebook_run::StopNotebookRunError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5630 crate::operation::stop_notebook_run::StopNotebookRunError::Unhandled(inner) => Error::Unhandled(inner),
5631 }
5632 }
5633}
5634impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
5635where
5636 R: Send + Sync + std::fmt::Debug + 'static,
5637{
5638 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
5639 match err {
5640 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5641 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5642 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5643 source: err.into(),
5644 }),
5645 }
5646 }
5647}
5648impl From<crate::operation::tag_resource::TagResourceError> for Error {
5649 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
5650 match err {
5651 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
5652 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5653 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
5654 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5655 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5656 crate::operation::tag_resource::TagResourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5657 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
5658 }
5659 }
5660}
5661impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
5662where
5663 R: Send + Sync + std::fmt::Debug + 'static,
5664{
5665 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
5666 match err {
5667 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5668 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5669 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5670 source: err.into(),
5671 }),
5672 }
5673 }
5674}
5675impl From<crate::operation::untag_resource::UntagResourceError> for Error {
5676 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
5677 match err {
5678 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
5679 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5680 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5681 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5682 crate::operation::untag_resource::UntagResourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5683 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
5684 }
5685 }
5686}
5687impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_pool::UpdateAccountPoolError, R>> for Error
5688where
5689 R: Send + Sync + std::fmt::Debug + 'static,
5690{
5691 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_pool::UpdateAccountPoolError, R>) -> Self {
5692 match err {
5693 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5694 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5695 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5696 source: err.into(),
5697 }),
5698 }
5699 }
5700}
5701impl From<crate::operation::update_account_pool::UpdateAccountPoolError> for Error {
5702 fn from(err: crate::operation::update_account_pool::UpdateAccountPoolError) -> Self {
5703 match err {
5704 crate::operation::update_account_pool::UpdateAccountPoolError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5705 crate::operation::update_account_pool::UpdateAccountPoolError::ConflictException(inner) => Error::ConflictException(inner),
5706 crate::operation::update_account_pool::UpdateAccountPoolError::InternalServerException(inner) => Error::InternalServerException(inner),
5707 crate::operation::update_account_pool::UpdateAccountPoolError::ResourceNotFoundException(inner) => {
5708 Error::ResourceNotFoundException(inner)
5709 }
5710 crate::operation::update_account_pool::UpdateAccountPoolError::ServiceQuotaExceededException(inner) => {
5711 Error::ServiceQuotaExceededException(inner)
5712 }
5713 crate::operation::update_account_pool::UpdateAccountPoolError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5714 crate::operation::update_account_pool::UpdateAccountPoolError::ValidationException(inner) => Error::ValidationException(inner),
5715 crate::operation::update_account_pool::UpdateAccountPoolError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5716 crate::operation::update_account_pool::UpdateAccountPoolError::Unhandled(inner) => Error::Unhandled(inner),
5717 }
5718 }
5719}
5720impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_asset_filter::UpdateAssetFilterError, R>> for Error
5721where
5722 R: Send + Sync + std::fmt::Debug + 'static,
5723{
5724 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_asset_filter::UpdateAssetFilterError, R>) -> Self {
5725 match err {
5726 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5727 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5728 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5729 source: err.into(),
5730 }),
5731 }
5732 }
5733}
5734impl From<crate::operation::update_asset_filter::UpdateAssetFilterError> for Error {
5735 fn from(err: crate::operation::update_asset_filter::UpdateAssetFilterError) -> Self {
5736 match err {
5737 crate::operation::update_asset_filter::UpdateAssetFilterError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5738 crate::operation::update_asset_filter::UpdateAssetFilterError::ConflictException(inner) => Error::ConflictException(inner),
5739 crate::operation::update_asset_filter::UpdateAssetFilterError::InternalServerException(inner) => Error::InternalServerException(inner),
5740 crate::operation::update_asset_filter::UpdateAssetFilterError::ResourceNotFoundException(inner) => {
5741 Error::ResourceNotFoundException(inner)
5742 }
5743 crate::operation::update_asset_filter::UpdateAssetFilterError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5744 crate::operation::update_asset_filter::UpdateAssetFilterError::ValidationException(inner) => Error::ValidationException(inner),
5745 crate::operation::update_asset_filter::UpdateAssetFilterError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5746 crate::operation::update_asset_filter::UpdateAssetFilterError::Unhandled(inner) => Error::Unhandled(inner),
5747 }
5748 }
5749}
5750impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, R>> for Error
5751where
5752 R: Send + Sync + std::fmt::Debug + 'static,
5753{
5754 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_connection::UpdateConnectionError, R>) -> Self {
5755 match err {
5756 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5757 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5758 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5759 source: err.into(),
5760 }),
5761 }
5762 }
5763}
5764impl From<crate::operation::update_connection::UpdateConnectionError> for Error {
5765 fn from(err: crate::operation::update_connection::UpdateConnectionError) -> Self {
5766 match err {
5767 crate::operation::update_connection::UpdateConnectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5768 crate::operation::update_connection::UpdateConnectionError::ConflictException(inner) => Error::ConflictException(inner),
5769 crate::operation::update_connection::UpdateConnectionError::InternalServerException(inner) => Error::InternalServerException(inner),
5770 crate::operation::update_connection::UpdateConnectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5771 crate::operation::update_connection::UpdateConnectionError::ServiceQuotaExceededException(inner) => {
5772 Error::ServiceQuotaExceededException(inner)
5773 }
5774 crate::operation::update_connection::UpdateConnectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5775 crate::operation::update_connection::UpdateConnectionError::ValidationException(inner) => Error::ValidationException(inner),
5776 crate::operation::update_connection::UpdateConnectionError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5777 crate::operation::update_connection::UpdateConnectionError::Unhandled(inner) => Error::Unhandled(inner),
5778 }
5779 }
5780}
5781impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_source::UpdateDataSourceError, R>> for Error
5782where
5783 R: Send + Sync + std::fmt::Debug + 'static,
5784{
5785 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_data_source::UpdateDataSourceError, R>) -> Self {
5786 match err {
5787 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5788 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5789 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5790 source: err.into(),
5791 }),
5792 }
5793 }
5794}
5795impl From<crate::operation::update_data_source::UpdateDataSourceError> for Error {
5796 fn from(err: crate::operation::update_data_source::UpdateDataSourceError) -> Self {
5797 match err {
5798 crate::operation::update_data_source::UpdateDataSourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5799 crate::operation::update_data_source::UpdateDataSourceError::ConflictException(inner) => Error::ConflictException(inner),
5800 crate::operation::update_data_source::UpdateDataSourceError::InternalServerException(inner) => Error::InternalServerException(inner),
5801 crate::operation::update_data_source::UpdateDataSourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5802 crate::operation::update_data_source::UpdateDataSourceError::ServiceQuotaExceededException(inner) => {
5803 Error::ServiceQuotaExceededException(inner)
5804 }
5805 crate::operation::update_data_source::UpdateDataSourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5806 crate::operation::update_data_source::UpdateDataSourceError::ValidationException(inner) => Error::ValidationException(inner),
5807 crate::operation::update_data_source::UpdateDataSourceError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5808 crate::operation::update_data_source::UpdateDataSourceError::Unhandled(inner) => Error::Unhandled(inner),
5809 }
5810 }
5811}
5812impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>> for Error
5813where
5814 R: Send + Sync + std::fmt::Debug + 'static,
5815{
5816 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain::UpdateDomainError, R>) -> Self {
5817 match err {
5818 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5819 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5820 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5821 source: err.into(),
5822 }),
5823 }
5824 }
5825}
5826impl From<crate::operation::update_domain::UpdateDomainError> for Error {
5827 fn from(err: crate::operation::update_domain::UpdateDomainError) -> Self {
5828 match err {
5829 crate::operation::update_domain::UpdateDomainError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5830 crate::operation::update_domain::UpdateDomainError::ConflictException(inner) => Error::ConflictException(inner),
5831 crate::operation::update_domain::UpdateDomainError::InternalServerException(inner) => Error::InternalServerException(inner),
5832 crate::operation::update_domain::UpdateDomainError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5833 crate::operation::update_domain::UpdateDomainError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
5834 crate::operation::update_domain::UpdateDomainError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5835 crate::operation::update_domain::UpdateDomainError::ValidationException(inner) => Error::ValidationException(inner),
5836 crate::operation::update_domain::UpdateDomainError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5837 crate::operation::update_domain::UpdateDomainError::Unhandled(inner) => Error::Unhandled(inner),
5838 }
5839 }
5840}
5841impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_unit::UpdateDomainUnitError, R>> for Error
5842where
5843 R: Send + Sync + std::fmt::Debug + 'static,
5844{
5845 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_domain_unit::UpdateDomainUnitError, R>) -> Self {
5846 match err {
5847 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5848 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5849 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5850 source: err.into(),
5851 }),
5852 }
5853 }
5854}
5855impl From<crate::operation::update_domain_unit::UpdateDomainUnitError> for Error {
5856 fn from(err: crate::operation::update_domain_unit::UpdateDomainUnitError) -> Self {
5857 match err {
5858 crate::operation::update_domain_unit::UpdateDomainUnitError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5859 crate::operation::update_domain_unit::UpdateDomainUnitError::ConflictException(inner) => Error::ConflictException(inner),
5860 crate::operation::update_domain_unit::UpdateDomainUnitError::InternalServerException(inner) => Error::InternalServerException(inner),
5861 crate::operation::update_domain_unit::UpdateDomainUnitError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
5862 crate::operation::update_domain_unit::UpdateDomainUnitError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5863 crate::operation::update_domain_unit::UpdateDomainUnitError::ValidationException(inner) => Error::ValidationException(inner),
5864 crate::operation::update_domain_unit::UpdateDomainUnitError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5865 crate::operation::update_domain_unit::UpdateDomainUnitError::Unhandled(inner) => Error::Unhandled(inner),
5866 }
5867 }
5868}
5869impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment::UpdateEnvironmentError, R>> for Error
5870where
5871 R: Send + Sync + std::fmt::Debug + 'static,
5872{
5873 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment::UpdateEnvironmentError, R>) -> Self {
5874 match err {
5875 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5876 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5877 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5878 source: err.into(),
5879 }),
5880 }
5881 }
5882}
5883impl From<crate::operation::update_environment::UpdateEnvironmentError> for Error {
5884 fn from(err: crate::operation::update_environment::UpdateEnvironmentError) -> Self {
5885 match err {
5886 crate::operation::update_environment::UpdateEnvironmentError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
5887 crate::operation::update_environment::UpdateEnvironmentError::ConflictException(inner) => Error::ConflictException(inner),
5888 crate::operation::update_environment::UpdateEnvironmentError::InternalServerException(inner) => Error::InternalServerException(inner),
5889 crate::operation::update_environment::UpdateEnvironmentError::ServiceQuotaExceededException(inner) => {
5890 Error::ServiceQuotaExceededException(inner)
5891 }
5892 crate::operation::update_environment::UpdateEnvironmentError::ThrottlingException(inner) => Error::ThrottlingException(inner),
5893 crate::operation::update_environment::UpdateEnvironmentError::ValidationException(inner) => Error::ValidationException(inner),
5894 crate::operation::update_environment::UpdateEnvironmentError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
5895 crate::operation::update_environment::UpdateEnvironmentError::Unhandled(inner) => Error::Unhandled(inner),
5896 }
5897 }
5898}
5899impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment_action::UpdateEnvironmentActionError, R>>
5900 for Error
5901where
5902 R: Send + Sync + std::fmt::Debug + 'static,
5903{
5904 fn from(
5905 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment_action::UpdateEnvironmentActionError, R>,
5906 ) -> Self {
5907 match err {
5908 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5909 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5910 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5911 source: err.into(),
5912 }),
5913 }
5914 }
5915}
5916impl From<crate::operation::update_environment_action::UpdateEnvironmentActionError> for Error {
5917 fn from(err: crate::operation::update_environment_action::UpdateEnvironmentActionError) -> Self {
5918 match err {
5919 crate::operation::update_environment_action::UpdateEnvironmentActionError::AccessDeniedException(inner) => {
5920 Error::AccessDeniedException(inner)
5921 }
5922 crate::operation::update_environment_action::UpdateEnvironmentActionError::ConflictException(inner) => Error::ConflictException(inner),
5923 crate::operation::update_environment_action::UpdateEnvironmentActionError::InternalServerException(inner) => {
5924 Error::InternalServerException(inner)
5925 }
5926 crate::operation::update_environment_action::UpdateEnvironmentActionError::ResourceNotFoundException(inner) => {
5927 Error::ResourceNotFoundException(inner)
5928 }
5929 crate::operation::update_environment_action::UpdateEnvironmentActionError::ThrottlingException(inner) => {
5930 Error::ThrottlingException(inner)
5931 }
5932 crate::operation::update_environment_action::UpdateEnvironmentActionError::ValidationException(inner) => {
5933 Error::ValidationException(inner)
5934 }
5935 crate::operation::update_environment_action::UpdateEnvironmentActionError::UnauthorizedException(inner) => {
5936 Error::UnauthorizedException(inner)
5937 }
5938 crate::operation::update_environment_action::UpdateEnvironmentActionError::Unhandled(inner) => Error::Unhandled(inner),
5939 }
5940 }
5941}
5942impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment_blueprint::UpdateEnvironmentBlueprintError, R>>
5943 for Error
5944where
5945 R: Send + Sync + std::fmt::Debug + 'static,
5946{
5947 fn from(
5948 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment_blueprint::UpdateEnvironmentBlueprintError, R>,
5949 ) -> Self {
5950 match err {
5951 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5952 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5953 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5954 source: err.into(),
5955 }),
5956 }
5957 }
5958}
5959impl From<crate::operation::update_environment_blueprint::UpdateEnvironmentBlueprintError> for Error {
5960 fn from(err: crate::operation::update_environment_blueprint::UpdateEnvironmentBlueprintError) -> Self {
5961 match err {
5962 crate::operation::update_environment_blueprint::UpdateEnvironmentBlueprintError::AccessDeniedException(inner) => {
5963 Error::AccessDeniedException(inner)
5964 }
5965 crate::operation::update_environment_blueprint::UpdateEnvironmentBlueprintError::ConflictException(inner) => {
5966 Error::ConflictException(inner)
5967 }
5968 crate::operation::update_environment_blueprint::UpdateEnvironmentBlueprintError::InternalServerException(inner) => {
5969 Error::InternalServerException(inner)
5970 }
5971 crate::operation::update_environment_blueprint::UpdateEnvironmentBlueprintError::ResourceNotFoundException(inner) => {
5972 Error::ResourceNotFoundException(inner)
5973 }
5974 crate::operation::update_environment_blueprint::UpdateEnvironmentBlueprintError::ServiceQuotaExceededException(inner) => {
5975 Error::ServiceQuotaExceededException(inner)
5976 }
5977 crate::operation::update_environment_blueprint::UpdateEnvironmentBlueprintError::ThrottlingException(inner) => {
5978 Error::ThrottlingException(inner)
5979 }
5980 crate::operation::update_environment_blueprint::UpdateEnvironmentBlueprintError::ValidationException(inner) => {
5981 Error::ValidationException(inner)
5982 }
5983 crate::operation::update_environment_blueprint::UpdateEnvironmentBlueprintError::UnauthorizedException(inner) => {
5984 Error::UnauthorizedException(inner)
5985 }
5986 crate::operation::update_environment_blueprint::UpdateEnvironmentBlueprintError::Unhandled(inner) => Error::Unhandled(inner),
5987 }
5988 }
5989}
5990impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment_profile::UpdateEnvironmentProfileError, R>>
5991 for Error
5992where
5993 R: Send + Sync + std::fmt::Debug + 'static,
5994{
5995 fn from(
5996 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_environment_profile::UpdateEnvironmentProfileError, R>,
5997 ) -> Self {
5998 match err {
5999 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6000 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6001 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6002 source: err.into(),
6003 }),
6004 }
6005 }
6006}
6007impl From<crate::operation::update_environment_profile::UpdateEnvironmentProfileError> for Error {
6008 fn from(err: crate::operation::update_environment_profile::UpdateEnvironmentProfileError) -> Self {
6009 match err {
6010 crate::operation::update_environment_profile::UpdateEnvironmentProfileError::AccessDeniedException(inner) => {
6011 Error::AccessDeniedException(inner)
6012 }
6013 crate::operation::update_environment_profile::UpdateEnvironmentProfileError::ConflictException(inner) => Error::ConflictException(inner),
6014 crate::operation::update_environment_profile::UpdateEnvironmentProfileError::InternalServerException(inner) => {
6015 Error::InternalServerException(inner)
6016 }
6017 crate::operation::update_environment_profile::UpdateEnvironmentProfileError::ResourceNotFoundException(inner) => {
6018 Error::ResourceNotFoundException(inner)
6019 }
6020 crate::operation::update_environment_profile::UpdateEnvironmentProfileError::ServiceQuotaExceededException(inner) => {
6021 Error::ServiceQuotaExceededException(inner)
6022 }
6023 crate::operation::update_environment_profile::UpdateEnvironmentProfileError::ThrottlingException(inner) => {
6024 Error::ThrottlingException(inner)
6025 }
6026 crate::operation::update_environment_profile::UpdateEnvironmentProfileError::ValidationException(inner) => {
6027 Error::ValidationException(inner)
6028 }
6029 crate::operation::update_environment_profile::UpdateEnvironmentProfileError::UnauthorizedException(inner) => {
6030 Error::UnauthorizedException(inner)
6031 }
6032 crate::operation::update_environment_profile::UpdateEnvironmentProfileError::Unhandled(inner) => Error::Unhandled(inner),
6033 }
6034 }
6035}
6036impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_glossary::UpdateGlossaryError, R>> for Error
6037where
6038 R: Send + Sync + std::fmt::Debug + 'static,
6039{
6040 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_glossary::UpdateGlossaryError, R>) -> Self {
6041 match err {
6042 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6043 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6044 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6045 source: err.into(),
6046 }),
6047 }
6048 }
6049}
6050impl From<crate::operation::update_glossary::UpdateGlossaryError> for Error {
6051 fn from(err: crate::operation::update_glossary::UpdateGlossaryError) -> Self {
6052 match err {
6053 crate::operation::update_glossary::UpdateGlossaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
6054 crate::operation::update_glossary::UpdateGlossaryError::ConflictException(inner) => Error::ConflictException(inner),
6055 crate::operation::update_glossary::UpdateGlossaryError::InternalServerException(inner) => Error::InternalServerException(inner),
6056 crate::operation::update_glossary::UpdateGlossaryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
6057 crate::operation::update_glossary::UpdateGlossaryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6058 crate::operation::update_glossary::UpdateGlossaryError::ValidationException(inner) => Error::ValidationException(inner),
6059 crate::operation::update_glossary::UpdateGlossaryError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6060 crate::operation::update_glossary::UpdateGlossaryError::Unhandled(inner) => Error::Unhandled(inner),
6061 }
6062 }
6063}
6064impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_glossary_term::UpdateGlossaryTermError, R>> for Error
6065where
6066 R: Send + Sync + std::fmt::Debug + 'static,
6067{
6068 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_glossary_term::UpdateGlossaryTermError, R>) -> Self {
6069 match err {
6070 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6071 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6072 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6073 source: err.into(),
6074 }),
6075 }
6076 }
6077}
6078impl From<crate::operation::update_glossary_term::UpdateGlossaryTermError> for Error {
6079 fn from(err: crate::operation::update_glossary_term::UpdateGlossaryTermError) -> Self {
6080 match err {
6081 crate::operation::update_glossary_term::UpdateGlossaryTermError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
6082 crate::operation::update_glossary_term::UpdateGlossaryTermError::ConflictException(inner) => Error::ConflictException(inner),
6083 crate::operation::update_glossary_term::UpdateGlossaryTermError::InternalServerException(inner) => Error::InternalServerException(inner),
6084 crate::operation::update_glossary_term::UpdateGlossaryTermError::ResourceNotFoundException(inner) => {
6085 Error::ResourceNotFoundException(inner)
6086 }
6087 crate::operation::update_glossary_term::UpdateGlossaryTermError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6088 crate::operation::update_glossary_term::UpdateGlossaryTermError::ValidationException(inner) => Error::ValidationException(inner),
6089 crate::operation::update_glossary_term::UpdateGlossaryTermError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6090 crate::operation::update_glossary_term::UpdateGlossaryTermError::Unhandled(inner) => Error::Unhandled(inner),
6091 }
6092 }
6093}
6094impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_group_profile::UpdateGroupProfileError, R>> for Error
6095where
6096 R: Send + Sync + std::fmt::Debug + 'static,
6097{
6098 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_group_profile::UpdateGroupProfileError, R>) -> Self {
6099 match err {
6100 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6101 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6102 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6103 source: err.into(),
6104 }),
6105 }
6106 }
6107}
6108impl From<crate::operation::update_group_profile::UpdateGroupProfileError> for Error {
6109 fn from(err: crate::operation::update_group_profile::UpdateGroupProfileError) -> Self {
6110 match err {
6111 crate::operation::update_group_profile::UpdateGroupProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
6112 crate::operation::update_group_profile::UpdateGroupProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
6113 crate::operation::update_group_profile::UpdateGroupProfileError::ResourceNotFoundException(inner) => {
6114 Error::ResourceNotFoundException(inner)
6115 }
6116 crate::operation::update_group_profile::UpdateGroupProfileError::ValidationException(inner) => Error::ValidationException(inner),
6117 crate::operation::update_group_profile::UpdateGroupProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6118 crate::operation::update_group_profile::UpdateGroupProfileError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6119 crate::operation::update_group_profile::UpdateGroupProfileError::Unhandled(inner) => Error::Unhandled(inner),
6120 }
6121 }
6122}
6123impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notebook::UpdateNotebookError, R>> for Error
6124where
6125 R: Send + Sync + std::fmt::Debug + 'static,
6126{
6127 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_notebook::UpdateNotebookError, R>) -> Self {
6128 match err {
6129 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6130 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6131 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6132 source: err.into(),
6133 }),
6134 }
6135 }
6136}
6137impl From<crate::operation::update_notebook::UpdateNotebookError> for Error {
6138 fn from(err: crate::operation::update_notebook::UpdateNotebookError) -> Self {
6139 match err {
6140 crate::operation::update_notebook::UpdateNotebookError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
6141 crate::operation::update_notebook::UpdateNotebookError::ConflictException(inner) => Error::ConflictException(inner),
6142 crate::operation::update_notebook::UpdateNotebookError::InternalServerException(inner) => Error::InternalServerException(inner),
6143 crate::operation::update_notebook::UpdateNotebookError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
6144 crate::operation::update_notebook::UpdateNotebookError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6145 crate::operation::update_notebook::UpdateNotebookError::ValidationException(inner) => Error::ValidationException(inner),
6146 crate::operation::update_notebook::UpdateNotebookError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6147 crate::operation::update_notebook::UpdateNotebookError::Unhandled(inner) => Error::Unhandled(inner),
6148 }
6149 }
6150}
6151impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>> for Error
6152where
6153 R: Send + Sync + std::fmt::Debug + 'static,
6154{
6155 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project::UpdateProjectError, R>) -> Self {
6156 match err {
6157 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6158 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6159 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6160 source: err.into(),
6161 }),
6162 }
6163 }
6164}
6165impl From<crate::operation::update_project::UpdateProjectError> for Error {
6166 fn from(err: crate::operation::update_project::UpdateProjectError) -> Self {
6167 match err {
6168 crate::operation::update_project::UpdateProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
6169 crate::operation::update_project::UpdateProjectError::ConflictException(inner) => Error::ConflictException(inner),
6170 crate::operation::update_project::UpdateProjectError::InternalServerException(inner) => Error::InternalServerException(inner),
6171 crate::operation::update_project::UpdateProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
6172 crate::operation::update_project::UpdateProjectError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
6173 crate::operation::update_project::UpdateProjectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6174 crate::operation::update_project::UpdateProjectError::ValidationException(inner) => Error::ValidationException(inner),
6175 crate::operation::update_project::UpdateProjectError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6176 crate::operation::update_project::UpdateProjectError::Unhandled(inner) => Error::Unhandled(inner),
6177 }
6178 }
6179}
6180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project_profile::UpdateProjectProfileError, R>> for Error
6181where
6182 R: Send + Sync + std::fmt::Debug + 'static,
6183{
6184 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_project_profile::UpdateProjectProfileError, R>) -> Self {
6185 match err {
6186 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6187 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6188 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6189 source: err.into(),
6190 }),
6191 }
6192 }
6193}
6194impl From<crate::operation::update_project_profile::UpdateProjectProfileError> for Error {
6195 fn from(err: crate::operation::update_project_profile::UpdateProjectProfileError) -> Self {
6196 match err {
6197 crate::operation::update_project_profile::UpdateProjectProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
6198 crate::operation::update_project_profile::UpdateProjectProfileError::ConflictException(inner) => Error::ConflictException(inner),
6199 crate::operation::update_project_profile::UpdateProjectProfileError::InternalServerException(inner) => {
6200 Error::InternalServerException(inner)
6201 }
6202 crate::operation::update_project_profile::UpdateProjectProfileError::ResourceNotFoundException(inner) => {
6203 Error::ResourceNotFoundException(inner)
6204 }
6205 crate::operation::update_project_profile::UpdateProjectProfileError::ServiceQuotaExceededException(inner) => {
6206 Error::ServiceQuotaExceededException(inner)
6207 }
6208 crate::operation::update_project_profile::UpdateProjectProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6209 crate::operation::update_project_profile::UpdateProjectProfileError::ValidationException(inner) => Error::ValidationException(inner),
6210 crate::operation::update_project_profile::UpdateProjectProfileError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6211 crate::operation::update_project_profile::UpdateProjectProfileError::Unhandled(inner) => Error::Unhandled(inner),
6212 }
6213 }
6214}
6215impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_root_domain_unit_owner::UpdateRootDomainUnitOwnerError, R>>
6216 for Error
6217where
6218 R: Send + Sync + std::fmt::Debug + 'static,
6219{
6220 fn from(
6221 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_root_domain_unit_owner::UpdateRootDomainUnitOwnerError, R>,
6222 ) -> Self {
6223 match err {
6224 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6225 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6226 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6227 source: err.into(),
6228 }),
6229 }
6230 }
6231}
6232impl From<crate::operation::update_root_domain_unit_owner::UpdateRootDomainUnitOwnerError> for Error {
6233 fn from(err: crate::operation::update_root_domain_unit_owner::UpdateRootDomainUnitOwnerError) -> Self {
6234 match err {
6235 crate::operation::update_root_domain_unit_owner::UpdateRootDomainUnitOwnerError::AccessDeniedException(inner) => {
6236 Error::AccessDeniedException(inner)
6237 }
6238 crate::operation::update_root_domain_unit_owner::UpdateRootDomainUnitOwnerError::ConflictException(inner) => {
6239 Error::ConflictException(inner)
6240 }
6241 crate::operation::update_root_domain_unit_owner::UpdateRootDomainUnitOwnerError::InternalServerException(inner) => {
6242 Error::InternalServerException(inner)
6243 }
6244 crate::operation::update_root_domain_unit_owner::UpdateRootDomainUnitOwnerError::ResourceNotFoundException(inner) => {
6245 Error::ResourceNotFoundException(inner)
6246 }
6247 crate::operation::update_root_domain_unit_owner::UpdateRootDomainUnitOwnerError::ThrottlingException(inner) => {
6248 Error::ThrottlingException(inner)
6249 }
6250 crate::operation::update_root_domain_unit_owner::UpdateRootDomainUnitOwnerError::ValidationException(inner) => {
6251 Error::ValidationException(inner)
6252 }
6253 crate::operation::update_root_domain_unit_owner::UpdateRootDomainUnitOwnerError::UnauthorizedException(inner) => {
6254 Error::UnauthorizedException(inner)
6255 }
6256 crate::operation::update_root_domain_unit_owner::UpdateRootDomainUnitOwnerError::Unhandled(inner) => Error::Unhandled(inner),
6257 }
6258 }
6259}
6260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule::UpdateRuleError, R>> for Error
6261where
6262 R: Send + Sync + std::fmt::Debug + 'static,
6263{
6264 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_rule::UpdateRuleError, R>) -> Self {
6265 match err {
6266 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6267 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6268 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6269 source: err.into(),
6270 }),
6271 }
6272 }
6273}
6274impl From<crate::operation::update_rule::UpdateRuleError> for Error {
6275 fn from(err: crate::operation::update_rule::UpdateRuleError) -> Self {
6276 match err {
6277 crate::operation::update_rule::UpdateRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
6278 crate::operation::update_rule::UpdateRuleError::ConflictException(inner) => Error::ConflictException(inner),
6279 crate::operation::update_rule::UpdateRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
6280 crate::operation::update_rule::UpdateRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
6281 crate::operation::update_rule::UpdateRuleError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
6282 crate::operation::update_rule::UpdateRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6283 crate::operation::update_rule::UpdateRuleError::ValidationException(inner) => Error::ValidationException(inner),
6284 crate::operation::update_rule::UpdateRuleError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6285 crate::operation::update_rule::UpdateRuleError::Unhandled(inner) => Error::Unhandled(inner),
6286 }
6287 }
6288}
6289impl<R>
6290 From<
6291 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subscription_grant_status::UpdateSubscriptionGrantStatusError, R>,
6292 > for Error
6293where
6294 R: Send + Sync + std::fmt::Debug + 'static,
6295{
6296 fn from(
6297 err: ::aws_smithy_runtime_api::client::result::SdkError<
6298 crate::operation::update_subscription_grant_status::UpdateSubscriptionGrantStatusError,
6299 R,
6300 >,
6301 ) -> Self {
6302 match err {
6303 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6304 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6305 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6306 source: err.into(),
6307 }),
6308 }
6309 }
6310}
6311impl From<crate::operation::update_subscription_grant_status::UpdateSubscriptionGrantStatusError> for Error {
6312 fn from(err: crate::operation::update_subscription_grant_status::UpdateSubscriptionGrantStatusError) -> Self {
6313 match err {
6314 crate::operation::update_subscription_grant_status::UpdateSubscriptionGrantStatusError::AccessDeniedException(inner) => {
6315 Error::AccessDeniedException(inner)
6316 }
6317 crate::operation::update_subscription_grant_status::UpdateSubscriptionGrantStatusError::ConflictException(inner) => {
6318 Error::ConflictException(inner)
6319 }
6320 crate::operation::update_subscription_grant_status::UpdateSubscriptionGrantStatusError::InternalServerException(inner) => {
6321 Error::InternalServerException(inner)
6322 }
6323 crate::operation::update_subscription_grant_status::UpdateSubscriptionGrantStatusError::ResourceNotFoundException(inner) => {
6324 Error::ResourceNotFoundException(inner)
6325 }
6326 crate::operation::update_subscription_grant_status::UpdateSubscriptionGrantStatusError::ThrottlingException(inner) => {
6327 Error::ThrottlingException(inner)
6328 }
6329 crate::operation::update_subscription_grant_status::UpdateSubscriptionGrantStatusError::ValidationException(inner) => {
6330 Error::ValidationException(inner)
6331 }
6332 crate::operation::update_subscription_grant_status::UpdateSubscriptionGrantStatusError::UnauthorizedException(inner) => {
6333 Error::UnauthorizedException(inner)
6334 }
6335 crate::operation::update_subscription_grant_status::UpdateSubscriptionGrantStatusError::Unhandled(inner) => Error::Unhandled(inner),
6336 }
6337 }
6338}
6339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subscription_request::UpdateSubscriptionRequestError, R>>
6340 for Error
6341where
6342 R: Send + Sync + std::fmt::Debug + 'static,
6343{
6344 fn from(
6345 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subscription_request::UpdateSubscriptionRequestError, R>,
6346 ) -> Self {
6347 match err {
6348 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6349 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6350 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6351 source: err.into(),
6352 }),
6353 }
6354 }
6355}
6356impl From<crate::operation::update_subscription_request::UpdateSubscriptionRequestError> for Error {
6357 fn from(err: crate::operation::update_subscription_request::UpdateSubscriptionRequestError) -> Self {
6358 match err {
6359 crate::operation::update_subscription_request::UpdateSubscriptionRequestError::AccessDeniedException(inner) => {
6360 Error::AccessDeniedException(inner)
6361 }
6362 crate::operation::update_subscription_request::UpdateSubscriptionRequestError::ConflictException(inner) => {
6363 Error::ConflictException(inner)
6364 }
6365 crate::operation::update_subscription_request::UpdateSubscriptionRequestError::InternalServerException(inner) => {
6366 Error::InternalServerException(inner)
6367 }
6368 crate::operation::update_subscription_request::UpdateSubscriptionRequestError::ResourceNotFoundException(inner) => {
6369 Error::ResourceNotFoundException(inner)
6370 }
6371 crate::operation::update_subscription_request::UpdateSubscriptionRequestError::ThrottlingException(inner) => {
6372 Error::ThrottlingException(inner)
6373 }
6374 crate::operation::update_subscription_request::UpdateSubscriptionRequestError::ValidationException(inner) => {
6375 Error::ValidationException(inner)
6376 }
6377 crate::operation::update_subscription_request::UpdateSubscriptionRequestError::UnauthorizedException(inner) => {
6378 Error::UnauthorizedException(inner)
6379 }
6380 crate::operation::update_subscription_request::UpdateSubscriptionRequestError::Unhandled(inner) => Error::Unhandled(inner),
6381 }
6382 }
6383}
6384impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subscription_target::UpdateSubscriptionTargetError, R>>
6385 for Error
6386where
6387 R: Send + Sync + std::fmt::Debug + 'static,
6388{
6389 fn from(
6390 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subscription_target::UpdateSubscriptionTargetError, R>,
6391 ) -> Self {
6392 match err {
6393 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6394 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6395 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6396 source: err.into(),
6397 }),
6398 }
6399 }
6400}
6401impl From<crate::operation::update_subscription_target::UpdateSubscriptionTargetError> for Error {
6402 fn from(err: crate::operation::update_subscription_target::UpdateSubscriptionTargetError) -> Self {
6403 match err {
6404 crate::operation::update_subscription_target::UpdateSubscriptionTargetError::AccessDeniedException(inner) => {
6405 Error::AccessDeniedException(inner)
6406 }
6407 crate::operation::update_subscription_target::UpdateSubscriptionTargetError::ConflictException(inner) => Error::ConflictException(inner),
6408 crate::operation::update_subscription_target::UpdateSubscriptionTargetError::InternalServerException(inner) => {
6409 Error::InternalServerException(inner)
6410 }
6411 crate::operation::update_subscription_target::UpdateSubscriptionTargetError::ResourceNotFoundException(inner) => {
6412 Error::ResourceNotFoundException(inner)
6413 }
6414 crate::operation::update_subscription_target::UpdateSubscriptionTargetError::ThrottlingException(inner) => {
6415 Error::ThrottlingException(inner)
6416 }
6417 crate::operation::update_subscription_target::UpdateSubscriptionTargetError::ValidationException(inner) => {
6418 Error::ValidationException(inner)
6419 }
6420 crate::operation::update_subscription_target::UpdateSubscriptionTargetError::UnauthorizedException(inner) => {
6421 Error::UnauthorizedException(inner)
6422 }
6423 crate::operation::update_subscription_target::UpdateSubscriptionTargetError::Unhandled(inner) => Error::Unhandled(inner),
6424 }
6425 }
6426}
6427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>> for Error
6428where
6429 R: Send + Sync + std::fmt::Debug + 'static,
6430{
6431 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_user_profile::UpdateUserProfileError, R>) -> Self {
6432 match err {
6433 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
6434 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
6435 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
6436 source: err.into(),
6437 }),
6438 }
6439 }
6440}
6441impl From<crate::operation::update_user_profile::UpdateUserProfileError> for Error {
6442 fn from(err: crate::operation::update_user_profile::UpdateUserProfileError) -> Self {
6443 match err {
6444 crate::operation::update_user_profile::UpdateUserProfileError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
6445 crate::operation::update_user_profile::UpdateUserProfileError::InternalServerException(inner) => Error::InternalServerException(inner),
6446 crate::operation::update_user_profile::UpdateUserProfileError::ResourceNotFoundException(inner) => {
6447 Error::ResourceNotFoundException(inner)
6448 }
6449 crate::operation::update_user_profile::UpdateUserProfileError::ValidationException(inner) => Error::ValidationException(inner),
6450 crate::operation::update_user_profile::UpdateUserProfileError::ThrottlingException(inner) => Error::ThrottlingException(inner),
6451 crate::operation::update_user_profile::UpdateUserProfileError::UnauthorizedException(inner) => Error::UnauthorizedException(inner),
6452 crate::operation::update_user_profile::UpdateUserProfileError::Unhandled(inner) => Error::Unhandled(inner),
6453 }
6454 }
6455}
6456impl ::std::error::Error for Error {
6457 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
6458 match self {
6459 Error::AccessDeniedException(inner) => inner.source(),
6460 Error::ConflictException(inner) => inner.source(),
6461 Error::InternalServerException(inner) => inner.source(),
6462 Error::ResourceNotFoundException(inner) => inner.source(),
6463 Error::ServiceQuotaExceededException(inner) => inner.source(),
6464 Error::ThrottlingException(inner) => inner.source(),
6465 Error::UnauthorizedException(inner) => inner.source(),
6466 Error::ValidationException(inner) => inner.source(),
6467 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
6468 }
6469 }
6470}
6471impl ::aws_types::request_id::RequestId for Error {
6472 fn request_id(&self) -> Option<&str> {
6473 match self {
6474 Self::AccessDeniedException(e) => e.request_id(),
6475 Self::ConflictException(e) => e.request_id(),
6476 Self::InternalServerException(e) => e.request_id(),
6477 Self::ResourceNotFoundException(e) => e.request_id(),
6478 Self::ServiceQuotaExceededException(e) => e.request_id(),
6479 Self::ThrottlingException(e) => e.request_id(),
6480 Self::UnauthorizedException(e) => e.request_id(),
6481 Self::ValidationException(e) => e.request_id(),
6482 Self::Unhandled(e) => e.meta.request_id(),
6483 }
6484 }
6485}