1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 IdempotencyConflictException(crate::types::error::IdempotencyConflictException),
12 InternalServerException(crate::types::error::InternalServerException),
14 InvalidConfigurationException(crate::types::error::InvalidConfigurationException),
16 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
18 RevisionConflictException(crate::types::error::RevisionConflictException),
20 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
22 ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
24 ThrottlingException(crate::types::error::ThrottlingException),
26 ValidationException(crate::types::error::ValidationException),
28 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
30 variable wildcard pattern and check `.code()`:
31 \
32 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
33 \
34 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
35 Unhandled(crate::error::sealed_unhandled::Unhandled),
36}
37impl ::std::fmt::Display for Error {
38 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
39 match self {
40 Error::AccessDeniedException(inner) => inner.fmt(f),
41 Error::ConflictException(inner) => inner.fmt(f),
42 Error::IdempotencyConflictException(inner) => inner.fmt(f),
43 Error::InternalServerException(inner) => inner.fmt(f),
44 Error::InvalidConfigurationException(inner) => inner.fmt(f),
45 Error::ResourceNotFoundException(inner) => inner.fmt(f),
46 Error::RevisionConflictException(inner) => inner.fmt(f),
47 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
48 Error::ServiceUnavailableException(inner) => inner.fmt(f),
49 Error::ThrottlingException(inner) => inner.fmt(f),
50 Error::ValidationException(inner) => inner.fmt(f),
51 Error::Unhandled(_) => {
52 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
53 write!(f, "unhandled error ({code})")
54 } else {
55 f.write_str("unhandled error")
56 }
57 }
58 }
59 }
60}
61impl From<::aws_smithy_types::error::operation::BuildError> for Error {
62 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
63 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
64 source: value.into(),
65 meta: ::std::default::Default::default(),
66 })
67 }
68}
69impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
70 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
71 match self {
72 Self::AccessDeniedException(inner) => inner.meta(),
73 Self::ConflictException(inner) => inner.meta(),
74 Self::IdempotencyConflictException(inner) => inner.meta(),
75 Self::InternalServerException(inner) => inner.meta(),
76 Self::InvalidConfigurationException(inner) => inner.meta(),
77 Self::ResourceNotFoundException(inner) => inner.meta(),
78 Self::RevisionConflictException(inner) => inner.meta(),
79 Self::ServiceQuotaExceededException(inner) => inner.meta(),
80 Self::ServiceUnavailableException(inner) => inner.meta(),
81 Self::ThrottlingException(inner) => inner.meta(),
82 Self::ValidationException(inner) => inner.meta(),
83 Self::Unhandled(inner) => &inner.meta,
84 }
85 }
86}
87impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::archive_metric::ArchiveMetricError, R>> for Error
88where
89 R: Send + Sync + std::fmt::Debug + 'static,
90{
91 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::archive_metric::ArchiveMetricError, R>) -> Self {
92 match err {
93 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
94 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
95 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
96 source: err.into(),
97 }),
98 }
99 }
100}
101impl From<crate::operation::archive_metric::ArchiveMetricError> for Error {
102 fn from(err: crate::operation::archive_metric::ArchiveMetricError) -> Self {
103 match err {
104 crate::operation::archive_metric::ArchiveMetricError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
105 crate::operation::archive_metric::ArchiveMetricError::ConflictException(inner) => Error::ConflictException(inner),
106 crate::operation::archive_metric::ArchiveMetricError::InternalServerException(inner) => Error::InternalServerException(inner),
107 crate::operation::archive_metric::ArchiveMetricError::InvalidConfigurationException(inner) => Error::InvalidConfigurationException(inner),
108 crate::operation::archive_metric::ArchiveMetricError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
109 crate::operation::archive_metric::ArchiveMetricError::RevisionConflictException(inner) => Error::RevisionConflictException(inner),
110 crate::operation::archive_metric::ArchiveMetricError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
111 crate::operation::archive_metric::ArchiveMetricError::ThrottlingException(inner) => Error::ThrottlingException(inner),
112 crate::operation::archive_metric::ArchiveMetricError::ValidationException(inner) => Error::ValidationException(inner),
113 crate::operation::archive_metric::ArchiveMetricError::Unhandled(inner) => Error::Unhandled(inner),
114 }
115 }
116}
117impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::archive_plan::ArchivePlanError, R>> for Error
118where
119 R: Send + Sync + std::fmt::Debug + 'static,
120{
121 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::archive_plan::ArchivePlanError, R>) -> Self {
122 match err {
123 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
124 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
125 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
126 source: err.into(),
127 }),
128 }
129 }
130}
131impl From<crate::operation::archive_plan::ArchivePlanError> for Error {
132 fn from(err: crate::operation::archive_plan::ArchivePlanError) -> Self {
133 match err {
134 crate::operation::archive_plan::ArchivePlanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
135 crate::operation::archive_plan::ArchivePlanError::ConflictException(inner) => Error::ConflictException(inner),
136 crate::operation::archive_plan::ArchivePlanError::InternalServerException(inner) => Error::InternalServerException(inner),
137 crate::operation::archive_plan::ArchivePlanError::InvalidConfigurationException(inner) => Error::InvalidConfigurationException(inner),
138 crate::operation::archive_plan::ArchivePlanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
139 crate::operation::archive_plan::ArchivePlanError::RevisionConflictException(inner) => Error::RevisionConflictException(inner),
140 crate::operation::archive_plan::ArchivePlanError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
141 crate::operation::archive_plan::ArchivePlanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
142 crate::operation::archive_plan::ArchivePlanError::ValidationException(inner) => Error::ValidationException(inner),
143 crate::operation::archive_plan::ArchivePlanError::Unhandled(inner) => Error::Unhandled(inner),
144 }
145 }
146}
147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_subscription::CancelSubscriptionError, R>> for Error
148where
149 R: Send + Sync + std::fmt::Debug + 'static,
150{
151 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_subscription::CancelSubscriptionError, R>) -> Self {
152 match err {
153 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
154 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
155 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
156 source: err.into(),
157 }),
158 }
159 }
160}
161impl From<crate::operation::cancel_subscription::CancelSubscriptionError> for Error {
162 fn from(err: crate::operation::cancel_subscription::CancelSubscriptionError) -> Self {
163 match err {
164 crate::operation::cancel_subscription::CancelSubscriptionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
165 crate::operation::cancel_subscription::CancelSubscriptionError::ConflictException(inner) => Error::ConflictException(inner),
166 crate::operation::cancel_subscription::CancelSubscriptionError::InternalServerException(inner) => Error::InternalServerException(inner),
167 crate::operation::cancel_subscription::CancelSubscriptionError::ResourceNotFoundException(inner) => {
168 Error::ResourceNotFoundException(inner)
169 }
170 crate::operation::cancel_subscription::CancelSubscriptionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
171 crate::operation::cancel_subscription::CancelSubscriptionError::ValidationException(inner) => Error::ValidationException(inner),
172 crate::operation::cancel_subscription::CancelSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
173 }
174 }
175}
176impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app::CreateAppError, R>> for Error
177where
178 R: Send + Sync + std::fmt::Debug + 'static,
179{
180 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app::CreateAppError, R>) -> Self {
181 match err {
182 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
183 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
184 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
185 source: err.into(),
186 }),
187 }
188 }
189}
190impl From<crate::operation::create_app::CreateAppError> for Error {
191 fn from(err: crate::operation::create_app::CreateAppError) -> Self {
192 match err {
193 crate::operation::create_app::CreateAppError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
194 crate::operation::create_app::CreateAppError::ConflictException(inner) => Error::ConflictException(inner),
195 crate::operation::create_app::CreateAppError::IdempotencyConflictException(inner) => Error::IdempotencyConflictException(inner),
196 crate::operation::create_app::CreateAppError::InternalServerException(inner) => Error::InternalServerException(inner),
197 crate::operation::create_app::CreateAppError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
198 crate::operation::create_app::CreateAppError::ThrottlingException(inner) => Error::ThrottlingException(inner),
199 crate::operation::create_app::CreateAppError::ValidationException(inner) => Error::ValidationException(inner),
200 crate::operation::create_app::CreateAppError::Unhandled(inner) => Error::Unhandled(inner),
201 }
202 }
203}
204impl<R>
205 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError, R>>
206 for Error
207where
208 R: Send + Sync + std::fmt::Debug + 'static,
209{
210 fn from(
211 err: ::aws_smithy_runtime_api::client::result::SdkError<
212 crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError,
213 R,
214 >,
215 ) -> Self {
216 match err {
217 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
218 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
219 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
220 source: err.into(),
221 }),
222 }
223 }
224}
225impl From<crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError> for Error {
226 fn from(err: crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError) -> Self {
227 match err {
228 crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError::AccessDeniedException(inner) => {
229 Error::AccessDeniedException(inner)
230 }
231 crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError::ConflictException(inner) => {
232 Error::ConflictException(inner)
233 }
234 crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError::InternalServerException(inner) => {
235 Error::InternalServerException(inner)
236 }
237 crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError::ResourceNotFoundException(inner) => {
238 Error::ResourceNotFoundException(inner)
239 }
240 crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError::ThrottlingException(inner) => {
241 Error::ThrottlingException(inner)
242 }
243 crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError::ValidationException(inner) => {
244 Error::ValidationException(inner)
245 }
246 crate::operation::create_app_payment_registration::CreateAppPaymentRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
247 }
248 }
249}
250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_billing_portal_session::CreateBillingPortalSessionError, R>>
251 for Error
252where
253 R: Send + Sync + std::fmt::Debug + 'static,
254{
255 fn from(
256 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_billing_portal_session::CreateBillingPortalSessionError, R>,
257 ) -> Self {
258 match err {
259 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
260 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
261 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
262 source: err.into(),
263 }),
264 }
265 }
266}
267impl From<crate::operation::create_billing_portal_session::CreateBillingPortalSessionError> for Error {
268 fn from(err: crate::operation::create_billing_portal_session::CreateBillingPortalSessionError) -> Self {
269 match err {
270 crate::operation::create_billing_portal_session::CreateBillingPortalSessionError::AccessDeniedException(inner) => {
271 Error::AccessDeniedException(inner)
272 }
273 crate::operation::create_billing_portal_session::CreateBillingPortalSessionError::InternalServerException(inner) => {
274 Error::InternalServerException(inner)
275 }
276 crate::operation::create_billing_portal_session::CreateBillingPortalSessionError::ResourceNotFoundException(inner) => {
277 Error::ResourceNotFoundException(inner)
278 }
279 crate::operation::create_billing_portal_session::CreateBillingPortalSessionError::ThrottlingException(inner) => {
280 Error::ThrottlingException(inner)
281 }
282 crate::operation::create_billing_portal_session::CreateBillingPortalSessionError::ValidationException(inner) => {
283 Error::ValidationException(inner)
284 }
285 crate::operation::create_billing_portal_session::CreateBillingPortalSessionError::Unhandled(inner) => Error::Unhandled(inner),
286 }
287 }
288}
289impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_metric::CreateMetricError, R>> for Error
290where
291 R: Send + Sync + std::fmt::Debug + 'static,
292{
293 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_metric::CreateMetricError, R>) -> Self {
294 match err {
295 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
296 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
297 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
298 source: err.into(),
299 }),
300 }
301 }
302}
303impl From<crate::operation::create_metric::CreateMetricError> for Error {
304 fn from(err: crate::operation::create_metric::CreateMetricError) -> Self {
305 match err {
306 crate::operation::create_metric::CreateMetricError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
307 crate::operation::create_metric::CreateMetricError::ConflictException(inner) => Error::ConflictException(inner),
308 crate::operation::create_metric::CreateMetricError::IdempotencyConflictException(inner) => Error::IdempotencyConflictException(inner),
309 crate::operation::create_metric::CreateMetricError::InternalServerException(inner) => Error::InternalServerException(inner),
310 crate::operation::create_metric::CreateMetricError::InvalidConfigurationException(inner) => Error::InvalidConfigurationException(inner),
311 crate::operation::create_metric::CreateMetricError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
312 crate::operation::create_metric::CreateMetricError::RevisionConflictException(inner) => Error::RevisionConflictException(inner),
313 crate::operation::create_metric::CreateMetricError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
314 crate::operation::create_metric::CreateMetricError::ThrottlingException(inner) => Error::ThrottlingException(inner),
315 crate::operation::create_metric::CreateMetricError::ValidationException(inner) => Error::ValidationException(inner),
316 crate::operation::create_metric::CreateMetricError::Unhandled(inner) => Error::Unhandled(inner),
317 }
318 }
319}
320impl<R>
321 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_one_time_checkout_session::CreateOneTimeCheckoutSessionError, R>>
322 for Error
323where
324 R: Send + Sync + std::fmt::Debug + 'static,
325{
326 fn from(
327 err: ::aws_smithy_runtime_api::client::result::SdkError<
328 crate::operation::create_one_time_checkout_session::CreateOneTimeCheckoutSessionError,
329 R,
330 >,
331 ) -> Self {
332 match err {
333 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
334 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
335 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
336 source: err.into(),
337 }),
338 }
339 }
340}
341impl From<crate::operation::create_one_time_checkout_session::CreateOneTimeCheckoutSessionError> for Error {
342 fn from(err: crate::operation::create_one_time_checkout_session::CreateOneTimeCheckoutSessionError) -> Self {
343 match err {
344 crate::operation::create_one_time_checkout_session::CreateOneTimeCheckoutSessionError::AccessDeniedException(inner) => {
345 Error::AccessDeniedException(inner)
346 }
347 crate::operation::create_one_time_checkout_session::CreateOneTimeCheckoutSessionError::ConflictException(inner) => {
348 Error::ConflictException(inner)
349 }
350 crate::operation::create_one_time_checkout_session::CreateOneTimeCheckoutSessionError::InternalServerException(inner) => {
351 Error::InternalServerException(inner)
352 }
353 crate::operation::create_one_time_checkout_session::CreateOneTimeCheckoutSessionError::ResourceNotFoundException(inner) => {
354 Error::ResourceNotFoundException(inner)
355 }
356 crate::operation::create_one_time_checkout_session::CreateOneTimeCheckoutSessionError::ServiceUnavailableException(inner) => {
357 Error::ServiceUnavailableException(inner)
358 }
359 crate::operation::create_one_time_checkout_session::CreateOneTimeCheckoutSessionError::ThrottlingException(inner) => {
360 Error::ThrottlingException(inner)
361 }
362 crate::operation::create_one_time_checkout_session::CreateOneTimeCheckoutSessionError::ValidationException(inner) => {
363 Error::ValidationException(inner)
364 }
365 crate::operation::create_one_time_checkout_session::CreateOneTimeCheckoutSessionError::Unhandled(inner) => Error::Unhandled(inner),
366 }
367 }
368}
369impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_one_time_price::CreateOneTimePriceError, R>> for Error
370where
371 R: Send + Sync + std::fmt::Debug + 'static,
372{
373 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_one_time_price::CreateOneTimePriceError, R>) -> Self {
374 match err {
375 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
376 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
377 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
378 source: err.into(),
379 }),
380 }
381 }
382}
383impl From<crate::operation::create_one_time_price::CreateOneTimePriceError> for Error {
384 fn from(err: crate::operation::create_one_time_price::CreateOneTimePriceError) -> Self {
385 match err {
386 crate::operation::create_one_time_price::CreateOneTimePriceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
387 crate::operation::create_one_time_price::CreateOneTimePriceError::ConflictException(inner) => Error::ConflictException(inner),
388 crate::operation::create_one_time_price::CreateOneTimePriceError::IdempotencyConflictException(inner) => {
389 Error::IdempotencyConflictException(inner)
390 }
391 crate::operation::create_one_time_price::CreateOneTimePriceError::InternalServerException(inner) => Error::InternalServerException(inner),
392 crate::operation::create_one_time_price::CreateOneTimePriceError::InvalidConfigurationException(inner) => {
393 Error::InvalidConfigurationException(inner)
394 }
395 crate::operation::create_one_time_price::CreateOneTimePriceError::ResourceNotFoundException(inner) => {
396 Error::ResourceNotFoundException(inner)
397 }
398 crate::operation::create_one_time_price::CreateOneTimePriceError::RevisionConflictException(inner) => {
399 Error::RevisionConflictException(inner)
400 }
401 crate::operation::create_one_time_price::CreateOneTimePriceError::ServiceQuotaExceededException(inner) => {
402 Error::ServiceQuotaExceededException(inner)
403 }
404 crate::operation::create_one_time_price::CreateOneTimePriceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
405 crate::operation::create_one_time_price::CreateOneTimePriceError::ValidationException(inner) => Error::ValidationException(inner),
406 crate::operation::create_one_time_price::CreateOneTimePriceError::Unhandled(inner) => Error::Unhandled(inner),
407 }
408 }
409}
410impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_plan::CreatePlanError, R>> for Error
411where
412 R: Send + Sync + std::fmt::Debug + 'static,
413{
414 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_plan::CreatePlanError, R>) -> Self {
415 match err {
416 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
417 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
418 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
419 source: err.into(),
420 }),
421 }
422 }
423}
424impl From<crate::operation::create_plan::CreatePlanError> for Error {
425 fn from(err: crate::operation::create_plan::CreatePlanError) -> Self {
426 match err {
427 crate::operation::create_plan::CreatePlanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
428 crate::operation::create_plan::CreatePlanError::ConflictException(inner) => Error::ConflictException(inner),
429 crate::operation::create_plan::CreatePlanError::IdempotencyConflictException(inner) => Error::IdempotencyConflictException(inner),
430 crate::operation::create_plan::CreatePlanError::InternalServerException(inner) => Error::InternalServerException(inner),
431 crate::operation::create_plan::CreatePlanError::InvalidConfigurationException(inner) => Error::InvalidConfigurationException(inner),
432 crate::operation::create_plan::CreatePlanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
433 crate::operation::create_plan::CreatePlanError::RevisionConflictException(inner) => Error::RevisionConflictException(inner),
434 crate::operation::create_plan::CreatePlanError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
435 crate::operation::create_plan::CreatePlanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
436 crate::operation::create_plan::CreatePlanError::ValidationException(inner) => Error::ValidationException(inner),
437 crate::operation::create_plan::CreatePlanError::Unhandled(inner) => Error::Unhandled(inner),
438 }
439 }
440}
441impl<R>
442 From<
443 ::aws_smithy_runtime_api::client::result::SdkError<
444 crate::operation::create_subscription_checkout_session::CreateSubscriptionCheckoutSessionError,
445 R,
446 >,
447 > for Error
448where
449 R: Send + Sync + std::fmt::Debug + 'static,
450{
451 fn from(
452 err: ::aws_smithy_runtime_api::client::result::SdkError<
453 crate::operation::create_subscription_checkout_session::CreateSubscriptionCheckoutSessionError,
454 R,
455 >,
456 ) -> Self {
457 match err {
458 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
459 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
460 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
461 source: err.into(),
462 }),
463 }
464 }
465}
466impl From<crate::operation::create_subscription_checkout_session::CreateSubscriptionCheckoutSessionError> for Error {
467 fn from(err: crate::operation::create_subscription_checkout_session::CreateSubscriptionCheckoutSessionError) -> Self {
468 match err {
469 crate::operation::create_subscription_checkout_session::CreateSubscriptionCheckoutSessionError::AccessDeniedException(inner) => {
470 Error::AccessDeniedException(inner)
471 }
472 crate::operation::create_subscription_checkout_session::CreateSubscriptionCheckoutSessionError::ConflictException(inner) => {
473 Error::ConflictException(inner)
474 }
475 crate::operation::create_subscription_checkout_session::CreateSubscriptionCheckoutSessionError::InternalServerException(inner) => {
476 Error::InternalServerException(inner)
477 }
478 crate::operation::create_subscription_checkout_session::CreateSubscriptionCheckoutSessionError::ResourceNotFoundException(inner) => {
479 Error::ResourceNotFoundException(inner)
480 }
481 crate::operation::create_subscription_checkout_session::CreateSubscriptionCheckoutSessionError::ServiceUnavailableException(inner) => {
482 Error::ServiceUnavailableException(inner)
483 }
484 crate::operation::create_subscription_checkout_session::CreateSubscriptionCheckoutSessionError::ThrottlingException(inner) => {
485 Error::ThrottlingException(inner)
486 }
487 crate::operation::create_subscription_checkout_session::CreateSubscriptionCheckoutSessionError::ValidationException(inner) => {
488 Error::ValidationException(inner)
489 }
490 crate::operation::create_subscription_checkout_session::CreateSubscriptionCheckoutSessionError::Unhandled(inner) => {
491 Error::Unhandled(inner)
492 }
493 }
494 }
495}
496impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>> for Error
497where
498 R: Send + Sync + std::fmt::Debug + 'static,
499{
500 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_app::DeleteAppError, R>) -> Self {
501 match err {
502 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
503 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
504 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
505 source: err.into(),
506 }),
507 }
508 }
509}
510impl From<crate::operation::delete_app::DeleteAppError> for Error {
511 fn from(err: crate::operation::delete_app::DeleteAppError) -> Self {
512 match err {
513 crate::operation::delete_app::DeleteAppError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
514 crate::operation::delete_app::DeleteAppError::ConflictException(inner) => Error::ConflictException(inner),
515 crate::operation::delete_app::DeleteAppError::InternalServerException(inner) => Error::InternalServerException(inner),
516 crate::operation::delete_app::DeleteAppError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
517 crate::operation::delete_app::DeleteAppError::ThrottlingException(inner) => Error::ThrottlingException(inner),
518 crate::operation::delete_app::DeleteAppError::ValidationException(inner) => Error::ValidationException(inner),
519 crate::operation::delete_app::DeleteAppError::Unhandled(inner) => Error::Unhandled(inner),
520 }
521 }
522}
523impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_one_time_price::DeleteOneTimePriceError, R>> for Error
524where
525 R: Send + Sync + std::fmt::Debug + 'static,
526{
527 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_one_time_price::DeleteOneTimePriceError, R>) -> Self {
528 match err {
529 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
530 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
531 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
532 source: err.into(),
533 }),
534 }
535 }
536}
537impl From<crate::operation::delete_one_time_price::DeleteOneTimePriceError> for Error {
538 fn from(err: crate::operation::delete_one_time_price::DeleteOneTimePriceError) -> Self {
539 match err {
540 crate::operation::delete_one_time_price::DeleteOneTimePriceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
541 crate::operation::delete_one_time_price::DeleteOneTimePriceError::ConflictException(inner) => Error::ConflictException(inner),
542 crate::operation::delete_one_time_price::DeleteOneTimePriceError::InternalServerException(inner) => Error::InternalServerException(inner),
543 crate::operation::delete_one_time_price::DeleteOneTimePriceError::InvalidConfigurationException(inner) => {
544 Error::InvalidConfigurationException(inner)
545 }
546 crate::operation::delete_one_time_price::DeleteOneTimePriceError::ResourceNotFoundException(inner) => {
547 Error::ResourceNotFoundException(inner)
548 }
549 crate::operation::delete_one_time_price::DeleteOneTimePriceError::RevisionConflictException(inner) => {
550 Error::RevisionConflictException(inner)
551 }
552 crate::operation::delete_one_time_price::DeleteOneTimePriceError::ServiceQuotaExceededException(inner) => {
553 Error::ServiceQuotaExceededException(inner)
554 }
555 crate::operation::delete_one_time_price::DeleteOneTimePriceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
556 crate::operation::delete_one_time_price::DeleteOneTimePriceError::ValidationException(inner) => Error::ValidationException(inner),
557 crate::operation::delete_one_time_price::DeleteOneTimePriceError::Unhandled(inner) => Error::Unhandled(inner),
558 }
559 }
560}
561impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_third_party_cost::DeleteThirdPartyCostError, R>> for Error
562where
563 R: Send + Sync + std::fmt::Debug + 'static,
564{
565 fn from(
566 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_third_party_cost::DeleteThirdPartyCostError, R>,
567 ) -> Self {
568 match err {
569 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
570 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
571 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
572 source: err.into(),
573 }),
574 }
575 }
576}
577impl From<crate::operation::delete_third_party_cost::DeleteThirdPartyCostError> for Error {
578 fn from(err: crate::operation::delete_third_party_cost::DeleteThirdPartyCostError) -> Self {
579 match err {
580 crate::operation::delete_third_party_cost::DeleteThirdPartyCostError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
581 crate::operation::delete_third_party_cost::DeleteThirdPartyCostError::InternalServerException(inner) => {
582 Error::InternalServerException(inner)
583 }
584 crate::operation::delete_third_party_cost::DeleteThirdPartyCostError::ResourceNotFoundException(inner) => {
585 Error::ResourceNotFoundException(inner)
586 }
587 crate::operation::delete_third_party_cost::DeleteThirdPartyCostError::ThrottlingException(inner) => Error::ThrottlingException(inner),
588 crate::operation::delete_third_party_cost::DeleteThirdPartyCostError::ValidationException(inner) => Error::ValidationException(inner),
589 crate::operation::delete_third_party_cost::DeleteThirdPartyCostError::Unhandled(inner) => Error::Unhandled(inner),
590 }
591 }
592}
593impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app::GetAppError, R>> for Error
594where
595 R: Send + Sync + std::fmt::Debug + 'static,
596{
597 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app::GetAppError, R>) -> Self {
598 match err {
599 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
600 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
601 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
602 source: err.into(),
603 }),
604 }
605 }
606}
607impl From<crate::operation::get_app::GetAppError> for Error {
608 fn from(err: crate::operation::get_app::GetAppError) -> Self {
609 match err {
610 crate::operation::get_app::GetAppError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
611 crate::operation::get_app::GetAppError::InternalServerException(inner) => Error::InternalServerException(inner),
612 crate::operation::get_app::GetAppError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
613 crate::operation::get_app::GetAppError::ThrottlingException(inner) => Error::ThrottlingException(inner),
614 crate::operation::get_app::GetAppError::ValidationException(inner) => Error::ValidationException(inner),
615 crate::operation::get_app::GetAppError::Unhandled(inner) => Error::Unhandled(inner),
616 }
617 }
618}
619impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryError, R>>
620 for Error
621where
622 R: Send + Sync + std::fmt::Debug + 'static,
623{
624 fn from(
625 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryError, R>,
626 ) -> Self {
627 match err {
628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
631 source: err.into(),
632 }),
633 }
634 }
635}
636impl From<crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryError> for Error {
637 fn from(err: crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryError) -> Self {
638 match err {
639 crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryError::AccessDeniedException(inner) => {
640 Error::AccessDeniedException(inner)
641 }
642 crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryError::InternalServerException(inner) => {
643 Error::InternalServerException(inner)
644 }
645 crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryError::ResourceNotFoundException(inner) => {
646 Error::ResourceNotFoundException(inner)
647 }
648 crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryError::ThrottlingException(inner) => {
649 Error::ThrottlingException(inner)
650 }
651 crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryError::ValidationException(inner) => {
652 Error::ValidationException(inner)
653 }
654 crate::operation::get_app_infra_cost_summary::GetAppInfraCostSummaryError::Unhandled(inner) => Error::Unhandled(inner),
655 }
656 }
657}
658impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app_payment_registration::GetAppPaymentRegistrationError, R>>
659 for Error
660where
661 R: Send + Sync + std::fmt::Debug + 'static,
662{
663 fn from(
664 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app_payment_registration::GetAppPaymentRegistrationError, R>,
665 ) -> Self {
666 match err {
667 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
668 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
669 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
670 source: err.into(),
671 }),
672 }
673 }
674}
675impl From<crate::operation::get_app_payment_registration::GetAppPaymentRegistrationError> for Error {
676 fn from(err: crate::operation::get_app_payment_registration::GetAppPaymentRegistrationError) -> Self {
677 match err {
678 crate::operation::get_app_payment_registration::GetAppPaymentRegistrationError::AccessDeniedException(inner) => {
679 Error::AccessDeniedException(inner)
680 }
681 crate::operation::get_app_payment_registration::GetAppPaymentRegistrationError::InternalServerException(inner) => {
682 Error::InternalServerException(inner)
683 }
684 crate::operation::get_app_payment_registration::GetAppPaymentRegistrationError::ResourceNotFoundException(inner) => {
685 Error::ResourceNotFoundException(inner)
686 }
687 crate::operation::get_app_payment_registration::GetAppPaymentRegistrationError::ThrottlingException(inner) => {
688 Error::ThrottlingException(inner)
689 }
690 crate::operation::get_app_payment_registration::GetAppPaymentRegistrationError::ValidationException(inner) => {
691 Error::ValidationException(inner)
692 }
693 crate::operation::get_app_payment_registration::GetAppPaymentRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
694 }
695 }
696}
697impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app_revenue_summary::GetAppRevenueSummaryError, R>> for Error
698where
699 R: Send + Sync + std::fmt::Debug + 'static,
700{
701 fn from(
702 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app_revenue_summary::GetAppRevenueSummaryError, R>,
703 ) -> Self {
704 match err {
705 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
706 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
707 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
708 source: err.into(),
709 }),
710 }
711 }
712}
713impl From<crate::operation::get_app_revenue_summary::GetAppRevenueSummaryError> for Error {
714 fn from(err: crate::operation::get_app_revenue_summary::GetAppRevenueSummaryError) -> Self {
715 match err {
716 crate::operation::get_app_revenue_summary::GetAppRevenueSummaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
717 crate::operation::get_app_revenue_summary::GetAppRevenueSummaryError::InternalServerException(inner) => {
718 Error::InternalServerException(inner)
719 }
720 crate::operation::get_app_revenue_summary::GetAppRevenueSummaryError::ResourceNotFoundException(inner) => {
721 Error::ResourceNotFoundException(inner)
722 }
723 crate::operation::get_app_revenue_summary::GetAppRevenueSummaryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
724 crate::operation::get_app_revenue_summary::GetAppRevenueSummaryError::ValidationException(inner) => Error::ValidationException(inner),
725 crate::operation::get_app_revenue_summary::GetAppRevenueSummaryError::Unhandled(inner) => Error::Unhandled(inner),
726 }
727 }
728}
729impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app_subscription_summary::GetAppSubscriptionSummaryError, R>>
730 for Error
731where
732 R: Send + Sync + std::fmt::Debug + 'static,
733{
734 fn from(
735 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app_subscription_summary::GetAppSubscriptionSummaryError, R>,
736 ) -> Self {
737 match err {
738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
741 source: err.into(),
742 }),
743 }
744 }
745}
746impl From<crate::operation::get_app_subscription_summary::GetAppSubscriptionSummaryError> for Error {
747 fn from(err: crate::operation::get_app_subscription_summary::GetAppSubscriptionSummaryError) -> Self {
748 match err {
749 crate::operation::get_app_subscription_summary::GetAppSubscriptionSummaryError::AccessDeniedException(inner) => {
750 Error::AccessDeniedException(inner)
751 }
752 crate::operation::get_app_subscription_summary::GetAppSubscriptionSummaryError::InternalServerException(inner) => {
753 Error::InternalServerException(inner)
754 }
755 crate::operation::get_app_subscription_summary::GetAppSubscriptionSummaryError::ResourceNotFoundException(inner) => {
756 Error::ResourceNotFoundException(inner)
757 }
758 crate::operation::get_app_subscription_summary::GetAppSubscriptionSummaryError::ThrottlingException(inner) => {
759 Error::ThrottlingException(inner)
760 }
761 crate::operation::get_app_subscription_summary::GetAppSubscriptionSummaryError::ValidationException(inner) => {
762 Error::ValidationException(inner)
763 }
764 crate::operation::get_app_subscription_summary::GetAppSubscriptionSummaryError::Unhandled(inner) => Error::Unhandled(inner),
765 }
766 }
767}
768impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app_usage_summary::GetAppUsageSummaryError, R>> for Error
769where
770 R: Send + Sync + std::fmt::Debug + 'static,
771{
772 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_app_usage_summary::GetAppUsageSummaryError, R>) -> Self {
773 match err {
774 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
775 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
776 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
777 source: err.into(),
778 }),
779 }
780 }
781}
782impl From<crate::operation::get_app_usage_summary::GetAppUsageSummaryError> for Error {
783 fn from(err: crate::operation::get_app_usage_summary::GetAppUsageSummaryError) -> Self {
784 match err {
785 crate::operation::get_app_usage_summary::GetAppUsageSummaryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
786 crate::operation::get_app_usage_summary::GetAppUsageSummaryError::InternalServerException(inner) => Error::InternalServerException(inner),
787 crate::operation::get_app_usage_summary::GetAppUsageSummaryError::ResourceNotFoundException(inner) => {
788 Error::ResourceNotFoundException(inner)
789 }
790 crate::operation::get_app_usage_summary::GetAppUsageSummaryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
791 crate::operation::get_app_usage_summary::GetAppUsageSummaryError::ValidationException(inner) => Error::ValidationException(inner),
792 crate::operation::get_app_usage_summary::GetAppUsageSummaryError::Unhandled(inner) => Error::Unhandled(inner),
793 }
794 }
795}
796impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_entitlement_decision::GetEntitlementDecisionError, R>> for Error
797where
798 R: Send + Sync + std::fmt::Debug + 'static,
799{
800 fn from(
801 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_entitlement_decision::GetEntitlementDecisionError, R>,
802 ) -> Self {
803 match err {
804 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
805 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
806 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
807 source: err.into(),
808 }),
809 }
810 }
811}
812impl From<crate::operation::get_entitlement_decision::GetEntitlementDecisionError> for Error {
813 fn from(err: crate::operation::get_entitlement_decision::GetEntitlementDecisionError) -> Self {
814 match err {
815 crate::operation::get_entitlement_decision::GetEntitlementDecisionError::AccessDeniedException(inner) => {
816 Error::AccessDeniedException(inner)
817 }
818 crate::operation::get_entitlement_decision::GetEntitlementDecisionError::InternalServerException(inner) => {
819 Error::InternalServerException(inner)
820 }
821 crate::operation::get_entitlement_decision::GetEntitlementDecisionError::ResourceNotFoundException(inner) => {
822 Error::ResourceNotFoundException(inner)
823 }
824 crate::operation::get_entitlement_decision::GetEntitlementDecisionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
825 crate::operation::get_entitlement_decision::GetEntitlementDecisionError::ValidationException(inner) => Error::ValidationException(inner),
826 crate::operation::get_entitlement_decision::GetEntitlementDecisionError::Unhandled(inner) => Error::Unhandled(inner),
827 }
828 }
829}
830impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric::GetMetricError, R>> for Error
831where
832 R: Send + Sync + std::fmt::Debug + 'static,
833{
834 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric::GetMetricError, R>) -> Self {
835 match err {
836 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
837 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
838 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
839 source: err.into(),
840 }),
841 }
842 }
843}
844impl From<crate::operation::get_metric::GetMetricError> for Error {
845 fn from(err: crate::operation::get_metric::GetMetricError) -> Self {
846 match err {
847 crate::operation::get_metric::GetMetricError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
848 crate::operation::get_metric::GetMetricError::InternalServerException(inner) => Error::InternalServerException(inner),
849 crate::operation::get_metric::GetMetricError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
850 crate::operation::get_metric::GetMetricError::ThrottlingException(inner) => Error::ThrottlingException(inner),
851 crate::operation::get_metric::GetMetricError::ValidationException(inner) => Error::ValidationException(inner),
852 crate::operation::get_metric::GetMetricError::Unhandled(inner) => Error::Unhandled(inner),
853 }
854 }
855}
856impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_usage::GetMetricUsageError, R>> for Error
857where
858 R: Send + Sync + std::fmt::Debug + 'static,
859{
860 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_metric_usage::GetMetricUsageError, R>) -> Self {
861 match err {
862 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
863 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
864 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
865 source: err.into(),
866 }),
867 }
868 }
869}
870impl From<crate::operation::get_metric_usage::GetMetricUsageError> for Error {
871 fn from(err: crate::operation::get_metric_usage::GetMetricUsageError) -> Self {
872 match err {
873 crate::operation::get_metric_usage::GetMetricUsageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
874 crate::operation::get_metric_usage::GetMetricUsageError::InternalServerException(inner) => Error::InternalServerException(inner),
875 crate::operation::get_metric_usage::GetMetricUsageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
876 crate::operation::get_metric_usage::GetMetricUsageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
877 crate::operation::get_metric_usage::GetMetricUsageError::ValidationException(inner) => Error::ValidationException(inner),
878 crate::operation::get_metric_usage::GetMetricUsageError::Unhandled(inner) => Error::Unhandled(inner),
879 }
880 }
881}
882impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_one_time_price::GetOneTimePriceError, R>> for Error
883where
884 R: Send + Sync + std::fmt::Debug + 'static,
885{
886 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_one_time_price::GetOneTimePriceError, R>) -> Self {
887 match err {
888 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
889 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
890 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
891 source: err.into(),
892 }),
893 }
894 }
895}
896impl From<crate::operation::get_one_time_price::GetOneTimePriceError> for Error {
897 fn from(err: crate::operation::get_one_time_price::GetOneTimePriceError) -> Self {
898 match err {
899 crate::operation::get_one_time_price::GetOneTimePriceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
900 crate::operation::get_one_time_price::GetOneTimePriceError::InternalServerException(inner) => Error::InternalServerException(inner),
901 crate::operation::get_one_time_price::GetOneTimePriceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
902 crate::operation::get_one_time_price::GetOneTimePriceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
903 crate::operation::get_one_time_price::GetOneTimePriceError::ValidationException(inner) => Error::ValidationException(inner),
904 crate::operation::get_one_time_price::GetOneTimePriceError::Unhandled(inner) => Error::Unhandled(inner),
905 }
906 }
907}
908impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_plan::GetPlanError, R>> for Error
909where
910 R: Send + Sync + std::fmt::Debug + 'static,
911{
912 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_plan::GetPlanError, R>) -> Self {
913 match err {
914 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
915 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
916 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
917 source: err.into(),
918 }),
919 }
920 }
921}
922impl From<crate::operation::get_plan::GetPlanError> for Error {
923 fn from(err: crate::operation::get_plan::GetPlanError) -> Self {
924 match err {
925 crate::operation::get_plan::GetPlanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
926 crate::operation::get_plan::GetPlanError::InternalServerException(inner) => Error::InternalServerException(inner),
927 crate::operation::get_plan::GetPlanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
928 crate::operation::get_plan::GetPlanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
929 crate::operation::get_plan::GetPlanError::ValidationException(inner) => Error::ValidationException(inner),
930 crate::operation::get_plan::GetPlanError::Unhandled(inner) => Error::Unhandled(inner),
931 }
932 }
933}
934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_plan_recommendation::GetPlanRecommendationError, R>> for Error
935where
936 R: Send + Sync + std::fmt::Debug + 'static,
937{
938 fn from(
939 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_plan_recommendation::GetPlanRecommendationError, R>,
940 ) -> Self {
941 match err {
942 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
943 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
944 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
945 source: err.into(),
946 }),
947 }
948 }
949}
950impl From<crate::operation::get_plan_recommendation::GetPlanRecommendationError> for Error {
951 fn from(err: crate::operation::get_plan_recommendation::GetPlanRecommendationError) -> Self {
952 match err {
953 crate::operation::get_plan_recommendation::GetPlanRecommendationError::AccessDeniedException(inner) => {
954 Error::AccessDeniedException(inner)
955 }
956 crate::operation::get_plan_recommendation::GetPlanRecommendationError::InternalServerException(inner) => {
957 Error::InternalServerException(inner)
958 }
959 crate::operation::get_plan_recommendation::GetPlanRecommendationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
960 crate::operation::get_plan_recommendation::GetPlanRecommendationError::ValidationException(inner) => Error::ValidationException(inner),
961 crate::operation::get_plan_recommendation::GetPlanRecommendationError::Unhandled(inner) => Error::Unhandled(inner),
962 }
963 }
964}
965impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscription::GetSubscriptionError, R>> for Error
966where
967 R: Send + Sync + std::fmt::Debug + 'static,
968{
969 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscription::GetSubscriptionError, R>) -> Self {
970 match err {
971 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
972 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
973 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
974 source: err.into(),
975 }),
976 }
977 }
978}
979impl From<crate::operation::get_subscription::GetSubscriptionError> for Error {
980 fn from(err: crate::operation::get_subscription::GetSubscriptionError) -> Self {
981 match err {
982 crate::operation::get_subscription::GetSubscriptionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
983 crate::operation::get_subscription::GetSubscriptionError::InternalServerException(inner) => Error::InternalServerException(inner),
984 crate::operation::get_subscription::GetSubscriptionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
985 crate::operation::get_subscription::GetSubscriptionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
986 crate::operation::get_subscription::GetSubscriptionError::ValidationException(inner) => Error::ValidationException(inner),
987 crate::operation::get_subscription::GetSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
988 }
989 }
990}
991impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscription_history::GetSubscriptionHistoryError, R>> for Error
992where
993 R: Send + Sync + std::fmt::Debug + 'static,
994{
995 fn from(
996 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_subscription_history::GetSubscriptionHistoryError, R>,
997 ) -> Self {
998 match err {
999 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1000 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1001 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1002 source: err.into(),
1003 }),
1004 }
1005 }
1006}
1007impl From<crate::operation::get_subscription_history::GetSubscriptionHistoryError> for Error {
1008 fn from(err: crate::operation::get_subscription_history::GetSubscriptionHistoryError) -> Self {
1009 match err {
1010 crate::operation::get_subscription_history::GetSubscriptionHistoryError::AccessDeniedException(inner) => {
1011 Error::AccessDeniedException(inner)
1012 }
1013 crate::operation::get_subscription_history::GetSubscriptionHistoryError::InternalServerException(inner) => {
1014 Error::InternalServerException(inner)
1015 }
1016 crate::operation::get_subscription_history::GetSubscriptionHistoryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1017 crate::operation::get_subscription_history::GetSubscriptionHistoryError::ValidationException(inner) => Error::ValidationException(inner),
1018 crate::operation::get_subscription_history::GetSubscriptionHistoryError::Unhandled(inner) => Error::Unhandled(inner),
1019 }
1020 }
1021}
1022impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_third_party_cost::GetThirdPartyCostError, R>> for Error
1023where
1024 R: Send + Sync + std::fmt::Debug + 'static,
1025{
1026 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_third_party_cost::GetThirdPartyCostError, R>) -> Self {
1027 match err {
1028 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1029 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1030 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1031 source: err.into(),
1032 }),
1033 }
1034 }
1035}
1036impl From<crate::operation::get_third_party_cost::GetThirdPartyCostError> for Error {
1037 fn from(err: crate::operation::get_third_party_cost::GetThirdPartyCostError) -> Self {
1038 match err {
1039 crate::operation::get_third_party_cost::GetThirdPartyCostError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1040 crate::operation::get_third_party_cost::GetThirdPartyCostError::InternalServerException(inner) => Error::InternalServerException(inner),
1041 crate::operation::get_third_party_cost::GetThirdPartyCostError::ResourceNotFoundException(inner) => {
1042 Error::ResourceNotFoundException(inner)
1043 }
1044 crate::operation::get_third_party_cost::GetThirdPartyCostError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1045 crate::operation::get_third_party_cost::GetThirdPartyCostError::ValidationException(inner) => Error::ValidationException(inner),
1046 crate::operation::get_third_party_cost::GetThirdPartyCostError::Unhandled(inner) => Error::Unhandled(inner),
1047 }
1048 }
1049}
1050impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apps::ListAppsError, R>> for Error
1051where
1052 R: Send + Sync + std::fmt::Debug + 'static,
1053{
1054 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_apps::ListAppsError, R>) -> Self {
1055 match err {
1056 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1057 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1058 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1059 source: err.into(),
1060 }),
1061 }
1062 }
1063}
1064impl From<crate::operation::list_apps::ListAppsError> for Error {
1065 fn from(err: crate::operation::list_apps::ListAppsError) -> Self {
1066 match err {
1067 crate::operation::list_apps::ListAppsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1068 crate::operation::list_apps::ListAppsError::InternalServerException(inner) => Error::InternalServerException(inner),
1069 crate::operation::list_apps::ListAppsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1070 crate::operation::list_apps::ListAppsError::ValidationException(inner) => Error::ValidationException(inner),
1071 crate::operation::list_apps::ListAppsError::Unhandled(inner) => Error::Unhandled(inner),
1072 }
1073 }
1074}
1075impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_metrics::ListMetricsError, R>> for Error
1076where
1077 R: Send + Sync + std::fmt::Debug + 'static,
1078{
1079 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_metrics::ListMetricsError, R>) -> Self {
1080 match err {
1081 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1082 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1083 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1084 source: err.into(),
1085 }),
1086 }
1087 }
1088}
1089impl From<crate::operation::list_metrics::ListMetricsError> for Error {
1090 fn from(err: crate::operation::list_metrics::ListMetricsError) -> Self {
1091 match err {
1092 crate::operation::list_metrics::ListMetricsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1093 crate::operation::list_metrics::ListMetricsError::InternalServerException(inner) => Error::InternalServerException(inner),
1094 crate::operation::list_metrics::ListMetricsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1095 crate::operation::list_metrics::ListMetricsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1096 crate::operation::list_metrics::ListMetricsError::ValidationException(inner) => Error::ValidationException(inner),
1097 crate::operation::list_metrics::ListMetricsError::Unhandled(inner) => Error::Unhandled(inner),
1098 }
1099 }
1100}
1101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_one_time_prices::ListOneTimePricesError, R>> for Error
1102where
1103 R: Send + Sync + std::fmt::Debug + 'static,
1104{
1105 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_one_time_prices::ListOneTimePricesError, R>) -> Self {
1106 match err {
1107 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1108 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1109 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1110 source: err.into(),
1111 }),
1112 }
1113 }
1114}
1115impl From<crate::operation::list_one_time_prices::ListOneTimePricesError> for Error {
1116 fn from(err: crate::operation::list_one_time_prices::ListOneTimePricesError) -> Self {
1117 match err {
1118 crate::operation::list_one_time_prices::ListOneTimePricesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1119 crate::operation::list_one_time_prices::ListOneTimePricesError::InternalServerException(inner) => Error::InternalServerException(inner),
1120 crate::operation::list_one_time_prices::ListOneTimePricesError::ResourceNotFoundException(inner) => {
1121 Error::ResourceNotFoundException(inner)
1122 }
1123 crate::operation::list_one_time_prices::ListOneTimePricesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1124 crate::operation::list_one_time_prices::ListOneTimePricesError::ValidationException(inner) => Error::ValidationException(inner),
1125 crate::operation::list_one_time_prices::ListOneTimePricesError::Unhandled(inner) => Error::Unhandled(inner),
1126 }
1127 }
1128}
1129impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_plans::ListPlansError, R>> for Error
1130where
1131 R: Send + Sync + std::fmt::Debug + 'static,
1132{
1133 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_plans::ListPlansError, R>) -> Self {
1134 match err {
1135 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1136 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1137 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1138 source: err.into(),
1139 }),
1140 }
1141 }
1142}
1143impl From<crate::operation::list_plans::ListPlansError> for Error {
1144 fn from(err: crate::operation::list_plans::ListPlansError) -> Self {
1145 match err {
1146 crate::operation::list_plans::ListPlansError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1147 crate::operation::list_plans::ListPlansError::InternalServerException(inner) => Error::InternalServerException(inner),
1148 crate::operation::list_plans::ListPlansError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1149 crate::operation::list_plans::ListPlansError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1150 crate::operation::list_plans::ListPlansError::ValidationException(inner) => Error::ValidationException(inner),
1151 crate::operation::list_plans::ListPlansError::Unhandled(inner) => Error::Unhandled(inner),
1152 }
1153 }
1154}
1155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscriptions::ListSubscriptionsError, R>> for Error
1156where
1157 R: Send + Sync + std::fmt::Debug + 'static,
1158{
1159 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_subscriptions::ListSubscriptionsError, R>) -> Self {
1160 match err {
1161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1164 source: err.into(),
1165 }),
1166 }
1167 }
1168}
1169impl From<crate::operation::list_subscriptions::ListSubscriptionsError> for Error {
1170 fn from(err: crate::operation::list_subscriptions::ListSubscriptionsError) -> Self {
1171 match err {
1172 crate::operation::list_subscriptions::ListSubscriptionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1173 crate::operation::list_subscriptions::ListSubscriptionsError::InternalServerException(inner) => Error::InternalServerException(inner),
1174 crate::operation::list_subscriptions::ListSubscriptionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1175 crate::operation::list_subscriptions::ListSubscriptionsError::ValidationException(inner) => Error::ValidationException(inner),
1176 crate::operation::list_subscriptions::ListSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
1177 }
1178 }
1179}
1180impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1181where
1182 R: Send + Sync + std::fmt::Debug + 'static,
1183{
1184 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1185 match err {
1186 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1187 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1188 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1189 source: err.into(),
1190 }),
1191 }
1192 }
1193}
1194impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1195 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1196 match err {
1197 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1198 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1199 Error::InternalServerException(inner)
1200 }
1201 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1202 Error::ResourceNotFoundException(inner)
1203 }
1204 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1205 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1206 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1207 }
1208 }
1209}
1210impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_third_party_costs::ListThirdPartyCostsError, R>> for Error
1211where
1212 R: Send + Sync + std::fmt::Debug + 'static,
1213{
1214 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_third_party_costs::ListThirdPartyCostsError, R>) -> Self {
1215 match err {
1216 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1217 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1218 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1219 source: err.into(),
1220 }),
1221 }
1222 }
1223}
1224impl From<crate::operation::list_third_party_costs::ListThirdPartyCostsError> for Error {
1225 fn from(err: crate::operation::list_third_party_costs::ListThirdPartyCostsError) -> Self {
1226 match err {
1227 crate::operation::list_third_party_costs::ListThirdPartyCostsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1228 crate::operation::list_third_party_costs::ListThirdPartyCostsError::InternalServerException(inner) => {
1229 Error::InternalServerException(inner)
1230 }
1231 crate::operation::list_third_party_costs::ListThirdPartyCostsError::ResourceNotFoundException(inner) => {
1232 Error::ResourceNotFoundException(inner)
1233 }
1234 crate::operation::list_third_party_costs::ListThirdPartyCostsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1235 crate::operation::list_third_party_costs::ListThirdPartyCostsError::ValidationException(inner) => Error::ValidationException(inner),
1236 crate::operation::list_third_party_costs::ListThirdPartyCostsError::Unhandled(inner) => Error::Unhandled(inner),
1237 }
1238 }
1239}
1240impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::publish_draft::PublishDraftError, R>> for Error
1241where
1242 R: Send + Sync + std::fmt::Debug + 'static,
1243{
1244 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::publish_draft::PublishDraftError, R>) -> Self {
1245 match err {
1246 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1247 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1248 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1249 source: err.into(),
1250 }),
1251 }
1252 }
1253}
1254impl From<crate::operation::publish_draft::PublishDraftError> for Error {
1255 fn from(err: crate::operation::publish_draft::PublishDraftError) -> Self {
1256 match err {
1257 crate::operation::publish_draft::PublishDraftError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1258 crate::operation::publish_draft::PublishDraftError::ConflictException(inner) => Error::ConflictException(inner),
1259 crate::operation::publish_draft::PublishDraftError::InternalServerException(inner) => Error::InternalServerException(inner),
1260 crate::operation::publish_draft::PublishDraftError::InvalidConfigurationException(inner) => Error::InvalidConfigurationException(inner),
1261 crate::operation::publish_draft::PublishDraftError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1262 crate::operation::publish_draft::PublishDraftError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1263 crate::operation::publish_draft::PublishDraftError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1264 crate::operation::publish_draft::PublishDraftError::ValidationException(inner) => Error::ValidationException(inner),
1265 crate::operation::publish_draft::PublishDraftError::Unhandled(inner) => Error::Unhandled(inner),
1266 }
1267 }
1268}
1269impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_aws_service_event::PutAwsServiceEventError, R>> for Error
1270where
1271 R: Send + Sync + std::fmt::Debug + 'static,
1272{
1273 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_aws_service_event::PutAwsServiceEventError, R>) -> Self {
1274 match err {
1275 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1276 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1277 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1278 source: err.into(),
1279 }),
1280 }
1281 }
1282}
1283impl From<crate::operation::put_aws_service_event::PutAwsServiceEventError> for Error {
1284 fn from(err: crate::operation::put_aws_service_event::PutAwsServiceEventError) -> Self {
1285 match err {
1286 crate::operation::put_aws_service_event::PutAwsServiceEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1287 crate::operation::put_aws_service_event::PutAwsServiceEventError::ConflictException(inner) => Error::ConflictException(inner),
1288 crate::operation::put_aws_service_event::PutAwsServiceEventError::InternalServerException(inner) => Error::InternalServerException(inner),
1289 crate::operation::put_aws_service_event::PutAwsServiceEventError::ResourceNotFoundException(inner) => {
1290 Error::ResourceNotFoundException(inner)
1291 }
1292 crate::operation::put_aws_service_event::PutAwsServiceEventError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1293 crate::operation::put_aws_service_event::PutAwsServiceEventError::ValidationException(inner) => Error::ValidationException(inner),
1294 crate::operation::put_aws_service_event::PutAwsServiceEventError::Unhandled(inner) => Error::Unhandled(inner),
1295 }
1296 }
1297}
1298impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_custom_charges::PutCustomChargesError, R>> for Error
1299where
1300 R: Send + Sync + std::fmt::Debug + 'static,
1301{
1302 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_custom_charges::PutCustomChargesError, R>) -> Self {
1303 match err {
1304 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1305 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1306 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1307 source: err.into(),
1308 }),
1309 }
1310 }
1311}
1312impl From<crate::operation::put_custom_charges::PutCustomChargesError> for Error {
1313 fn from(err: crate::operation::put_custom_charges::PutCustomChargesError) -> Self {
1314 match err {
1315 crate::operation::put_custom_charges::PutCustomChargesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1316 crate::operation::put_custom_charges::PutCustomChargesError::ConflictException(inner) => Error::ConflictException(inner),
1317 crate::operation::put_custom_charges::PutCustomChargesError::InternalServerException(inner) => Error::InternalServerException(inner),
1318 crate::operation::put_custom_charges::PutCustomChargesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1319 crate::operation::put_custom_charges::PutCustomChargesError::ServiceQuotaExceededException(inner) => {
1320 Error::ServiceQuotaExceededException(inner)
1321 }
1322 crate::operation::put_custom_charges::PutCustomChargesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1323 crate::operation::put_custom_charges::PutCustomChargesError::ValidationException(inner) => Error::ValidationException(inner),
1324 crate::operation::put_custom_charges::PutCustomChargesError::Unhandled(inner) => Error::Unhandled(inner),
1325 }
1326 }
1327}
1328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_event::PutEventError, R>> for Error
1329where
1330 R: Send + Sync + std::fmt::Debug + 'static,
1331{
1332 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_event::PutEventError, R>) -> Self {
1333 match err {
1334 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1335 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1336 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1337 source: err.into(),
1338 }),
1339 }
1340 }
1341}
1342impl From<crate::operation::put_event::PutEventError> for Error {
1343 fn from(err: crate::operation::put_event::PutEventError) -> Self {
1344 match err {
1345 crate::operation::put_event::PutEventError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1346 crate::operation::put_event::PutEventError::InternalServerException(inner) => Error::InternalServerException(inner),
1347 crate::operation::put_event::PutEventError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1348 crate::operation::put_event::PutEventError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1349 crate::operation::put_event::PutEventError::ValidationException(inner) => Error::ValidationException(inner),
1350 crate::operation::put_event::PutEventError::Unhandled(inner) => Error::Unhandled(inner),
1351 }
1352 }
1353}
1354impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_third_party_cost::PutThirdPartyCostError, R>> for Error
1355where
1356 R: Send + Sync + std::fmt::Debug + 'static,
1357{
1358 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_third_party_cost::PutThirdPartyCostError, R>) -> Self {
1359 match err {
1360 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1361 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1362 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1363 source: err.into(),
1364 }),
1365 }
1366 }
1367}
1368impl From<crate::operation::put_third_party_cost::PutThirdPartyCostError> for Error {
1369 fn from(err: crate::operation::put_third_party_cost::PutThirdPartyCostError) -> Self {
1370 match err {
1371 crate::operation::put_third_party_cost::PutThirdPartyCostError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1372 crate::operation::put_third_party_cost::PutThirdPartyCostError::ConflictException(inner) => Error::ConflictException(inner),
1373 crate::operation::put_third_party_cost::PutThirdPartyCostError::InternalServerException(inner) => Error::InternalServerException(inner),
1374 crate::operation::put_third_party_cost::PutThirdPartyCostError::ResourceNotFoundException(inner) => {
1375 Error::ResourceNotFoundException(inner)
1376 }
1377 crate::operation::put_third_party_cost::PutThirdPartyCostError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1378 crate::operation::put_third_party_cost::PutThirdPartyCostError::ValidationException(inner) => Error::ValidationException(inner),
1379 crate::operation::put_third_party_cost::PutThirdPartyCostError::Unhandled(inner) => Error::Unhandled(inner),
1380 }
1381 }
1382}
1383impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1384where
1385 R: Send + Sync + std::fmt::Debug + 'static,
1386{
1387 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1388 match err {
1389 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1390 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1391 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1392 source: err.into(),
1393 }),
1394 }
1395 }
1396}
1397impl From<crate::operation::tag_resource::TagResourceError> for Error {
1398 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1399 match err {
1400 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1401 crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1402 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1403 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1404 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1405 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1406 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1407 }
1408 }
1409}
1410impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1411where
1412 R: Send + Sync + std::fmt::Debug + 'static,
1413{
1414 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1415 match err {
1416 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1417 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1418 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1419 source: err.into(),
1420 }),
1421 }
1422 }
1423}
1424impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1425 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1426 match err {
1427 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1428 crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1429 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1430 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1431 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1432 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1433 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1434 }
1435 }
1436}
1437impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app::UpdateAppError, R>> for Error
1438where
1439 R: Send + Sync + std::fmt::Debug + 'static,
1440{
1441 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app::UpdateAppError, R>) -> Self {
1442 match err {
1443 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1444 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1445 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1446 source: err.into(),
1447 }),
1448 }
1449 }
1450}
1451impl From<crate::operation::update_app::UpdateAppError> for Error {
1452 fn from(err: crate::operation::update_app::UpdateAppError) -> Self {
1453 match err {
1454 crate::operation::update_app::UpdateAppError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1455 crate::operation::update_app::UpdateAppError::ConflictException(inner) => Error::ConflictException(inner),
1456 crate::operation::update_app::UpdateAppError::InternalServerException(inner) => Error::InternalServerException(inner),
1457 crate::operation::update_app::UpdateAppError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1458 crate::operation::update_app::UpdateAppError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1459 crate::operation::update_app::UpdateAppError::ValidationException(inner) => Error::ValidationException(inner),
1460 crate::operation::update_app::UpdateAppError::Unhandled(inner) => Error::Unhandled(inner),
1461 }
1462 }
1463}
1464impl<R>
1465 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_app_payment_registration::UpdateAppPaymentRegistrationError, R>>
1466 for Error
1467where
1468 R: Send + Sync + std::fmt::Debug + 'static,
1469{
1470 fn from(
1471 err: ::aws_smithy_runtime_api::client::result::SdkError<
1472 crate::operation::update_app_payment_registration::UpdateAppPaymentRegistrationError,
1473 R,
1474 >,
1475 ) -> Self {
1476 match err {
1477 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1478 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1479 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1480 source: err.into(),
1481 }),
1482 }
1483 }
1484}
1485impl From<crate::operation::update_app_payment_registration::UpdateAppPaymentRegistrationError> for Error {
1486 fn from(err: crate::operation::update_app_payment_registration::UpdateAppPaymentRegistrationError) -> Self {
1487 match err {
1488 crate::operation::update_app_payment_registration::UpdateAppPaymentRegistrationError::AccessDeniedException(inner) => {
1489 Error::AccessDeniedException(inner)
1490 }
1491 crate::operation::update_app_payment_registration::UpdateAppPaymentRegistrationError::ConflictException(inner) => {
1492 Error::ConflictException(inner)
1493 }
1494 crate::operation::update_app_payment_registration::UpdateAppPaymentRegistrationError::InternalServerException(inner) => {
1495 Error::InternalServerException(inner)
1496 }
1497 crate::operation::update_app_payment_registration::UpdateAppPaymentRegistrationError::ResourceNotFoundException(inner) => {
1498 Error::ResourceNotFoundException(inner)
1499 }
1500 crate::operation::update_app_payment_registration::UpdateAppPaymentRegistrationError::ThrottlingException(inner) => {
1501 Error::ThrottlingException(inner)
1502 }
1503 crate::operation::update_app_payment_registration::UpdateAppPaymentRegistrationError::ValidationException(inner) => {
1504 Error::ValidationException(inner)
1505 }
1506 crate::operation::update_app_payment_registration::UpdateAppPaymentRegistrationError::Unhandled(inner) => Error::Unhandled(inner),
1507 }
1508 }
1509}
1510impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_metric::UpdateMetricError, R>> for Error
1511where
1512 R: Send + Sync + std::fmt::Debug + 'static,
1513{
1514 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_metric::UpdateMetricError, R>) -> Self {
1515 match err {
1516 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1517 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1518 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1519 source: err.into(),
1520 }),
1521 }
1522 }
1523}
1524impl From<crate::operation::update_metric::UpdateMetricError> for Error {
1525 fn from(err: crate::operation::update_metric::UpdateMetricError) -> Self {
1526 match err {
1527 crate::operation::update_metric::UpdateMetricError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1528 crate::operation::update_metric::UpdateMetricError::ConflictException(inner) => Error::ConflictException(inner),
1529 crate::operation::update_metric::UpdateMetricError::InternalServerException(inner) => Error::InternalServerException(inner),
1530 crate::operation::update_metric::UpdateMetricError::InvalidConfigurationException(inner) => Error::InvalidConfigurationException(inner),
1531 crate::operation::update_metric::UpdateMetricError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1532 crate::operation::update_metric::UpdateMetricError::RevisionConflictException(inner) => Error::RevisionConflictException(inner),
1533 crate::operation::update_metric::UpdateMetricError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1534 crate::operation::update_metric::UpdateMetricError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1535 crate::operation::update_metric::UpdateMetricError::ValidationException(inner) => Error::ValidationException(inner),
1536 crate::operation::update_metric::UpdateMetricError::Unhandled(inner) => Error::Unhandled(inner),
1537 }
1538 }
1539}
1540impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_one_time_price::UpdateOneTimePriceError, R>> for Error
1541where
1542 R: Send + Sync + std::fmt::Debug + 'static,
1543{
1544 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_one_time_price::UpdateOneTimePriceError, R>) -> Self {
1545 match err {
1546 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1547 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1548 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1549 source: err.into(),
1550 }),
1551 }
1552 }
1553}
1554impl From<crate::operation::update_one_time_price::UpdateOneTimePriceError> for Error {
1555 fn from(err: crate::operation::update_one_time_price::UpdateOneTimePriceError) -> Self {
1556 match err {
1557 crate::operation::update_one_time_price::UpdateOneTimePriceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1558 crate::operation::update_one_time_price::UpdateOneTimePriceError::ConflictException(inner) => Error::ConflictException(inner),
1559 crate::operation::update_one_time_price::UpdateOneTimePriceError::IdempotencyConflictException(inner) => {
1560 Error::IdempotencyConflictException(inner)
1561 }
1562 crate::operation::update_one_time_price::UpdateOneTimePriceError::InternalServerException(inner) => Error::InternalServerException(inner),
1563 crate::operation::update_one_time_price::UpdateOneTimePriceError::InvalidConfigurationException(inner) => {
1564 Error::InvalidConfigurationException(inner)
1565 }
1566 crate::operation::update_one_time_price::UpdateOneTimePriceError::ResourceNotFoundException(inner) => {
1567 Error::ResourceNotFoundException(inner)
1568 }
1569 crate::operation::update_one_time_price::UpdateOneTimePriceError::RevisionConflictException(inner) => {
1570 Error::RevisionConflictException(inner)
1571 }
1572 crate::operation::update_one_time_price::UpdateOneTimePriceError::ServiceQuotaExceededException(inner) => {
1573 Error::ServiceQuotaExceededException(inner)
1574 }
1575 crate::operation::update_one_time_price::UpdateOneTimePriceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1576 crate::operation::update_one_time_price::UpdateOneTimePriceError::ValidationException(inner) => Error::ValidationException(inner),
1577 crate::operation::update_one_time_price::UpdateOneTimePriceError::Unhandled(inner) => Error::Unhandled(inner),
1578 }
1579 }
1580}
1581impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_plan::UpdatePlanError, R>> for Error
1582where
1583 R: Send + Sync + std::fmt::Debug + 'static,
1584{
1585 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_plan::UpdatePlanError, R>) -> Self {
1586 match err {
1587 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1588 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1589 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1590 source: err.into(),
1591 }),
1592 }
1593 }
1594}
1595impl From<crate::operation::update_plan::UpdatePlanError> for Error {
1596 fn from(err: crate::operation::update_plan::UpdatePlanError) -> Self {
1597 match err {
1598 crate::operation::update_plan::UpdatePlanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1599 crate::operation::update_plan::UpdatePlanError::ConflictException(inner) => Error::ConflictException(inner),
1600 crate::operation::update_plan::UpdatePlanError::InternalServerException(inner) => Error::InternalServerException(inner),
1601 crate::operation::update_plan::UpdatePlanError::InvalidConfigurationException(inner) => Error::InvalidConfigurationException(inner),
1602 crate::operation::update_plan::UpdatePlanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1603 crate::operation::update_plan::UpdatePlanError::RevisionConflictException(inner) => Error::RevisionConflictException(inner),
1604 crate::operation::update_plan::UpdatePlanError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1605 crate::operation::update_plan::UpdatePlanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1606 crate::operation::update_plan::UpdatePlanError::ValidationException(inner) => Error::ValidationException(inner),
1607 crate::operation::update_plan::UpdatePlanError::Unhandled(inner) => Error::Unhandled(inner),
1608 }
1609 }
1610}
1611impl ::std::error::Error for Error {
1612 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1613 match self {
1614 Error::AccessDeniedException(inner) => inner.source(),
1615 Error::ConflictException(inner) => inner.source(),
1616 Error::IdempotencyConflictException(inner) => inner.source(),
1617 Error::InternalServerException(inner) => inner.source(),
1618 Error::InvalidConfigurationException(inner) => inner.source(),
1619 Error::ResourceNotFoundException(inner) => inner.source(),
1620 Error::RevisionConflictException(inner) => inner.source(),
1621 Error::ServiceQuotaExceededException(inner) => inner.source(),
1622 Error::ServiceUnavailableException(inner) => inner.source(),
1623 Error::ThrottlingException(inner) => inner.source(),
1624 Error::ValidationException(inner) => inner.source(),
1625 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1626 }
1627 }
1628}
1629impl ::aws_types::request_id::RequestId for Error {
1630 fn request_id(&self) -> Option<&str> {
1631 match self {
1632 Self::AccessDeniedException(e) => e.request_id(),
1633 Self::ConflictException(e) => e.request_id(),
1634 Self::IdempotencyConflictException(e) => e.request_id(),
1635 Self::InternalServerException(e) => e.request_id(),
1636 Self::InvalidConfigurationException(e) => e.request_id(),
1637 Self::ResourceNotFoundException(e) => e.request_id(),
1638 Self::RevisionConflictException(e) => e.request_id(),
1639 Self::ServiceQuotaExceededException(e) => e.request_id(),
1640 Self::ServiceUnavailableException(e) => e.request_id(),
1641 Self::ThrottlingException(e) => e.request_id(),
1642 Self::ValidationException(e) => e.request_id(),
1643 Self::Unhandled(e) => e.meta.request_id(),
1644 }
1645 }
1646}