aws_sdk_rekognition/
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 are not authorized to perform the action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>A User with the same Id already exists within the collection, or the update or deletion of the User caused an inconsistent state. **</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>The number of in-progress human reviews you have has exceeded the number allowed.</p>
11    HumanLoopQuotaExceededException(crate::types::error::HumanLoopQuotaExceededException),
12    /// <p>A <code>ClientRequestToken</code> input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.</p>
13    IdempotentParameterMismatchException(crate::types::error::IdempotentParameterMismatchException),
14    /// <p>The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment, the image size or resolution exceeds the allowed limit. For more information, see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide.</p>
15    ImageTooLargeException(crate::types::error::ImageTooLargeException),
16    /// <p>Amazon Rekognition experienced a service issue. Try your call again.</p>
17    InternalServerError(crate::types::error::InternalServerError),
18    /// <p>The provided image format is not supported.</p>
19    InvalidImageFormatException(crate::types::error::InvalidImageFormatException),
20    /// <p>Indicates that a provided manifest file is empty or larger than the allowed limit.</p>
21    InvalidManifestException(crate::types::error::InvalidManifestException),
22    /// <p>Pagination token in the request is not valid.</p>
23    InvalidPaginationTokenException(crate::types::error::InvalidPaginationTokenException),
24    /// <p>Input parameter violated a constraint. Validate your parameter before calling the API operation again.</p>
25    InvalidParameterException(crate::types::error::InvalidParameterException),
26    /// <p>The supplied revision id for the project policy is invalid.</p>
27    InvalidPolicyRevisionIdException(crate::types::error::InvalidPolicyRevisionIdException),
28    /// <p>Amazon Rekognition is unable to access the S3 object specified in the request.</p>
29    InvalidS3ObjectException(crate::types::error::InvalidS3ObjectException),
30    /// <p>An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs concurrently, subsequent calls to start operations (ex: <code>StartLabelDetection</code>) will raise a <code>LimitExceededException</code> exception (HTTP status code: 400) until the number of concurrently running jobs is below the Amazon Rekognition service limit.</p>
31    LimitExceededException(crate::types::error::LimitExceededException),
32    /// <p>The format of the project policy document that you supplied to <code>PutProjectPolicy</code> is incorrect.</p>
33    MalformedPolicyDocumentException(crate::types::error::MalformedPolicyDocumentException),
34    /// <p>The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition.</p>
35    ProvisionedThroughputExceededException(crate::types::error::ProvisionedThroughputExceededException),
36    /// <p>A resource with the specified ID already exists.</p>
37    ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
38    /// <p>The specified resource is already being used.</p>
39    ResourceInUseException(crate::types::error::ResourceInUseException),
40    /// <p>The resource specified in the request cannot be found.</p>
41    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
42    /// <p>The requested resource isn't ready. For example, this exception occurs when you call <code>DetectCustomLabels</code> with a model version that isn't deployed.</p>
43    ResourceNotReadyException(crate::types::error::ResourceNotReadyException),
44    /// <p></p>
45    /// <p>The size of the collection exceeds the allowed limit. For more information, see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide.</p>
46    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
47    /// <p>Occurs when a given sessionId is not found.</p>
48    SessionNotFoundException(crate::types::error::SessionNotFoundException),
49    /// <p>Amazon Rekognition is temporarily unable to process the request. Try your call again.</p>
50    ThrottlingException(crate::types::error::ThrottlingException),
51    /// <p>The file size or duration of the supplied media is too large. The maximum file size is 10GB. The maximum duration is 6 hours.</p>
52    VideoTooLargeException(crate::types::error::VideoTooLargeException),
53    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
54    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
55    variable wildcard pattern and check `.code()`:
56     \
57    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
58     \
59    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
60    Unhandled(crate::error::sealed_unhandled::Unhandled),
61}
62impl ::std::fmt::Display for Error {
63    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
64        match self {
65            Error::AccessDeniedException(inner) => inner.fmt(f),
66            Error::ConflictException(inner) => inner.fmt(f),
67            Error::HumanLoopQuotaExceededException(inner) => inner.fmt(f),
68            Error::IdempotentParameterMismatchException(inner) => inner.fmt(f),
69            Error::ImageTooLargeException(inner) => inner.fmt(f),
70            Error::InternalServerError(inner) => inner.fmt(f),
71            Error::InvalidImageFormatException(inner) => inner.fmt(f),
72            Error::InvalidManifestException(inner) => inner.fmt(f),
73            Error::InvalidPaginationTokenException(inner) => inner.fmt(f),
74            Error::InvalidParameterException(inner) => inner.fmt(f),
75            Error::InvalidPolicyRevisionIdException(inner) => inner.fmt(f),
76            Error::InvalidS3ObjectException(inner) => inner.fmt(f),
77            Error::LimitExceededException(inner) => inner.fmt(f),
78            Error::MalformedPolicyDocumentException(inner) => inner.fmt(f),
79            Error::ProvisionedThroughputExceededException(inner) => inner.fmt(f),
80            Error::ResourceAlreadyExistsException(inner) => inner.fmt(f),
81            Error::ResourceInUseException(inner) => inner.fmt(f),
82            Error::ResourceNotFoundException(inner) => inner.fmt(f),
83            Error::ResourceNotReadyException(inner) => inner.fmt(f),
84            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
85            Error::SessionNotFoundException(inner) => inner.fmt(f),
86            Error::ThrottlingException(inner) => inner.fmt(f),
87            Error::VideoTooLargeException(inner) => inner.fmt(f),
88            Error::Unhandled(_) => {
89                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
90                    write!(f, "unhandled error ({code})")
91                } else {
92                    f.write_str("unhandled error")
93                }
94            }
95        }
96    }
97}
98impl From<::aws_smithy_types::error::operation::BuildError> for Error {
99    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
100        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
101            source: value.into(),
102            meta: ::std::default::Default::default(),
103        })
104    }
105}
106impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
107    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
108        match self {
109            Self::AccessDeniedException(inner) => inner.meta(),
110            Self::ConflictException(inner) => inner.meta(),
111            Self::HumanLoopQuotaExceededException(inner) => inner.meta(),
112            Self::IdempotentParameterMismatchException(inner) => inner.meta(),
113            Self::ImageTooLargeException(inner) => inner.meta(),
114            Self::InternalServerError(inner) => inner.meta(),
115            Self::InvalidImageFormatException(inner) => inner.meta(),
116            Self::InvalidManifestException(inner) => inner.meta(),
117            Self::InvalidPaginationTokenException(inner) => inner.meta(),
118            Self::InvalidParameterException(inner) => inner.meta(),
119            Self::InvalidPolicyRevisionIdException(inner) => inner.meta(),
120            Self::InvalidS3ObjectException(inner) => inner.meta(),
121            Self::LimitExceededException(inner) => inner.meta(),
122            Self::MalformedPolicyDocumentException(inner) => inner.meta(),
123            Self::ProvisionedThroughputExceededException(inner) => inner.meta(),
124            Self::ResourceAlreadyExistsException(inner) => inner.meta(),
125            Self::ResourceInUseException(inner) => inner.meta(),
126            Self::ResourceNotFoundException(inner) => inner.meta(),
127            Self::ResourceNotReadyException(inner) => inner.meta(),
128            Self::ServiceQuotaExceededException(inner) => inner.meta(),
129            Self::SessionNotFoundException(inner) => inner.meta(),
130            Self::ThrottlingException(inner) => inner.meta(),
131            Self::VideoTooLargeException(inner) => inner.meta(),
132            Self::Unhandled(inner) => &inner.meta,
133        }
134    }
135}
136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_faces::AssociateFacesError, R>> for Error
137where
138    R: Send + Sync + std::fmt::Debug + 'static,
139{
140    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_faces::AssociateFacesError, R>) -> Self {
141        match err {
142            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
143            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
144                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
145                source: err.into(),
146            }),
147        }
148    }
149}
150impl From<crate::operation::associate_faces::AssociateFacesError> for Error {
151    fn from(err: crate::operation::associate_faces::AssociateFacesError) -> Self {
152        match err {
153            crate::operation::associate_faces::AssociateFacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
154            crate::operation::associate_faces::AssociateFacesError::ConflictException(inner) => Error::ConflictException(inner),
155            crate::operation::associate_faces::AssociateFacesError::IdempotentParameterMismatchException(inner) => {
156                Error::IdempotentParameterMismatchException(inner)
157            }
158            crate::operation::associate_faces::AssociateFacesError::InternalServerError(inner) => Error::InternalServerError(inner),
159            crate::operation::associate_faces::AssociateFacesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
160            crate::operation::associate_faces::AssociateFacesError::ProvisionedThroughputExceededException(inner) => {
161                Error::ProvisionedThroughputExceededException(inner)
162            }
163            crate::operation::associate_faces::AssociateFacesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
164            crate::operation::associate_faces::AssociateFacesError::ServiceQuotaExceededException(inner) => {
165                Error::ServiceQuotaExceededException(inner)
166            }
167            crate::operation::associate_faces::AssociateFacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
168            crate::operation::associate_faces::AssociateFacesError::Unhandled(inner) => Error::Unhandled(inner),
169        }
170    }
171}
172impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::compare_faces::CompareFacesError, R>> for Error
173where
174    R: Send + Sync + std::fmt::Debug + 'static,
175{
176    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::compare_faces::CompareFacesError, R>) -> Self {
177        match err {
178            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
179            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
180                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
181                source: err.into(),
182            }),
183        }
184    }
185}
186impl From<crate::operation::compare_faces::CompareFacesError> for Error {
187    fn from(err: crate::operation::compare_faces::CompareFacesError) -> Self {
188        match err {
189            crate::operation::compare_faces::CompareFacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
190            crate::operation::compare_faces::CompareFacesError::ImageTooLargeException(inner) => Error::ImageTooLargeException(inner),
191            crate::operation::compare_faces::CompareFacesError::InternalServerError(inner) => Error::InternalServerError(inner),
192            crate::operation::compare_faces::CompareFacesError::InvalidImageFormatException(inner) => Error::InvalidImageFormatException(inner),
193            crate::operation::compare_faces::CompareFacesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
194            crate::operation::compare_faces::CompareFacesError::InvalidS3ObjectException(inner) => Error::InvalidS3ObjectException(inner),
195            crate::operation::compare_faces::CompareFacesError::ProvisionedThroughputExceededException(inner) => {
196                Error::ProvisionedThroughputExceededException(inner)
197            }
198            crate::operation::compare_faces::CompareFacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
199            crate::operation::compare_faces::CompareFacesError::Unhandled(inner) => Error::Unhandled(inner),
200        }
201    }
202}
203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_project_version::CopyProjectVersionError, R>> for Error
204where
205    R: Send + Sync + std::fmt::Debug + 'static,
206{
207    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_project_version::CopyProjectVersionError, R>) -> Self {
208        match err {
209            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
210            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
211                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
212                source: err.into(),
213            }),
214        }
215    }
216}
217impl From<crate::operation::copy_project_version::CopyProjectVersionError> for Error {
218    fn from(err: crate::operation::copy_project_version::CopyProjectVersionError) -> Self {
219        match err {
220            crate::operation::copy_project_version::CopyProjectVersionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
221            crate::operation::copy_project_version::CopyProjectVersionError::InternalServerError(inner) => Error::InternalServerError(inner),
222            crate::operation::copy_project_version::CopyProjectVersionError::InvalidParameterException(inner) => {
223                Error::InvalidParameterException(inner)
224            }
225            crate::operation::copy_project_version::CopyProjectVersionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
226            crate::operation::copy_project_version::CopyProjectVersionError::ProvisionedThroughputExceededException(inner) => {
227                Error::ProvisionedThroughputExceededException(inner)
228            }
229            crate::operation::copy_project_version::CopyProjectVersionError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
230            crate::operation::copy_project_version::CopyProjectVersionError::ResourceNotFoundException(inner) => {
231                Error::ResourceNotFoundException(inner)
232            }
233            crate::operation::copy_project_version::CopyProjectVersionError::ServiceQuotaExceededException(inner) => {
234                Error::ServiceQuotaExceededException(inner)
235            }
236            crate::operation::copy_project_version::CopyProjectVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
237            crate::operation::copy_project_version::CopyProjectVersionError::Unhandled(inner) => Error::Unhandled(inner),
238        }
239    }
240}
241impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_collection::CreateCollectionError, R>> for Error
242where
243    R: Send + Sync + std::fmt::Debug + 'static,
244{
245    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_collection::CreateCollectionError, R>) -> Self {
246        match err {
247            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
248            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
249                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
250                source: err.into(),
251            }),
252        }
253    }
254}
255impl From<crate::operation::create_collection::CreateCollectionError> for Error {
256    fn from(err: crate::operation::create_collection::CreateCollectionError) -> Self {
257        match err {
258            crate::operation::create_collection::CreateCollectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
259            crate::operation::create_collection::CreateCollectionError::InternalServerError(inner) => Error::InternalServerError(inner),
260            crate::operation::create_collection::CreateCollectionError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
261            crate::operation::create_collection::CreateCollectionError::ProvisionedThroughputExceededException(inner) => {
262                Error::ProvisionedThroughputExceededException(inner)
263            }
264            crate::operation::create_collection::CreateCollectionError::ResourceAlreadyExistsException(inner) => {
265                Error::ResourceAlreadyExistsException(inner)
266            }
267            crate::operation::create_collection::CreateCollectionError::ServiceQuotaExceededException(inner) => {
268                Error::ServiceQuotaExceededException(inner)
269            }
270            crate::operation::create_collection::CreateCollectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
271            crate::operation::create_collection::CreateCollectionError::Unhandled(inner) => Error::Unhandled(inner),
272        }
273    }
274}
275impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset::CreateDatasetError, R>> for Error
276where
277    R: Send + Sync + std::fmt::Debug + 'static,
278{
279    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_dataset::CreateDatasetError, R>) -> Self {
280        match err {
281            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
282            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
283                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
284                source: err.into(),
285            }),
286        }
287    }
288}
289impl From<crate::operation::create_dataset::CreateDatasetError> for Error {
290    fn from(err: crate::operation::create_dataset::CreateDatasetError) -> Self {
291        match err {
292            crate::operation::create_dataset::CreateDatasetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
293            crate::operation::create_dataset::CreateDatasetError::InternalServerError(inner) => Error::InternalServerError(inner),
294            crate::operation::create_dataset::CreateDatasetError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
295            crate::operation::create_dataset::CreateDatasetError::InvalidS3ObjectException(inner) => Error::InvalidS3ObjectException(inner),
296            crate::operation::create_dataset::CreateDatasetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
297            crate::operation::create_dataset::CreateDatasetError::ProvisionedThroughputExceededException(inner) => {
298                Error::ProvisionedThroughputExceededException(inner)
299            }
300            crate::operation::create_dataset::CreateDatasetError::ResourceAlreadyExistsException(inner) => {
301                Error::ResourceAlreadyExistsException(inner)
302            }
303            crate::operation::create_dataset::CreateDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
304            crate::operation::create_dataset::CreateDatasetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
305            crate::operation::create_dataset::CreateDatasetError::Unhandled(inner) => Error::Unhandled(inner),
306        }
307    }
308}
309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_face_liveness_session::CreateFaceLivenessSessionError, R>>
310    for Error
311where
312    R: Send + Sync + std::fmt::Debug + 'static,
313{
314    fn from(
315        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_face_liveness_session::CreateFaceLivenessSessionError, R>,
316    ) -> Self {
317        match err {
318            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
319            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
320                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
321                source: err.into(),
322            }),
323        }
324    }
325}
326impl From<crate::operation::create_face_liveness_session::CreateFaceLivenessSessionError> for Error {
327    fn from(err: crate::operation::create_face_liveness_session::CreateFaceLivenessSessionError) -> Self {
328        match err {
329            crate::operation::create_face_liveness_session::CreateFaceLivenessSessionError::AccessDeniedException(inner) => {
330                Error::AccessDeniedException(inner)
331            }
332            crate::operation::create_face_liveness_session::CreateFaceLivenessSessionError::InternalServerError(inner) => {
333                Error::InternalServerError(inner)
334            }
335            crate::operation::create_face_liveness_session::CreateFaceLivenessSessionError::InvalidParameterException(inner) => {
336                Error::InvalidParameterException(inner)
337            }
338            crate::operation::create_face_liveness_session::CreateFaceLivenessSessionError::ProvisionedThroughputExceededException(inner) => {
339                Error::ProvisionedThroughputExceededException(inner)
340            }
341            crate::operation::create_face_liveness_session::CreateFaceLivenessSessionError::ThrottlingException(inner) => {
342                Error::ThrottlingException(inner)
343            }
344            crate::operation::create_face_liveness_session::CreateFaceLivenessSessionError::Unhandled(inner) => Error::Unhandled(inner),
345        }
346    }
347}
348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>> for Error
349where
350    R: Send + Sync + std::fmt::Debug + 'static,
351{
352    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project::CreateProjectError, R>) -> Self {
353        match err {
354            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
355            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
356                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
357                source: err.into(),
358            }),
359        }
360    }
361}
362impl From<crate::operation::create_project::CreateProjectError> for Error {
363    fn from(err: crate::operation::create_project::CreateProjectError) -> Self {
364        match err {
365            crate::operation::create_project::CreateProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
366            crate::operation::create_project::CreateProjectError::InternalServerError(inner) => Error::InternalServerError(inner),
367            crate::operation::create_project::CreateProjectError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
368            crate::operation::create_project::CreateProjectError::LimitExceededException(inner) => Error::LimitExceededException(inner),
369            crate::operation::create_project::CreateProjectError::ProvisionedThroughputExceededException(inner) => {
370                Error::ProvisionedThroughputExceededException(inner)
371            }
372            crate::operation::create_project::CreateProjectError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
373            crate::operation::create_project::CreateProjectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
374            crate::operation::create_project::CreateProjectError::Unhandled(inner) => Error::Unhandled(inner),
375        }
376    }
377}
378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project_version::CreateProjectVersionError, R>> for Error
379where
380    R: Send + Sync + std::fmt::Debug + 'static,
381{
382    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_project_version::CreateProjectVersionError, R>) -> Self {
383        match err {
384            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
385            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
386                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
387                source: err.into(),
388            }),
389        }
390    }
391}
392impl From<crate::operation::create_project_version::CreateProjectVersionError> for Error {
393    fn from(err: crate::operation::create_project_version::CreateProjectVersionError) -> Self {
394        match err {
395            crate::operation::create_project_version::CreateProjectVersionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
396            crate::operation::create_project_version::CreateProjectVersionError::InternalServerError(inner) => Error::InternalServerError(inner),
397            crate::operation::create_project_version::CreateProjectVersionError::InvalidParameterException(inner) => {
398                Error::InvalidParameterException(inner)
399            }
400            crate::operation::create_project_version::CreateProjectVersionError::LimitExceededException(inner) => {
401                Error::LimitExceededException(inner)
402            }
403            crate::operation::create_project_version::CreateProjectVersionError::ProvisionedThroughputExceededException(inner) => {
404                Error::ProvisionedThroughputExceededException(inner)
405            }
406            crate::operation::create_project_version::CreateProjectVersionError::ResourceInUseException(inner) => {
407                Error::ResourceInUseException(inner)
408            }
409            crate::operation::create_project_version::CreateProjectVersionError::ResourceNotFoundException(inner) => {
410                Error::ResourceNotFoundException(inner)
411            }
412            crate::operation::create_project_version::CreateProjectVersionError::ServiceQuotaExceededException(inner) => {
413                Error::ServiceQuotaExceededException(inner)
414            }
415            crate::operation::create_project_version::CreateProjectVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
416            crate::operation::create_project_version::CreateProjectVersionError::Unhandled(inner) => Error::Unhandled(inner),
417        }
418    }
419}
420impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stream_processor::CreateStreamProcessorError, R>> for Error
421where
422    R: Send + Sync + std::fmt::Debug + 'static,
423{
424    fn from(
425        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stream_processor::CreateStreamProcessorError, R>,
426    ) -> Self {
427        match err {
428            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
429            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
430                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
431                source: err.into(),
432            }),
433        }
434    }
435}
436impl From<crate::operation::create_stream_processor::CreateStreamProcessorError> for Error {
437    fn from(err: crate::operation::create_stream_processor::CreateStreamProcessorError) -> Self {
438        match err {
439            crate::operation::create_stream_processor::CreateStreamProcessorError::AccessDeniedException(inner) => {
440                Error::AccessDeniedException(inner)
441            }
442            crate::operation::create_stream_processor::CreateStreamProcessorError::InternalServerError(inner) => Error::InternalServerError(inner),
443            crate::operation::create_stream_processor::CreateStreamProcessorError::InvalidParameterException(inner) => {
444                Error::InvalidParameterException(inner)
445            }
446            crate::operation::create_stream_processor::CreateStreamProcessorError::LimitExceededException(inner) => {
447                Error::LimitExceededException(inner)
448            }
449            crate::operation::create_stream_processor::CreateStreamProcessorError::ProvisionedThroughputExceededException(inner) => {
450                Error::ProvisionedThroughputExceededException(inner)
451            }
452            crate::operation::create_stream_processor::CreateStreamProcessorError::ResourceInUseException(inner) => {
453                Error::ResourceInUseException(inner)
454            }
455            crate::operation::create_stream_processor::CreateStreamProcessorError::ServiceQuotaExceededException(inner) => {
456                Error::ServiceQuotaExceededException(inner)
457            }
458            crate::operation::create_stream_processor::CreateStreamProcessorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
459            crate::operation::create_stream_processor::CreateStreamProcessorError::Unhandled(inner) => Error::Unhandled(inner),
460        }
461    }
462}
463impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, R>> for Error
464where
465    R: Send + Sync + std::fmt::Debug + 'static,
466{
467    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_user::CreateUserError, R>) -> Self {
468        match err {
469            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
470            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
471                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
472                source: err.into(),
473            }),
474        }
475    }
476}
477impl From<crate::operation::create_user::CreateUserError> for Error {
478    fn from(err: crate::operation::create_user::CreateUserError) -> Self {
479        match err {
480            crate::operation::create_user::CreateUserError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
481            crate::operation::create_user::CreateUserError::ConflictException(inner) => Error::ConflictException(inner),
482            crate::operation::create_user::CreateUserError::IdempotentParameterMismatchException(inner) => {
483                Error::IdempotentParameterMismatchException(inner)
484            }
485            crate::operation::create_user::CreateUserError::InternalServerError(inner) => Error::InternalServerError(inner),
486            crate::operation::create_user::CreateUserError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
487            crate::operation::create_user::CreateUserError::ProvisionedThroughputExceededException(inner) => {
488                Error::ProvisionedThroughputExceededException(inner)
489            }
490            crate::operation::create_user::CreateUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
491            crate::operation::create_user::CreateUserError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
492            crate::operation::create_user::CreateUserError::ThrottlingException(inner) => Error::ThrottlingException(inner),
493            crate::operation::create_user::CreateUserError::Unhandled(inner) => Error::Unhandled(inner),
494        }
495    }
496}
497impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_collection::DeleteCollectionError, 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_collection::DeleteCollectionError, 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_collection::DeleteCollectionError> for Error {
512    fn from(err: crate::operation::delete_collection::DeleteCollectionError) -> Self {
513        match err {
514            crate::operation::delete_collection::DeleteCollectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
515            crate::operation::delete_collection::DeleteCollectionError::InternalServerError(inner) => Error::InternalServerError(inner),
516            crate::operation::delete_collection::DeleteCollectionError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
517            crate::operation::delete_collection::DeleteCollectionError::ProvisionedThroughputExceededException(inner) => {
518                Error::ProvisionedThroughputExceededException(inner)
519            }
520            crate::operation::delete_collection::DeleteCollectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
521            crate::operation::delete_collection::DeleteCollectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
522            crate::operation::delete_collection::DeleteCollectionError::Unhandled(inner) => Error::Unhandled(inner),
523        }
524    }
525}
526impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset::DeleteDatasetError, R>> for Error
527where
528    R: Send + Sync + std::fmt::Debug + 'static,
529{
530    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_dataset::DeleteDatasetError, R>) -> Self {
531        match err {
532            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
533            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
534                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
535                source: err.into(),
536            }),
537        }
538    }
539}
540impl From<crate::operation::delete_dataset::DeleteDatasetError> for Error {
541    fn from(err: crate::operation::delete_dataset::DeleteDatasetError) -> Self {
542        match err {
543            crate::operation::delete_dataset::DeleteDatasetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
544            crate::operation::delete_dataset::DeleteDatasetError::InternalServerError(inner) => Error::InternalServerError(inner),
545            crate::operation::delete_dataset::DeleteDatasetError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
546            crate::operation::delete_dataset::DeleteDatasetError::LimitExceededException(inner) => Error::LimitExceededException(inner),
547            crate::operation::delete_dataset::DeleteDatasetError::ProvisionedThroughputExceededException(inner) => {
548                Error::ProvisionedThroughputExceededException(inner)
549            }
550            crate::operation::delete_dataset::DeleteDatasetError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
551            crate::operation::delete_dataset::DeleteDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
552            crate::operation::delete_dataset::DeleteDatasetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
553            crate::operation::delete_dataset::DeleteDatasetError::Unhandled(inner) => Error::Unhandled(inner),
554        }
555    }
556}
557impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_faces::DeleteFacesError, R>> for Error
558where
559    R: Send + Sync + std::fmt::Debug + 'static,
560{
561    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_faces::DeleteFacesError, R>) -> Self {
562        match err {
563            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
564            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
565                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
566                source: err.into(),
567            }),
568        }
569    }
570}
571impl From<crate::operation::delete_faces::DeleteFacesError> for Error {
572    fn from(err: crate::operation::delete_faces::DeleteFacesError) -> Self {
573        match err {
574            crate::operation::delete_faces::DeleteFacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
575            crate::operation::delete_faces::DeleteFacesError::InternalServerError(inner) => Error::InternalServerError(inner),
576            crate::operation::delete_faces::DeleteFacesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
577            crate::operation::delete_faces::DeleteFacesError::ProvisionedThroughputExceededException(inner) => {
578                Error::ProvisionedThroughputExceededException(inner)
579            }
580            crate::operation::delete_faces::DeleteFacesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
581            crate::operation::delete_faces::DeleteFacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
582            crate::operation::delete_faces::DeleteFacesError::Unhandled(inner) => Error::Unhandled(inner),
583        }
584    }
585}
586impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>> for Error
587where
588    R: Send + Sync + std::fmt::Debug + 'static,
589{
590    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project::DeleteProjectError, R>) -> Self {
591        match err {
592            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
593            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
594                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
595                source: err.into(),
596            }),
597        }
598    }
599}
600impl From<crate::operation::delete_project::DeleteProjectError> for Error {
601    fn from(err: crate::operation::delete_project::DeleteProjectError) -> Self {
602        match err {
603            crate::operation::delete_project::DeleteProjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
604            crate::operation::delete_project::DeleteProjectError::InternalServerError(inner) => Error::InternalServerError(inner),
605            crate::operation::delete_project::DeleteProjectError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
606            crate::operation::delete_project::DeleteProjectError::ProvisionedThroughputExceededException(inner) => {
607                Error::ProvisionedThroughputExceededException(inner)
608            }
609            crate::operation::delete_project::DeleteProjectError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
610            crate::operation::delete_project::DeleteProjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
611            crate::operation::delete_project::DeleteProjectError::ThrottlingException(inner) => Error::ThrottlingException(inner),
612            crate::operation::delete_project::DeleteProjectError::Unhandled(inner) => Error::Unhandled(inner),
613        }
614    }
615}
616impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project_policy::DeleteProjectPolicyError, R>> for Error
617where
618    R: Send + Sync + std::fmt::Debug + 'static,
619{
620    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project_policy::DeleteProjectPolicyError, R>) -> Self {
621        match err {
622            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
623            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
624                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
625                source: err.into(),
626            }),
627        }
628    }
629}
630impl From<crate::operation::delete_project_policy::DeleteProjectPolicyError> for Error {
631    fn from(err: crate::operation::delete_project_policy::DeleteProjectPolicyError) -> Self {
632        match err {
633            crate::operation::delete_project_policy::DeleteProjectPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
634            crate::operation::delete_project_policy::DeleteProjectPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
635            crate::operation::delete_project_policy::DeleteProjectPolicyError::InvalidParameterException(inner) => {
636                Error::InvalidParameterException(inner)
637            }
638            crate::operation::delete_project_policy::DeleteProjectPolicyError::InvalidPolicyRevisionIdException(inner) => {
639                Error::InvalidPolicyRevisionIdException(inner)
640            }
641            crate::operation::delete_project_policy::DeleteProjectPolicyError::ProvisionedThroughputExceededException(inner) => {
642                Error::ProvisionedThroughputExceededException(inner)
643            }
644            crate::operation::delete_project_policy::DeleteProjectPolicyError::ResourceNotFoundException(inner) => {
645                Error::ResourceNotFoundException(inner)
646            }
647            crate::operation::delete_project_policy::DeleteProjectPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
648            crate::operation::delete_project_policy::DeleteProjectPolicyError::Unhandled(inner) => Error::Unhandled(inner),
649        }
650    }
651}
652impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project_version::DeleteProjectVersionError, R>> for Error
653where
654    R: Send + Sync + std::fmt::Debug + 'static,
655{
656    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_project_version::DeleteProjectVersionError, R>) -> Self {
657        match err {
658            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
659            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
660                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
661                source: err.into(),
662            }),
663        }
664    }
665}
666impl From<crate::operation::delete_project_version::DeleteProjectVersionError> for Error {
667    fn from(err: crate::operation::delete_project_version::DeleteProjectVersionError) -> Self {
668        match err {
669            crate::operation::delete_project_version::DeleteProjectVersionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
670            crate::operation::delete_project_version::DeleteProjectVersionError::InternalServerError(inner) => Error::InternalServerError(inner),
671            crate::operation::delete_project_version::DeleteProjectVersionError::InvalidParameterException(inner) => {
672                Error::InvalidParameterException(inner)
673            }
674            crate::operation::delete_project_version::DeleteProjectVersionError::ProvisionedThroughputExceededException(inner) => {
675                Error::ProvisionedThroughputExceededException(inner)
676            }
677            crate::operation::delete_project_version::DeleteProjectVersionError::ResourceInUseException(inner) => {
678                Error::ResourceInUseException(inner)
679            }
680            crate::operation::delete_project_version::DeleteProjectVersionError::ResourceNotFoundException(inner) => {
681                Error::ResourceNotFoundException(inner)
682            }
683            crate::operation::delete_project_version::DeleteProjectVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
684            crate::operation::delete_project_version::DeleteProjectVersionError::Unhandled(inner) => Error::Unhandled(inner),
685        }
686    }
687}
688impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stream_processor::DeleteStreamProcessorError, R>> for Error
689where
690    R: Send + Sync + std::fmt::Debug + 'static,
691{
692    fn from(
693        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stream_processor::DeleteStreamProcessorError, R>,
694    ) -> Self {
695        match err {
696            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
697            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
698                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
699                source: err.into(),
700            }),
701        }
702    }
703}
704impl From<crate::operation::delete_stream_processor::DeleteStreamProcessorError> for Error {
705    fn from(err: crate::operation::delete_stream_processor::DeleteStreamProcessorError) -> Self {
706        match err {
707            crate::operation::delete_stream_processor::DeleteStreamProcessorError::AccessDeniedException(inner) => {
708                Error::AccessDeniedException(inner)
709            }
710            crate::operation::delete_stream_processor::DeleteStreamProcessorError::InternalServerError(inner) => Error::InternalServerError(inner),
711            crate::operation::delete_stream_processor::DeleteStreamProcessorError::InvalidParameterException(inner) => {
712                Error::InvalidParameterException(inner)
713            }
714            crate::operation::delete_stream_processor::DeleteStreamProcessorError::ProvisionedThroughputExceededException(inner) => {
715                Error::ProvisionedThroughputExceededException(inner)
716            }
717            crate::operation::delete_stream_processor::DeleteStreamProcessorError::ResourceInUseException(inner) => {
718                Error::ResourceInUseException(inner)
719            }
720            crate::operation::delete_stream_processor::DeleteStreamProcessorError::ResourceNotFoundException(inner) => {
721                Error::ResourceNotFoundException(inner)
722            }
723            crate::operation::delete_stream_processor::DeleteStreamProcessorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
724            crate::operation::delete_stream_processor::DeleteStreamProcessorError::Unhandled(inner) => Error::Unhandled(inner),
725        }
726    }
727}
728impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user::DeleteUserError, R>> for Error
729where
730    R: Send + Sync + std::fmt::Debug + 'static,
731{
732    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_user::DeleteUserError, R>) -> Self {
733        match err {
734            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
735            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
736                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
737                source: err.into(),
738            }),
739        }
740    }
741}
742impl From<crate::operation::delete_user::DeleteUserError> for Error {
743    fn from(err: crate::operation::delete_user::DeleteUserError) -> Self {
744        match err {
745            crate::operation::delete_user::DeleteUserError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
746            crate::operation::delete_user::DeleteUserError::ConflictException(inner) => Error::ConflictException(inner),
747            crate::operation::delete_user::DeleteUserError::IdempotentParameterMismatchException(inner) => {
748                Error::IdempotentParameterMismatchException(inner)
749            }
750            crate::operation::delete_user::DeleteUserError::InternalServerError(inner) => Error::InternalServerError(inner),
751            crate::operation::delete_user::DeleteUserError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
752            crate::operation::delete_user::DeleteUserError::ProvisionedThroughputExceededException(inner) => {
753                Error::ProvisionedThroughputExceededException(inner)
754            }
755            crate::operation::delete_user::DeleteUserError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
756            crate::operation::delete_user::DeleteUserError::ThrottlingException(inner) => Error::ThrottlingException(inner),
757            crate::operation::delete_user::DeleteUserError::Unhandled(inner) => Error::Unhandled(inner),
758        }
759    }
760}
761impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_collection::DescribeCollectionError, R>> for Error
762where
763    R: Send + Sync + std::fmt::Debug + 'static,
764{
765    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_collection::DescribeCollectionError, R>) -> Self {
766        match err {
767            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
768            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
769                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
770                source: err.into(),
771            }),
772        }
773    }
774}
775impl From<crate::operation::describe_collection::DescribeCollectionError> for Error {
776    fn from(err: crate::operation::describe_collection::DescribeCollectionError) -> Self {
777        match err {
778            crate::operation::describe_collection::DescribeCollectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
779            crate::operation::describe_collection::DescribeCollectionError::InternalServerError(inner) => Error::InternalServerError(inner),
780            crate::operation::describe_collection::DescribeCollectionError::InvalidParameterException(inner) => {
781                Error::InvalidParameterException(inner)
782            }
783            crate::operation::describe_collection::DescribeCollectionError::ProvisionedThroughputExceededException(inner) => {
784                Error::ProvisionedThroughputExceededException(inner)
785            }
786            crate::operation::describe_collection::DescribeCollectionError::ResourceNotFoundException(inner) => {
787                Error::ResourceNotFoundException(inner)
788            }
789            crate::operation::describe_collection::DescribeCollectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
790            crate::operation::describe_collection::DescribeCollectionError::Unhandled(inner) => Error::Unhandled(inner),
791        }
792    }
793}
794impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_dataset::DescribeDatasetError, 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::describe_dataset::DescribeDatasetError, 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::describe_dataset::DescribeDatasetError> for Error {
809    fn from(err: crate::operation::describe_dataset::DescribeDatasetError) -> Self {
810        match err {
811            crate::operation::describe_dataset::DescribeDatasetError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
812            crate::operation::describe_dataset::DescribeDatasetError::InternalServerError(inner) => Error::InternalServerError(inner),
813            crate::operation::describe_dataset::DescribeDatasetError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
814            crate::operation::describe_dataset::DescribeDatasetError::ProvisionedThroughputExceededException(inner) => {
815                Error::ProvisionedThroughputExceededException(inner)
816            }
817            crate::operation::describe_dataset::DescribeDatasetError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
818            crate::operation::describe_dataset::DescribeDatasetError::ThrottlingException(inner) => Error::ThrottlingException(inner),
819            crate::operation::describe_dataset::DescribeDatasetError::Unhandled(inner) => Error::Unhandled(inner),
820        }
821    }
822}
823impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_projects::DescribeProjectsError, R>> for Error
824where
825    R: Send + Sync + std::fmt::Debug + 'static,
826{
827    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_projects::DescribeProjectsError, R>) -> Self {
828        match err {
829            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
830            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
831                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
832                source: err.into(),
833            }),
834        }
835    }
836}
837impl From<crate::operation::describe_projects::DescribeProjectsError> for Error {
838    fn from(err: crate::operation::describe_projects::DescribeProjectsError) -> Self {
839        match err {
840            crate::operation::describe_projects::DescribeProjectsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
841            crate::operation::describe_projects::DescribeProjectsError::InternalServerError(inner) => Error::InternalServerError(inner),
842            crate::operation::describe_projects::DescribeProjectsError::InvalidPaginationTokenException(inner) => {
843                Error::InvalidPaginationTokenException(inner)
844            }
845            crate::operation::describe_projects::DescribeProjectsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
846            crate::operation::describe_projects::DescribeProjectsError::ProvisionedThroughputExceededException(inner) => {
847                Error::ProvisionedThroughputExceededException(inner)
848            }
849            crate::operation::describe_projects::DescribeProjectsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
850            crate::operation::describe_projects::DescribeProjectsError::Unhandled(inner) => Error::Unhandled(inner),
851        }
852    }
853}
854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project_versions::DescribeProjectVersionsError, R>>
855    for Error
856where
857    R: Send + Sync + std::fmt::Debug + 'static,
858{
859    fn from(
860        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_project_versions::DescribeProjectVersionsError, R>,
861    ) -> Self {
862        match err {
863            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
864            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
865                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
866                source: err.into(),
867            }),
868        }
869    }
870}
871impl From<crate::operation::describe_project_versions::DescribeProjectVersionsError> for Error {
872    fn from(err: crate::operation::describe_project_versions::DescribeProjectVersionsError) -> Self {
873        match err {
874            crate::operation::describe_project_versions::DescribeProjectVersionsError::AccessDeniedException(inner) => {
875                Error::AccessDeniedException(inner)
876            }
877            crate::operation::describe_project_versions::DescribeProjectVersionsError::InternalServerError(inner) => {
878                Error::InternalServerError(inner)
879            }
880            crate::operation::describe_project_versions::DescribeProjectVersionsError::InvalidPaginationTokenException(inner) => {
881                Error::InvalidPaginationTokenException(inner)
882            }
883            crate::operation::describe_project_versions::DescribeProjectVersionsError::InvalidParameterException(inner) => {
884                Error::InvalidParameterException(inner)
885            }
886            crate::operation::describe_project_versions::DescribeProjectVersionsError::ProvisionedThroughputExceededException(inner) => {
887                Error::ProvisionedThroughputExceededException(inner)
888            }
889            crate::operation::describe_project_versions::DescribeProjectVersionsError::ResourceNotFoundException(inner) => {
890                Error::ResourceNotFoundException(inner)
891            }
892            crate::operation::describe_project_versions::DescribeProjectVersionsError::ThrottlingException(inner) => {
893                Error::ThrottlingException(inner)
894            }
895            crate::operation::describe_project_versions::DescribeProjectVersionsError::Unhandled(inner) => Error::Unhandled(inner),
896        }
897    }
898}
899impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stream_processor::DescribeStreamProcessorError, R>>
900    for Error
901where
902    R: Send + Sync + std::fmt::Debug + 'static,
903{
904    fn from(
905        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stream_processor::DescribeStreamProcessorError, R>,
906    ) -> Self {
907        match err {
908            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
909            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
910                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
911                source: err.into(),
912            }),
913        }
914    }
915}
916impl From<crate::operation::describe_stream_processor::DescribeStreamProcessorError> for Error {
917    fn from(err: crate::operation::describe_stream_processor::DescribeStreamProcessorError) -> Self {
918        match err {
919            crate::operation::describe_stream_processor::DescribeStreamProcessorError::AccessDeniedException(inner) => {
920                Error::AccessDeniedException(inner)
921            }
922            crate::operation::describe_stream_processor::DescribeStreamProcessorError::InternalServerError(inner) => {
923                Error::InternalServerError(inner)
924            }
925            crate::operation::describe_stream_processor::DescribeStreamProcessorError::InvalidParameterException(inner) => {
926                Error::InvalidParameterException(inner)
927            }
928            crate::operation::describe_stream_processor::DescribeStreamProcessorError::ProvisionedThroughputExceededException(inner) => {
929                Error::ProvisionedThroughputExceededException(inner)
930            }
931            crate::operation::describe_stream_processor::DescribeStreamProcessorError::ResourceNotFoundException(inner) => {
932                Error::ResourceNotFoundException(inner)
933            }
934            crate::operation::describe_stream_processor::DescribeStreamProcessorError::ThrottlingException(inner) => {
935                Error::ThrottlingException(inner)
936            }
937            crate::operation::describe_stream_processor::DescribeStreamProcessorError::Unhandled(inner) => Error::Unhandled(inner),
938        }
939    }
940}
941impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_custom_labels::DetectCustomLabelsError, R>> for Error
942where
943    R: Send + Sync + std::fmt::Debug + 'static,
944{
945    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_custom_labels::DetectCustomLabelsError, R>) -> Self {
946        match err {
947            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
948            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
949                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
950                source: err.into(),
951            }),
952        }
953    }
954}
955impl From<crate::operation::detect_custom_labels::DetectCustomLabelsError> for Error {
956    fn from(err: crate::operation::detect_custom_labels::DetectCustomLabelsError) -> Self {
957        match err {
958            crate::operation::detect_custom_labels::DetectCustomLabelsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
959            crate::operation::detect_custom_labels::DetectCustomLabelsError::ImageTooLargeException(inner) => Error::ImageTooLargeException(inner),
960            crate::operation::detect_custom_labels::DetectCustomLabelsError::InternalServerError(inner) => Error::InternalServerError(inner),
961            crate::operation::detect_custom_labels::DetectCustomLabelsError::InvalidImageFormatException(inner) => {
962                Error::InvalidImageFormatException(inner)
963            }
964            crate::operation::detect_custom_labels::DetectCustomLabelsError::InvalidParameterException(inner) => {
965                Error::InvalidParameterException(inner)
966            }
967            crate::operation::detect_custom_labels::DetectCustomLabelsError::InvalidS3ObjectException(inner) => {
968                Error::InvalidS3ObjectException(inner)
969            }
970            crate::operation::detect_custom_labels::DetectCustomLabelsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
971            crate::operation::detect_custom_labels::DetectCustomLabelsError::ProvisionedThroughputExceededException(inner) => {
972                Error::ProvisionedThroughputExceededException(inner)
973            }
974            crate::operation::detect_custom_labels::DetectCustomLabelsError::ResourceNotFoundException(inner) => {
975                Error::ResourceNotFoundException(inner)
976            }
977            crate::operation::detect_custom_labels::DetectCustomLabelsError::ResourceNotReadyException(inner) => {
978                Error::ResourceNotReadyException(inner)
979            }
980            crate::operation::detect_custom_labels::DetectCustomLabelsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
981            crate::operation::detect_custom_labels::DetectCustomLabelsError::Unhandled(inner) => Error::Unhandled(inner),
982        }
983    }
984}
985impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_faces::DetectFacesError, R>> for Error
986where
987    R: Send + Sync + std::fmt::Debug + 'static,
988{
989    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_faces::DetectFacesError, R>) -> Self {
990        match err {
991            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
992            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
993                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
994                source: err.into(),
995            }),
996        }
997    }
998}
999impl From<crate::operation::detect_faces::DetectFacesError> for Error {
1000    fn from(err: crate::operation::detect_faces::DetectFacesError) -> Self {
1001        match err {
1002            crate::operation::detect_faces::DetectFacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1003            crate::operation::detect_faces::DetectFacesError::ImageTooLargeException(inner) => Error::ImageTooLargeException(inner),
1004            crate::operation::detect_faces::DetectFacesError::InternalServerError(inner) => Error::InternalServerError(inner),
1005            crate::operation::detect_faces::DetectFacesError::InvalidImageFormatException(inner) => Error::InvalidImageFormatException(inner),
1006            crate::operation::detect_faces::DetectFacesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1007            crate::operation::detect_faces::DetectFacesError::InvalidS3ObjectException(inner) => Error::InvalidS3ObjectException(inner),
1008            crate::operation::detect_faces::DetectFacesError::ProvisionedThroughputExceededException(inner) => {
1009                Error::ProvisionedThroughputExceededException(inner)
1010            }
1011            crate::operation::detect_faces::DetectFacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1012            crate::operation::detect_faces::DetectFacesError::Unhandled(inner) => Error::Unhandled(inner),
1013        }
1014    }
1015}
1016impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_labels::DetectLabelsError, R>> for Error
1017where
1018    R: Send + Sync + std::fmt::Debug + 'static,
1019{
1020    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_labels::DetectLabelsError, R>) -> Self {
1021        match err {
1022            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1023            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1024                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1025                source: err.into(),
1026            }),
1027        }
1028    }
1029}
1030impl From<crate::operation::detect_labels::DetectLabelsError> for Error {
1031    fn from(err: crate::operation::detect_labels::DetectLabelsError) -> Self {
1032        match err {
1033            crate::operation::detect_labels::DetectLabelsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1034            crate::operation::detect_labels::DetectLabelsError::ImageTooLargeException(inner) => Error::ImageTooLargeException(inner),
1035            crate::operation::detect_labels::DetectLabelsError::InternalServerError(inner) => Error::InternalServerError(inner),
1036            crate::operation::detect_labels::DetectLabelsError::InvalidImageFormatException(inner) => Error::InvalidImageFormatException(inner),
1037            crate::operation::detect_labels::DetectLabelsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1038            crate::operation::detect_labels::DetectLabelsError::InvalidS3ObjectException(inner) => Error::InvalidS3ObjectException(inner),
1039            crate::operation::detect_labels::DetectLabelsError::ProvisionedThroughputExceededException(inner) => {
1040                Error::ProvisionedThroughputExceededException(inner)
1041            }
1042            crate::operation::detect_labels::DetectLabelsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1043            crate::operation::detect_labels::DetectLabelsError::Unhandled(inner) => Error::Unhandled(inner),
1044        }
1045    }
1046}
1047impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_moderation_labels::DetectModerationLabelsError, R>> for Error
1048where
1049    R: Send + Sync + std::fmt::Debug + 'static,
1050{
1051    fn from(
1052        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_moderation_labels::DetectModerationLabelsError, R>,
1053    ) -> Self {
1054        match err {
1055            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1056            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1057                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1058                source: err.into(),
1059            }),
1060        }
1061    }
1062}
1063impl From<crate::operation::detect_moderation_labels::DetectModerationLabelsError> for Error {
1064    fn from(err: crate::operation::detect_moderation_labels::DetectModerationLabelsError) -> Self {
1065        match err {
1066            crate::operation::detect_moderation_labels::DetectModerationLabelsError::AccessDeniedException(inner) => {
1067                Error::AccessDeniedException(inner)
1068            }
1069            crate::operation::detect_moderation_labels::DetectModerationLabelsError::HumanLoopQuotaExceededException(inner) => {
1070                Error::HumanLoopQuotaExceededException(inner)
1071            }
1072            crate::operation::detect_moderation_labels::DetectModerationLabelsError::ImageTooLargeException(inner) => {
1073                Error::ImageTooLargeException(inner)
1074            }
1075            crate::operation::detect_moderation_labels::DetectModerationLabelsError::InternalServerError(inner) => Error::InternalServerError(inner),
1076            crate::operation::detect_moderation_labels::DetectModerationLabelsError::InvalidImageFormatException(inner) => {
1077                Error::InvalidImageFormatException(inner)
1078            }
1079            crate::operation::detect_moderation_labels::DetectModerationLabelsError::InvalidParameterException(inner) => {
1080                Error::InvalidParameterException(inner)
1081            }
1082            crate::operation::detect_moderation_labels::DetectModerationLabelsError::InvalidS3ObjectException(inner) => {
1083                Error::InvalidS3ObjectException(inner)
1084            }
1085            crate::operation::detect_moderation_labels::DetectModerationLabelsError::ProvisionedThroughputExceededException(inner) => {
1086                Error::ProvisionedThroughputExceededException(inner)
1087            }
1088            crate::operation::detect_moderation_labels::DetectModerationLabelsError::ResourceNotFoundException(inner) => {
1089                Error::ResourceNotFoundException(inner)
1090            }
1091            crate::operation::detect_moderation_labels::DetectModerationLabelsError::ResourceNotReadyException(inner) => {
1092                Error::ResourceNotReadyException(inner)
1093            }
1094            crate::operation::detect_moderation_labels::DetectModerationLabelsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1095            crate::operation::detect_moderation_labels::DetectModerationLabelsError::Unhandled(inner) => Error::Unhandled(inner),
1096        }
1097    }
1098}
1099impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError, R>>
1100    for Error
1101where
1102    R: Send + Sync + std::fmt::Debug + 'static,
1103{
1104    fn from(
1105        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError, R>,
1106    ) -> Self {
1107        match err {
1108            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1109            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1110                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1111                source: err.into(),
1112            }),
1113        }
1114    }
1115}
1116impl From<crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError> for Error {
1117    fn from(err: crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError) -> Self {
1118        match err {
1119            crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError::AccessDeniedException(inner) => {
1120                Error::AccessDeniedException(inner)
1121            }
1122            crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError::ImageTooLargeException(inner) => {
1123                Error::ImageTooLargeException(inner)
1124            }
1125            crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError::InternalServerError(inner) => {
1126                Error::InternalServerError(inner)
1127            }
1128            crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError::InvalidImageFormatException(inner) => {
1129                Error::InvalidImageFormatException(inner)
1130            }
1131            crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError::InvalidParameterException(inner) => {
1132                Error::InvalidParameterException(inner)
1133            }
1134            crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError::InvalidS3ObjectException(inner) => {
1135                Error::InvalidS3ObjectException(inner)
1136            }
1137            crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError::ProvisionedThroughputExceededException(inner) => {
1138                Error::ProvisionedThroughputExceededException(inner)
1139            }
1140            crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError::ThrottlingException(inner) => {
1141                Error::ThrottlingException(inner)
1142            }
1143            crate::operation::detect_protective_equipment::DetectProtectiveEquipmentError::Unhandled(inner) => Error::Unhandled(inner),
1144        }
1145    }
1146}
1147impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_text::DetectTextError, R>> for Error
1148where
1149    R: Send + Sync + std::fmt::Debug + 'static,
1150{
1151    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::detect_text::DetectTextError, R>) -> Self {
1152        match err {
1153            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1154            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1155                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1156                source: err.into(),
1157            }),
1158        }
1159    }
1160}
1161impl From<crate::operation::detect_text::DetectTextError> for Error {
1162    fn from(err: crate::operation::detect_text::DetectTextError) -> Self {
1163        match err {
1164            crate::operation::detect_text::DetectTextError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1165            crate::operation::detect_text::DetectTextError::ImageTooLargeException(inner) => Error::ImageTooLargeException(inner),
1166            crate::operation::detect_text::DetectTextError::InternalServerError(inner) => Error::InternalServerError(inner),
1167            crate::operation::detect_text::DetectTextError::InvalidImageFormatException(inner) => Error::InvalidImageFormatException(inner),
1168            crate::operation::detect_text::DetectTextError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1169            crate::operation::detect_text::DetectTextError::InvalidS3ObjectException(inner) => Error::InvalidS3ObjectException(inner),
1170            crate::operation::detect_text::DetectTextError::ProvisionedThroughputExceededException(inner) => {
1171                Error::ProvisionedThroughputExceededException(inner)
1172            }
1173            crate::operation::detect_text::DetectTextError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1174            crate::operation::detect_text::DetectTextError::Unhandled(inner) => Error::Unhandled(inner),
1175        }
1176    }
1177}
1178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_faces::DisassociateFacesError, R>> for Error
1179where
1180    R: Send + Sync + std::fmt::Debug + 'static,
1181{
1182    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_faces::DisassociateFacesError, R>) -> Self {
1183        match err {
1184            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1185            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1186                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1187                source: err.into(),
1188            }),
1189        }
1190    }
1191}
1192impl From<crate::operation::disassociate_faces::DisassociateFacesError> for Error {
1193    fn from(err: crate::operation::disassociate_faces::DisassociateFacesError) -> Self {
1194        match err {
1195            crate::operation::disassociate_faces::DisassociateFacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1196            crate::operation::disassociate_faces::DisassociateFacesError::ConflictException(inner) => Error::ConflictException(inner),
1197            crate::operation::disassociate_faces::DisassociateFacesError::IdempotentParameterMismatchException(inner) => {
1198                Error::IdempotentParameterMismatchException(inner)
1199            }
1200            crate::operation::disassociate_faces::DisassociateFacesError::InternalServerError(inner) => Error::InternalServerError(inner),
1201            crate::operation::disassociate_faces::DisassociateFacesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1202            crate::operation::disassociate_faces::DisassociateFacesError::ProvisionedThroughputExceededException(inner) => {
1203                Error::ProvisionedThroughputExceededException(inner)
1204            }
1205            crate::operation::disassociate_faces::DisassociateFacesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1206            crate::operation::disassociate_faces::DisassociateFacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1207            crate::operation::disassociate_faces::DisassociateFacesError::Unhandled(inner) => Error::Unhandled(inner),
1208        }
1209    }
1210}
1211impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::distribute_dataset_entries::DistributeDatasetEntriesError, R>>
1212    for Error
1213where
1214    R: Send + Sync + std::fmt::Debug + 'static,
1215{
1216    fn from(
1217        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::distribute_dataset_entries::DistributeDatasetEntriesError, R>,
1218    ) -> Self {
1219        match err {
1220            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1221            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1222                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1223                source: err.into(),
1224            }),
1225        }
1226    }
1227}
1228impl From<crate::operation::distribute_dataset_entries::DistributeDatasetEntriesError> for Error {
1229    fn from(err: crate::operation::distribute_dataset_entries::DistributeDatasetEntriesError) -> Self {
1230        match err {
1231            crate::operation::distribute_dataset_entries::DistributeDatasetEntriesError::AccessDeniedException(inner) => {
1232                Error::AccessDeniedException(inner)
1233            }
1234            crate::operation::distribute_dataset_entries::DistributeDatasetEntriesError::InternalServerError(inner) => {
1235                Error::InternalServerError(inner)
1236            }
1237            crate::operation::distribute_dataset_entries::DistributeDatasetEntriesError::InvalidParameterException(inner) => {
1238                Error::InvalidParameterException(inner)
1239            }
1240            crate::operation::distribute_dataset_entries::DistributeDatasetEntriesError::ProvisionedThroughputExceededException(inner) => {
1241                Error::ProvisionedThroughputExceededException(inner)
1242            }
1243            crate::operation::distribute_dataset_entries::DistributeDatasetEntriesError::ResourceNotFoundException(inner) => {
1244                Error::ResourceNotFoundException(inner)
1245            }
1246            crate::operation::distribute_dataset_entries::DistributeDatasetEntriesError::ResourceNotReadyException(inner) => {
1247                Error::ResourceNotReadyException(inner)
1248            }
1249            crate::operation::distribute_dataset_entries::DistributeDatasetEntriesError::ThrottlingException(inner) => {
1250                Error::ThrottlingException(inner)
1251            }
1252            crate::operation::distribute_dataset_entries::DistributeDatasetEntriesError::Unhandled(inner) => Error::Unhandled(inner),
1253        }
1254    }
1255}
1256impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_celebrity_info::GetCelebrityInfoError, R>> for Error
1257where
1258    R: Send + Sync + std::fmt::Debug + 'static,
1259{
1260    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_celebrity_info::GetCelebrityInfoError, R>) -> Self {
1261        match err {
1262            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1263            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1264                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1265                source: err.into(),
1266            }),
1267        }
1268    }
1269}
1270impl From<crate::operation::get_celebrity_info::GetCelebrityInfoError> for Error {
1271    fn from(err: crate::operation::get_celebrity_info::GetCelebrityInfoError) -> Self {
1272        match err {
1273            crate::operation::get_celebrity_info::GetCelebrityInfoError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1274            crate::operation::get_celebrity_info::GetCelebrityInfoError::InternalServerError(inner) => Error::InternalServerError(inner),
1275            crate::operation::get_celebrity_info::GetCelebrityInfoError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1276            crate::operation::get_celebrity_info::GetCelebrityInfoError::ProvisionedThroughputExceededException(inner) => {
1277                Error::ProvisionedThroughputExceededException(inner)
1278            }
1279            crate::operation::get_celebrity_info::GetCelebrityInfoError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1280            crate::operation::get_celebrity_info::GetCelebrityInfoError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1281            crate::operation::get_celebrity_info::GetCelebrityInfoError::Unhandled(inner) => Error::Unhandled(inner),
1282        }
1283    }
1284}
1285impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_celebrity_recognition::GetCelebrityRecognitionError, R>>
1286    for Error
1287where
1288    R: Send + Sync + std::fmt::Debug + 'static,
1289{
1290    fn from(
1291        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_celebrity_recognition::GetCelebrityRecognitionError, R>,
1292    ) -> Self {
1293        match err {
1294            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1295            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1296                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1297                source: err.into(),
1298            }),
1299        }
1300    }
1301}
1302impl From<crate::operation::get_celebrity_recognition::GetCelebrityRecognitionError> for Error {
1303    fn from(err: crate::operation::get_celebrity_recognition::GetCelebrityRecognitionError) -> Self {
1304        match err {
1305            crate::operation::get_celebrity_recognition::GetCelebrityRecognitionError::AccessDeniedException(inner) => {
1306                Error::AccessDeniedException(inner)
1307            }
1308            crate::operation::get_celebrity_recognition::GetCelebrityRecognitionError::InternalServerError(inner) => {
1309                Error::InternalServerError(inner)
1310            }
1311            crate::operation::get_celebrity_recognition::GetCelebrityRecognitionError::InvalidPaginationTokenException(inner) => {
1312                Error::InvalidPaginationTokenException(inner)
1313            }
1314            crate::operation::get_celebrity_recognition::GetCelebrityRecognitionError::InvalidParameterException(inner) => {
1315                Error::InvalidParameterException(inner)
1316            }
1317            crate::operation::get_celebrity_recognition::GetCelebrityRecognitionError::ProvisionedThroughputExceededException(inner) => {
1318                Error::ProvisionedThroughputExceededException(inner)
1319            }
1320            crate::operation::get_celebrity_recognition::GetCelebrityRecognitionError::ResourceNotFoundException(inner) => {
1321                Error::ResourceNotFoundException(inner)
1322            }
1323            crate::operation::get_celebrity_recognition::GetCelebrityRecognitionError::ThrottlingException(inner) => {
1324                Error::ThrottlingException(inner)
1325            }
1326            crate::operation::get_celebrity_recognition::GetCelebrityRecognitionError::Unhandled(inner) => Error::Unhandled(inner),
1327        }
1328    }
1329}
1330impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_content_moderation::GetContentModerationError, R>> for Error
1331where
1332    R: Send + Sync + std::fmt::Debug + 'static,
1333{
1334    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_content_moderation::GetContentModerationError, R>) -> Self {
1335        match err {
1336            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1337            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1338                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1339                source: err.into(),
1340            }),
1341        }
1342    }
1343}
1344impl From<crate::operation::get_content_moderation::GetContentModerationError> for Error {
1345    fn from(err: crate::operation::get_content_moderation::GetContentModerationError) -> Self {
1346        match err {
1347            crate::operation::get_content_moderation::GetContentModerationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1348            crate::operation::get_content_moderation::GetContentModerationError::InternalServerError(inner) => Error::InternalServerError(inner),
1349            crate::operation::get_content_moderation::GetContentModerationError::InvalidPaginationTokenException(inner) => {
1350                Error::InvalidPaginationTokenException(inner)
1351            }
1352            crate::operation::get_content_moderation::GetContentModerationError::InvalidParameterException(inner) => {
1353                Error::InvalidParameterException(inner)
1354            }
1355            crate::operation::get_content_moderation::GetContentModerationError::ProvisionedThroughputExceededException(inner) => {
1356                Error::ProvisionedThroughputExceededException(inner)
1357            }
1358            crate::operation::get_content_moderation::GetContentModerationError::ResourceNotFoundException(inner) => {
1359                Error::ResourceNotFoundException(inner)
1360            }
1361            crate::operation::get_content_moderation::GetContentModerationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1362            crate::operation::get_content_moderation::GetContentModerationError::Unhandled(inner) => Error::Unhandled(inner),
1363        }
1364    }
1365}
1366impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_face_detection::GetFaceDetectionError, R>> for Error
1367where
1368    R: Send + Sync + std::fmt::Debug + 'static,
1369{
1370    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_face_detection::GetFaceDetectionError, R>) -> Self {
1371        match err {
1372            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1373            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1374                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1375                source: err.into(),
1376            }),
1377        }
1378    }
1379}
1380impl From<crate::operation::get_face_detection::GetFaceDetectionError> for Error {
1381    fn from(err: crate::operation::get_face_detection::GetFaceDetectionError) -> Self {
1382        match err {
1383            crate::operation::get_face_detection::GetFaceDetectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1384            crate::operation::get_face_detection::GetFaceDetectionError::InternalServerError(inner) => Error::InternalServerError(inner),
1385            crate::operation::get_face_detection::GetFaceDetectionError::InvalidPaginationTokenException(inner) => {
1386                Error::InvalidPaginationTokenException(inner)
1387            }
1388            crate::operation::get_face_detection::GetFaceDetectionError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1389            crate::operation::get_face_detection::GetFaceDetectionError::ProvisionedThroughputExceededException(inner) => {
1390                Error::ProvisionedThroughputExceededException(inner)
1391            }
1392            crate::operation::get_face_detection::GetFaceDetectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1393            crate::operation::get_face_detection::GetFaceDetectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1394            crate::operation::get_face_detection::GetFaceDetectionError::Unhandled(inner) => Error::Unhandled(inner),
1395        }
1396    }
1397}
1398impl<R>
1399    From<
1400        ::aws_smithy_runtime_api::client::result::SdkError<
1401            crate::operation::get_face_liveness_session_results::GetFaceLivenessSessionResultsError,
1402            R,
1403        >,
1404    > for Error
1405where
1406    R: Send + Sync + std::fmt::Debug + 'static,
1407{
1408    fn from(
1409        err: ::aws_smithy_runtime_api::client::result::SdkError<
1410            crate::operation::get_face_liveness_session_results::GetFaceLivenessSessionResultsError,
1411            R,
1412        >,
1413    ) -> Self {
1414        match err {
1415            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1416            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1417                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1418                source: err.into(),
1419            }),
1420        }
1421    }
1422}
1423impl From<crate::operation::get_face_liveness_session_results::GetFaceLivenessSessionResultsError> for Error {
1424    fn from(err: crate::operation::get_face_liveness_session_results::GetFaceLivenessSessionResultsError) -> Self {
1425        match err {
1426            crate::operation::get_face_liveness_session_results::GetFaceLivenessSessionResultsError::AccessDeniedException(inner) => {
1427                Error::AccessDeniedException(inner)
1428            }
1429            crate::operation::get_face_liveness_session_results::GetFaceLivenessSessionResultsError::InternalServerError(inner) => {
1430                Error::InternalServerError(inner)
1431            }
1432            crate::operation::get_face_liveness_session_results::GetFaceLivenessSessionResultsError::InvalidParameterException(inner) => {
1433                Error::InvalidParameterException(inner)
1434            }
1435            crate::operation::get_face_liveness_session_results::GetFaceLivenessSessionResultsError::ProvisionedThroughputExceededException(
1436                inner,
1437            ) => Error::ProvisionedThroughputExceededException(inner),
1438            crate::operation::get_face_liveness_session_results::GetFaceLivenessSessionResultsError::SessionNotFoundException(inner) => {
1439                Error::SessionNotFoundException(inner)
1440            }
1441            crate::operation::get_face_liveness_session_results::GetFaceLivenessSessionResultsError::ThrottlingException(inner) => {
1442                Error::ThrottlingException(inner)
1443            }
1444            crate::operation::get_face_liveness_session_results::GetFaceLivenessSessionResultsError::Unhandled(inner) => Error::Unhandled(inner),
1445        }
1446    }
1447}
1448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_face_search::GetFaceSearchError, R>> for Error
1449where
1450    R: Send + Sync + std::fmt::Debug + 'static,
1451{
1452    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_face_search::GetFaceSearchError, R>) -> Self {
1453        match err {
1454            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1455            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1456                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1457                source: err.into(),
1458            }),
1459        }
1460    }
1461}
1462impl From<crate::operation::get_face_search::GetFaceSearchError> for Error {
1463    fn from(err: crate::operation::get_face_search::GetFaceSearchError) -> Self {
1464        match err {
1465            crate::operation::get_face_search::GetFaceSearchError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1466            crate::operation::get_face_search::GetFaceSearchError::InternalServerError(inner) => Error::InternalServerError(inner),
1467            crate::operation::get_face_search::GetFaceSearchError::InvalidPaginationTokenException(inner) => {
1468                Error::InvalidPaginationTokenException(inner)
1469            }
1470            crate::operation::get_face_search::GetFaceSearchError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1471            crate::operation::get_face_search::GetFaceSearchError::ProvisionedThroughputExceededException(inner) => {
1472                Error::ProvisionedThroughputExceededException(inner)
1473            }
1474            crate::operation::get_face_search::GetFaceSearchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1475            crate::operation::get_face_search::GetFaceSearchError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1476            crate::operation::get_face_search::GetFaceSearchError::Unhandled(inner) => Error::Unhandled(inner),
1477        }
1478    }
1479}
1480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_label_detection::GetLabelDetectionError, R>> for Error
1481where
1482    R: Send + Sync + std::fmt::Debug + 'static,
1483{
1484    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_label_detection::GetLabelDetectionError, R>) -> Self {
1485        match err {
1486            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1487            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1488                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1489                source: err.into(),
1490            }),
1491        }
1492    }
1493}
1494impl From<crate::operation::get_label_detection::GetLabelDetectionError> for Error {
1495    fn from(err: crate::operation::get_label_detection::GetLabelDetectionError) -> Self {
1496        match err {
1497            crate::operation::get_label_detection::GetLabelDetectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1498            crate::operation::get_label_detection::GetLabelDetectionError::InternalServerError(inner) => Error::InternalServerError(inner),
1499            crate::operation::get_label_detection::GetLabelDetectionError::InvalidPaginationTokenException(inner) => {
1500                Error::InvalidPaginationTokenException(inner)
1501            }
1502            crate::operation::get_label_detection::GetLabelDetectionError::InvalidParameterException(inner) => {
1503                Error::InvalidParameterException(inner)
1504            }
1505            crate::operation::get_label_detection::GetLabelDetectionError::ProvisionedThroughputExceededException(inner) => {
1506                Error::ProvisionedThroughputExceededException(inner)
1507            }
1508            crate::operation::get_label_detection::GetLabelDetectionError::ResourceNotFoundException(inner) => {
1509                Error::ResourceNotFoundException(inner)
1510            }
1511            crate::operation::get_label_detection::GetLabelDetectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1512            crate::operation::get_label_detection::GetLabelDetectionError::Unhandled(inner) => Error::Unhandled(inner),
1513        }
1514    }
1515}
1516impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_media_analysis_job::GetMediaAnalysisJobError, R>> for Error
1517where
1518    R: Send + Sync + std::fmt::Debug + 'static,
1519{
1520    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_media_analysis_job::GetMediaAnalysisJobError, R>) -> Self {
1521        match err {
1522            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1523            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1524                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1525                source: err.into(),
1526            }),
1527        }
1528    }
1529}
1530impl From<crate::operation::get_media_analysis_job::GetMediaAnalysisJobError> for Error {
1531    fn from(err: crate::operation::get_media_analysis_job::GetMediaAnalysisJobError) -> Self {
1532        match err {
1533            crate::operation::get_media_analysis_job::GetMediaAnalysisJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1534            crate::operation::get_media_analysis_job::GetMediaAnalysisJobError::InternalServerError(inner) => Error::InternalServerError(inner),
1535            crate::operation::get_media_analysis_job::GetMediaAnalysisJobError::InvalidParameterException(inner) => {
1536                Error::InvalidParameterException(inner)
1537            }
1538            crate::operation::get_media_analysis_job::GetMediaAnalysisJobError::ProvisionedThroughputExceededException(inner) => {
1539                Error::ProvisionedThroughputExceededException(inner)
1540            }
1541            crate::operation::get_media_analysis_job::GetMediaAnalysisJobError::ResourceNotFoundException(inner) => {
1542                Error::ResourceNotFoundException(inner)
1543            }
1544            crate::operation::get_media_analysis_job::GetMediaAnalysisJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1545            crate::operation::get_media_analysis_job::GetMediaAnalysisJobError::Unhandled(inner) => Error::Unhandled(inner),
1546        }
1547    }
1548}
1549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_person_tracking::GetPersonTrackingError, R>> for Error
1550where
1551    R: Send + Sync + std::fmt::Debug + 'static,
1552{
1553    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_person_tracking::GetPersonTrackingError, R>) -> Self {
1554        match err {
1555            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1556            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1557                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1558                source: err.into(),
1559            }),
1560        }
1561    }
1562}
1563impl From<crate::operation::get_person_tracking::GetPersonTrackingError> for Error {
1564    fn from(err: crate::operation::get_person_tracking::GetPersonTrackingError) -> Self {
1565        match err {
1566            crate::operation::get_person_tracking::GetPersonTrackingError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1567            crate::operation::get_person_tracking::GetPersonTrackingError::InternalServerError(inner) => Error::InternalServerError(inner),
1568            crate::operation::get_person_tracking::GetPersonTrackingError::InvalidPaginationTokenException(inner) => {
1569                Error::InvalidPaginationTokenException(inner)
1570            }
1571            crate::operation::get_person_tracking::GetPersonTrackingError::InvalidParameterException(inner) => {
1572                Error::InvalidParameterException(inner)
1573            }
1574            crate::operation::get_person_tracking::GetPersonTrackingError::ProvisionedThroughputExceededException(inner) => {
1575                Error::ProvisionedThroughputExceededException(inner)
1576            }
1577            crate::operation::get_person_tracking::GetPersonTrackingError::ResourceNotFoundException(inner) => {
1578                Error::ResourceNotFoundException(inner)
1579            }
1580            crate::operation::get_person_tracking::GetPersonTrackingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1581            crate::operation::get_person_tracking::GetPersonTrackingError::Unhandled(inner) => Error::Unhandled(inner),
1582        }
1583    }
1584}
1585impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment_detection::GetSegmentDetectionError, R>> for Error
1586where
1587    R: Send + Sync + std::fmt::Debug + 'static,
1588{
1589    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_segment_detection::GetSegmentDetectionError, R>) -> Self {
1590        match err {
1591            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1592            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1593                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1594                source: err.into(),
1595            }),
1596        }
1597    }
1598}
1599impl From<crate::operation::get_segment_detection::GetSegmentDetectionError> for Error {
1600    fn from(err: crate::operation::get_segment_detection::GetSegmentDetectionError) -> Self {
1601        match err {
1602            crate::operation::get_segment_detection::GetSegmentDetectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1603            crate::operation::get_segment_detection::GetSegmentDetectionError::InternalServerError(inner) => Error::InternalServerError(inner),
1604            crate::operation::get_segment_detection::GetSegmentDetectionError::InvalidPaginationTokenException(inner) => {
1605                Error::InvalidPaginationTokenException(inner)
1606            }
1607            crate::operation::get_segment_detection::GetSegmentDetectionError::InvalidParameterException(inner) => {
1608                Error::InvalidParameterException(inner)
1609            }
1610            crate::operation::get_segment_detection::GetSegmentDetectionError::ProvisionedThroughputExceededException(inner) => {
1611                Error::ProvisionedThroughputExceededException(inner)
1612            }
1613            crate::operation::get_segment_detection::GetSegmentDetectionError::ResourceNotFoundException(inner) => {
1614                Error::ResourceNotFoundException(inner)
1615            }
1616            crate::operation::get_segment_detection::GetSegmentDetectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1617            crate::operation::get_segment_detection::GetSegmentDetectionError::Unhandled(inner) => Error::Unhandled(inner),
1618        }
1619    }
1620}
1621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_text_detection::GetTextDetectionError, R>> for Error
1622where
1623    R: Send + Sync + std::fmt::Debug + 'static,
1624{
1625    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_text_detection::GetTextDetectionError, R>) -> Self {
1626        match err {
1627            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1628            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1629                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1630                source: err.into(),
1631            }),
1632        }
1633    }
1634}
1635impl From<crate::operation::get_text_detection::GetTextDetectionError> for Error {
1636    fn from(err: crate::operation::get_text_detection::GetTextDetectionError) -> Self {
1637        match err {
1638            crate::operation::get_text_detection::GetTextDetectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1639            crate::operation::get_text_detection::GetTextDetectionError::InternalServerError(inner) => Error::InternalServerError(inner),
1640            crate::operation::get_text_detection::GetTextDetectionError::InvalidPaginationTokenException(inner) => {
1641                Error::InvalidPaginationTokenException(inner)
1642            }
1643            crate::operation::get_text_detection::GetTextDetectionError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1644            crate::operation::get_text_detection::GetTextDetectionError::ProvisionedThroughputExceededException(inner) => {
1645                Error::ProvisionedThroughputExceededException(inner)
1646            }
1647            crate::operation::get_text_detection::GetTextDetectionError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1648            crate::operation::get_text_detection::GetTextDetectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1649            crate::operation::get_text_detection::GetTextDetectionError::Unhandled(inner) => Error::Unhandled(inner),
1650        }
1651    }
1652}
1653impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::index_faces::IndexFacesError, R>> for Error
1654where
1655    R: Send + Sync + std::fmt::Debug + 'static,
1656{
1657    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::index_faces::IndexFacesError, R>) -> Self {
1658        match err {
1659            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1660            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1661                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1662                source: err.into(),
1663            }),
1664        }
1665    }
1666}
1667impl From<crate::operation::index_faces::IndexFacesError> for Error {
1668    fn from(err: crate::operation::index_faces::IndexFacesError) -> Self {
1669        match err {
1670            crate::operation::index_faces::IndexFacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1671            crate::operation::index_faces::IndexFacesError::ImageTooLargeException(inner) => Error::ImageTooLargeException(inner),
1672            crate::operation::index_faces::IndexFacesError::InternalServerError(inner) => Error::InternalServerError(inner),
1673            crate::operation::index_faces::IndexFacesError::InvalidImageFormatException(inner) => Error::InvalidImageFormatException(inner),
1674            crate::operation::index_faces::IndexFacesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1675            crate::operation::index_faces::IndexFacesError::InvalidS3ObjectException(inner) => Error::InvalidS3ObjectException(inner),
1676            crate::operation::index_faces::IndexFacesError::ProvisionedThroughputExceededException(inner) => {
1677                Error::ProvisionedThroughputExceededException(inner)
1678            }
1679            crate::operation::index_faces::IndexFacesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1680            crate::operation::index_faces::IndexFacesError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1681            crate::operation::index_faces::IndexFacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1682            crate::operation::index_faces::IndexFacesError::Unhandled(inner) => Error::Unhandled(inner),
1683        }
1684    }
1685}
1686impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_collections::ListCollectionsError, R>> for Error
1687where
1688    R: Send + Sync + std::fmt::Debug + 'static,
1689{
1690    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_collections::ListCollectionsError, R>) -> Self {
1691        match err {
1692            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1693            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1694                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1695                source: err.into(),
1696            }),
1697        }
1698    }
1699}
1700impl From<crate::operation::list_collections::ListCollectionsError> for Error {
1701    fn from(err: crate::operation::list_collections::ListCollectionsError) -> Self {
1702        match err {
1703            crate::operation::list_collections::ListCollectionsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1704            crate::operation::list_collections::ListCollectionsError::InternalServerError(inner) => Error::InternalServerError(inner),
1705            crate::operation::list_collections::ListCollectionsError::InvalidPaginationTokenException(inner) => {
1706                Error::InvalidPaginationTokenException(inner)
1707            }
1708            crate::operation::list_collections::ListCollectionsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1709            crate::operation::list_collections::ListCollectionsError::ProvisionedThroughputExceededException(inner) => {
1710                Error::ProvisionedThroughputExceededException(inner)
1711            }
1712            crate::operation::list_collections::ListCollectionsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1713            crate::operation::list_collections::ListCollectionsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1714            crate::operation::list_collections::ListCollectionsError::Unhandled(inner) => Error::Unhandled(inner),
1715        }
1716    }
1717}
1718impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_entries::ListDatasetEntriesError, R>> for Error
1719where
1720    R: Send + Sync + std::fmt::Debug + 'static,
1721{
1722    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_entries::ListDatasetEntriesError, R>) -> Self {
1723        match err {
1724            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1725            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1726                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1727                source: err.into(),
1728            }),
1729        }
1730    }
1731}
1732impl From<crate::operation::list_dataset_entries::ListDatasetEntriesError> for Error {
1733    fn from(err: crate::operation::list_dataset_entries::ListDatasetEntriesError) -> Self {
1734        match err {
1735            crate::operation::list_dataset_entries::ListDatasetEntriesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1736            crate::operation::list_dataset_entries::ListDatasetEntriesError::InternalServerError(inner) => Error::InternalServerError(inner),
1737            crate::operation::list_dataset_entries::ListDatasetEntriesError::InvalidPaginationTokenException(inner) => {
1738                Error::InvalidPaginationTokenException(inner)
1739            }
1740            crate::operation::list_dataset_entries::ListDatasetEntriesError::InvalidParameterException(inner) => {
1741                Error::InvalidParameterException(inner)
1742            }
1743            crate::operation::list_dataset_entries::ListDatasetEntriesError::ProvisionedThroughputExceededException(inner) => {
1744                Error::ProvisionedThroughputExceededException(inner)
1745            }
1746            crate::operation::list_dataset_entries::ListDatasetEntriesError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1747            crate::operation::list_dataset_entries::ListDatasetEntriesError::ResourceNotFoundException(inner) => {
1748                Error::ResourceNotFoundException(inner)
1749            }
1750            crate::operation::list_dataset_entries::ListDatasetEntriesError::ResourceNotReadyException(inner) => {
1751                Error::ResourceNotReadyException(inner)
1752            }
1753            crate::operation::list_dataset_entries::ListDatasetEntriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1754            crate::operation::list_dataset_entries::ListDatasetEntriesError::Unhandled(inner) => Error::Unhandled(inner),
1755        }
1756    }
1757}
1758impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_labels::ListDatasetLabelsError, R>> for Error
1759where
1760    R: Send + Sync + std::fmt::Debug + 'static,
1761{
1762    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_dataset_labels::ListDatasetLabelsError, R>) -> Self {
1763        match err {
1764            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1765            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1766                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1767                source: err.into(),
1768            }),
1769        }
1770    }
1771}
1772impl From<crate::operation::list_dataset_labels::ListDatasetLabelsError> for Error {
1773    fn from(err: crate::operation::list_dataset_labels::ListDatasetLabelsError) -> Self {
1774        match err {
1775            crate::operation::list_dataset_labels::ListDatasetLabelsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1776            crate::operation::list_dataset_labels::ListDatasetLabelsError::InternalServerError(inner) => Error::InternalServerError(inner),
1777            crate::operation::list_dataset_labels::ListDatasetLabelsError::InvalidPaginationTokenException(inner) => {
1778                Error::InvalidPaginationTokenException(inner)
1779            }
1780            crate::operation::list_dataset_labels::ListDatasetLabelsError::InvalidParameterException(inner) => {
1781                Error::InvalidParameterException(inner)
1782            }
1783            crate::operation::list_dataset_labels::ListDatasetLabelsError::ProvisionedThroughputExceededException(inner) => {
1784                Error::ProvisionedThroughputExceededException(inner)
1785            }
1786            crate::operation::list_dataset_labels::ListDatasetLabelsError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1787            crate::operation::list_dataset_labels::ListDatasetLabelsError::ResourceNotFoundException(inner) => {
1788                Error::ResourceNotFoundException(inner)
1789            }
1790            crate::operation::list_dataset_labels::ListDatasetLabelsError::ResourceNotReadyException(inner) => {
1791                Error::ResourceNotReadyException(inner)
1792            }
1793            crate::operation::list_dataset_labels::ListDatasetLabelsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1794            crate::operation::list_dataset_labels::ListDatasetLabelsError::Unhandled(inner) => Error::Unhandled(inner),
1795        }
1796    }
1797}
1798impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_faces::ListFacesError, R>> for Error
1799where
1800    R: Send + Sync + std::fmt::Debug + 'static,
1801{
1802    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_faces::ListFacesError, R>) -> Self {
1803        match err {
1804            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1805            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1806                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1807                source: err.into(),
1808            }),
1809        }
1810    }
1811}
1812impl From<crate::operation::list_faces::ListFacesError> for Error {
1813    fn from(err: crate::operation::list_faces::ListFacesError) -> Self {
1814        match err {
1815            crate::operation::list_faces::ListFacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1816            crate::operation::list_faces::ListFacesError::InternalServerError(inner) => Error::InternalServerError(inner),
1817            crate::operation::list_faces::ListFacesError::InvalidPaginationTokenException(inner) => Error::InvalidPaginationTokenException(inner),
1818            crate::operation::list_faces::ListFacesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1819            crate::operation::list_faces::ListFacesError::ProvisionedThroughputExceededException(inner) => {
1820                Error::ProvisionedThroughputExceededException(inner)
1821            }
1822            crate::operation::list_faces::ListFacesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1823            crate::operation::list_faces::ListFacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1824            crate::operation::list_faces::ListFacesError::Unhandled(inner) => Error::Unhandled(inner),
1825        }
1826    }
1827}
1828impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_media_analysis_jobs::ListMediaAnalysisJobsError, R>> for Error
1829where
1830    R: Send + Sync + std::fmt::Debug + 'static,
1831{
1832    fn from(
1833        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_media_analysis_jobs::ListMediaAnalysisJobsError, R>,
1834    ) -> Self {
1835        match err {
1836            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1837            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1838                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1839                source: err.into(),
1840            }),
1841        }
1842    }
1843}
1844impl From<crate::operation::list_media_analysis_jobs::ListMediaAnalysisJobsError> for Error {
1845    fn from(err: crate::operation::list_media_analysis_jobs::ListMediaAnalysisJobsError) -> Self {
1846        match err {
1847            crate::operation::list_media_analysis_jobs::ListMediaAnalysisJobsError::AccessDeniedException(inner) => {
1848                Error::AccessDeniedException(inner)
1849            }
1850            crate::operation::list_media_analysis_jobs::ListMediaAnalysisJobsError::InternalServerError(inner) => Error::InternalServerError(inner),
1851            crate::operation::list_media_analysis_jobs::ListMediaAnalysisJobsError::InvalidPaginationTokenException(inner) => {
1852                Error::InvalidPaginationTokenException(inner)
1853            }
1854            crate::operation::list_media_analysis_jobs::ListMediaAnalysisJobsError::InvalidParameterException(inner) => {
1855                Error::InvalidParameterException(inner)
1856            }
1857            crate::operation::list_media_analysis_jobs::ListMediaAnalysisJobsError::ProvisionedThroughputExceededException(inner) => {
1858                Error::ProvisionedThroughputExceededException(inner)
1859            }
1860            crate::operation::list_media_analysis_jobs::ListMediaAnalysisJobsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1861            crate::operation::list_media_analysis_jobs::ListMediaAnalysisJobsError::Unhandled(inner) => Error::Unhandled(inner),
1862        }
1863    }
1864}
1865impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_project_policies::ListProjectPoliciesError, R>> for Error
1866where
1867    R: Send + Sync + std::fmt::Debug + 'static,
1868{
1869    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_project_policies::ListProjectPoliciesError, R>) -> Self {
1870        match err {
1871            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1872            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1873                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1874                source: err.into(),
1875            }),
1876        }
1877    }
1878}
1879impl From<crate::operation::list_project_policies::ListProjectPoliciesError> for Error {
1880    fn from(err: crate::operation::list_project_policies::ListProjectPoliciesError) -> Self {
1881        match err {
1882            crate::operation::list_project_policies::ListProjectPoliciesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1883            crate::operation::list_project_policies::ListProjectPoliciesError::InternalServerError(inner) => Error::InternalServerError(inner),
1884            crate::operation::list_project_policies::ListProjectPoliciesError::InvalidPaginationTokenException(inner) => {
1885                Error::InvalidPaginationTokenException(inner)
1886            }
1887            crate::operation::list_project_policies::ListProjectPoliciesError::InvalidParameterException(inner) => {
1888                Error::InvalidParameterException(inner)
1889            }
1890            crate::operation::list_project_policies::ListProjectPoliciesError::ProvisionedThroughputExceededException(inner) => {
1891                Error::ProvisionedThroughputExceededException(inner)
1892            }
1893            crate::operation::list_project_policies::ListProjectPoliciesError::ResourceNotFoundException(inner) => {
1894                Error::ResourceNotFoundException(inner)
1895            }
1896            crate::operation::list_project_policies::ListProjectPoliciesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1897            crate::operation::list_project_policies::ListProjectPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1898        }
1899    }
1900}
1901impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stream_processors::ListStreamProcessorsError, R>> for Error
1902where
1903    R: Send + Sync + std::fmt::Debug + 'static,
1904{
1905    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stream_processors::ListStreamProcessorsError, R>) -> Self {
1906        match err {
1907            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1908            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1909                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1910                source: err.into(),
1911            }),
1912        }
1913    }
1914}
1915impl From<crate::operation::list_stream_processors::ListStreamProcessorsError> for Error {
1916    fn from(err: crate::operation::list_stream_processors::ListStreamProcessorsError) -> Self {
1917        match err {
1918            crate::operation::list_stream_processors::ListStreamProcessorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1919            crate::operation::list_stream_processors::ListStreamProcessorsError::InternalServerError(inner) => Error::InternalServerError(inner),
1920            crate::operation::list_stream_processors::ListStreamProcessorsError::InvalidPaginationTokenException(inner) => {
1921                Error::InvalidPaginationTokenException(inner)
1922            }
1923            crate::operation::list_stream_processors::ListStreamProcessorsError::InvalidParameterException(inner) => {
1924                Error::InvalidParameterException(inner)
1925            }
1926            crate::operation::list_stream_processors::ListStreamProcessorsError::ProvisionedThroughputExceededException(inner) => {
1927                Error::ProvisionedThroughputExceededException(inner)
1928            }
1929            crate::operation::list_stream_processors::ListStreamProcessorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1930            crate::operation::list_stream_processors::ListStreamProcessorsError::Unhandled(inner) => Error::Unhandled(inner),
1931        }
1932    }
1933}
1934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1935where
1936    R: Send + Sync + std::fmt::Debug + 'static,
1937{
1938    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1939        match err {
1940            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1941            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1942                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1943                source: err.into(),
1944            }),
1945        }
1946    }
1947}
1948impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1949    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1950        match err {
1951            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1952            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
1953            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidParameterException(inner) => {
1954                Error::InvalidParameterException(inner)
1955            }
1956            crate::operation::list_tags_for_resource::ListTagsForResourceError::ProvisionedThroughputExceededException(inner) => {
1957                Error::ProvisionedThroughputExceededException(inner)
1958            }
1959            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1960                Error::ResourceNotFoundException(inner)
1961            }
1962            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1963            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1964        }
1965    }
1966}
1967impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_users::ListUsersError, R>> for Error
1968where
1969    R: Send + Sync + std::fmt::Debug + 'static,
1970{
1971    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_users::ListUsersError, R>) -> Self {
1972        match err {
1973            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1974            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1975                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1976                source: err.into(),
1977            }),
1978        }
1979    }
1980}
1981impl From<crate::operation::list_users::ListUsersError> for Error {
1982    fn from(err: crate::operation::list_users::ListUsersError) -> Self {
1983        match err {
1984            crate::operation::list_users::ListUsersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1985            crate::operation::list_users::ListUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
1986            crate::operation::list_users::ListUsersError::InvalidPaginationTokenException(inner) => Error::InvalidPaginationTokenException(inner),
1987            crate::operation::list_users::ListUsersError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1988            crate::operation::list_users::ListUsersError::ProvisionedThroughputExceededException(inner) => {
1989                Error::ProvisionedThroughputExceededException(inner)
1990            }
1991            crate::operation::list_users::ListUsersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1992            crate::operation::list_users::ListUsersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1993            crate::operation::list_users::ListUsersError::Unhandled(inner) => Error::Unhandled(inner),
1994        }
1995    }
1996}
1997impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_project_policy::PutProjectPolicyError, R>> for Error
1998where
1999    R: Send + Sync + std::fmt::Debug + 'static,
2000{
2001    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_project_policy::PutProjectPolicyError, R>) -> Self {
2002        match err {
2003            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2004            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2005                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2006                source: err.into(),
2007            }),
2008        }
2009    }
2010}
2011impl From<crate::operation::put_project_policy::PutProjectPolicyError> for Error {
2012    fn from(err: crate::operation::put_project_policy::PutProjectPolicyError) -> Self {
2013        match err {
2014            crate::operation::put_project_policy::PutProjectPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2015            crate::operation::put_project_policy::PutProjectPolicyError::InternalServerError(inner) => Error::InternalServerError(inner),
2016            crate::operation::put_project_policy::PutProjectPolicyError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2017            crate::operation::put_project_policy::PutProjectPolicyError::InvalidPolicyRevisionIdException(inner) => {
2018                Error::InvalidPolicyRevisionIdException(inner)
2019            }
2020            crate::operation::put_project_policy::PutProjectPolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2021            crate::operation::put_project_policy::PutProjectPolicyError::MalformedPolicyDocumentException(inner) => {
2022                Error::MalformedPolicyDocumentException(inner)
2023            }
2024            crate::operation::put_project_policy::PutProjectPolicyError::ProvisionedThroughputExceededException(inner) => {
2025                Error::ProvisionedThroughputExceededException(inner)
2026            }
2027            crate::operation::put_project_policy::PutProjectPolicyError::ResourceAlreadyExistsException(inner) => {
2028                Error::ResourceAlreadyExistsException(inner)
2029            }
2030            crate::operation::put_project_policy::PutProjectPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2031            crate::operation::put_project_policy::PutProjectPolicyError::ServiceQuotaExceededException(inner) => {
2032                Error::ServiceQuotaExceededException(inner)
2033            }
2034            crate::operation::put_project_policy::PutProjectPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2035            crate::operation::put_project_policy::PutProjectPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2036        }
2037    }
2038}
2039impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::recognize_celebrities::RecognizeCelebritiesError, R>> for Error
2040where
2041    R: Send + Sync + std::fmt::Debug + 'static,
2042{
2043    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::recognize_celebrities::RecognizeCelebritiesError, R>) -> Self {
2044        match err {
2045            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2046            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2047                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2048                source: err.into(),
2049            }),
2050        }
2051    }
2052}
2053impl From<crate::operation::recognize_celebrities::RecognizeCelebritiesError> for Error {
2054    fn from(err: crate::operation::recognize_celebrities::RecognizeCelebritiesError) -> Self {
2055        match err {
2056            crate::operation::recognize_celebrities::RecognizeCelebritiesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2057            crate::operation::recognize_celebrities::RecognizeCelebritiesError::ImageTooLargeException(inner) => Error::ImageTooLargeException(inner),
2058            crate::operation::recognize_celebrities::RecognizeCelebritiesError::InternalServerError(inner) => Error::InternalServerError(inner),
2059            crate::operation::recognize_celebrities::RecognizeCelebritiesError::InvalidImageFormatException(inner) => {
2060                Error::InvalidImageFormatException(inner)
2061            }
2062            crate::operation::recognize_celebrities::RecognizeCelebritiesError::InvalidParameterException(inner) => {
2063                Error::InvalidParameterException(inner)
2064            }
2065            crate::operation::recognize_celebrities::RecognizeCelebritiesError::InvalidS3ObjectException(inner) => {
2066                Error::InvalidS3ObjectException(inner)
2067            }
2068            crate::operation::recognize_celebrities::RecognizeCelebritiesError::ProvisionedThroughputExceededException(inner) => {
2069                Error::ProvisionedThroughputExceededException(inner)
2070            }
2071            crate::operation::recognize_celebrities::RecognizeCelebritiesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2072            crate::operation::recognize_celebrities::RecognizeCelebritiesError::Unhandled(inner) => Error::Unhandled(inner),
2073        }
2074    }
2075}
2076impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_faces::SearchFacesError, R>> for Error
2077where
2078    R: Send + Sync + std::fmt::Debug + 'static,
2079{
2080    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_faces::SearchFacesError, R>) -> Self {
2081        match err {
2082            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2083            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2084                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2085                source: err.into(),
2086            }),
2087        }
2088    }
2089}
2090impl From<crate::operation::search_faces::SearchFacesError> for Error {
2091    fn from(err: crate::operation::search_faces::SearchFacesError) -> Self {
2092        match err {
2093            crate::operation::search_faces::SearchFacesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2094            crate::operation::search_faces::SearchFacesError::InternalServerError(inner) => Error::InternalServerError(inner),
2095            crate::operation::search_faces::SearchFacesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2096            crate::operation::search_faces::SearchFacesError::ProvisionedThroughputExceededException(inner) => {
2097                Error::ProvisionedThroughputExceededException(inner)
2098            }
2099            crate::operation::search_faces::SearchFacesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2100            crate::operation::search_faces::SearchFacesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2101            crate::operation::search_faces::SearchFacesError::Unhandled(inner) => Error::Unhandled(inner),
2102        }
2103    }
2104}
2105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_faces_by_image::SearchFacesByImageError, R>> for Error
2106where
2107    R: Send + Sync + std::fmt::Debug + 'static,
2108{
2109    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_faces_by_image::SearchFacesByImageError, R>) -> Self {
2110        match err {
2111            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2112            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2113                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2114                source: err.into(),
2115            }),
2116        }
2117    }
2118}
2119impl From<crate::operation::search_faces_by_image::SearchFacesByImageError> for Error {
2120    fn from(err: crate::operation::search_faces_by_image::SearchFacesByImageError) -> Self {
2121        match err {
2122            crate::operation::search_faces_by_image::SearchFacesByImageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2123            crate::operation::search_faces_by_image::SearchFacesByImageError::ImageTooLargeException(inner) => Error::ImageTooLargeException(inner),
2124            crate::operation::search_faces_by_image::SearchFacesByImageError::InternalServerError(inner) => Error::InternalServerError(inner),
2125            crate::operation::search_faces_by_image::SearchFacesByImageError::InvalidImageFormatException(inner) => {
2126                Error::InvalidImageFormatException(inner)
2127            }
2128            crate::operation::search_faces_by_image::SearchFacesByImageError::InvalidParameterException(inner) => {
2129                Error::InvalidParameterException(inner)
2130            }
2131            crate::operation::search_faces_by_image::SearchFacesByImageError::InvalidS3ObjectException(inner) => {
2132                Error::InvalidS3ObjectException(inner)
2133            }
2134            crate::operation::search_faces_by_image::SearchFacesByImageError::ProvisionedThroughputExceededException(inner) => {
2135                Error::ProvisionedThroughputExceededException(inner)
2136            }
2137            crate::operation::search_faces_by_image::SearchFacesByImageError::ResourceNotFoundException(inner) => {
2138                Error::ResourceNotFoundException(inner)
2139            }
2140            crate::operation::search_faces_by_image::SearchFacesByImageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2141            crate::operation::search_faces_by_image::SearchFacesByImageError::Unhandled(inner) => Error::Unhandled(inner),
2142        }
2143    }
2144}
2145impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_users::SearchUsersError, R>> for Error
2146where
2147    R: Send + Sync + std::fmt::Debug + 'static,
2148{
2149    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_users::SearchUsersError, R>) -> Self {
2150        match err {
2151            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2152            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2153                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2154                source: err.into(),
2155            }),
2156        }
2157    }
2158}
2159impl From<crate::operation::search_users::SearchUsersError> for Error {
2160    fn from(err: crate::operation::search_users::SearchUsersError) -> Self {
2161        match err {
2162            crate::operation::search_users::SearchUsersError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2163            crate::operation::search_users::SearchUsersError::InternalServerError(inner) => Error::InternalServerError(inner),
2164            crate::operation::search_users::SearchUsersError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2165            crate::operation::search_users::SearchUsersError::ProvisionedThroughputExceededException(inner) => {
2166                Error::ProvisionedThroughputExceededException(inner)
2167            }
2168            crate::operation::search_users::SearchUsersError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2169            crate::operation::search_users::SearchUsersError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2170            crate::operation::search_users::SearchUsersError::Unhandled(inner) => Error::Unhandled(inner),
2171        }
2172    }
2173}
2174impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_users_by_image::SearchUsersByImageError, R>> for Error
2175where
2176    R: Send + Sync + std::fmt::Debug + 'static,
2177{
2178    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::search_users_by_image::SearchUsersByImageError, R>) -> Self {
2179        match err {
2180            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2181            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2182                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2183                source: err.into(),
2184            }),
2185        }
2186    }
2187}
2188impl From<crate::operation::search_users_by_image::SearchUsersByImageError> for Error {
2189    fn from(err: crate::operation::search_users_by_image::SearchUsersByImageError) -> Self {
2190        match err {
2191            crate::operation::search_users_by_image::SearchUsersByImageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2192            crate::operation::search_users_by_image::SearchUsersByImageError::ImageTooLargeException(inner) => Error::ImageTooLargeException(inner),
2193            crate::operation::search_users_by_image::SearchUsersByImageError::InternalServerError(inner) => Error::InternalServerError(inner),
2194            crate::operation::search_users_by_image::SearchUsersByImageError::InvalidImageFormatException(inner) => {
2195                Error::InvalidImageFormatException(inner)
2196            }
2197            crate::operation::search_users_by_image::SearchUsersByImageError::InvalidParameterException(inner) => {
2198                Error::InvalidParameterException(inner)
2199            }
2200            crate::operation::search_users_by_image::SearchUsersByImageError::InvalidS3ObjectException(inner) => {
2201                Error::InvalidS3ObjectException(inner)
2202            }
2203            crate::operation::search_users_by_image::SearchUsersByImageError::ProvisionedThroughputExceededException(inner) => {
2204                Error::ProvisionedThroughputExceededException(inner)
2205            }
2206            crate::operation::search_users_by_image::SearchUsersByImageError::ResourceNotFoundException(inner) => {
2207                Error::ResourceNotFoundException(inner)
2208            }
2209            crate::operation::search_users_by_image::SearchUsersByImageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2210            crate::operation::search_users_by_image::SearchUsersByImageError::Unhandled(inner) => Error::Unhandled(inner),
2211        }
2212    }
2213}
2214impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError, R>>
2215    for Error
2216where
2217    R: Send + Sync + std::fmt::Debug + 'static,
2218{
2219    fn from(
2220        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError, R>,
2221    ) -> Self {
2222        match err {
2223            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2224            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2225                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2226                source: err.into(),
2227            }),
2228        }
2229    }
2230}
2231impl From<crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError> for Error {
2232    fn from(err: crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError) -> Self {
2233        match err {
2234            crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError::AccessDeniedException(inner) => {
2235                Error::AccessDeniedException(inner)
2236            }
2237            crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError::IdempotentParameterMismatchException(inner) => {
2238                Error::IdempotentParameterMismatchException(inner)
2239            }
2240            crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError::InternalServerError(inner) => {
2241                Error::InternalServerError(inner)
2242            }
2243            crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError::InvalidParameterException(inner) => {
2244                Error::InvalidParameterException(inner)
2245            }
2246            crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError::InvalidS3ObjectException(inner) => {
2247                Error::InvalidS3ObjectException(inner)
2248            }
2249            crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError::LimitExceededException(inner) => {
2250                Error::LimitExceededException(inner)
2251            }
2252            crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError::ProvisionedThroughputExceededException(inner) => {
2253                Error::ProvisionedThroughputExceededException(inner)
2254            }
2255            crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError::ThrottlingException(inner) => {
2256                Error::ThrottlingException(inner)
2257            }
2258            crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError::VideoTooLargeException(inner) => {
2259                Error::VideoTooLargeException(inner)
2260            }
2261            crate::operation::start_celebrity_recognition::StartCelebrityRecognitionError::Unhandled(inner) => Error::Unhandled(inner),
2262        }
2263    }
2264}
2265impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_content_moderation::StartContentModerationError, R>> for Error
2266where
2267    R: Send + Sync + std::fmt::Debug + 'static,
2268{
2269    fn from(
2270        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_content_moderation::StartContentModerationError, R>,
2271    ) -> Self {
2272        match err {
2273            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2274            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2275                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2276                source: err.into(),
2277            }),
2278        }
2279    }
2280}
2281impl From<crate::operation::start_content_moderation::StartContentModerationError> for Error {
2282    fn from(err: crate::operation::start_content_moderation::StartContentModerationError) -> Self {
2283        match err {
2284            crate::operation::start_content_moderation::StartContentModerationError::AccessDeniedException(inner) => {
2285                Error::AccessDeniedException(inner)
2286            }
2287            crate::operation::start_content_moderation::StartContentModerationError::IdempotentParameterMismatchException(inner) => {
2288                Error::IdempotentParameterMismatchException(inner)
2289            }
2290            crate::operation::start_content_moderation::StartContentModerationError::InternalServerError(inner) => Error::InternalServerError(inner),
2291            crate::operation::start_content_moderation::StartContentModerationError::InvalidParameterException(inner) => {
2292                Error::InvalidParameterException(inner)
2293            }
2294            crate::operation::start_content_moderation::StartContentModerationError::InvalidS3ObjectException(inner) => {
2295                Error::InvalidS3ObjectException(inner)
2296            }
2297            crate::operation::start_content_moderation::StartContentModerationError::LimitExceededException(inner) => {
2298                Error::LimitExceededException(inner)
2299            }
2300            crate::operation::start_content_moderation::StartContentModerationError::ProvisionedThroughputExceededException(inner) => {
2301                Error::ProvisionedThroughputExceededException(inner)
2302            }
2303            crate::operation::start_content_moderation::StartContentModerationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2304            crate::operation::start_content_moderation::StartContentModerationError::VideoTooLargeException(inner) => {
2305                Error::VideoTooLargeException(inner)
2306            }
2307            crate::operation::start_content_moderation::StartContentModerationError::Unhandled(inner) => Error::Unhandled(inner),
2308        }
2309    }
2310}
2311impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_face_detection::StartFaceDetectionError, R>> for Error
2312where
2313    R: Send + Sync + std::fmt::Debug + 'static,
2314{
2315    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_face_detection::StartFaceDetectionError, R>) -> Self {
2316        match err {
2317            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2318            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2319                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2320                source: err.into(),
2321            }),
2322        }
2323    }
2324}
2325impl From<crate::operation::start_face_detection::StartFaceDetectionError> for Error {
2326    fn from(err: crate::operation::start_face_detection::StartFaceDetectionError) -> Self {
2327        match err {
2328            crate::operation::start_face_detection::StartFaceDetectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2329            crate::operation::start_face_detection::StartFaceDetectionError::IdempotentParameterMismatchException(inner) => {
2330                Error::IdempotentParameterMismatchException(inner)
2331            }
2332            crate::operation::start_face_detection::StartFaceDetectionError::InternalServerError(inner) => Error::InternalServerError(inner),
2333            crate::operation::start_face_detection::StartFaceDetectionError::InvalidParameterException(inner) => {
2334                Error::InvalidParameterException(inner)
2335            }
2336            crate::operation::start_face_detection::StartFaceDetectionError::InvalidS3ObjectException(inner) => {
2337                Error::InvalidS3ObjectException(inner)
2338            }
2339            crate::operation::start_face_detection::StartFaceDetectionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2340            crate::operation::start_face_detection::StartFaceDetectionError::ProvisionedThroughputExceededException(inner) => {
2341                Error::ProvisionedThroughputExceededException(inner)
2342            }
2343            crate::operation::start_face_detection::StartFaceDetectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2344            crate::operation::start_face_detection::StartFaceDetectionError::VideoTooLargeException(inner) => Error::VideoTooLargeException(inner),
2345            crate::operation::start_face_detection::StartFaceDetectionError::Unhandled(inner) => Error::Unhandled(inner),
2346        }
2347    }
2348}
2349impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_face_search::StartFaceSearchError, R>> for Error
2350where
2351    R: Send + Sync + std::fmt::Debug + 'static,
2352{
2353    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_face_search::StartFaceSearchError, R>) -> Self {
2354        match err {
2355            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2356            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2357                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2358                source: err.into(),
2359            }),
2360        }
2361    }
2362}
2363impl From<crate::operation::start_face_search::StartFaceSearchError> for Error {
2364    fn from(err: crate::operation::start_face_search::StartFaceSearchError) -> Self {
2365        match err {
2366            crate::operation::start_face_search::StartFaceSearchError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2367            crate::operation::start_face_search::StartFaceSearchError::IdempotentParameterMismatchException(inner) => {
2368                Error::IdempotentParameterMismatchException(inner)
2369            }
2370            crate::operation::start_face_search::StartFaceSearchError::InternalServerError(inner) => Error::InternalServerError(inner),
2371            crate::operation::start_face_search::StartFaceSearchError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2372            crate::operation::start_face_search::StartFaceSearchError::InvalidS3ObjectException(inner) => Error::InvalidS3ObjectException(inner),
2373            crate::operation::start_face_search::StartFaceSearchError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2374            crate::operation::start_face_search::StartFaceSearchError::ProvisionedThroughputExceededException(inner) => {
2375                Error::ProvisionedThroughputExceededException(inner)
2376            }
2377            crate::operation::start_face_search::StartFaceSearchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2378            crate::operation::start_face_search::StartFaceSearchError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2379            crate::operation::start_face_search::StartFaceSearchError::VideoTooLargeException(inner) => Error::VideoTooLargeException(inner),
2380            crate::operation::start_face_search::StartFaceSearchError::Unhandled(inner) => Error::Unhandled(inner),
2381        }
2382    }
2383}
2384impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_label_detection::StartLabelDetectionError, R>> for Error
2385where
2386    R: Send + Sync + std::fmt::Debug + 'static,
2387{
2388    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_label_detection::StartLabelDetectionError, R>) -> Self {
2389        match err {
2390            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2391            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2392                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2393                source: err.into(),
2394            }),
2395        }
2396    }
2397}
2398impl From<crate::operation::start_label_detection::StartLabelDetectionError> for Error {
2399    fn from(err: crate::operation::start_label_detection::StartLabelDetectionError) -> Self {
2400        match err {
2401            crate::operation::start_label_detection::StartLabelDetectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2402            crate::operation::start_label_detection::StartLabelDetectionError::IdempotentParameterMismatchException(inner) => {
2403                Error::IdempotentParameterMismatchException(inner)
2404            }
2405            crate::operation::start_label_detection::StartLabelDetectionError::InternalServerError(inner) => Error::InternalServerError(inner),
2406            crate::operation::start_label_detection::StartLabelDetectionError::InvalidParameterException(inner) => {
2407                Error::InvalidParameterException(inner)
2408            }
2409            crate::operation::start_label_detection::StartLabelDetectionError::InvalidS3ObjectException(inner) => {
2410                Error::InvalidS3ObjectException(inner)
2411            }
2412            crate::operation::start_label_detection::StartLabelDetectionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2413            crate::operation::start_label_detection::StartLabelDetectionError::ProvisionedThroughputExceededException(inner) => {
2414                Error::ProvisionedThroughputExceededException(inner)
2415            }
2416            crate::operation::start_label_detection::StartLabelDetectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2417            crate::operation::start_label_detection::StartLabelDetectionError::VideoTooLargeException(inner) => Error::VideoTooLargeException(inner),
2418            crate::operation::start_label_detection::StartLabelDetectionError::Unhandled(inner) => Error::Unhandled(inner),
2419        }
2420    }
2421}
2422impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_media_analysis_job::StartMediaAnalysisJobError, R>> for Error
2423where
2424    R: Send + Sync + std::fmt::Debug + 'static,
2425{
2426    fn from(
2427        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_media_analysis_job::StartMediaAnalysisJobError, R>,
2428    ) -> Self {
2429        match err {
2430            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2431            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2432                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2433                source: err.into(),
2434            }),
2435        }
2436    }
2437}
2438impl From<crate::operation::start_media_analysis_job::StartMediaAnalysisJobError> for Error {
2439    fn from(err: crate::operation::start_media_analysis_job::StartMediaAnalysisJobError) -> Self {
2440        match err {
2441            crate::operation::start_media_analysis_job::StartMediaAnalysisJobError::AccessDeniedException(inner) => {
2442                Error::AccessDeniedException(inner)
2443            }
2444            crate::operation::start_media_analysis_job::StartMediaAnalysisJobError::IdempotentParameterMismatchException(inner) => {
2445                Error::IdempotentParameterMismatchException(inner)
2446            }
2447            crate::operation::start_media_analysis_job::StartMediaAnalysisJobError::InternalServerError(inner) => Error::InternalServerError(inner),
2448            crate::operation::start_media_analysis_job::StartMediaAnalysisJobError::InvalidManifestException(inner) => {
2449                Error::InvalidManifestException(inner)
2450            }
2451            crate::operation::start_media_analysis_job::StartMediaAnalysisJobError::InvalidParameterException(inner) => {
2452                Error::InvalidParameterException(inner)
2453            }
2454            crate::operation::start_media_analysis_job::StartMediaAnalysisJobError::InvalidS3ObjectException(inner) => {
2455                Error::InvalidS3ObjectException(inner)
2456            }
2457            crate::operation::start_media_analysis_job::StartMediaAnalysisJobError::LimitExceededException(inner) => {
2458                Error::LimitExceededException(inner)
2459            }
2460            crate::operation::start_media_analysis_job::StartMediaAnalysisJobError::ProvisionedThroughputExceededException(inner) => {
2461                Error::ProvisionedThroughputExceededException(inner)
2462            }
2463            crate::operation::start_media_analysis_job::StartMediaAnalysisJobError::ResourceNotFoundException(inner) => {
2464                Error::ResourceNotFoundException(inner)
2465            }
2466            crate::operation::start_media_analysis_job::StartMediaAnalysisJobError::ResourceNotReadyException(inner) => {
2467                Error::ResourceNotReadyException(inner)
2468            }
2469            crate::operation::start_media_analysis_job::StartMediaAnalysisJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2470            crate::operation::start_media_analysis_job::StartMediaAnalysisJobError::Unhandled(inner) => Error::Unhandled(inner),
2471        }
2472    }
2473}
2474impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_person_tracking::StartPersonTrackingError, R>> for Error
2475where
2476    R: Send + Sync + std::fmt::Debug + 'static,
2477{
2478    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_person_tracking::StartPersonTrackingError, R>) -> Self {
2479        match err {
2480            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2481            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2482                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2483                source: err.into(),
2484            }),
2485        }
2486    }
2487}
2488impl From<crate::operation::start_person_tracking::StartPersonTrackingError> for Error {
2489    fn from(err: crate::operation::start_person_tracking::StartPersonTrackingError) -> Self {
2490        match err {
2491            crate::operation::start_person_tracking::StartPersonTrackingError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2492            crate::operation::start_person_tracking::StartPersonTrackingError::IdempotentParameterMismatchException(inner) => {
2493                Error::IdempotentParameterMismatchException(inner)
2494            }
2495            crate::operation::start_person_tracking::StartPersonTrackingError::InternalServerError(inner) => Error::InternalServerError(inner),
2496            crate::operation::start_person_tracking::StartPersonTrackingError::InvalidParameterException(inner) => {
2497                Error::InvalidParameterException(inner)
2498            }
2499            crate::operation::start_person_tracking::StartPersonTrackingError::InvalidS3ObjectException(inner) => {
2500                Error::InvalidS3ObjectException(inner)
2501            }
2502            crate::operation::start_person_tracking::StartPersonTrackingError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2503            crate::operation::start_person_tracking::StartPersonTrackingError::ProvisionedThroughputExceededException(inner) => {
2504                Error::ProvisionedThroughputExceededException(inner)
2505            }
2506            crate::operation::start_person_tracking::StartPersonTrackingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2507            crate::operation::start_person_tracking::StartPersonTrackingError::VideoTooLargeException(inner) => Error::VideoTooLargeException(inner),
2508            crate::operation::start_person_tracking::StartPersonTrackingError::Unhandled(inner) => Error::Unhandled(inner),
2509        }
2510    }
2511}
2512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_project_version::StartProjectVersionError, R>> for Error
2513where
2514    R: Send + Sync + std::fmt::Debug + 'static,
2515{
2516    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_project_version::StartProjectVersionError, R>) -> Self {
2517        match err {
2518            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2519            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2520                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2521                source: err.into(),
2522            }),
2523        }
2524    }
2525}
2526impl From<crate::operation::start_project_version::StartProjectVersionError> for Error {
2527    fn from(err: crate::operation::start_project_version::StartProjectVersionError) -> Self {
2528        match err {
2529            crate::operation::start_project_version::StartProjectVersionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2530            crate::operation::start_project_version::StartProjectVersionError::InternalServerError(inner) => Error::InternalServerError(inner),
2531            crate::operation::start_project_version::StartProjectVersionError::InvalidParameterException(inner) => {
2532                Error::InvalidParameterException(inner)
2533            }
2534            crate::operation::start_project_version::StartProjectVersionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2535            crate::operation::start_project_version::StartProjectVersionError::ProvisionedThroughputExceededException(inner) => {
2536                Error::ProvisionedThroughputExceededException(inner)
2537            }
2538            crate::operation::start_project_version::StartProjectVersionError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
2539            crate::operation::start_project_version::StartProjectVersionError::ResourceNotFoundException(inner) => {
2540                Error::ResourceNotFoundException(inner)
2541            }
2542            crate::operation::start_project_version::StartProjectVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2543            crate::operation::start_project_version::StartProjectVersionError::Unhandled(inner) => Error::Unhandled(inner),
2544        }
2545    }
2546}
2547impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_segment_detection::StartSegmentDetectionError, R>> for Error
2548where
2549    R: Send + Sync + std::fmt::Debug + 'static,
2550{
2551    fn from(
2552        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_segment_detection::StartSegmentDetectionError, R>,
2553    ) -> Self {
2554        match err {
2555            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2556            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2557                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2558                source: err.into(),
2559            }),
2560        }
2561    }
2562}
2563impl From<crate::operation::start_segment_detection::StartSegmentDetectionError> for Error {
2564    fn from(err: crate::operation::start_segment_detection::StartSegmentDetectionError) -> Self {
2565        match err {
2566            crate::operation::start_segment_detection::StartSegmentDetectionError::AccessDeniedException(inner) => {
2567                Error::AccessDeniedException(inner)
2568            }
2569            crate::operation::start_segment_detection::StartSegmentDetectionError::IdempotentParameterMismatchException(inner) => {
2570                Error::IdempotentParameterMismatchException(inner)
2571            }
2572            crate::operation::start_segment_detection::StartSegmentDetectionError::InternalServerError(inner) => Error::InternalServerError(inner),
2573            crate::operation::start_segment_detection::StartSegmentDetectionError::InvalidParameterException(inner) => {
2574                Error::InvalidParameterException(inner)
2575            }
2576            crate::operation::start_segment_detection::StartSegmentDetectionError::InvalidS3ObjectException(inner) => {
2577                Error::InvalidS3ObjectException(inner)
2578            }
2579            crate::operation::start_segment_detection::StartSegmentDetectionError::LimitExceededException(inner) => {
2580                Error::LimitExceededException(inner)
2581            }
2582            crate::operation::start_segment_detection::StartSegmentDetectionError::ProvisionedThroughputExceededException(inner) => {
2583                Error::ProvisionedThroughputExceededException(inner)
2584            }
2585            crate::operation::start_segment_detection::StartSegmentDetectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2586            crate::operation::start_segment_detection::StartSegmentDetectionError::VideoTooLargeException(inner) => {
2587                Error::VideoTooLargeException(inner)
2588            }
2589            crate::operation::start_segment_detection::StartSegmentDetectionError::Unhandled(inner) => Error::Unhandled(inner),
2590        }
2591    }
2592}
2593impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_stream_processor::StartStreamProcessorError, R>> for Error
2594where
2595    R: Send + Sync + std::fmt::Debug + 'static,
2596{
2597    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_stream_processor::StartStreamProcessorError, R>) -> Self {
2598        match err {
2599            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2600            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2601                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2602                source: err.into(),
2603            }),
2604        }
2605    }
2606}
2607impl From<crate::operation::start_stream_processor::StartStreamProcessorError> for Error {
2608    fn from(err: crate::operation::start_stream_processor::StartStreamProcessorError) -> Self {
2609        match err {
2610            crate::operation::start_stream_processor::StartStreamProcessorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2611            crate::operation::start_stream_processor::StartStreamProcessorError::InternalServerError(inner) => Error::InternalServerError(inner),
2612            crate::operation::start_stream_processor::StartStreamProcessorError::InvalidParameterException(inner) => {
2613                Error::InvalidParameterException(inner)
2614            }
2615            crate::operation::start_stream_processor::StartStreamProcessorError::ProvisionedThroughputExceededException(inner) => {
2616                Error::ProvisionedThroughputExceededException(inner)
2617            }
2618            crate::operation::start_stream_processor::StartStreamProcessorError::ResourceInUseException(inner) => {
2619                Error::ResourceInUseException(inner)
2620            }
2621            crate::operation::start_stream_processor::StartStreamProcessorError::ResourceNotFoundException(inner) => {
2622                Error::ResourceNotFoundException(inner)
2623            }
2624            crate::operation::start_stream_processor::StartStreamProcessorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2625            crate::operation::start_stream_processor::StartStreamProcessorError::Unhandled(inner) => Error::Unhandled(inner),
2626        }
2627    }
2628}
2629impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_text_detection::StartTextDetectionError, R>> for Error
2630where
2631    R: Send + Sync + std::fmt::Debug + 'static,
2632{
2633    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_text_detection::StartTextDetectionError, R>) -> Self {
2634        match err {
2635            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2636            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2637                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2638                source: err.into(),
2639            }),
2640        }
2641    }
2642}
2643impl From<crate::operation::start_text_detection::StartTextDetectionError> for Error {
2644    fn from(err: crate::operation::start_text_detection::StartTextDetectionError) -> Self {
2645        match err {
2646            crate::operation::start_text_detection::StartTextDetectionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2647            crate::operation::start_text_detection::StartTextDetectionError::IdempotentParameterMismatchException(inner) => {
2648                Error::IdempotentParameterMismatchException(inner)
2649            }
2650            crate::operation::start_text_detection::StartTextDetectionError::InternalServerError(inner) => Error::InternalServerError(inner),
2651            crate::operation::start_text_detection::StartTextDetectionError::InvalidParameterException(inner) => {
2652                Error::InvalidParameterException(inner)
2653            }
2654            crate::operation::start_text_detection::StartTextDetectionError::InvalidS3ObjectException(inner) => {
2655                Error::InvalidS3ObjectException(inner)
2656            }
2657            crate::operation::start_text_detection::StartTextDetectionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2658            crate::operation::start_text_detection::StartTextDetectionError::ProvisionedThroughputExceededException(inner) => {
2659                Error::ProvisionedThroughputExceededException(inner)
2660            }
2661            crate::operation::start_text_detection::StartTextDetectionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2662            crate::operation::start_text_detection::StartTextDetectionError::VideoTooLargeException(inner) => Error::VideoTooLargeException(inner),
2663            crate::operation::start_text_detection::StartTextDetectionError::Unhandled(inner) => Error::Unhandled(inner),
2664        }
2665    }
2666}
2667impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_project_version::StopProjectVersionError, R>> for Error
2668where
2669    R: Send + Sync + std::fmt::Debug + 'static,
2670{
2671    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_project_version::StopProjectVersionError, R>) -> Self {
2672        match err {
2673            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2674            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2675                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2676                source: err.into(),
2677            }),
2678        }
2679    }
2680}
2681impl From<crate::operation::stop_project_version::StopProjectVersionError> for Error {
2682    fn from(err: crate::operation::stop_project_version::StopProjectVersionError) -> Self {
2683        match err {
2684            crate::operation::stop_project_version::StopProjectVersionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2685            crate::operation::stop_project_version::StopProjectVersionError::InternalServerError(inner) => Error::InternalServerError(inner),
2686            crate::operation::stop_project_version::StopProjectVersionError::InvalidParameterException(inner) => {
2687                Error::InvalidParameterException(inner)
2688            }
2689            crate::operation::stop_project_version::StopProjectVersionError::ProvisionedThroughputExceededException(inner) => {
2690                Error::ProvisionedThroughputExceededException(inner)
2691            }
2692            crate::operation::stop_project_version::StopProjectVersionError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
2693            crate::operation::stop_project_version::StopProjectVersionError::ResourceNotFoundException(inner) => {
2694                Error::ResourceNotFoundException(inner)
2695            }
2696            crate::operation::stop_project_version::StopProjectVersionError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2697            crate::operation::stop_project_version::StopProjectVersionError::Unhandled(inner) => Error::Unhandled(inner),
2698        }
2699    }
2700}
2701impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_stream_processor::StopStreamProcessorError, R>> for Error
2702where
2703    R: Send + Sync + std::fmt::Debug + 'static,
2704{
2705    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_stream_processor::StopStreamProcessorError, R>) -> Self {
2706        match err {
2707            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2708            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2709                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2710                source: err.into(),
2711            }),
2712        }
2713    }
2714}
2715impl From<crate::operation::stop_stream_processor::StopStreamProcessorError> for Error {
2716    fn from(err: crate::operation::stop_stream_processor::StopStreamProcessorError) -> Self {
2717        match err {
2718            crate::operation::stop_stream_processor::StopStreamProcessorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2719            crate::operation::stop_stream_processor::StopStreamProcessorError::InternalServerError(inner) => Error::InternalServerError(inner),
2720            crate::operation::stop_stream_processor::StopStreamProcessorError::InvalidParameterException(inner) => {
2721                Error::InvalidParameterException(inner)
2722            }
2723            crate::operation::stop_stream_processor::StopStreamProcessorError::ProvisionedThroughputExceededException(inner) => {
2724                Error::ProvisionedThroughputExceededException(inner)
2725            }
2726            crate::operation::stop_stream_processor::StopStreamProcessorError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
2727            crate::operation::stop_stream_processor::StopStreamProcessorError::ResourceNotFoundException(inner) => {
2728                Error::ResourceNotFoundException(inner)
2729            }
2730            crate::operation::stop_stream_processor::StopStreamProcessorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2731            crate::operation::stop_stream_processor::StopStreamProcessorError::Unhandled(inner) => Error::Unhandled(inner),
2732        }
2733    }
2734}
2735impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
2736where
2737    R: Send + Sync + std::fmt::Debug + 'static,
2738{
2739    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
2740        match err {
2741            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2742            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2743                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2744                source: err.into(),
2745            }),
2746        }
2747    }
2748}
2749impl From<crate::operation::tag_resource::TagResourceError> for Error {
2750    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
2751        match err {
2752            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2753            crate::operation::tag_resource::TagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
2754            crate::operation::tag_resource::TagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2755            crate::operation::tag_resource::TagResourceError::ProvisionedThroughputExceededException(inner) => {
2756                Error::ProvisionedThroughputExceededException(inner)
2757            }
2758            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2759            crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
2760            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2761            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2762        }
2763    }
2764}
2765impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
2766where
2767    R: Send + Sync + std::fmt::Debug + 'static,
2768{
2769    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
2770        match err {
2771            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2772            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2773                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2774                source: err.into(),
2775            }),
2776        }
2777    }
2778}
2779impl From<crate::operation::untag_resource::UntagResourceError> for Error {
2780    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
2781        match err {
2782            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2783            crate::operation::untag_resource::UntagResourceError::InternalServerError(inner) => Error::InternalServerError(inner),
2784            crate::operation::untag_resource::UntagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2785            crate::operation::untag_resource::UntagResourceError::ProvisionedThroughputExceededException(inner) => {
2786                Error::ProvisionedThroughputExceededException(inner)
2787            }
2788            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2789            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2790            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
2791        }
2792    }
2793}
2794impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dataset_entries::UpdateDatasetEntriesError, R>> for Error
2795where
2796    R: Send + Sync + std::fmt::Debug + 'static,
2797{
2798    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_dataset_entries::UpdateDatasetEntriesError, R>) -> Self {
2799        match err {
2800            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2801            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2802                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2803                source: err.into(),
2804            }),
2805        }
2806    }
2807}
2808impl From<crate::operation::update_dataset_entries::UpdateDatasetEntriesError> for Error {
2809    fn from(err: crate::operation::update_dataset_entries::UpdateDatasetEntriesError) -> Self {
2810        match err {
2811            crate::operation::update_dataset_entries::UpdateDatasetEntriesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2812            crate::operation::update_dataset_entries::UpdateDatasetEntriesError::InternalServerError(inner) => Error::InternalServerError(inner),
2813            crate::operation::update_dataset_entries::UpdateDatasetEntriesError::InvalidParameterException(inner) => {
2814                Error::InvalidParameterException(inner)
2815            }
2816            crate::operation::update_dataset_entries::UpdateDatasetEntriesError::LimitExceededException(inner) => {
2817                Error::LimitExceededException(inner)
2818            }
2819            crate::operation::update_dataset_entries::UpdateDatasetEntriesError::ProvisionedThroughputExceededException(inner) => {
2820                Error::ProvisionedThroughputExceededException(inner)
2821            }
2822            crate::operation::update_dataset_entries::UpdateDatasetEntriesError::ResourceInUseException(inner) => {
2823                Error::ResourceInUseException(inner)
2824            }
2825            crate::operation::update_dataset_entries::UpdateDatasetEntriesError::ResourceNotFoundException(inner) => {
2826                Error::ResourceNotFoundException(inner)
2827            }
2828            crate::operation::update_dataset_entries::UpdateDatasetEntriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2829            crate::operation::update_dataset_entries::UpdateDatasetEntriesError::Unhandled(inner) => Error::Unhandled(inner),
2830        }
2831    }
2832}
2833impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stream_processor::UpdateStreamProcessorError, R>> for Error
2834where
2835    R: Send + Sync + std::fmt::Debug + 'static,
2836{
2837    fn from(
2838        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stream_processor::UpdateStreamProcessorError, R>,
2839    ) -> Self {
2840        match err {
2841            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2842            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2843                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2844                source: err.into(),
2845            }),
2846        }
2847    }
2848}
2849impl From<crate::operation::update_stream_processor::UpdateStreamProcessorError> for Error {
2850    fn from(err: crate::operation::update_stream_processor::UpdateStreamProcessorError) -> Self {
2851        match err {
2852            crate::operation::update_stream_processor::UpdateStreamProcessorError::AccessDeniedException(inner) => {
2853                Error::AccessDeniedException(inner)
2854            }
2855            crate::operation::update_stream_processor::UpdateStreamProcessorError::InternalServerError(inner) => Error::InternalServerError(inner),
2856            crate::operation::update_stream_processor::UpdateStreamProcessorError::InvalidParameterException(inner) => {
2857                Error::InvalidParameterException(inner)
2858            }
2859            crate::operation::update_stream_processor::UpdateStreamProcessorError::ProvisionedThroughputExceededException(inner) => {
2860                Error::ProvisionedThroughputExceededException(inner)
2861            }
2862            crate::operation::update_stream_processor::UpdateStreamProcessorError::ResourceInUseException(inner) => {
2863                Error::ResourceInUseException(inner)
2864            }
2865            crate::operation::update_stream_processor::UpdateStreamProcessorError::ResourceNotFoundException(inner) => {
2866                Error::ResourceNotFoundException(inner)
2867            }
2868            crate::operation::update_stream_processor::UpdateStreamProcessorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2869            crate::operation::update_stream_processor::UpdateStreamProcessorError::Unhandled(inner) => Error::Unhandled(inner),
2870        }
2871    }
2872}
2873impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
2874where
2875    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
2876    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
2877{
2878    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
2879        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2880            meta: ::std::default::Default::default(),
2881            source: err.into(),
2882        })
2883    }
2884}
2885impl ::std::error::Error for Error {
2886    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2887        match self {
2888            Error::AccessDeniedException(inner) => inner.source(),
2889            Error::ConflictException(inner) => inner.source(),
2890            Error::HumanLoopQuotaExceededException(inner) => inner.source(),
2891            Error::IdempotentParameterMismatchException(inner) => inner.source(),
2892            Error::ImageTooLargeException(inner) => inner.source(),
2893            Error::InternalServerError(inner) => inner.source(),
2894            Error::InvalidImageFormatException(inner) => inner.source(),
2895            Error::InvalidManifestException(inner) => inner.source(),
2896            Error::InvalidPaginationTokenException(inner) => inner.source(),
2897            Error::InvalidParameterException(inner) => inner.source(),
2898            Error::InvalidPolicyRevisionIdException(inner) => inner.source(),
2899            Error::InvalidS3ObjectException(inner) => inner.source(),
2900            Error::LimitExceededException(inner) => inner.source(),
2901            Error::MalformedPolicyDocumentException(inner) => inner.source(),
2902            Error::ProvisionedThroughputExceededException(inner) => inner.source(),
2903            Error::ResourceAlreadyExistsException(inner) => inner.source(),
2904            Error::ResourceInUseException(inner) => inner.source(),
2905            Error::ResourceNotFoundException(inner) => inner.source(),
2906            Error::ResourceNotReadyException(inner) => inner.source(),
2907            Error::ServiceQuotaExceededException(inner) => inner.source(),
2908            Error::SessionNotFoundException(inner) => inner.source(),
2909            Error::ThrottlingException(inner) => inner.source(),
2910            Error::VideoTooLargeException(inner) => inner.source(),
2911            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2912        }
2913    }
2914}
2915impl ::aws_types::request_id::RequestId for Error {
2916    fn request_id(&self) -> Option<&str> {
2917        match self {
2918            Self::AccessDeniedException(e) => e.request_id(),
2919            Self::ConflictException(e) => e.request_id(),
2920            Self::HumanLoopQuotaExceededException(e) => e.request_id(),
2921            Self::IdempotentParameterMismatchException(e) => e.request_id(),
2922            Self::ImageTooLargeException(e) => e.request_id(),
2923            Self::InternalServerError(e) => e.request_id(),
2924            Self::InvalidImageFormatException(e) => e.request_id(),
2925            Self::InvalidManifestException(e) => e.request_id(),
2926            Self::InvalidPaginationTokenException(e) => e.request_id(),
2927            Self::InvalidParameterException(e) => e.request_id(),
2928            Self::InvalidPolicyRevisionIdException(e) => e.request_id(),
2929            Self::InvalidS3ObjectException(e) => e.request_id(),
2930            Self::LimitExceededException(e) => e.request_id(),
2931            Self::MalformedPolicyDocumentException(e) => e.request_id(),
2932            Self::ProvisionedThroughputExceededException(e) => e.request_id(),
2933            Self::ResourceAlreadyExistsException(e) => e.request_id(),
2934            Self::ResourceInUseException(e) => e.request_id(),
2935            Self::ResourceNotFoundException(e) => e.request_id(),
2936            Self::ResourceNotReadyException(e) => e.request_id(),
2937            Self::ServiceQuotaExceededException(e) => e.request_id(),
2938            Self::SessionNotFoundException(e) => e.request_id(),
2939            Self::ThrottlingException(e) => e.request_id(),
2940            Self::VideoTooLargeException(e) => e.request_id(),
2941            Self::Unhandled(e) => e.meta.request_id(),
2942        }
2943    }
2944}