aws_sdk_billingconductor/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>You do not have sufficient access to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>You can cause an inconsistent state by updating or deleting a resource.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>An unexpected error occurred while processing a request.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The request references a resource that doesn't exist.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request would cause a service limit to exceed.</p>
15    ServiceLimitExceededException(crate::types::error::ServiceLimitExceededException),
16    /// <p>The request was denied due to request throttling.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>The input doesn't match with the constraints specified by Amazon Web Services services.</p>
19    ValidationException(crate::types::error::ValidationException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25     \
26    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27    Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31        match self {
32            Error::AccessDeniedException(inner) => inner.fmt(f),
33            Error::ConflictException(inner) => inner.fmt(f),
34            Error::InternalServerException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::ServiceLimitExceededException(inner) => inner.fmt(f),
37            Error::ThrottlingException(inner) => inner.fmt(f),
38            Error::ValidationException(inner) => inner.fmt(f),
39            Error::Unhandled(_) => {
40                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41                    write!(f, "unhandled error ({code})")
42                } else {
43                    f.write_str("unhandled error")
44                }
45            }
46        }
47    }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52            source: value.into(),
53            meta: ::std::default::Default::default(),
54        })
55    }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59        match self {
60            Self::AccessDeniedException(inner) => inner.meta(),
61            Self::ConflictException(inner) => inner.meta(),
62            Self::InternalServerException(inner) => inner.meta(),
63            Self::ResourceNotFoundException(inner) => inner.meta(),
64            Self::ServiceLimitExceededException(inner) => inner.meta(),
65            Self::ThrottlingException(inner) => inner.meta(),
66            Self::ValidationException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_accounts::AssociateAccountsError, R>> for Error
72where
73    R: Send + Sync + std::fmt::Debug + 'static,
74{
75    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_accounts::AssociateAccountsError, R>) -> Self {
76        match err {
77            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80                source: err.into(),
81            }),
82        }
83    }
84}
85impl From<crate::operation::associate_accounts::AssociateAccountsError> for Error {
86    fn from(err: crate::operation::associate_accounts::AssociateAccountsError) -> Self {
87        match err {
88            crate::operation::associate_accounts::AssociateAccountsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::associate_accounts::AssociateAccountsError::ConflictException(inner) => Error::ConflictException(inner),
90            crate::operation::associate_accounts::AssociateAccountsError::InternalServerException(inner) => Error::InternalServerException(inner),
91            crate::operation::associate_accounts::AssociateAccountsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
92            crate::operation::associate_accounts::AssociateAccountsError::ServiceLimitExceededException(inner) => {
93                Error::ServiceLimitExceededException(inner)
94            }
95            crate::operation::associate_accounts::AssociateAccountsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
96            crate::operation::associate_accounts::AssociateAccountsError::ValidationException(inner) => Error::ValidationException(inner),
97            crate::operation::associate_accounts::AssociateAccountsError::Unhandled(inner) => Error::Unhandled(inner),
98        }
99    }
100}
101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_pricing_rules::AssociatePricingRulesError, R>> for Error
102where
103    R: Send + Sync + std::fmt::Debug + 'static,
104{
105    fn from(
106        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_pricing_rules::AssociatePricingRulesError, R>,
107    ) -> Self {
108        match err {
109            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
110            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
111                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
112                source: err.into(),
113            }),
114        }
115    }
116}
117impl From<crate::operation::associate_pricing_rules::AssociatePricingRulesError> for Error {
118    fn from(err: crate::operation::associate_pricing_rules::AssociatePricingRulesError) -> Self {
119        match err {
120            crate::operation::associate_pricing_rules::AssociatePricingRulesError::AccessDeniedException(inner) => {
121                Error::AccessDeniedException(inner)
122            }
123            crate::operation::associate_pricing_rules::AssociatePricingRulesError::ConflictException(inner) => Error::ConflictException(inner),
124            crate::operation::associate_pricing_rules::AssociatePricingRulesError::InternalServerException(inner) => {
125                Error::InternalServerException(inner)
126            }
127            crate::operation::associate_pricing_rules::AssociatePricingRulesError::ResourceNotFoundException(inner) => {
128                Error::ResourceNotFoundException(inner)
129            }
130            crate::operation::associate_pricing_rules::AssociatePricingRulesError::ServiceLimitExceededException(inner) => {
131                Error::ServiceLimitExceededException(inner)
132            }
133            crate::operation::associate_pricing_rules::AssociatePricingRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
134            crate::operation::associate_pricing_rules::AssociatePricingRulesError::ValidationException(inner) => Error::ValidationException(inner),
135            crate::operation::associate_pricing_rules::AssociatePricingRulesError::Unhandled(inner) => Error::Unhandled(inner),
136        }
137    }
138}
139impl<R>
140    From<
141        ::aws_smithy_runtime_api::client::result::SdkError<
142            crate::operation::batch_associate_resources_to_custom_line_item::BatchAssociateResourcesToCustomLineItemError,
143            R,
144        >,
145    > for Error
146where
147    R: Send + Sync + std::fmt::Debug + 'static,
148{
149    fn from(
150        err: ::aws_smithy_runtime_api::client::result::SdkError<
151            crate::operation::batch_associate_resources_to_custom_line_item::BatchAssociateResourcesToCustomLineItemError,
152            R,
153        >,
154    ) -> Self {
155        match err {
156            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
157            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
158                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
159                source: err.into(),
160            }),
161        }
162    }
163}
164impl From<crate::operation::batch_associate_resources_to_custom_line_item::BatchAssociateResourcesToCustomLineItemError> for Error {
165    fn from(err: crate::operation::batch_associate_resources_to_custom_line_item::BatchAssociateResourcesToCustomLineItemError) -> Self {
166        match err {
167            crate::operation::batch_associate_resources_to_custom_line_item::BatchAssociateResourcesToCustomLineItemError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
168            crate::operation::batch_associate_resources_to_custom_line_item::BatchAssociateResourcesToCustomLineItemError::ConflictException(inner) => Error::ConflictException(inner),
169            crate::operation::batch_associate_resources_to_custom_line_item::BatchAssociateResourcesToCustomLineItemError::InternalServerException(inner) => Error::InternalServerException(inner),
170            crate::operation::batch_associate_resources_to_custom_line_item::BatchAssociateResourcesToCustomLineItemError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
171            crate::operation::batch_associate_resources_to_custom_line_item::BatchAssociateResourcesToCustomLineItemError::ServiceLimitExceededException(inner) => Error::ServiceLimitExceededException(inner),
172            crate::operation::batch_associate_resources_to_custom_line_item::BatchAssociateResourcesToCustomLineItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
173            crate::operation::batch_associate_resources_to_custom_line_item::BatchAssociateResourcesToCustomLineItemError::ValidationException(inner) => Error::ValidationException(inner),
174            crate::operation::batch_associate_resources_to_custom_line_item::BatchAssociateResourcesToCustomLineItemError::Unhandled(inner) => Error::Unhandled(inner),
175        }
176    }
177}
178impl<R>
179    From<
180        ::aws_smithy_runtime_api::client::result::SdkError<
181            crate::operation::batch_disassociate_resources_from_custom_line_item::BatchDisassociateResourcesFromCustomLineItemError,
182            R,
183        >,
184    > for Error
185where
186    R: Send + Sync + std::fmt::Debug + 'static,
187{
188    fn from(
189        err: ::aws_smithy_runtime_api::client::result::SdkError<
190            crate::operation::batch_disassociate_resources_from_custom_line_item::BatchDisassociateResourcesFromCustomLineItemError,
191            R,
192        >,
193    ) -> Self {
194        match err {
195            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
196            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
197                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
198                source: err.into(),
199            }),
200        }
201    }
202}
203impl From<crate::operation::batch_disassociate_resources_from_custom_line_item::BatchDisassociateResourcesFromCustomLineItemError> for Error {
204    fn from(err: crate::operation::batch_disassociate_resources_from_custom_line_item::BatchDisassociateResourcesFromCustomLineItemError) -> Self {
205        match err {
206            crate::operation::batch_disassociate_resources_from_custom_line_item::BatchDisassociateResourcesFromCustomLineItemError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
207            crate::operation::batch_disassociate_resources_from_custom_line_item::BatchDisassociateResourcesFromCustomLineItemError::ConflictException(inner) => Error::ConflictException(inner),
208            crate::operation::batch_disassociate_resources_from_custom_line_item::BatchDisassociateResourcesFromCustomLineItemError::InternalServerException(inner) => Error::InternalServerException(inner),
209            crate::operation::batch_disassociate_resources_from_custom_line_item::BatchDisassociateResourcesFromCustomLineItemError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
210            crate::operation::batch_disassociate_resources_from_custom_line_item::BatchDisassociateResourcesFromCustomLineItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
211            crate::operation::batch_disassociate_resources_from_custom_line_item::BatchDisassociateResourcesFromCustomLineItemError::ValidationException(inner) => Error::ValidationException(inner),
212            crate::operation::batch_disassociate_resources_from_custom_line_item::BatchDisassociateResourcesFromCustomLineItemError::Unhandled(inner) => Error::Unhandled(inner),
213        }
214    }
215}
216impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_billing_group::CreateBillingGroupError, R>> for Error
217where
218    R: Send + Sync + std::fmt::Debug + 'static,
219{
220    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_billing_group::CreateBillingGroupError, R>) -> Self {
221        match err {
222            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
223            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
224                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
225                source: err.into(),
226            }),
227        }
228    }
229}
230impl From<crate::operation::create_billing_group::CreateBillingGroupError> for Error {
231    fn from(err: crate::operation::create_billing_group::CreateBillingGroupError) -> Self {
232        match err {
233            crate::operation::create_billing_group::CreateBillingGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
234            crate::operation::create_billing_group::CreateBillingGroupError::ConflictException(inner) => Error::ConflictException(inner),
235            crate::operation::create_billing_group::CreateBillingGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
236            crate::operation::create_billing_group::CreateBillingGroupError::ServiceLimitExceededException(inner) => {
237                Error::ServiceLimitExceededException(inner)
238            }
239            crate::operation::create_billing_group::CreateBillingGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
240            crate::operation::create_billing_group::CreateBillingGroupError::ValidationException(inner) => Error::ValidationException(inner),
241            crate::operation::create_billing_group::CreateBillingGroupError::Unhandled(inner) => Error::Unhandled(inner),
242        }
243    }
244}
245impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_line_item::CreateCustomLineItemError, R>> for Error
246where
247    R: Send + Sync + std::fmt::Debug + 'static,
248{
249    fn from(
250        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_line_item::CreateCustomLineItemError, R>,
251    ) -> Self {
252        match err {
253            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
254            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
255                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
256                source: err.into(),
257            }),
258        }
259    }
260}
261impl From<crate::operation::create_custom_line_item::CreateCustomLineItemError> for Error {
262    fn from(err: crate::operation::create_custom_line_item::CreateCustomLineItemError) -> Self {
263        match err {
264            crate::operation::create_custom_line_item::CreateCustomLineItemError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
265            crate::operation::create_custom_line_item::CreateCustomLineItemError::ConflictException(inner) => Error::ConflictException(inner),
266            crate::operation::create_custom_line_item::CreateCustomLineItemError::InternalServerException(inner) => {
267                Error::InternalServerException(inner)
268            }
269            crate::operation::create_custom_line_item::CreateCustomLineItemError::ServiceLimitExceededException(inner) => {
270                Error::ServiceLimitExceededException(inner)
271            }
272            crate::operation::create_custom_line_item::CreateCustomLineItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
273            crate::operation::create_custom_line_item::CreateCustomLineItemError::ValidationException(inner) => Error::ValidationException(inner),
274            crate::operation::create_custom_line_item::CreateCustomLineItemError::Unhandled(inner) => Error::Unhandled(inner),
275        }
276    }
277}
278impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pricing_plan::CreatePricingPlanError, R>> for Error
279where
280    R: Send + Sync + std::fmt::Debug + 'static,
281{
282    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pricing_plan::CreatePricingPlanError, R>) -> Self {
283        match err {
284            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
285            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
286                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
287                source: err.into(),
288            }),
289        }
290    }
291}
292impl From<crate::operation::create_pricing_plan::CreatePricingPlanError> for Error {
293    fn from(err: crate::operation::create_pricing_plan::CreatePricingPlanError) -> Self {
294        match err {
295            crate::operation::create_pricing_plan::CreatePricingPlanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
296            crate::operation::create_pricing_plan::CreatePricingPlanError::ConflictException(inner) => Error::ConflictException(inner),
297            crate::operation::create_pricing_plan::CreatePricingPlanError::InternalServerException(inner) => Error::InternalServerException(inner),
298            crate::operation::create_pricing_plan::CreatePricingPlanError::ResourceNotFoundException(inner) => {
299                Error::ResourceNotFoundException(inner)
300            }
301            crate::operation::create_pricing_plan::CreatePricingPlanError::ServiceLimitExceededException(inner) => {
302                Error::ServiceLimitExceededException(inner)
303            }
304            crate::operation::create_pricing_plan::CreatePricingPlanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
305            crate::operation::create_pricing_plan::CreatePricingPlanError::ValidationException(inner) => Error::ValidationException(inner),
306            crate::operation::create_pricing_plan::CreatePricingPlanError::Unhandled(inner) => Error::Unhandled(inner),
307        }
308    }
309}
310impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pricing_rule::CreatePricingRuleError, R>> for Error
311where
312    R: Send + Sync + std::fmt::Debug + 'static,
313{
314    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_pricing_rule::CreatePricingRuleError, R>) -> Self {
315        match err {
316            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
317            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
318                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
319                source: err.into(),
320            }),
321        }
322    }
323}
324impl From<crate::operation::create_pricing_rule::CreatePricingRuleError> for Error {
325    fn from(err: crate::operation::create_pricing_rule::CreatePricingRuleError) -> Self {
326        match err {
327            crate::operation::create_pricing_rule::CreatePricingRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
328            crate::operation::create_pricing_rule::CreatePricingRuleError::ConflictException(inner) => Error::ConflictException(inner),
329            crate::operation::create_pricing_rule::CreatePricingRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
330            crate::operation::create_pricing_rule::CreatePricingRuleError::ServiceLimitExceededException(inner) => {
331                Error::ServiceLimitExceededException(inner)
332            }
333            crate::operation::create_pricing_rule::CreatePricingRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
334            crate::operation::create_pricing_rule::CreatePricingRuleError::ValidationException(inner) => Error::ValidationException(inner),
335            crate::operation::create_pricing_rule::CreatePricingRuleError::Unhandled(inner) => Error::Unhandled(inner),
336        }
337    }
338}
339impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_billing_group::DeleteBillingGroupError, R>> for Error
340where
341    R: Send + Sync + std::fmt::Debug + 'static,
342{
343    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_billing_group::DeleteBillingGroupError, R>) -> Self {
344        match err {
345            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
346            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
347                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
348                source: err.into(),
349            }),
350        }
351    }
352}
353impl From<crate::operation::delete_billing_group::DeleteBillingGroupError> for Error {
354    fn from(err: crate::operation::delete_billing_group::DeleteBillingGroupError) -> Self {
355        match err {
356            crate::operation::delete_billing_group::DeleteBillingGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
357            crate::operation::delete_billing_group::DeleteBillingGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
358            crate::operation::delete_billing_group::DeleteBillingGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
359            crate::operation::delete_billing_group::DeleteBillingGroupError::ValidationException(inner) => Error::ValidationException(inner),
360            crate::operation::delete_billing_group::DeleteBillingGroupError::Unhandled(inner) => Error::Unhandled(inner),
361        }
362    }
363}
364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_line_item::DeleteCustomLineItemError, R>> for Error
365where
366    R: Send + Sync + std::fmt::Debug + 'static,
367{
368    fn from(
369        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_line_item::DeleteCustomLineItemError, R>,
370    ) -> Self {
371        match err {
372            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
373            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
374                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
375                source: err.into(),
376            }),
377        }
378    }
379}
380impl From<crate::operation::delete_custom_line_item::DeleteCustomLineItemError> for Error {
381    fn from(err: crate::operation::delete_custom_line_item::DeleteCustomLineItemError) -> Self {
382        match err {
383            crate::operation::delete_custom_line_item::DeleteCustomLineItemError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
384            crate::operation::delete_custom_line_item::DeleteCustomLineItemError::ConflictException(inner) => Error::ConflictException(inner),
385            crate::operation::delete_custom_line_item::DeleteCustomLineItemError::InternalServerException(inner) => {
386                Error::InternalServerException(inner)
387            }
388            crate::operation::delete_custom_line_item::DeleteCustomLineItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
389            crate::operation::delete_custom_line_item::DeleteCustomLineItemError::ValidationException(inner) => Error::ValidationException(inner),
390            crate::operation::delete_custom_line_item::DeleteCustomLineItemError::Unhandled(inner) => Error::Unhandled(inner),
391        }
392    }
393}
394impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pricing_plan::DeletePricingPlanError, R>> for Error
395where
396    R: Send + Sync + std::fmt::Debug + 'static,
397{
398    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pricing_plan::DeletePricingPlanError, R>) -> Self {
399        match err {
400            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
401            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
402                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
403                source: err.into(),
404            }),
405        }
406    }
407}
408impl From<crate::operation::delete_pricing_plan::DeletePricingPlanError> for Error {
409    fn from(err: crate::operation::delete_pricing_plan::DeletePricingPlanError) -> Self {
410        match err {
411            crate::operation::delete_pricing_plan::DeletePricingPlanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
412            crate::operation::delete_pricing_plan::DeletePricingPlanError::ConflictException(inner) => Error::ConflictException(inner),
413            crate::operation::delete_pricing_plan::DeletePricingPlanError::InternalServerException(inner) => Error::InternalServerException(inner),
414            crate::operation::delete_pricing_plan::DeletePricingPlanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
415            crate::operation::delete_pricing_plan::DeletePricingPlanError::ValidationException(inner) => Error::ValidationException(inner),
416            crate::operation::delete_pricing_plan::DeletePricingPlanError::Unhandled(inner) => Error::Unhandled(inner),
417        }
418    }
419}
420impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pricing_rule::DeletePricingRuleError, R>> for Error
421where
422    R: Send + Sync + std::fmt::Debug + 'static,
423{
424    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_pricing_rule::DeletePricingRuleError, R>) -> Self {
425        match err {
426            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
427            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
428                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
429                source: err.into(),
430            }),
431        }
432    }
433}
434impl From<crate::operation::delete_pricing_rule::DeletePricingRuleError> for Error {
435    fn from(err: crate::operation::delete_pricing_rule::DeletePricingRuleError) -> Self {
436        match err {
437            crate::operation::delete_pricing_rule::DeletePricingRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
438            crate::operation::delete_pricing_rule::DeletePricingRuleError::ConflictException(inner) => Error::ConflictException(inner),
439            crate::operation::delete_pricing_rule::DeletePricingRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
440            crate::operation::delete_pricing_rule::DeletePricingRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
441            crate::operation::delete_pricing_rule::DeletePricingRuleError::ValidationException(inner) => Error::ValidationException(inner),
442            crate::operation::delete_pricing_rule::DeletePricingRuleError::Unhandled(inner) => Error::Unhandled(inner),
443        }
444    }
445}
446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_accounts::DisassociateAccountsError, R>> for Error
447where
448    R: Send + Sync + std::fmt::Debug + 'static,
449{
450    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_accounts::DisassociateAccountsError, R>) -> Self {
451        match err {
452            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
453            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
454                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
455                source: err.into(),
456            }),
457        }
458    }
459}
460impl From<crate::operation::disassociate_accounts::DisassociateAccountsError> for Error {
461    fn from(err: crate::operation::disassociate_accounts::DisassociateAccountsError) -> Self {
462        match err {
463            crate::operation::disassociate_accounts::DisassociateAccountsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
464            crate::operation::disassociate_accounts::DisassociateAccountsError::ConflictException(inner) => Error::ConflictException(inner),
465            crate::operation::disassociate_accounts::DisassociateAccountsError::InternalServerException(inner) => {
466                Error::InternalServerException(inner)
467            }
468            crate::operation::disassociate_accounts::DisassociateAccountsError::ResourceNotFoundException(inner) => {
469                Error::ResourceNotFoundException(inner)
470            }
471            crate::operation::disassociate_accounts::DisassociateAccountsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
472            crate::operation::disassociate_accounts::DisassociateAccountsError::ValidationException(inner) => Error::ValidationException(inner),
473            crate::operation::disassociate_accounts::DisassociateAccountsError::Unhandled(inner) => Error::Unhandled(inner),
474        }
475    }
476}
477impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_pricing_rules::DisassociatePricingRulesError, R>>
478    for Error
479where
480    R: Send + Sync + std::fmt::Debug + 'static,
481{
482    fn from(
483        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_pricing_rules::DisassociatePricingRulesError, R>,
484    ) -> Self {
485        match err {
486            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
487            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
488                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
489                source: err.into(),
490            }),
491        }
492    }
493}
494impl From<crate::operation::disassociate_pricing_rules::DisassociatePricingRulesError> for Error {
495    fn from(err: crate::operation::disassociate_pricing_rules::DisassociatePricingRulesError) -> Self {
496        match err {
497            crate::operation::disassociate_pricing_rules::DisassociatePricingRulesError::AccessDeniedException(inner) => {
498                Error::AccessDeniedException(inner)
499            }
500            crate::operation::disassociate_pricing_rules::DisassociatePricingRulesError::ConflictException(inner) => Error::ConflictException(inner),
501            crate::operation::disassociate_pricing_rules::DisassociatePricingRulesError::InternalServerException(inner) => {
502                Error::InternalServerException(inner)
503            }
504            crate::operation::disassociate_pricing_rules::DisassociatePricingRulesError::ResourceNotFoundException(inner) => {
505                Error::ResourceNotFoundException(inner)
506            }
507            crate::operation::disassociate_pricing_rules::DisassociatePricingRulesError::ThrottlingException(inner) => {
508                Error::ThrottlingException(inner)
509            }
510            crate::operation::disassociate_pricing_rules::DisassociatePricingRulesError::ValidationException(inner) => {
511                Error::ValidationException(inner)
512            }
513            crate::operation::disassociate_pricing_rules::DisassociatePricingRulesError::Unhandled(inner) => Error::Unhandled(inner),
514        }
515    }
516}
517impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_billing_group_cost_report::GetBillingGroupCostReportError, R>>
518    for Error
519where
520    R: Send + Sync + std::fmt::Debug + 'static,
521{
522    fn from(
523        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_billing_group_cost_report::GetBillingGroupCostReportError, R>,
524    ) -> Self {
525        match err {
526            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
527            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
528                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
529                source: err.into(),
530            }),
531        }
532    }
533}
534impl From<crate::operation::get_billing_group_cost_report::GetBillingGroupCostReportError> for Error {
535    fn from(err: crate::operation::get_billing_group_cost_report::GetBillingGroupCostReportError) -> Self {
536        match err {
537            crate::operation::get_billing_group_cost_report::GetBillingGroupCostReportError::AccessDeniedException(inner) => {
538                Error::AccessDeniedException(inner)
539            }
540            crate::operation::get_billing_group_cost_report::GetBillingGroupCostReportError::InternalServerException(inner) => {
541                Error::InternalServerException(inner)
542            }
543            crate::operation::get_billing_group_cost_report::GetBillingGroupCostReportError::ResourceNotFoundException(inner) => {
544                Error::ResourceNotFoundException(inner)
545            }
546            crate::operation::get_billing_group_cost_report::GetBillingGroupCostReportError::ThrottlingException(inner) => {
547                Error::ThrottlingException(inner)
548            }
549            crate::operation::get_billing_group_cost_report::GetBillingGroupCostReportError::ValidationException(inner) => {
550                Error::ValidationException(inner)
551            }
552            crate::operation::get_billing_group_cost_report::GetBillingGroupCostReportError::Unhandled(inner) => Error::Unhandled(inner),
553        }
554    }
555}
556impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_account_associations::ListAccountAssociationsError, R>>
557    for Error
558where
559    R: Send + Sync + std::fmt::Debug + 'static,
560{
561    fn from(
562        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_account_associations::ListAccountAssociationsError, R>,
563    ) -> Self {
564        match err {
565            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
566            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
567                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
568                source: err.into(),
569            }),
570        }
571    }
572}
573impl From<crate::operation::list_account_associations::ListAccountAssociationsError> for Error {
574    fn from(err: crate::operation::list_account_associations::ListAccountAssociationsError) -> Self {
575        match err {
576            crate::operation::list_account_associations::ListAccountAssociationsError::AccessDeniedException(inner) => {
577                Error::AccessDeniedException(inner)
578            }
579            crate::operation::list_account_associations::ListAccountAssociationsError::InternalServerException(inner) => {
580                Error::InternalServerException(inner)
581            }
582            crate::operation::list_account_associations::ListAccountAssociationsError::ResourceNotFoundException(inner) => {
583                Error::ResourceNotFoundException(inner)
584            }
585            crate::operation::list_account_associations::ListAccountAssociationsError::ThrottlingException(inner) => {
586                Error::ThrottlingException(inner)
587            }
588            crate::operation::list_account_associations::ListAccountAssociationsError::ValidationException(inner) => {
589                Error::ValidationException(inner)
590            }
591            crate::operation::list_account_associations::ListAccountAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
592        }
593    }
594}
595impl<R>
596    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_billing_group_cost_reports::ListBillingGroupCostReportsError, R>>
597    for Error
598where
599    R: Send + Sync + std::fmt::Debug + 'static,
600{
601    fn from(
602        err: ::aws_smithy_runtime_api::client::result::SdkError<
603            crate::operation::list_billing_group_cost_reports::ListBillingGroupCostReportsError,
604            R,
605        >,
606    ) -> Self {
607        match err {
608            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
609            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
610                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
611                source: err.into(),
612            }),
613        }
614    }
615}
616impl From<crate::operation::list_billing_group_cost_reports::ListBillingGroupCostReportsError> for Error {
617    fn from(err: crate::operation::list_billing_group_cost_reports::ListBillingGroupCostReportsError) -> Self {
618        match err {
619            crate::operation::list_billing_group_cost_reports::ListBillingGroupCostReportsError::AccessDeniedException(inner) => {
620                Error::AccessDeniedException(inner)
621            }
622            crate::operation::list_billing_group_cost_reports::ListBillingGroupCostReportsError::InternalServerException(inner) => {
623                Error::InternalServerException(inner)
624            }
625            crate::operation::list_billing_group_cost_reports::ListBillingGroupCostReportsError::ResourceNotFoundException(inner) => {
626                Error::ResourceNotFoundException(inner)
627            }
628            crate::operation::list_billing_group_cost_reports::ListBillingGroupCostReportsError::ThrottlingException(inner) => {
629                Error::ThrottlingException(inner)
630            }
631            crate::operation::list_billing_group_cost_reports::ListBillingGroupCostReportsError::ValidationException(inner) => {
632                Error::ValidationException(inner)
633            }
634            crate::operation::list_billing_group_cost_reports::ListBillingGroupCostReportsError::Unhandled(inner) => Error::Unhandled(inner),
635        }
636    }
637}
638impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_billing_groups::ListBillingGroupsError, R>> for Error
639where
640    R: Send + Sync + std::fmt::Debug + 'static,
641{
642    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_billing_groups::ListBillingGroupsError, R>) -> Self {
643        match err {
644            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
645            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
646                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
647                source: err.into(),
648            }),
649        }
650    }
651}
652impl From<crate::operation::list_billing_groups::ListBillingGroupsError> for Error {
653    fn from(err: crate::operation::list_billing_groups::ListBillingGroupsError) -> Self {
654        match err {
655            crate::operation::list_billing_groups::ListBillingGroupsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
656            crate::operation::list_billing_groups::ListBillingGroupsError::InternalServerException(inner) => Error::InternalServerException(inner),
657            crate::operation::list_billing_groups::ListBillingGroupsError::ResourceNotFoundException(inner) => {
658                Error::ResourceNotFoundException(inner)
659            }
660            crate::operation::list_billing_groups::ListBillingGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
661            crate::operation::list_billing_groups::ListBillingGroupsError::ValidationException(inner) => Error::ValidationException(inner),
662            crate::operation::list_billing_groups::ListBillingGroupsError::Unhandled(inner) => Error::Unhandled(inner),
663        }
664    }
665}
666impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_line_items::ListCustomLineItemsError, R>> for Error
667where
668    R: Send + Sync + std::fmt::Debug + 'static,
669{
670    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_line_items::ListCustomLineItemsError, R>) -> Self {
671        match err {
672            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
673            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
674                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
675                source: err.into(),
676            }),
677        }
678    }
679}
680impl From<crate::operation::list_custom_line_items::ListCustomLineItemsError> for Error {
681    fn from(err: crate::operation::list_custom_line_items::ListCustomLineItemsError) -> Self {
682        match err {
683            crate::operation::list_custom_line_items::ListCustomLineItemsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
684            crate::operation::list_custom_line_items::ListCustomLineItemsError::InternalServerException(inner) => {
685                Error::InternalServerException(inner)
686            }
687            crate::operation::list_custom_line_items::ListCustomLineItemsError::ResourceNotFoundException(inner) => {
688                Error::ResourceNotFoundException(inner)
689            }
690            crate::operation::list_custom_line_items::ListCustomLineItemsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
691            crate::operation::list_custom_line_items::ListCustomLineItemsError::ValidationException(inner) => Error::ValidationException(inner),
692            crate::operation::list_custom_line_items::ListCustomLineItemsError::Unhandled(inner) => Error::Unhandled(inner),
693        }
694    }
695}
696impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_line_item_versions::ListCustomLineItemVersionsError, R>>
697    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::list_custom_line_item_versions::ListCustomLineItemVersionsError, 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::list_custom_line_item_versions::ListCustomLineItemVersionsError> for Error {
714    fn from(err: crate::operation::list_custom_line_item_versions::ListCustomLineItemVersionsError) -> Self {
715        match err {
716            crate::operation::list_custom_line_item_versions::ListCustomLineItemVersionsError::AccessDeniedException(inner) => {
717                Error::AccessDeniedException(inner)
718            }
719            crate::operation::list_custom_line_item_versions::ListCustomLineItemVersionsError::InternalServerException(inner) => {
720                Error::InternalServerException(inner)
721            }
722            crate::operation::list_custom_line_item_versions::ListCustomLineItemVersionsError::ThrottlingException(inner) => {
723                Error::ThrottlingException(inner)
724            }
725            crate::operation::list_custom_line_item_versions::ListCustomLineItemVersionsError::ValidationException(inner) => {
726                Error::ValidationException(inner)
727            }
728            crate::operation::list_custom_line_item_versions::ListCustomLineItemVersionsError::Unhandled(inner) => Error::Unhandled(inner),
729        }
730    }
731}
732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pricing_plans::ListPricingPlansError, R>> for Error
733where
734    R: Send + Sync + std::fmt::Debug + 'static,
735{
736    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pricing_plans::ListPricingPlansError, R>) -> Self {
737        match err {
738            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
739            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
740                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
741                source: err.into(),
742            }),
743        }
744    }
745}
746impl From<crate::operation::list_pricing_plans::ListPricingPlansError> for Error {
747    fn from(err: crate::operation::list_pricing_plans::ListPricingPlansError) -> Self {
748        match err {
749            crate::operation::list_pricing_plans::ListPricingPlansError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
750            crate::operation::list_pricing_plans::ListPricingPlansError::InternalServerException(inner) => Error::InternalServerException(inner),
751            crate::operation::list_pricing_plans::ListPricingPlansError::ThrottlingException(inner) => Error::ThrottlingException(inner),
752            crate::operation::list_pricing_plans::ListPricingPlansError::ValidationException(inner) => Error::ValidationException(inner),
753            crate::operation::list_pricing_plans::ListPricingPlansError::Unhandled(inner) => Error::Unhandled(inner),
754        }
755    }
756}
757impl<R>
758    From<
759        ::aws_smithy_runtime_api::client::result::SdkError<
760            crate::operation::list_pricing_plans_associated_with_pricing_rule::ListPricingPlansAssociatedWithPricingRuleError,
761            R,
762        >,
763    > for Error
764where
765    R: Send + Sync + std::fmt::Debug + 'static,
766{
767    fn from(
768        err: ::aws_smithy_runtime_api::client::result::SdkError<
769            crate::operation::list_pricing_plans_associated_with_pricing_rule::ListPricingPlansAssociatedWithPricingRuleError,
770            R,
771        >,
772    ) -> 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::list_pricing_plans_associated_with_pricing_rule::ListPricingPlansAssociatedWithPricingRuleError> for Error {
783    fn from(err: crate::operation::list_pricing_plans_associated_with_pricing_rule::ListPricingPlansAssociatedWithPricingRuleError) -> Self {
784        match err {
785            crate::operation::list_pricing_plans_associated_with_pricing_rule::ListPricingPlansAssociatedWithPricingRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
786            crate::operation::list_pricing_plans_associated_with_pricing_rule::ListPricingPlansAssociatedWithPricingRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
787            crate::operation::list_pricing_plans_associated_with_pricing_rule::ListPricingPlansAssociatedWithPricingRuleError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
788            crate::operation::list_pricing_plans_associated_with_pricing_rule::ListPricingPlansAssociatedWithPricingRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
789            crate::operation::list_pricing_plans_associated_with_pricing_rule::ListPricingPlansAssociatedWithPricingRuleError::ValidationException(inner) => Error::ValidationException(inner),
790            crate::operation::list_pricing_plans_associated_with_pricing_rule::ListPricingPlansAssociatedWithPricingRuleError::Unhandled(inner) => Error::Unhandled(inner),
791        }
792    }
793}
794impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pricing_rules::ListPricingRulesError, R>> for Error
795where
796    R: Send + Sync + std::fmt::Debug + 'static,
797{
798    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_pricing_rules::ListPricingRulesError, R>) -> Self {
799        match err {
800            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
801            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
802                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
803                source: err.into(),
804            }),
805        }
806    }
807}
808impl From<crate::operation::list_pricing_rules::ListPricingRulesError> for Error {
809    fn from(err: crate::operation::list_pricing_rules::ListPricingRulesError) -> Self {
810        match err {
811            crate::operation::list_pricing_rules::ListPricingRulesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
812            crate::operation::list_pricing_rules::ListPricingRulesError::InternalServerException(inner) => Error::InternalServerException(inner),
813            crate::operation::list_pricing_rules::ListPricingRulesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
814            crate::operation::list_pricing_rules::ListPricingRulesError::ValidationException(inner) => Error::ValidationException(inner),
815            crate::operation::list_pricing_rules::ListPricingRulesError::Unhandled(inner) => Error::Unhandled(inner),
816        }
817    }
818}
819impl<R>
820    From<
821        ::aws_smithy_runtime_api::client::result::SdkError<
822            crate::operation::list_pricing_rules_associated_to_pricing_plan::ListPricingRulesAssociatedToPricingPlanError,
823            R,
824        >,
825    > for Error
826where
827    R: Send + Sync + std::fmt::Debug + 'static,
828{
829    fn from(
830        err: ::aws_smithy_runtime_api::client::result::SdkError<
831            crate::operation::list_pricing_rules_associated_to_pricing_plan::ListPricingRulesAssociatedToPricingPlanError,
832            R,
833        >,
834    ) -> 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::list_pricing_rules_associated_to_pricing_plan::ListPricingRulesAssociatedToPricingPlanError> for Error {
845    fn from(err: crate::operation::list_pricing_rules_associated_to_pricing_plan::ListPricingRulesAssociatedToPricingPlanError) -> Self {
846        match err {
847            crate::operation::list_pricing_rules_associated_to_pricing_plan::ListPricingRulesAssociatedToPricingPlanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
848            crate::operation::list_pricing_rules_associated_to_pricing_plan::ListPricingRulesAssociatedToPricingPlanError::InternalServerException(inner) => Error::InternalServerException(inner),
849            crate::operation::list_pricing_rules_associated_to_pricing_plan::ListPricingRulesAssociatedToPricingPlanError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
850            crate::operation::list_pricing_rules_associated_to_pricing_plan::ListPricingRulesAssociatedToPricingPlanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
851            crate::operation::list_pricing_rules_associated_to_pricing_plan::ListPricingRulesAssociatedToPricingPlanError::ValidationException(inner) => Error::ValidationException(inner),
852            crate::operation::list_pricing_rules_associated_to_pricing_plan::ListPricingRulesAssociatedToPricingPlanError::Unhandled(inner) => Error::Unhandled(inner),
853        }
854    }
855}
856impl<R>
857    From<
858        ::aws_smithy_runtime_api::client::result::SdkError<
859            crate::operation::list_resources_associated_to_custom_line_item::ListResourcesAssociatedToCustomLineItemError,
860            R,
861        >,
862    > for Error
863where
864    R: Send + Sync + std::fmt::Debug + 'static,
865{
866    fn from(
867        err: ::aws_smithy_runtime_api::client::result::SdkError<
868            crate::operation::list_resources_associated_to_custom_line_item::ListResourcesAssociatedToCustomLineItemError,
869            R,
870        >,
871    ) -> Self {
872        match err {
873            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
874            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
875                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
876                source: err.into(),
877            }),
878        }
879    }
880}
881impl From<crate::operation::list_resources_associated_to_custom_line_item::ListResourcesAssociatedToCustomLineItemError> for Error {
882    fn from(err: crate::operation::list_resources_associated_to_custom_line_item::ListResourcesAssociatedToCustomLineItemError) -> Self {
883        match err {
884            crate::operation::list_resources_associated_to_custom_line_item::ListResourcesAssociatedToCustomLineItemError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
885            crate::operation::list_resources_associated_to_custom_line_item::ListResourcesAssociatedToCustomLineItemError::InternalServerException(inner) => Error::InternalServerException(inner),
886            crate::operation::list_resources_associated_to_custom_line_item::ListResourcesAssociatedToCustomLineItemError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
887            crate::operation::list_resources_associated_to_custom_line_item::ListResourcesAssociatedToCustomLineItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
888            crate::operation::list_resources_associated_to_custom_line_item::ListResourcesAssociatedToCustomLineItemError::ValidationException(inner) => Error::ValidationException(inner),
889            crate::operation::list_resources_associated_to_custom_line_item::ListResourcesAssociatedToCustomLineItemError::Unhandled(inner) => Error::Unhandled(inner),
890        }
891    }
892}
893impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
894where
895    R: Send + Sync + std::fmt::Debug + 'static,
896{
897    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
898        match err {
899            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
900            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
901                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
902                source: err.into(),
903            }),
904        }
905    }
906}
907impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
908    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
909        match err {
910            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
911            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
912                Error::InternalServerException(inner)
913            }
914            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
915                Error::ResourceNotFoundException(inner)
916            }
917            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
918            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
919            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
920        }
921    }
922}
923impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
924where
925    R: Send + Sync + std::fmt::Debug + 'static,
926{
927    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
928        match err {
929            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
930            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
931                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
932                source: err.into(),
933            }),
934        }
935    }
936}
937impl From<crate::operation::tag_resource::TagResourceError> for Error {
938    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
939        match err {
940            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
941            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
942            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
943            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
944            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
945            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
946        }
947    }
948}
949impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
950where
951    R: Send + Sync + std::fmt::Debug + 'static,
952{
953    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
954        match err {
955            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
956            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
957                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
958                source: err.into(),
959            }),
960        }
961    }
962}
963impl From<crate::operation::untag_resource::UntagResourceError> for Error {
964    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
965        match err {
966            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
967            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
968            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
969            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
970            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
971            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
972        }
973    }
974}
975impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_billing_group::UpdateBillingGroupError, R>> for Error
976where
977    R: Send + Sync + std::fmt::Debug + 'static,
978{
979    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_billing_group::UpdateBillingGroupError, R>) -> Self {
980        match err {
981            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
982            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
983                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
984                source: err.into(),
985            }),
986        }
987    }
988}
989impl From<crate::operation::update_billing_group::UpdateBillingGroupError> for Error {
990    fn from(err: crate::operation::update_billing_group::UpdateBillingGroupError) -> Self {
991        match err {
992            crate::operation::update_billing_group::UpdateBillingGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
993            crate::operation::update_billing_group::UpdateBillingGroupError::ConflictException(inner) => Error::ConflictException(inner),
994            crate::operation::update_billing_group::UpdateBillingGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
995            crate::operation::update_billing_group::UpdateBillingGroupError::ResourceNotFoundException(inner) => {
996                Error::ResourceNotFoundException(inner)
997            }
998            crate::operation::update_billing_group::UpdateBillingGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
999            crate::operation::update_billing_group::UpdateBillingGroupError::ValidationException(inner) => Error::ValidationException(inner),
1000            crate::operation::update_billing_group::UpdateBillingGroupError::Unhandled(inner) => Error::Unhandled(inner),
1001        }
1002    }
1003}
1004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_custom_line_item::UpdateCustomLineItemError, R>> for Error
1005where
1006    R: Send + Sync + std::fmt::Debug + 'static,
1007{
1008    fn from(
1009        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_custom_line_item::UpdateCustomLineItemError, R>,
1010    ) -> Self {
1011        match err {
1012            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1013            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1014                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1015                source: err.into(),
1016            }),
1017        }
1018    }
1019}
1020impl From<crate::operation::update_custom_line_item::UpdateCustomLineItemError> for Error {
1021    fn from(err: crate::operation::update_custom_line_item::UpdateCustomLineItemError) -> Self {
1022        match err {
1023            crate::operation::update_custom_line_item::UpdateCustomLineItemError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1024            crate::operation::update_custom_line_item::UpdateCustomLineItemError::InternalServerException(inner) => {
1025                Error::InternalServerException(inner)
1026            }
1027            crate::operation::update_custom_line_item::UpdateCustomLineItemError::ResourceNotFoundException(inner) => {
1028                Error::ResourceNotFoundException(inner)
1029            }
1030            crate::operation::update_custom_line_item::UpdateCustomLineItemError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1031            crate::operation::update_custom_line_item::UpdateCustomLineItemError::ValidationException(inner) => Error::ValidationException(inner),
1032            crate::operation::update_custom_line_item::UpdateCustomLineItemError::Unhandled(inner) => Error::Unhandled(inner),
1033        }
1034    }
1035}
1036impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pricing_plan::UpdatePricingPlanError, R>> for Error
1037where
1038    R: Send + Sync + std::fmt::Debug + 'static,
1039{
1040    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pricing_plan::UpdatePricingPlanError, R>) -> Self {
1041        match err {
1042            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1043            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1044                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1045                source: err.into(),
1046            }),
1047        }
1048    }
1049}
1050impl From<crate::operation::update_pricing_plan::UpdatePricingPlanError> for Error {
1051    fn from(err: crate::operation::update_pricing_plan::UpdatePricingPlanError) -> Self {
1052        match err {
1053            crate::operation::update_pricing_plan::UpdatePricingPlanError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1054            crate::operation::update_pricing_plan::UpdatePricingPlanError::ConflictException(inner) => Error::ConflictException(inner),
1055            crate::operation::update_pricing_plan::UpdatePricingPlanError::InternalServerException(inner) => Error::InternalServerException(inner),
1056            crate::operation::update_pricing_plan::UpdatePricingPlanError::ResourceNotFoundException(inner) => {
1057                Error::ResourceNotFoundException(inner)
1058            }
1059            crate::operation::update_pricing_plan::UpdatePricingPlanError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1060            crate::operation::update_pricing_plan::UpdatePricingPlanError::ValidationException(inner) => Error::ValidationException(inner),
1061            crate::operation::update_pricing_plan::UpdatePricingPlanError::Unhandled(inner) => Error::Unhandled(inner),
1062        }
1063    }
1064}
1065impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pricing_rule::UpdatePricingRuleError, R>> for Error
1066where
1067    R: Send + Sync + std::fmt::Debug + 'static,
1068{
1069    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_pricing_rule::UpdatePricingRuleError, R>) -> Self {
1070        match err {
1071            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1072            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1073                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1074                source: err.into(),
1075            }),
1076        }
1077    }
1078}
1079impl From<crate::operation::update_pricing_rule::UpdatePricingRuleError> for Error {
1080    fn from(err: crate::operation::update_pricing_rule::UpdatePricingRuleError) -> Self {
1081        match err {
1082            crate::operation::update_pricing_rule::UpdatePricingRuleError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1083            crate::operation::update_pricing_rule::UpdatePricingRuleError::ConflictException(inner) => Error::ConflictException(inner),
1084            crate::operation::update_pricing_rule::UpdatePricingRuleError::InternalServerException(inner) => Error::InternalServerException(inner),
1085            crate::operation::update_pricing_rule::UpdatePricingRuleError::ResourceNotFoundException(inner) => {
1086                Error::ResourceNotFoundException(inner)
1087            }
1088            crate::operation::update_pricing_rule::UpdatePricingRuleError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1089            crate::operation::update_pricing_rule::UpdatePricingRuleError::ValidationException(inner) => Error::ValidationException(inner),
1090            crate::operation::update_pricing_rule::UpdatePricingRuleError::Unhandled(inner) => Error::Unhandled(inner),
1091        }
1092    }
1093}
1094impl ::std::error::Error for Error {
1095    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1096        match self {
1097            Error::AccessDeniedException(inner) => inner.source(),
1098            Error::ConflictException(inner) => inner.source(),
1099            Error::InternalServerException(inner) => inner.source(),
1100            Error::ResourceNotFoundException(inner) => inner.source(),
1101            Error::ServiceLimitExceededException(inner) => inner.source(),
1102            Error::ThrottlingException(inner) => inner.source(),
1103            Error::ValidationException(inner) => inner.source(),
1104            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1105        }
1106    }
1107}
1108impl ::aws_types::request_id::RequestId for Error {
1109    fn request_id(&self) -> Option<&str> {
1110        match self {
1111            Self::AccessDeniedException(e) => e.request_id(),
1112            Self::ConflictException(e) => e.request_id(),
1113            Self::InternalServerException(e) => e.request_id(),
1114            Self::ResourceNotFoundException(e) => e.request_id(),
1115            Self::ServiceLimitExceededException(e) => e.request_id(),
1116            Self::ThrottlingException(e) => e.request_id(),
1117            Self::ValidationException(e) => e.request_id(),
1118            Self::Unhandled(e) => e.meta.request_id(),
1119        }
1120    }
1121}