aws_sdk_opensearchserverless/
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>When creating a resource, thrown when a resource with the same name already exists or is being created. When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.</p>
7    ConflictException(crate::types::error::ConflictException),
8    /// <p>Thrown when an error internal to the service occurs while processing a request.</p>
9    InternalServerException(crate::types::error::InternalServerException),
10    /// <p>Thrown when the collection you're attempting to create results in a number of search or indexing OCUs that exceeds the account limit.</p>
11    OcuLimitExceededException(crate::types::error::OcuLimitExceededException),
12    /// <p>Thrown when accessing or deleting a resource that does not exist.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>Thrown when you attempt to create more resources than the service allows based on service quotas.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>Thrown when the HTTP request contains invalid input or is missing required input.</p>
17    ValidationException(crate::types::error::ValidationException),
18    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
19    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
20    variable wildcard pattern and check `.code()`:
21     \
22    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
23     \
24    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
25    Unhandled(crate::error::sealed_unhandled::Unhandled),
26}
27impl ::std::fmt::Display for Error {
28    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
29        match self {
30            Error::ConflictException(inner) => inner.fmt(f),
31            Error::InternalServerException(inner) => inner.fmt(f),
32            Error::OcuLimitExceededException(inner) => inner.fmt(f),
33            Error::ResourceNotFoundException(inner) => inner.fmt(f),
34            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
35            Error::ValidationException(inner) => inner.fmt(f),
36            Error::Unhandled(_) => {
37                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
38                    write!(f, "unhandled error ({code})")
39                } else {
40                    f.write_str("unhandled error")
41                }
42            }
43        }
44    }
45}
46impl From<::aws_smithy_types::error::operation::BuildError> for Error {
47    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
48        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
49            source: value.into(),
50            meta: ::std::default::Default::default(),
51        })
52    }
53}
54impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
55    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
56        match self {
57            Self::ConflictException(inner) => inner.meta(),
58            Self::InternalServerException(inner) => inner.meta(),
59            Self::OcuLimitExceededException(inner) => inner.meta(),
60            Self::ResourceNotFoundException(inner) => inner.meta(),
61            Self::ServiceQuotaExceededException(inner) => inner.meta(),
62            Self::ValidationException(inner) => inner.meta(),
63            Self::Unhandled(inner) => &inner.meta,
64        }
65    }
66}
67impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_collection::BatchGetCollectionError, R>> for Error
68where
69    R: Send + Sync + std::fmt::Debug + 'static,
70{
71    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_collection::BatchGetCollectionError, R>) -> Self {
72        match err {
73            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
74            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
75                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
76                source: err.into(),
77            }),
78        }
79    }
80}
81impl From<crate::operation::batch_get_collection::BatchGetCollectionError> for Error {
82    fn from(err: crate::operation::batch_get_collection::BatchGetCollectionError) -> Self {
83        match err {
84            crate::operation::batch_get_collection::BatchGetCollectionError::InternalServerException(inner) => Error::InternalServerException(inner),
85            crate::operation::batch_get_collection::BatchGetCollectionError::ValidationException(inner) => Error::ValidationException(inner),
86            crate::operation::batch_get_collection::BatchGetCollectionError::Unhandled(inner) => Error::Unhandled(inner),
87        }
88    }
89}
90impl<R>
91    From<
92        ::aws_smithy_runtime_api::client::result::SdkError<
93            crate::operation::batch_get_effective_lifecycle_policy::BatchGetEffectiveLifecyclePolicyError,
94            R,
95        >,
96    > for Error
97where
98    R: Send + Sync + std::fmt::Debug + 'static,
99{
100    fn from(
101        err: ::aws_smithy_runtime_api::client::result::SdkError<
102            crate::operation::batch_get_effective_lifecycle_policy::BatchGetEffectiveLifecyclePolicyError,
103            R,
104        >,
105    ) -> Self {
106        match err {
107            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
108            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
109                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
110                source: err.into(),
111            }),
112        }
113    }
114}
115impl From<crate::operation::batch_get_effective_lifecycle_policy::BatchGetEffectiveLifecyclePolicyError> for Error {
116    fn from(err: crate::operation::batch_get_effective_lifecycle_policy::BatchGetEffectiveLifecyclePolicyError) -> Self {
117        match err {
118            crate::operation::batch_get_effective_lifecycle_policy::BatchGetEffectiveLifecyclePolicyError::InternalServerException(inner) => {
119                Error::InternalServerException(inner)
120            }
121            crate::operation::batch_get_effective_lifecycle_policy::BatchGetEffectiveLifecyclePolicyError::ValidationException(inner) => {
122                Error::ValidationException(inner)
123            }
124            crate::operation::batch_get_effective_lifecycle_policy::BatchGetEffectiveLifecyclePolicyError::Unhandled(inner) => {
125                Error::Unhandled(inner)
126            }
127        }
128    }
129}
130impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_lifecycle_policy::BatchGetLifecyclePolicyError, R>>
131    for Error
132where
133    R: Send + Sync + std::fmt::Debug + 'static,
134{
135    fn from(
136        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_lifecycle_policy::BatchGetLifecyclePolicyError, R>,
137    ) -> Self {
138        match err {
139            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
140            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
141                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
142                source: err.into(),
143            }),
144        }
145    }
146}
147impl From<crate::operation::batch_get_lifecycle_policy::BatchGetLifecyclePolicyError> for Error {
148    fn from(err: crate::operation::batch_get_lifecycle_policy::BatchGetLifecyclePolicyError) -> Self {
149        match err {
150            crate::operation::batch_get_lifecycle_policy::BatchGetLifecyclePolicyError::InternalServerException(inner) => {
151                Error::InternalServerException(inner)
152            }
153            crate::operation::batch_get_lifecycle_policy::BatchGetLifecyclePolicyError::ValidationException(inner) => {
154                Error::ValidationException(inner)
155            }
156            crate::operation::batch_get_lifecycle_policy::BatchGetLifecyclePolicyError::Unhandled(inner) => Error::Unhandled(inner),
157        }
158    }
159}
160impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_vpc_endpoint::BatchGetVpcEndpointError, R>> for Error
161where
162    R: Send + Sync + std::fmt::Debug + 'static,
163{
164    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_get_vpc_endpoint::BatchGetVpcEndpointError, R>) -> Self {
165        match err {
166            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
167            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
168                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
169                source: err.into(),
170            }),
171        }
172    }
173}
174impl From<crate::operation::batch_get_vpc_endpoint::BatchGetVpcEndpointError> for Error {
175    fn from(err: crate::operation::batch_get_vpc_endpoint::BatchGetVpcEndpointError) -> Self {
176        match err {
177            crate::operation::batch_get_vpc_endpoint::BatchGetVpcEndpointError::InternalServerException(inner) => {
178                Error::InternalServerException(inner)
179            }
180            crate::operation::batch_get_vpc_endpoint::BatchGetVpcEndpointError::ValidationException(inner) => Error::ValidationException(inner),
181            crate::operation::batch_get_vpc_endpoint::BatchGetVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
182        }
183    }
184}
185impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_policy::CreateAccessPolicyError, R>> for Error
186where
187    R: Send + Sync + std::fmt::Debug + 'static,
188{
189    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_access_policy::CreateAccessPolicyError, R>) -> Self {
190        match err {
191            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
192            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
193                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
194                source: err.into(),
195            }),
196        }
197    }
198}
199impl From<crate::operation::create_access_policy::CreateAccessPolicyError> for Error {
200    fn from(err: crate::operation::create_access_policy::CreateAccessPolicyError) -> Self {
201        match err {
202            crate::operation::create_access_policy::CreateAccessPolicyError::ConflictException(inner) => Error::ConflictException(inner),
203            crate::operation::create_access_policy::CreateAccessPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
204            crate::operation::create_access_policy::CreateAccessPolicyError::ServiceQuotaExceededException(inner) => {
205                Error::ServiceQuotaExceededException(inner)
206            }
207            crate::operation::create_access_policy::CreateAccessPolicyError::ValidationException(inner) => Error::ValidationException(inner),
208            crate::operation::create_access_policy::CreateAccessPolicyError::Unhandled(inner) => Error::Unhandled(inner),
209        }
210    }
211}
212impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_collection::CreateCollectionError, R>> for Error
213where
214    R: Send + Sync + std::fmt::Debug + 'static,
215{
216    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_collection::CreateCollectionError, R>) -> Self {
217        match err {
218            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
219            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
220                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
221                source: err.into(),
222            }),
223        }
224    }
225}
226impl From<crate::operation::create_collection::CreateCollectionError> for Error {
227    fn from(err: crate::operation::create_collection::CreateCollectionError) -> Self {
228        match err {
229            crate::operation::create_collection::CreateCollectionError::ConflictException(inner) => Error::ConflictException(inner),
230            crate::operation::create_collection::CreateCollectionError::InternalServerException(inner) => Error::InternalServerException(inner),
231            crate::operation::create_collection::CreateCollectionError::OcuLimitExceededException(inner) => Error::OcuLimitExceededException(inner),
232            crate::operation::create_collection::CreateCollectionError::ServiceQuotaExceededException(inner) => {
233                Error::ServiceQuotaExceededException(inner)
234            }
235            crate::operation::create_collection::CreateCollectionError::ValidationException(inner) => Error::ValidationException(inner),
236            crate::operation::create_collection::CreateCollectionError::Unhandled(inner) => Error::Unhandled(inner),
237        }
238    }
239}
240impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_lifecycle_policy::CreateLifecyclePolicyError, R>> for Error
241where
242    R: Send + Sync + std::fmt::Debug + 'static,
243{
244    fn from(
245        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_lifecycle_policy::CreateLifecyclePolicyError, R>,
246    ) -> Self {
247        match err {
248            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
249            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
250                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
251                source: err.into(),
252            }),
253        }
254    }
255}
256impl From<crate::operation::create_lifecycle_policy::CreateLifecyclePolicyError> for Error {
257    fn from(err: crate::operation::create_lifecycle_policy::CreateLifecyclePolicyError) -> Self {
258        match err {
259            crate::operation::create_lifecycle_policy::CreateLifecyclePolicyError::ConflictException(inner) => Error::ConflictException(inner),
260            crate::operation::create_lifecycle_policy::CreateLifecyclePolicyError::InternalServerException(inner) => {
261                Error::InternalServerException(inner)
262            }
263            crate::operation::create_lifecycle_policy::CreateLifecyclePolicyError::ServiceQuotaExceededException(inner) => {
264                Error::ServiceQuotaExceededException(inner)
265            }
266            crate::operation::create_lifecycle_policy::CreateLifecyclePolicyError::ValidationException(inner) => Error::ValidationException(inner),
267            crate::operation::create_lifecycle_policy::CreateLifecyclePolicyError::Unhandled(inner) => Error::Unhandled(inner),
268        }
269    }
270}
271impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_config::CreateSecurityConfigError, R>> for Error
272where
273    R: Send + Sync + std::fmt::Debug + 'static,
274{
275    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_config::CreateSecurityConfigError, R>) -> Self {
276        match err {
277            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
278            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
279                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
280                source: err.into(),
281            }),
282        }
283    }
284}
285impl From<crate::operation::create_security_config::CreateSecurityConfigError> for Error {
286    fn from(err: crate::operation::create_security_config::CreateSecurityConfigError) -> Self {
287        match err {
288            crate::operation::create_security_config::CreateSecurityConfigError::ConflictException(inner) => Error::ConflictException(inner),
289            crate::operation::create_security_config::CreateSecurityConfigError::InternalServerException(inner) => {
290                Error::InternalServerException(inner)
291            }
292            crate::operation::create_security_config::CreateSecurityConfigError::ServiceQuotaExceededException(inner) => {
293                Error::ServiceQuotaExceededException(inner)
294            }
295            crate::operation::create_security_config::CreateSecurityConfigError::ValidationException(inner) => Error::ValidationException(inner),
296            crate::operation::create_security_config::CreateSecurityConfigError::Unhandled(inner) => Error::Unhandled(inner),
297        }
298    }
299}
300impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_policy::CreateSecurityPolicyError, R>> for Error
301where
302    R: Send + Sync + std::fmt::Debug + 'static,
303{
304    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_security_policy::CreateSecurityPolicyError, R>) -> Self {
305        match err {
306            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
307            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
308                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
309                source: err.into(),
310            }),
311        }
312    }
313}
314impl From<crate::operation::create_security_policy::CreateSecurityPolicyError> for Error {
315    fn from(err: crate::operation::create_security_policy::CreateSecurityPolicyError) -> Self {
316        match err {
317            crate::operation::create_security_policy::CreateSecurityPolicyError::ConflictException(inner) => Error::ConflictException(inner),
318            crate::operation::create_security_policy::CreateSecurityPolicyError::InternalServerException(inner) => {
319                Error::InternalServerException(inner)
320            }
321            crate::operation::create_security_policy::CreateSecurityPolicyError::ServiceQuotaExceededException(inner) => {
322                Error::ServiceQuotaExceededException(inner)
323            }
324            crate::operation::create_security_policy::CreateSecurityPolicyError::ValidationException(inner) => Error::ValidationException(inner),
325            crate::operation::create_security_policy::CreateSecurityPolicyError::Unhandled(inner) => Error::Unhandled(inner),
326        }
327    }
328}
329impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint::CreateVpcEndpointError, R>> for Error
330where
331    R: Send + Sync + std::fmt::Debug + 'static,
332{
333    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vpc_endpoint::CreateVpcEndpointError, R>) -> Self {
334        match err {
335            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
336            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
337                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
338                source: err.into(),
339            }),
340        }
341    }
342}
343impl From<crate::operation::create_vpc_endpoint::CreateVpcEndpointError> for Error {
344    fn from(err: crate::operation::create_vpc_endpoint::CreateVpcEndpointError) -> Self {
345        match err {
346            crate::operation::create_vpc_endpoint::CreateVpcEndpointError::ConflictException(inner) => Error::ConflictException(inner),
347            crate::operation::create_vpc_endpoint::CreateVpcEndpointError::InternalServerException(inner) => Error::InternalServerException(inner),
348            crate::operation::create_vpc_endpoint::CreateVpcEndpointError::ServiceQuotaExceededException(inner) => {
349                Error::ServiceQuotaExceededException(inner)
350            }
351            crate::operation::create_vpc_endpoint::CreateVpcEndpointError::ValidationException(inner) => Error::ValidationException(inner),
352            crate::operation::create_vpc_endpoint::CreateVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
353        }
354    }
355}
356impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_policy::DeleteAccessPolicyError, R>> for Error
357where
358    R: Send + Sync + std::fmt::Debug + 'static,
359{
360    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_access_policy::DeleteAccessPolicyError, R>) -> Self {
361        match err {
362            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
363            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
364                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
365                source: err.into(),
366            }),
367        }
368    }
369}
370impl From<crate::operation::delete_access_policy::DeleteAccessPolicyError> for Error {
371    fn from(err: crate::operation::delete_access_policy::DeleteAccessPolicyError) -> Self {
372        match err {
373            crate::operation::delete_access_policy::DeleteAccessPolicyError::ConflictException(inner) => Error::ConflictException(inner),
374            crate::operation::delete_access_policy::DeleteAccessPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
375            crate::operation::delete_access_policy::DeleteAccessPolicyError::ResourceNotFoundException(inner) => {
376                Error::ResourceNotFoundException(inner)
377            }
378            crate::operation::delete_access_policy::DeleteAccessPolicyError::ValidationException(inner) => Error::ValidationException(inner),
379            crate::operation::delete_access_policy::DeleteAccessPolicyError::Unhandled(inner) => Error::Unhandled(inner),
380        }
381    }
382}
383impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_collection::DeleteCollectionError, R>> for Error
384where
385    R: Send + Sync + std::fmt::Debug + 'static,
386{
387    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_collection::DeleteCollectionError, R>) -> Self {
388        match err {
389            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
390            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
391                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
392                source: err.into(),
393            }),
394        }
395    }
396}
397impl From<crate::operation::delete_collection::DeleteCollectionError> for Error {
398    fn from(err: crate::operation::delete_collection::DeleteCollectionError) -> Self {
399        match err {
400            crate::operation::delete_collection::DeleteCollectionError::ConflictException(inner) => Error::ConflictException(inner),
401            crate::operation::delete_collection::DeleteCollectionError::InternalServerException(inner) => Error::InternalServerException(inner),
402            crate::operation::delete_collection::DeleteCollectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
403            crate::operation::delete_collection::DeleteCollectionError::ValidationException(inner) => Error::ValidationException(inner),
404            crate::operation::delete_collection::DeleteCollectionError::Unhandled(inner) => Error::Unhandled(inner),
405        }
406    }
407}
408impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError, R>> for Error
409where
410    R: Send + Sync + std::fmt::Debug + 'static,
411{
412    fn from(
413        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError, R>,
414    ) -> 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::delete_lifecycle_policy::DeleteLifecyclePolicyError> for Error {
425    fn from(err: crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError) -> Self {
426        match err {
427            crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError::ConflictException(inner) => Error::ConflictException(inner),
428            crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError::InternalServerException(inner) => {
429                Error::InternalServerException(inner)
430            }
431            crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError::ResourceNotFoundException(inner) => {
432                Error::ResourceNotFoundException(inner)
433            }
434            crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError::ValidationException(inner) => Error::ValidationException(inner),
435            crate::operation::delete_lifecycle_policy::DeleteLifecyclePolicyError::Unhandled(inner) => Error::Unhandled(inner),
436        }
437    }
438}
439impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_config::DeleteSecurityConfigError, R>> for Error
440where
441    R: Send + Sync + std::fmt::Debug + 'static,
442{
443    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_config::DeleteSecurityConfigError, R>) -> Self {
444        match err {
445            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
446            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
447                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
448                source: err.into(),
449            }),
450        }
451    }
452}
453impl From<crate::operation::delete_security_config::DeleteSecurityConfigError> for Error {
454    fn from(err: crate::operation::delete_security_config::DeleteSecurityConfigError) -> Self {
455        match err {
456            crate::operation::delete_security_config::DeleteSecurityConfigError::ConflictException(inner) => Error::ConflictException(inner),
457            crate::operation::delete_security_config::DeleteSecurityConfigError::InternalServerException(inner) => {
458                Error::InternalServerException(inner)
459            }
460            crate::operation::delete_security_config::DeleteSecurityConfigError::ResourceNotFoundException(inner) => {
461                Error::ResourceNotFoundException(inner)
462            }
463            crate::operation::delete_security_config::DeleteSecurityConfigError::ValidationException(inner) => Error::ValidationException(inner),
464            crate::operation::delete_security_config::DeleteSecurityConfigError::Unhandled(inner) => Error::Unhandled(inner),
465        }
466    }
467}
468impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_policy::DeleteSecurityPolicyError, R>> for Error
469where
470    R: Send + Sync + std::fmt::Debug + 'static,
471{
472    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_security_policy::DeleteSecurityPolicyError, R>) -> Self {
473        match err {
474            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
475            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
476                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
477                source: err.into(),
478            }),
479        }
480    }
481}
482impl From<crate::operation::delete_security_policy::DeleteSecurityPolicyError> for Error {
483    fn from(err: crate::operation::delete_security_policy::DeleteSecurityPolicyError) -> Self {
484        match err {
485            crate::operation::delete_security_policy::DeleteSecurityPolicyError::ConflictException(inner) => Error::ConflictException(inner),
486            crate::operation::delete_security_policy::DeleteSecurityPolicyError::InternalServerException(inner) => {
487                Error::InternalServerException(inner)
488            }
489            crate::operation::delete_security_policy::DeleteSecurityPolicyError::ResourceNotFoundException(inner) => {
490                Error::ResourceNotFoundException(inner)
491            }
492            crate::operation::delete_security_policy::DeleteSecurityPolicyError::ValidationException(inner) => Error::ValidationException(inner),
493            crate::operation::delete_security_policy::DeleteSecurityPolicyError::Unhandled(inner) => Error::Unhandled(inner),
494        }
495    }
496}
497impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoint::DeleteVpcEndpointError, R>> for Error
498where
499    R: Send + Sync + std::fmt::Debug + 'static,
500{
501    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vpc_endpoint::DeleteVpcEndpointError, R>) -> Self {
502        match err {
503            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
504            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
505                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
506                source: err.into(),
507            }),
508        }
509    }
510}
511impl From<crate::operation::delete_vpc_endpoint::DeleteVpcEndpointError> for Error {
512    fn from(err: crate::operation::delete_vpc_endpoint::DeleteVpcEndpointError) -> Self {
513        match err {
514            crate::operation::delete_vpc_endpoint::DeleteVpcEndpointError::ConflictException(inner) => Error::ConflictException(inner),
515            crate::operation::delete_vpc_endpoint::DeleteVpcEndpointError::InternalServerException(inner) => Error::InternalServerException(inner),
516            crate::operation::delete_vpc_endpoint::DeleteVpcEndpointError::ResourceNotFoundException(inner) => {
517                Error::ResourceNotFoundException(inner)
518            }
519            crate::operation::delete_vpc_endpoint::DeleteVpcEndpointError::ValidationException(inner) => Error::ValidationException(inner),
520            crate::operation::delete_vpc_endpoint::DeleteVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
521        }
522    }
523}
524impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_access_policy::GetAccessPolicyError, R>> for Error
525where
526    R: Send + Sync + std::fmt::Debug + 'static,
527{
528    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_access_policy::GetAccessPolicyError, R>) -> Self {
529        match err {
530            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
531            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
532                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
533                source: err.into(),
534            }),
535        }
536    }
537}
538impl From<crate::operation::get_access_policy::GetAccessPolicyError> for Error {
539    fn from(err: crate::operation::get_access_policy::GetAccessPolicyError) -> Self {
540        match err {
541            crate::operation::get_access_policy::GetAccessPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
542            crate::operation::get_access_policy::GetAccessPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
543            crate::operation::get_access_policy::GetAccessPolicyError::ValidationException(inner) => Error::ValidationException(inner),
544            crate::operation::get_access_policy::GetAccessPolicyError::Unhandled(inner) => Error::Unhandled(inner),
545        }
546    }
547}
548impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_settings::GetAccountSettingsError, R>> for Error
549where
550    R: Send + Sync + std::fmt::Debug + 'static,
551{
552    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_account_settings::GetAccountSettingsError, R>) -> Self {
553        match err {
554            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
555            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
556                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
557                source: err.into(),
558            }),
559        }
560    }
561}
562impl From<crate::operation::get_account_settings::GetAccountSettingsError> for Error {
563    fn from(err: crate::operation::get_account_settings::GetAccountSettingsError) -> Self {
564        match err {
565            crate::operation::get_account_settings::GetAccountSettingsError::InternalServerException(inner) => Error::InternalServerException(inner),
566            crate::operation::get_account_settings::GetAccountSettingsError::ValidationException(inner) => Error::ValidationException(inner),
567            crate::operation::get_account_settings::GetAccountSettingsError::Unhandled(inner) => Error::Unhandled(inner),
568        }
569    }
570}
571impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policies_stats::GetPoliciesStatsError, R>> for Error
572where
573    R: Send + Sync + std::fmt::Debug + 'static,
574{
575    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_policies_stats::GetPoliciesStatsError, R>) -> Self {
576        match err {
577            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
578            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
579                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
580                source: err.into(),
581            }),
582        }
583    }
584}
585impl From<crate::operation::get_policies_stats::GetPoliciesStatsError> for Error {
586    fn from(err: crate::operation::get_policies_stats::GetPoliciesStatsError) -> Self {
587        match err {
588            crate::operation::get_policies_stats::GetPoliciesStatsError::InternalServerException(inner) => Error::InternalServerException(inner),
589            crate::operation::get_policies_stats::GetPoliciesStatsError::Unhandled(inner) => Error::Unhandled(inner),
590        }
591    }
592}
593impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_config::GetSecurityConfigError, 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_security_config::GetSecurityConfigError, 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_security_config::GetSecurityConfigError> for Error {
608    fn from(err: crate::operation::get_security_config::GetSecurityConfigError) -> Self {
609        match err {
610            crate::operation::get_security_config::GetSecurityConfigError::InternalServerException(inner) => Error::InternalServerException(inner),
611            crate::operation::get_security_config::GetSecurityConfigError::ResourceNotFoundException(inner) => {
612                Error::ResourceNotFoundException(inner)
613            }
614            crate::operation::get_security_config::GetSecurityConfigError::ValidationException(inner) => Error::ValidationException(inner),
615            crate::operation::get_security_config::GetSecurityConfigError::Unhandled(inner) => Error::Unhandled(inner),
616        }
617    }
618}
619impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_policy::GetSecurityPolicyError, R>> for Error
620where
621    R: Send + Sync + std::fmt::Debug + 'static,
622{
623    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_security_policy::GetSecurityPolicyError, R>) -> Self {
624        match err {
625            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
626            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
627                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
628                source: err.into(),
629            }),
630        }
631    }
632}
633impl From<crate::operation::get_security_policy::GetSecurityPolicyError> for Error {
634    fn from(err: crate::operation::get_security_policy::GetSecurityPolicyError) -> Self {
635        match err {
636            crate::operation::get_security_policy::GetSecurityPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
637            crate::operation::get_security_policy::GetSecurityPolicyError::ResourceNotFoundException(inner) => {
638                Error::ResourceNotFoundException(inner)
639            }
640            crate::operation::get_security_policy::GetSecurityPolicyError::ValidationException(inner) => Error::ValidationException(inner),
641            crate::operation::get_security_policy::GetSecurityPolicyError::Unhandled(inner) => Error::Unhandled(inner),
642        }
643    }
644}
645impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_policies::ListAccessPoliciesError, R>> for Error
646where
647    R: Send + Sync + std::fmt::Debug + 'static,
648{
649    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_access_policies::ListAccessPoliciesError, R>) -> Self {
650        match err {
651            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
652            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
653                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
654                source: err.into(),
655            }),
656        }
657    }
658}
659impl From<crate::operation::list_access_policies::ListAccessPoliciesError> for Error {
660    fn from(err: crate::operation::list_access_policies::ListAccessPoliciesError) -> Self {
661        match err {
662            crate::operation::list_access_policies::ListAccessPoliciesError::InternalServerException(inner) => Error::InternalServerException(inner),
663            crate::operation::list_access_policies::ListAccessPoliciesError::ValidationException(inner) => Error::ValidationException(inner),
664            crate::operation::list_access_policies::ListAccessPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
665        }
666    }
667}
668impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_collections::ListCollectionsError, R>> for Error
669where
670    R: Send + Sync + std::fmt::Debug + 'static,
671{
672    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_collections::ListCollectionsError, R>) -> Self {
673        match err {
674            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
675            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
676                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
677                source: err.into(),
678            }),
679        }
680    }
681}
682impl From<crate::operation::list_collections::ListCollectionsError> for Error {
683    fn from(err: crate::operation::list_collections::ListCollectionsError) -> Self {
684        match err {
685            crate::operation::list_collections::ListCollectionsError::InternalServerException(inner) => Error::InternalServerException(inner),
686            crate::operation::list_collections::ListCollectionsError::ValidationException(inner) => Error::ValidationException(inner),
687            crate::operation::list_collections::ListCollectionsError::Unhandled(inner) => Error::Unhandled(inner),
688        }
689    }
690}
691impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lifecycle_policies::ListLifecyclePoliciesError, R>> for Error
692where
693    R: Send + Sync + std::fmt::Debug + 'static,
694{
695    fn from(
696        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_lifecycle_policies::ListLifecyclePoliciesError, R>,
697    ) -> Self {
698        match err {
699            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
700            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
701                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
702                source: err.into(),
703            }),
704        }
705    }
706}
707impl From<crate::operation::list_lifecycle_policies::ListLifecyclePoliciesError> for Error {
708    fn from(err: crate::operation::list_lifecycle_policies::ListLifecyclePoliciesError) -> Self {
709        match err {
710            crate::operation::list_lifecycle_policies::ListLifecyclePoliciesError::InternalServerException(inner) => {
711                Error::InternalServerException(inner)
712            }
713            crate::operation::list_lifecycle_policies::ListLifecyclePoliciesError::ValidationException(inner) => Error::ValidationException(inner),
714            crate::operation::list_lifecycle_policies::ListLifecyclePoliciesError::Unhandled(inner) => Error::Unhandled(inner),
715        }
716    }
717}
718impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_configs::ListSecurityConfigsError, R>> for Error
719where
720    R: Send + Sync + std::fmt::Debug + 'static,
721{
722    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_configs::ListSecurityConfigsError, R>) -> Self {
723        match err {
724            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
725            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
726                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
727                source: err.into(),
728            }),
729        }
730    }
731}
732impl From<crate::operation::list_security_configs::ListSecurityConfigsError> for Error {
733    fn from(err: crate::operation::list_security_configs::ListSecurityConfigsError) -> Self {
734        match err {
735            crate::operation::list_security_configs::ListSecurityConfigsError::InternalServerException(inner) => {
736                Error::InternalServerException(inner)
737            }
738            crate::operation::list_security_configs::ListSecurityConfigsError::ValidationException(inner) => Error::ValidationException(inner),
739            crate::operation::list_security_configs::ListSecurityConfigsError::Unhandled(inner) => Error::Unhandled(inner),
740        }
741    }
742}
743impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_policies::ListSecurityPoliciesError, R>> for Error
744where
745    R: Send + Sync + std::fmt::Debug + 'static,
746{
747    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_security_policies::ListSecurityPoliciesError, R>) -> Self {
748        match err {
749            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
750            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
751                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
752                source: err.into(),
753            }),
754        }
755    }
756}
757impl From<crate::operation::list_security_policies::ListSecurityPoliciesError> for Error {
758    fn from(err: crate::operation::list_security_policies::ListSecurityPoliciesError) -> Self {
759        match err {
760            crate::operation::list_security_policies::ListSecurityPoliciesError::InternalServerException(inner) => {
761                Error::InternalServerException(inner)
762            }
763            crate::operation::list_security_policies::ListSecurityPoliciesError::ValidationException(inner) => Error::ValidationException(inner),
764            crate::operation::list_security_policies::ListSecurityPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
765        }
766    }
767}
768impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, 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::list_tags_for_resource::ListTagsForResourceError, 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::list_tags_for_resource::ListTagsForResourceError> for Error {
783    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
784        match err {
785            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
786                Error::InternalServerException(inner)
787            }
788            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
789                Error::ResourceNotFoundException(inner)
790            }
791            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
792            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
793        }
794    }
795}
796impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vpc_endpoints::ListVpcEndpointsError, R>> for Error
797where
798    R: Send + Sync + std::fmt::Debug + 'static,
799{
800    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vpc_endpoints::ListVpcEndpointsError, R>) -> Self {
801        match err {
802            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
803            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
804                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
805                source: err.into(),
806            }),
807        }
808    }
809}
810impl From<crate::operation::list_vpc_endpoints::ListVpcEndpointsError> for Error {
811    fn from(err: crate::operation::list_vpc_endpoints::ListVpcEndpointsError) -> Self {
812        match err {
813            crate::operation::list_vpc_endpoints::ListVpcEndpointsError::InternalServerException(inner) => Error::InternalServerException(inner),
814            crate::operation::list_vpc_endpoints::ListVpcEndpointsError::ValidationException(inner) => Error::ValidationException(inner),
815            crate::operation::list_vpc_endpoints::ListVpcEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
816        }
817    }
818}
819impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
820where
821    R: Send + Sync + std::fmt::Debug + 'static,
822{
823    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
824        match err {
825            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
826            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
827                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
828                source: err.into(),
829            }),
830        }
831    }
832}
833impl From<crate::operation::tag_resource::TagResourceError> for Error {
834    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
835        match err {
836            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
837            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
838            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
839            crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
840            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
841            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
842        }
843    }
844}
845impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
846where
847    R: Send + Sync + std::fmt::Debug + 'static,
848{
849    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
850        match err {
851            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
852            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
853                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
854                source: err.into(),
855            }),
856        }
857    }
858}
859impl From<crate::operation::untag_resource::UntagResourceError> for Error {
860    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
861        match err {
862            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
863            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
864            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
865            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
866            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
867        }
868    }
869}
870impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_access_policy::UpdateAccessPolicyError, R>> for Error
871where
872    R: Send + Sync + std::fmt::Debug + 'static,
873{
874    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_access_policy::UpdateAccessPolicyError, R>) -> Self {
875        match err {
876            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
877            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
878                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
879                source: err.into(),
880            }),
881        }
882    }
883}
884impl From<crate::operation::update_access_policy::UpdateAccessPolicyError> for Error {
885    fn from(err: crate::operation::update_access_policy::UpdateAccessPolicyError) -> Self {
886        match err {
887            crate::operation::update_access_policy::UpdateAccessPolicyError::ConflictException(inner) => Error::ConflictException(inner),
888            crate::operation::update_access_policy::UpdateAccessPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
889            crate::operation::update_access_policy::UpdateAccessPolicyError::ResourceNotFoundException(inner) => {
890                Error::ResourceNotFoundException(inner)
891            }
892            crate::operation::update_access_policy::UpdateAccessPolicyError::ValidationException(inner) => Error::ValidationException(inner),
893            crate::operation::update_access_policy::UpdateAccessPolicyError::Unhandled(inner) => Error::Unhandled(inner),
894        }
895    }
896}
897impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_settings::UpdateAccountSettingsError, R>> for Error
898where
899    R: Send + Sync + std::fmt::Debug + 'static,
900{
901    fn from(
902        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_account_settings::UpdateAccountSettingsError, R>,
903    ) -> Self {
904        match err {
905            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
906            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
907                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
908                source: err.into(),
909            }),
910        }
911    }
912}
913impl From<crate::operation::update_account_settings::UpdateAccountSettingsError> for Error {
914    fn from(err: crate::operation::update_account_settings::UpdateAccountSettingsError) -> Self {
915        match err {
916            crate::operation::update_account_settings::UpdateAccountSettingsError::InternalServerException(inner) => {
917                Error::InternalServerException(inner)
918            }
919            crate::operation::update_account_settings::UpdateAccountSettingsError::ValidationException(inner) => Error::ValidationException(inner),
920            crate::operation::update_account_settings::UpdateAccountSettingsError::Unhandled(inner) => Error::Unhandled(inner),
921        }
922    }
923}
924impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_collection::UpdateCollectionError, R>> for Error
925where
926    R: Send + Sync + std::fmt::Debug + 'static,
927{
928    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_collection::UpdateCollectionError, R>) -> Self {
929        match err {
930            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
931            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
932                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
933                source: err.into(),
934            }),
935        }
936    }
937}
938impl From<crate::operation::update_collection::UpdateCollectionError> for Error {
939    fn from(err: crate::operation::update_collection::UpdateCollectionError) -> Self {
940        match err {
941            crate::operation::update_collection::UpdateCollectionError::ConflictException(inner) => Error::ConflictException(inner),
942            crate::operation::update_collection::UpdateCollectionError::InternalServerException(inner) => Error::InternalServerException(inner),
943            crate::operation::update_collection::UpdateCollectionError::ValidationException(inner) => Error::ValidationException(inner),
944            crate::operation::update_collection::UpdateCollectionError::Unhandled(inner) => Error::Unhandled(inner),
945        }
946    }
947}
948impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_lifecycle_policy::UpdateLifecyclePolicyError, R>> for Error
949where
950    R: Send + Sync + std::fmt::Debug + 'static,
951{
952    fn from(
953        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_lifecycle_policy::UpdateLifecyclePolicyError, R>,
954    ) -> Self {
955        match err {
956            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
957            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
958                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
959                source: err.into(),
960            }),
961        }
962    }
963}
964impl From<crate::operation::update_lifecycle_policy::UpdateLifecyclePolicyError> for Error {
965    fn from(err: crate::operation::update_lifecycle_policy::UpdateLifecyclePolicyError) -> Self {
966        match err {
967            crate::operation::update_lifecycle_policy::UpdateLifecyclePolicyError::ConflictException(inner) => Error::ConflictException(inner),
968            crate::operation::update_lifecycle_policy::UpdateLifecyclePolicyError::InternalServerException(inner) => {
969                Error::InternalServerException(inner)
970            }
971            crate::operation::update_lifecycle_policy::UpdateLifecyclePolicyError::ResourceNotFoundException(inner) => {
972                Error::ResourceNotFoundException(inner)
973            }
974            crate::operation::update_lifecycle_policy::UpdateLifecyclePolicyError::ServiceQuotaExceededException(inner) => {
975                Error::ServiceQuotaExceededException(inner)
976            }
977            crate::operation::update_lifecycle_policy::UpdateLifecyclePolicyError::ValidationException(inner) => Error::ValidationException(inner),
978            crate::operation::update_lifecycle_policy::UpdateLifecyclePolicyError::Unhandled(inner) => Error::Unhandled(inner),
979        }
980    }
981}
982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_config::UpdateSecurityConfigError, R>> for Error
983where
984    R: Send + Sync + std::fmt::Debug + 'static,
985{
986    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_config::UpdateSecurityConfigError, R>) -> Self {
987        match err {
988            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
989            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
990                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
991                source: err.into(),
992            }),
993        }
994    }
995}
996impl From<crate::operation::update_security_config::UpdateSecurityConfigError> for Error {
997    fn from(err: crate::operation::update_security_config::UpdateSecurityConfigError) -> Self {
998        match err {
999            crate::operation::update_security_config::UpdateSecurityConfigError::ConflictException(inner) => Error::ConflictException(inner),
1000            crate::operation::update_security_config::UpdateSecurityConfigError::InternalServerException(inner) => {
1001                Error::InternalServerException(inner)
1002            }
1003            crate::operation::update_security_config::UpdateSecurityConfigError::ResourceNotFoundException(inner) => {
1004                Error::ResourceNotFoundException(inner)
1005            }
1006            crate::operation::update_security_config::UpdateSecurityConfigError::ValidationException(inner) => Error::ValidationException(inner),
1007            crate::operation::update_security_config::UpdateSecurityConfigError::Unhandled(inner) => Error::Unhandled(inner),
1008        }
1009    }
1010}
1011impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_policy::UpdateSecurityPolicyError, R>> for Error
1012where
1013    R: Send + Sync + std::fmt::Debug + 'static,
1014{
1015    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_security_policy::UpdateSecurityPolicyError, R>) -> Self {
1016        match err {
1017            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1018            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1019                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1020                source: err.into(),
1021            }),
1022        }
1023    }
1024}
1025impl From<crate::operation::update_security_policy::UpdateSecurityPolicyError> for Error {
1026    fn from(err: crate::operation::update_security_policy::UpdateSecurityPolicyError) -> Self {
1027        match err {
1028            crate::operation::update_security_policy::UpdateSecurityPolicyError::ConflictException(inner) => Error::ConflictException(inner),
1029            crate::operation::update_security_policy::UpdateSecurityPolicyError::InternalServerException(inner) => {
1030                Error::InternalServerException(inner)
1031            }
1032            crate::operation::update_security_policy::UpdateSecurityPolicyError::ResourceNotFoundException(inner) => {
1033                Error::ResourceNotFoundException(inner)
1034            }
1035            crate::operation::update_security_policy::UpdateSecurityPolicyError::ServiceQuotaExceededException(inner) => {
1036                Error::ServiceQuotaExceededException(inner)
1037            }
1038            crate::operation::update_security_policy::UpdateSecurityPolicyError::ValidationException(inner) => Error::ValidationException(inner),
1039            crate::operation::update_security_policy::UpdateSecurityPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1040        }
1041    }
1042}
1043impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpc_endpoint::UpdateVpcEndpointError, R>> for Error
1044where
1045    R: Send + Sync + std::fmt::Debug + 'static,
1046{
1047    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_vpc_endpoint::UpdateVpcEndpointError, R>) -> Self {
1048        match err {
1049            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1050            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1051                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1052                source: err.into(),
1053            }),
1054        }
1055    }
1056}
1057impl From<crate::operation::update_vpc_endpoint::UpdateVpcEndpointError> for Error {
1058    fn from(err: crate::operation::update_vpc_endpoint::UpdateVpcEndpointError) -> Self {
1059        match err {
1060            crate::operation::update_vpc_endpoint::UpdateVpcEndpointError::ConflictException(inner) => Error::ConflictException(inner),
1061            crate::operation::update_vpc_endpoint::UpdateVpcEndpointError::InternalServerException(inner) => Error::InternalServerException(inner),
1062            crate::operation::update_vpc_endpoint::UpdateVpcEndpointError::ValidationException(inner) => Error::ValidationException(inner),
1063            crate::operation::update_vpc_endpoint::UpdateVpcEndpointError::Unhandled(inner) => Error::Unhandled(inner),
1064        }
1065    }
1066}
1067impl ::std::error::Error for Error {
1068    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1069        match self {
1070            Error::ConflictException(inner) => inner.source(),
1071            Error::InternalServerException(inner) => inner.source(),
1072            Error::OcuLimitExceededException(inner) => inner.source(),
1073            Error::ResourceNotFoundException(inner) => inner.source(),
1074            Error::ServiceQuotaExceededException(inner) => inner.source(),
1075            Error::ValidationException(inner) => inner.source(),
1076            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1077        }
1078    }
1079}
1080impl ::aws_types::request_id::RequestId for Error {
1081    fn request_id(&self) -> Option<&str> {
1082        match self {
1083            Self::ConflictException(e) => e.request_id(),
1084            Self::InternalServerException(e) => e.request_id(),
1085            Self::OcuLimitExceededException(e) => e.request_id(),
1086            Self::ResourceNotFoundException(e) => e.request_id(),
1087            Self::ServiceQuotaExceededException(e) => e.request_id(),
1088            Self::ValidationException(e) => e.request_id(),
1089            Self::Unhandled(e) => e.meta.request_id(),
1090        }
1091    }
1092}