Skip to main content

aws_sdk_cloudwatchlogs/
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 don't have sufficient permissions to perform this action.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>This operation attempted to create a resource that already exists.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>The event was already logged.</p><important>
11    /// <p><code>PutLogEvents</code> actions are now always accepted and never return <code>DataAlreadyAcceptedException</code> regardless of whether a given batch of log events has already been accepted.</p>
12    /// </important>
13    DataAlreadyAcceptedException(crate::types::error::DataAlreadyAcceptedException),
14    /// <p>An internal server error occurred while processing the request. This exception is returned when the service encounters an unexpected condition that prevents it from fulfilling the request.</p>
15    InternalServerException(crate::types::error::InternalServerException),
16    /// <p>An internal error occurred during the streaming of log data. This exception is thrown when there's an issue with the internal streaming mechanism used by the GetLogObject operation.</p>
17    InternalStreamingException(crate::types::error::InternalStreamingException),
18    /// <p>The operation is not valid on the specified resource.</p>
19    InvalidOperationException(crate::types::error::InvalidOperationException),
20    /// <p>A parameter is specified incorrectly.</p>
21    InvalidParameterException(crate::types::error::InvalidParameterException),
22    /// <p>The sequence token is not valid. You can get the correct sequence token in the <code>expectedSequenceToken</code> field in the <code>InvalidSequenceTokenException</code> message.</p><important>
23    /// <p><code>PutLogEvents</code> actions are now always accepted and never return <code>InvalidSequenceTokenException</code> regardless of receiving an invalid sequence token.</p>
24    /// </important>
25    InvalidSequenceTokenException(crate::types::error::InvalidSequenceTokenException),
26    /// <p>You have reached the maximum number of resources that can be created.</p>
27    LimitExceededException(crate::types::error::LimitExceededException),
28    /// <p>The query string is not valid. Details about this error are displayed in a <code>QueryCompileError</code> object. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_QueryCompileError.html">QueryCompileError</a>.</p>
29    /// <p>For more information about valid query syntax, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html">CloudWatch Logs Insights Query Syntax</a>.</p>
30    MalformedQueryException(crate::types::error::MalformedQueryException),
31    /// <p>Multiple concurrent requests to update the same resource were in conflict.</p>
32    OperationAbortedException(crate::types::error::OperationAbortedException),
33    /// <p>The specified resource already exists.</p>
34    ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
35    /// <p>The specified resource does not exist.</p>
36    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
37    /// <p>This request exceeds a service quota.</p>
38    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
39    /// <p>The service cannot complete the request.</p>
40    ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
41    /// <p>This exception is returned if an unknown error occurs during a Live Tail session.</p>
42    SessionStreamingException(crate::types::error::SessionStreamingException),
43    /// <p>This exception is returned in a Live Tail stream when the Live Tail session times out. Live Tail sessions time out after three hours.</p>
44    SessionTimeoutException(crate::types::error::SessionTimeoutException),
45    /// <p>The request was throttled because of quota limits.</p>
46    ThrottlingException(crate::types::error::ThrottlingException),
47    /// <p>A resource can have no more than 50 tags.</p>
48    TooManyTagsException(crate::types::error::TooManyTagsException),
49    /// <p>The most likely cause is an Amazon Web Services access key ID or secret key that's not valid.</p>
50    UnrecognizedClientException(crate::types::error::UnrecognizedClientException),
51    /// <p>One of the parameters for the request is not valid.</p>
52    ValidationException(crate::types::error::ValidationException),
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::DataAlreadyAcceptedException(inner) => inner.fmt(f),
68            Error::InternalServerException(inner) => inner.fmt(f),
69            Error::InternalStreamingException(inner) => inner.fmt(f),
70            Error::InvalidOperationException(inner) => inner.fmt(f),
71            Error::InvalidParameterException(inner) => inner.fmt(f),
72            Error::InvalidSequenceTokenException(inner) => inner.fmt(f),
73            Error::LimitExceededException(inner) => inner.fmt(f),
74            Error::MalformedQueryException(inner) => inner.fmt(f),
75            Error::OperationAbortedException(inner) => inner.fmt(f),
76            Error::ResourceAlreadyExistsException(inner) => inner.fmt(f),
77            Error::ResourceNotFoundException(inner) => inner.fmt(f),
78            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
79            Error::ServiceUnavailableException(inner) => inner.fmt(f),
80            Error::SessionStreamingException(inner) => inner.fmt(f),
81            Error::SessionTimeoutException(inner) => inner.fmt(f),
82            Error::ThrottlingException(inner) => inner.fmt(f),
83            Error::TooManyTagsException(inner) => inner.fmt(f),
84            Error::UnrecognizedClientException(inner) => inner.fmt(f),
85            Error::ValidationException(inner) => inner.fmt(f),
86            Error::Unhandled(_) => {
87                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
88                    write!(f, "unhandled error ({code})")
89                } else {
90                    f.write_str("unhandled error")
91                }
92            }
93        }
94    }
95}
96impl From<::aws_smithy_types::error::operation::BuildError> for Error {
97    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
98        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
99            source: value.into(),
100            meta: ::std::default::Default::default(),
101        })
102    }
103}
104impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
105    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
106        match self {
107            Self::AccessDeniedException(inner) => inner.meta(),
108            Self::ConflictException(inner) => inner.meta(),
109            Self::DataAlreadyAcceptedException(inner) => inner.meta(),
110            Self::InternalServerException(inner) => inner.meta(),
111            Self::InternalStreamingException(inner) => inner.meta(),
112            Self::InvalidOperationException(inner) => inner.meta(),
113            Self::InvalidParameterException(inner) => inner.meta(),
114            Self::InvalidSequenceTokenException(inner) => inner.meta(),
115            Self::LimitExceededException(inner) => inner.meta(),
116            Self::MalformedQueryException(inner) => inner.meta(),
117            Self::OperationAbortedException(inner) => inner.meta(),
118            Self::ResourceAlreadyExistsException(inner) => inner.meta(),
119            Self::ResourceNotFoundException(inner) => inner.meta(),
120            Self::ServiceQuotaExceededException(inner) => inner.meta(),
121            Self::ServiceUnavailableException(inner) => inner.meta(),
122            Self::SessionStreamingException(inner) => inner.meta(),
123            Self::SessionTimeoutException(inner) => inner.meta(),
124            Self::ThrottlingException(inner) => inner.meta(),
125            Self::TooManyTagsException(inner) => inner.meta(),
126            Self::UnrecognizedClientException(inner) => inner.meta(),
127            Self::ValidationException(inner) => inner.meta(),
128            Self::Unhandled(inner) => &inner.meta,
129        }
130    }
131}
132impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_kms_key::AssociateKmsKeyError, R>> for Error
133where
134    R: Send + Sync + std::fmt::Debug + 'static,
135{
136    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_kms_key::AssociateKmsKeyError, R>) -> Self {
137        match err {
138            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
139            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
140                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
141                source: err.into(),
142            }),
143        }
144    }
145}
146impl From<crate::operation::associate_kms_key::AssociateKmsKeyError> for Error {
147    fn from(err: crate::operation::associate_kms_key::AssociateKmsKeyError) -> Self {
148        match err {
149            crate::operation::associate_kms_key::AssociateKmsKeyError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
150            crate::operation::associate_kms_key::AssociateKmsKeyError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
151            crate::operation::associate_kms_key::AssociateKmsKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
152            crate::operation::associate_kms_key::AssociateKmsKeyError::ServiceUnavailableException(inner) => {
153                Error::ServiceUnavailableException(inner)
154            }
155            crate::operation::associate_kms_key::AssociateKmsKeyError::Unhandled(inner) => Error::Unhandled(inner),
156        }
157    }
158}
159impl<R>
160    From<
161        ::aws_smithy_runtime_api::client::result::SdkError<
162            crate::operation::associate_source_to_s3_table_integration::AssociateSourceToS3TableIntegrationError,
163            R,
164        >,
165    > for Error
166where
167    R: Send + Sync + std::fmt::Debug + 'static,
168{
169    fn from(
170        err: ::aws_smithy_runtime_api::client::result::SdkError<
171            crate::operation::associate_source_to_s3_table_integration::AssociateSourceToS3TableIntegrationError,
172            R,
173        >,
174    ) -> Self {
175        match err {
176            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
177            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
178                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
179                source: err.into(),
180            }),
181        }
182    }
183}
184impl From<crate::operation::associate_source_to_s3_table_integration::AssociateSourceToS3TableIntegrationError> for Error {
185    fn from(err: crate::operation::associate_source_to_s3_table_integration::AssociateSourceToS3TableIntegrationError) -> Self {
186        match err {
187            crate::operation::associate_source_to_s3_table_integration::AssociateSourceToS3TableIntegrationError::AccessDeniedException(inner) => {
188                Error::AccessDeniedException(inner)
189            }
190            crate::operation::associate_source_to_s3_table_integration::AssociateSourceToS3TableIntegrationError::InternalServerException(inner) => {
191                Error::InternalServerException(inner)
192            }
193            crate::operation::associate_source_to_s3_table_integration::AssociateSourceToS3TableIntegrationError::ResourceNotFoundException(
194                inner,
195            ) => Error::ResourceNotFoundException(inner),
196            crate::operation::associate_source_to_s3_table_integration::AssociateSourceToS3TableIntegrationError::ThrottlingException(inner) => {
197                Error::ThrottlingException(inner)
198            }
199            crate::operation::associate_source_to_s3_table_integration::AssociateSourceToS3TableIntegrationError::ValidationException(inner) => {
200                Error::ValidationException(inner)
201            }
202            crate::operation::associate_source_to_s3_table_integration::AssociateSourceToS3TableIntegrationError::Unhandled(inner) => {
203                Error::Unhandled(inner)
204            }
205        }
206    }
207}
208impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_export_task::CancelExportTaskError, R>> for Error
209where
210    R: Send + Sync + std::fmt::Debug + 'static,
211{
212    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_export_task::CancelExportTaskError, R>) -> Self {
213        match err {
214            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
215            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
216                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
217                source: err.into(),
218            }),
219        }
220    }
221}
222impl From<crate::operation::cancel_export_task::CancelExportTaskError> for Error {
223    fn from(err: crate::operation::cancel_export_task::CancelExportTaskError) -> Self {
224        match err {
225            crate::operation::cancel_export_task::CancelExportTaskError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
226            crate::operation::cancel_export_task::CancelExportTaskError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
227            crate::operation::cancel_export_task::CancelExportTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
228            crate::operation::cancel_export_task::CancelExportTaskError::ServiceUnavailableException(inner) => {
229                Error::ServiceUnavailableException(inner)
230            }
231            crate::operation::cancel_export_task::CancelExportTaskError::Unhandled(inner) => Error::Unhandled(inner),
232        }
233    }
234}
235impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_import_task::CancelImportTaskError, R>> for Error
236where
237    R: Send + Sync + std::fmt::Debug + 'static,
238{
239    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_import_task::CancelImportTaskError, R>) -> Self {
240        match err {
241            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
242            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
243                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
244                source: err.into(),
245            }),
246        }
247    }
248}
249impl From<crate::operation::cancel_import_task::CancelImportTaskError> for Error {
250    fn from(err: crate::operation::cancel_import_task::CancelImportTaskError) -> Self {
251        match err {
252            crate::operation::cancel_import_task::CancelImportTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
253            crate::operation::cancel_import_task::CancelImportTaskError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
254            crate::operation::cancel_import_task::CancelImportTaskError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
255            crate::operation::cancel_import_task::CancelImportTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
256            crate::operation::cancel_import_task::CancelImportTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
257            crate::operation::cancel_import_task::CancelImportTaskError::Unhandled(inner) => Error::Unhandled(inner),
258        }
259    }
260}
261impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_delivery::CreateDeliveryError, R>> for Error
262where
263    R: Send + Sync + std::fmt::Debug + 'static,
264{
265    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_delivery::CreateDeliveryError, R>) -> Self {
266        match err {
267            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
268            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
269                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
270                source: err.into(),
271            }),
272        }
273    }
274}
275impl From<crate::operation::create_delivery::CreateDeliveryError> for Error {
276    fn from(err: crate::operation::create_delivery::CreateDeliveryError) -> Self {
277        match err {
278            crate::operation::create_delivery::CreateDeliveryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
279            crate::operation::create_delivery::CreateDeliveryError::ConflictException(inner) => Error::ConflictException(inner),
280            crate::operation::create_delivery::CreateDeliveryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
281            crate::operation::create_delivery::CreateDeliveryError::ServiceQuotaExceededException(inner) => {
282                Error::ServiceQuotaExceededException(inner)
283            }
284            crate::operation::create_delivery::CreateDeliveryError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
285            crate::operation::create_delivery::CreateDeliveryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
286            crate::operation::create_delivery::CreateDeliveryError::ValidationException(inner) => Error::ValidationException(inner),
287            crate::operation::create_delivery::CreateDeliveryError::Unhandled(inner) => Error::Unhandled(inner),
288        }
289    }
290}
291impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_export_task::CreateExportTaskError, R>> for Error
292where
293    R: Send + Sync + std::fmt::Debug + 'static,
294{
295    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_export_task::CreateExportTaskError, R>) -> Self {
296        match err {
297            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
298            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
299                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
300                source: err.into(),
301            }),
302        }
303    }
304}
305impl From<crate::operation::create_export_task::CreateExportTaskError> for Error {
306    fn from(err: crate::operation::create_export_task::CreateExportTaskError) -> Self {
307        match err {
308            crate::operation::create_export_task::CreateExportTaskError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
309            crate::operation::create_export_task::CreateExportTaskError::LimitExceededException(inner) => Error::LimitExceededException(inner),
310            crate::operation::create_export_task::CreateExportTaskError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
311            crate::operation::create_export_task::CreateExportTaskError::ResourceAlreadyExistsException(inner) => {
312                Error::ResourceAlreadyExistsException(inner)
313            }
314            crate::operation::create_export_task::CreateExportTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
315            crate::operation::create_export_task::CreateExportTaskError::ServiceUnavailableException(inner) => {
316                Error::ServiceUnavailableException(inner)
317            }
318            crate::operation::create_export_task::CreateExportTaskError::Unhandled(inner) => Error::Unhandled(inner),
319        }
320    }
321}
322impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_import_task::CreateImportTaskError, R>> for Error
323where
324    R: Send + Sync + std::fmt::Debug + 'static,
325{
326    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_import_task::CreateImportTaskError, R>) -> Self {
327        match err {
328            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
329            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
330                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
331                source: err.into(),
332            }),
333        }
334    }
335}
336impl From<crate::operation::create_import_task::CreateImportTaskError> for Error {
337    fn from(err: crate::operation::create_import_task::CreateImportTaskError) -> Self {
338        match err {
339            crate::operation::create_import_task::CreateImportTaskError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
340            crate::operation::create_import_task::CreateImportTaskError::ConflictException(inner) => Error::ConflictException(inner),
341            crate::operation::create_import_task::CreateImportTaskError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
342            crate::operation::create_import_task::CreateImportTaskError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
343            crate::operation::create_import_task::CreateImportTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
344            crate::operation::create_import_task::CreateImportTaskError::ThrottlingException(inner) => Error::ThrottlingException(inner),
345            crate::operation::create_import_task::CreateImportTaskError::ValidationException(inner) => Error::ValidationException(inner),
346            crate::operation::create_import_task::CreateImportTaskError::Unhandled(inner) => Error::Unhandled(inner),
347        }
348    }
349}
350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError, R>>
351    for Error
352where
353    R: Send + Sync + std::fmt::Debug + 'static,
354{
355    fn from(
356        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError, R>,
357    ) -> Self {
358        match err {
359            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
360            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
361                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
362                source: err.into(),
363            }),
364        }
365    }
366}
367impl From<crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError> for Error {
368    fn from(err: crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError) -> Self {
369        match err {
370            crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError::InvalidParameterException(inner) => {
371                Error::InvalidParameterException(inner)
372            }
373            crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError::LimitExceededException(inner) => {
374                Error::LimitExceededException(inner)
375            }
376            crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError::OperationAbortedException(inner) => {
377                Error::OperationAbortedException(inner)
378            }
379            crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError::ResourceNotFoundException(inner) => {
380                Error::ResourceNotFoundException(inner)
381            }
382            crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError::ServiceUnavailableException(inner) => {
383                Error::ServiceUnavailableException(inner)
384            }
385            crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
386        }
387    }
388}
389impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_log_group::CreateLogGroupError, R>> for Error
390where
391    R: Send + Sync + std::fmt::Debug + 'static,
392{
393    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_log_group::CreateLogGroupError, R>) -> Self {
394        match err {
395            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
396            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
397                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
398                source: err.into(),
399            }),
400        }
401    }
402}
403impl From<crate::operation::create_log_group::CreateLogGroupError> for Error {
404    fn from(err: crate::operation::create_log_group::CreateLogGroupError) -> Self {
405        match err {
406            crate::operation::create_log_group::CreateLogGroupError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
407            crate::operation::create_log_group::CreateLogGroupError::LimitExceededException(inner) => Error::LimitExceededException(inner),
408            crate::operation::create_log_group::CreateLogGroupError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
409            crate::operation::create_log_group::CreateLogGroupError::ResourceAlreadyExistsException(inner) => {
410                Error::ResourceAlreadyExistsException(inner)
411            }
412            crate::operation::create_log_group::CreateLogGroupError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
413            crate::operation::create_log_group::CreateLogGroupError::Unhandled(inner) => Error::Unhandled(inner),
414        }
415    }
416}
417impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_log_stream::CreateLogStreamError, R>> for Error
418where
419    R: Send + Sync + std::fmt::Debug + 'static,
420{
421    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_log_stream::CreateLogStreamError, R>) -> Self {
422        match err {
423            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
424            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
425                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
426                source: err.into(),
427            }),
428        }
429    }
430}
431impl From<crate::operation::create_log_stream::CreateLogStreamError> for Error {
432    fn from(err: crate::operation::create_log_stream::CreateLogStreamError) -> Self {
433        match err {
434            crate::operation::create_log_stream::CreateLogStreamError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
435            crate::operation::create_log_stream::CreateLogStreamError::ResourceAlreadyExistsException(inner) => {
436                Error::ResourceAlreadyExistsException(inner)
437            }
438            crate::operation::create_log_stream::CreateLogStreamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
439            crate::operation::create_log_stream::CreateLogStreamError::ServiceUnavailableException(inner) => {
440                Error::ServiceUnavailableException(inner)
441            }
442            crate::operation::create_log_stream::CreateLogStreamError::Unhandled(inner) => Error::Unhandled(inner),
443        }
444    }
445}
446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_lookup_table::CreateLookupTableError, R>> for Error
447where
448    R: Send + Sync + std::fmt::Debug + 'static,
449{
450    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_lookup_table::CreateLookupTableError, R>) -> Self {
451        match err {
452            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
453            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
454                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
455                source: err.into(),
456            }),
457        }
458    }
459}
460impl From<crate::operation::create_lookup_table::CreateLookupTableError> for Error {
461    fn from(err: crate::operation::create_lookup_table::CreateLookupTableError) -> Self {
462        match err {
463            crate::operation::create_lookup_table::CreateLookupTableError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
464            crate::operation::create_lookup_table::CreateLookupTableError::InvalidParameterException(inner) => {
465                Error::InvalidParameterException(inner)
466            }
467            crate::operation::create_lookup_table::CreateLookupTableError::LimitExceededException(inner) => Error::LimitExceededException(inner),
468            crate::operation::create_lookup_table::CreateLookupTableError::ResourceAlreadyExistsException(inner) => {
469                Error::ResourceAlreadyExistsException(inner)
470            }
471            crate::operation::create_lookup_table::CreateLookupTableError::ServiceUnavailableException(inner) => {
472                Error::ServiceUnavailableException(inner)
473            }
474            crate::operation::create_lookup_table::CreateLookupTableError::ValidationException(inner) => Error::ValidationException(inner),
475            crate::operation::create_lookup_table::CreateLookupTableError::Unhandled(inner) => Error::Unhandled(inner),
476        }
477    }
478}
479impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scheduled_query::CreateScheduledQueryError, R>> for Error
480where
481    R: Send + Sync + std::fmt::Debug + 'static,
482{
483    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scheduled_query::CreateScheduledQueryError, R>) -> Self {
484        match err {
485            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
486            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
487                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
488                source: err.into(),
489            }),
490        }
491    }
492}
493impl From<crate::operation::create_scheduled_query::CreateScheduledQueryError> for Error {
494    fn from(err: crate::operation::create_scheduled_query::CreateScheduledQueryError) -> Self {
495        match err {
496            crate::operation::create_scheduled_query::CreateScheduledQueryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
497            crate::operation::create_scheduled_query::CreateScheduledQueryError::ConflictException(inner) => Error::ConflictException(inner),
498            crate::operation::create_scheduled_query::CreateScheduledQueryError::InternalServerException(inner) => {
499                Error::InternalServerException(inner)
500            }
501            crate::operation::create_scheduled_query::CreateScheduledQueryError::ResourceNotFoundException(inner) => {
502                Error::ResourceNotFoundException(inner)
503            }
504            crate::operation::create_scheduled_query::CreateScheduledQueryError::ServiceQuotaExceededException(inner) => {
505                Error::ServiceQuotaExceededException(inner)
506            }
507            crate::operation::create_scheduled_query::CreateScheduledQueryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
508            crate::operation::create_scheduled_query::CreateScheduledQueryError::ValidationException(inner) => Error::ValidationException(inner),
509            crate::operation::create_scheduled_query::CreateScheduledQueryError::Unhandled(inner) => Error::Unhandled(inner),
510        }
511    }
512}
513impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_account_policy::DeleteAccountPolicyError, R>> for Error
514where
515    R: Send + Sync + std::fmt::Debug + 'static,
516{
517    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_account_policy::DeleteAccountPolicyError, R>) -> Self {
518        match err {
519            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
520            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
521                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
522                source: err.into(),
523            }),
524        }
525    }
526}
527impl From<crate::operation::delete_account_policy::DeleteAccountPolicyError> for Error {
528    fn from(err: crate::operation::delete_account_policy::DeleteAccountPolicyError) -> Self {
529        match err {
530            crate::operation::delete_account_policy::DeleteAccountPolicyError::InvalidParameterException(inner) => {
531                Error::InvalidParameterException(inner)
532            }
533            crate::operation::delete_account_policy::DeleteAccountPolicyError::OperationAbortedException(inner) => {
534                Error::OperationAbortedException(inner)
535            }
536            crate::operation::delete_account_policy::DeleteAccountPolicyError::ResourceNotFoundException(inner) => {
537                Error::ResourceNotFoundException(inner)
538            }
539            crate::operation::delete_account_policy::DeleteAccountPolicyError::ServiceUnavailableException(inner) => {
540                Error::ServiceUnavailableException(inner)
541            }
542            crate::operation::delete_account_policy::DeleteAccountPolicyError::Unhandled(inner) => Error::Unhandled(inner),
543        }
544    }
545}
546impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError, R>>
547    for Error
548where
549    R: Send + Sync + std::fmt::Debug + 'static,
550{
551    fn from(
552        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError, R>,
553    ) -> Self {
554        match err {
555            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
556            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
557                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
558                source: err.into(),
559            }),
560        }
561    }
562}
563impl From<crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError> for Error {
564    fn from(err: crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError) -> Self {
565        match err {
566            crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError::InvalidParameterException(inner) => {
567                Error::InvalidParameterException(inner)
568            }
569            crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError::OperationAbortedException(inner) => {
570                Error::OperationAbortedException(inner)
571            }
572            crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError::ResourceNotFoundException(inner) => {
573                Error::ResourceNotFoundException(inner)
574            }
575            crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError::ServiceUnavailableException(inner) => {
576                Error::ServiceUnavailableException(inner)
577            }
578            crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
579        }
580    }
581}
582impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery::DeleteDeliveryError, R>> for Error
583where
584    R: Send + Sync + std::fmt::Debug + 'static,
585{
586    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery::DeleteDeliveryError, R>) -> Self {
587        match err {
588            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
589            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
590                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
591                source: err.into(),
592            }),
593        }
594    }
595}
596impl From<crate::operation::delete_delivery::DeleteDeliveryError> for Error {
597    fn from(err: crate::operation::delete_delivery::DeleteDeliveryError) -> Self {
598        match err {
599            crate::operation::delete_delivery::DeleteDeliveryError::ConflictException(inner) => Error::ConflictException(inner),
600            crate::operation::delete_delivery::DeleteDeliveryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
601            crate::operation::delete_delivery::DeleteDeliveryError::ServiceQuotaExceededException(inner) => {
602                Error::ServiceQuotaExceededException(inner)
603            }
604            crate::operation::delete_delivery::DeleteDeliveryError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
605            crate::operation::delete_delivery::DeleteDeliveryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
606            crate::operation::delete_delivery::DeleteDeliveryError::ValidationException(inner) => Error::ValidationException(inner),
607            crate::operation::delete_delivery::DeleteDeliveryError::Unhandled(inner) => Error::Unhandled(inner),
608        }
609    }
610}
611impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError, R>>
612    for Error
613where
614    R: Send + Sync + std::fmt::Debug + 'static,
615{
616    fn from(
617        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError, R>,
618    ) -> Self {
619        match err {
620            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
621            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
622                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
623                source: err.into(),
624            }),
625        }
626    }
627}
628impl From<crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError> for Error {
629    fn from(err: crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError) -> Self {
630        match err {
631            crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::ConflictException(inner) => {
632                Error::ConflictException(inner)
633            }
634            crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::ResourceNotFoundException(inner) => {
635                Error::ResourceNotFoundException(inner)
636            }
637            crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::ServiceQuotaExceededException(inner) => {
638                Error::ServiceQuotaExceededException(inner)
639            }
640            crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::ServiceUnavailableException(inner) => {
641                Error::ServiceUnavailableException(inner)
642            }
643            crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::ThrottlingException(inner) => {
644                Error::ThrottlingException(inner)
645            }
646            crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::ValidationException(inner) => {
647                Error::ValidationException(inner)
648            }
649            crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::Unhandled(inner) => Error::Unhandled(inner),
650        }
651    }
652}
653impl<R>
654    From<
655        ::aws_smithy_runtime_api::client::result::SdkError<
656            crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError,
657            R,
658        >,
659    > for Error
660where
661    R: Send + Sync + std::fmt::Debug + 'static,
662{
663    fn from(
664        err: ::aws_smithy_runtime_api::client::result::SdkError<
665            crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError,
666            R,
667        >,
668    ) -> Self {
669        match err {
670            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
671            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
672                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
673                source: err.into(),
674            }),
675        }
676    }
677}
678impl From<crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError> for Error {
679    fn from(err: crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError) -> Self {
680        match err {
681            crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError::ConflictException(inner) => {
682                Error::ConflictException(inner)
683            }
684            crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError::ResourceNotFoundException(inner) => {
685                Error::ResourceNotFoundException(inner)
686            }
687            crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError::ServiceUnavailableException(inner) => {
688                Error::ServiceUnavailableException(inner)
689            }
690            crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError::ValidationException(inner) => {
691                Error::ValidationException(inner)
692            }
693            crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
694        }
695    }
696}
697impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery_source::DeleteDeliverySourceError, R>> for Error
698where
699    R: Send + Sync + std::fmt::Debug + 'static,
700{
701    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery_source::DeleteDeliverySourceError, R>) -> Self {
702        match err {
703            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
704            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
705                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
706                source: err.into(),
707            }),
708        }
709    }
710}
711impl From<crate::operation::delete_delivery_source::DeleteDeliverySourceError> for Error {
712    fn from(err: crate::operation::delete_delivery_source::DeleteDeliverySourceError) -> Self {
713        match err {
714            crate::operation::delete_delivery_source::DeleteDeliverySourceError::ConflictException(inner) => Error::ConflictException(inner),
715            crate::operation::delete_delivery_source::DeleteDeliverySourceError::ResourceNotFoundException(inner) => {
716                Error::ResourceNotFoundException(inner)
717            }
718            crate::operation::delete_delivery_source::DeleteDeliverySourceError::ServiceQuotaExceededException(inner) => {
719                Error::ServiceQuotaExceededException(inner)
720            }
721            crate::operation::delete_delivery_source::DeleteDeliverySourceError::ServiceUnavailableException(inner) => {
722                Error::ServiceUnavailableException(inner)
723            }
724            crate::operation::delete_delivery_source::DeleteDeliverySourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
725            crate::operation::delete_delivery_source::DeleteDeliverySourceError::ValidationException(inner) => Error::ValidationException(inner),
726            crate::operation::delete_delivery_source::DeleteDeliverySourceError::Unhandled(inner) => Error::Unhandled(inner),
727        }
728    }
729}
730impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_destination::DeleteDestinationError, R>> for Error
731where
732    R: Send + Sync + std::fmt::Debug + 'static,
733{
734    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_destination::DeleteDestinationError, R>) -> Self {
735        match err {
736            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
737            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
738                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
739                source: err.into(),
740            }),
741        }
742    }
743}
744impl From<crate::operation::delete_destination::DeleteDestinationError> for Error {
745    fn from(err: crate::operation::delete_destination::DeleteDestinationError) -> Self {
746        match err {
747            crate::operation::delete_destination::DeleteDestinationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
748            crate::operation::delete_destination::DeleteDestinationError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
749            crate::operation::delete_destination::DeleteDestinationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
750            crate::operation::delete_destination::DeleteDestinationError::ServiceUnavailableException(inner) => {
751                Error::ServiceUnavailableException(inner)
752            }
753            crate::operation::delete_destination::DeleteDestinationError::Unhandled(inner) => Error::Unhandled(inner),
754        }
755    }
756}
757impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_index_policy::DeleteIndexPolicyError, R>> for Error
758where
759    R: Send + Sync + std::fmt::Debug + 'static,
760{
761    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_index_policy::DeleteIndexPolicyError, R>) -> Self {
762        match err {
763            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
764            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
765                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
766                source: err.into(),
767            }),
768        }
769    }
770}
771impl From<crate::operation::delete_index_policy::DeleteIndexPolicyError> for Error {
772    fn from(err: crate::operation::delete_index_policy::DeleteIndexPolicyError) -> Self {
773        match err {
774            crate::operation::delete_index_policy::DeleteIndexPolicyError::InvalidParameterException(inner) => {
775                Error::InvalidParameterException(inner)
776            }
777            crate::operation::delete_index_policy::DeleteIndexPolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
778            crate::operation::delete_index_policy::DeleteIndexPolicyError::OperationAbortedException(inner) => {
779                Error::OperationAbortedException(inner)
780            }
781            crate::operation::delete_index_policy::DeleteIndexPolicyError::ResourceNotFoundException(inner) => {
782                Error::ResourceNotFoundException(inner)
783            }
784            crate::operation::delete_index_policy::DeleteIndexPolicyError::ServiceUnavailableException(inner) => {
785                Error::ServiceUnavailableException(inner)
786            }
787            crate::operation::delete_index_policy::DeleteIndexPolicyError::Unhandled(inner) => Error::Unhandled(inner),
788        }
789    }
790}
791impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>> for Error
792where
793    R: Send + Sync + std::fmt::Debug + 'static,
794{
795    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>) -> Self {
796        match err {
797            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
798            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
799                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
800                source: err.into(),
801            }),
802        }
803    }
804}
805impl From<crate::operation::delete_integration::DeleteIntegrationError> for Error {
806    fn from(err: crate::operation::delete_integration::DeleteIntegrationError) -> Self {
807        match err {
808            crate::operation::delete_integration::DeleteIntegrationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
809            crate::operation::delete_integration::DeleteIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
810            crate::operation::delete_integration::DeleteIntegrationError::ServiceUnavailableException(inner) => {
811                Error::ServiceUnavailableException(inner)
812            }
813            crate::operation::delete_integration::DeleteIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
814            crate::operation::delete_integration::DeleteIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
815        }
816    }
817}
818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError, R>>
819    for Error
820where
821    R: Send + Sync + std::fmt::Debug + 'static,
822{
823    fn from(
824        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError, R>,
825    ) -> Self {
826        match err {
827            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
828            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
829                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
830                source: err.into(),
831            }),
832        }
833    }
834}
835impl From<crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError> for Error {
836    fn from(err: crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError) -> Self {
837        match err {
838            crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError::InvalidParameterException(inner) => {
839                Error::InvalidParameterException(inner)
840            }
841            crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError::OperationAbortedException(inner) => {
842                Error::OperationAbortedException(inner)
843            }
844            crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError::ResourceNotFoundException(inner) => {
845                Error::ResourceNotFoundException(inner)
846            }
847            crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError::ServiceUnavailableException(inner) => {
848                Error::ServiceUnavailableException(inner)
849            }
850            crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
851        }
852    }
853}
854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_log_group::DeleteLogGroupError, R>> for Error
855where
856    R: Send + Sync + std::fmt::Debug + 'static,
857{
858    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_log_group::DeleteLogGroupError, R>) -> Self {
859        match err {
860            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
861            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
862                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
863                source: err.into(),
864            }),
865        }
866    }
867}
868impl From<crate::operation::delete_log_group::DeleteLogGroupError> for Error {
869    fn from(err: crate::operation::delete_log_group::DeleteLogGroupError) -> Self {
870        match err {
871            crate::operation::delete_log_group::DeleteLogGroupError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
872            crate::operation::delete_log_group::DeleteLogGroupError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
873            crate::operation::delete_log_group::DeleteLogGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
874            crate::operation::delete_log_group::DeleteLogGroupError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
875            crate::operation::delete_log_group::DeleteLogGroupError::ValidationException(inner) => Error::ValidationException(inner),
876            crate::operation::delete_log_group::DeleteLogGroupError::Unhandled(inner) => Error::Unhandled(inner),
877        }
878    }
879}
880impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_log_stream::DeleteLogStreamError, R>> for Error
881where
882    R: Send + Sync + std::fmt::Debug + 'static,
883{
884    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_log_stream::DeleteLogStreamError, R>) -> Self {
885        match err {
886            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
887            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
888                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
889                source: err.into(),
890            }),
891        }
892    }
893}
894impl From<crate::operation::delete_log_stream::DeleteLogStreamError> for Error {
895    fn from(err: crate::operation::delete_log_stream::DeleteLogStreamError) -> Self {
896        match err {
897            crate::operation::delete_log_stream::DeleteLogStreamError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
898            crate::operation::delete_log_stream::DeleteLogStreamError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
899            crate::operation::delete_log_stream::DeleteLogStreamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
900            crate::operation::delete_log_stream::DeleteLogStreamError::ServiceUnavailableException(inner) => {
901                Error::ServiceUnavailableException(inner)
902            }
903            crate::operation::delete_log_stream::DeleteLogStreamError::ValidationException(inner) => Error::ValidationException(inner),
904            crate::operation::delete_log_stream::DeleteLogStreamError::Unhandled(inner) => Error::Unhandled(inner),
905        }
906    }
907}
908impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lookup_table::DeleteLookupTableError, R>> for Error
909where
910    R: Send + Sync + std::fmt::Debug + 'static,
911{
912    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_lookup_table::DeleteLookupTableError, R>) -> Self {
913        match err {
914            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
915            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
916                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
917                source: err.into(),
918            }),
919        }
920    }
921}
922impl From<crate::operation::delete_lookup_table::DeleteLookupTableError> for Error {
923    fn from(err: crate::operation::delete_lookup_table::DeleteLookupTableError) -> Self {
924        match err {
925            crate::operation::delete_lookup_table::DeleteLookupTableError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
926            crate::operation::delete_lookup_table::DeleteLookupTableError::InvalidParameterException(inner) => {
927                Error::InvalidParameterException(inner)
928            }
929            crate::operation::delete_lookup_table::DeleteLookupTableError::ResourceNotFoundException(inner) => {
930                Error::ResourceNotFoundException(inner)
931            }
932            crate::operation::delete_lookup_table::DeleteLookupTableError::ServiceUnavailableException(inner) => {
933                Error::ServiceUnavailableException(inner)
934            }
935            crate::operation::delete_lookup_table::DeleteLookupTableError::Unhandled(inner) => Error::Unhandled(inner),
936        }
937    }
938}
939impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_metric_filter::DeleteMetricFilterError, R>> for Error
940where
941    R: Send + Sync + std::fmt::Debug + 'static,
942{
943    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_metric_filter::DeleteMetricFilterError, R>) -> Self {
944        match err {
945            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
946            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
947                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
948                source: err.into(),
949            }),
950        }
951    }
952}
953impl From<crate::operation::delete_metric_filter::DeleteMetricFilterError> for Error {
954    fn from(err: crate::operation::delete_metric_filter::DeleteMetricFilterError) -> Self {
955        match err {
956            crate::operation::delete_metric_filter::DeleteMetricFilterError::InvalidParameterException(inner) => {
957                Error::InvalidParameterException(inner)
958            }
959            crate::operation::delete_metric_filter::DeleteMetricFilterError::OperationAbortedException(inner) => {
960                Error::OperationAbortedException(inner)
961            }
962            crate::operation::delete_metric_filter::DeleteMetricFilterError::ResourceNotFoundException(inner) => {
963                Error::ResourceNotFoundException(inner)
964            }
965            crate::operation::delete_metric_filter::DeleteMetricFilterError::ServiceUnavailableException(inner) => {
966                Error::ServiceUnavailableException(inner)
967            }
968            crate::operation::delete_metric_filter::DeleteMetricFilterError::Unhandled(inner) => Error::Unhandled(inner),
969        }
970    }
971}
972impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_query_definition::DeleteQueryDefinitionError, R>> for Error
973where
974    R: Send + Sync + std::fmt::Debug + 'static,
975{
976    fn from(
977        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_query_definition::DeleteQueryDefinitionError, R>,
978    ) -> Self {
979        match err {
980            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
981            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
982                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
983                source: err.into(),
984            }),
985        }
986    }
987}
988impl From<crate::operation::delete_query_definition::DeleteQueryDefinitionError> for Error {
989    fn from(err: crate::operation::delete_query_definition::DeleteQueryDefinitionError) -> Self {
990        match err {
991            crate::operation::delete_query_definition::DeleteQueryDefinitionError::InvalidParameterException(inner) => {
992                Error::InvalidParameterException(inner)
993            }
994            crate::operation::delete_query_definition::DeleteQueryDefinitionError::ResourceNotFoundException(inner) => {
995                Error::ResourceNotFoundException(inner)
996            }
997            crate::operation::delete_query_definition::DeleteQueryDefinitionError::ServiceUnavailableException(inner) => {
998                Error::ServiceUnavailableException(inner)
999            }
1000            crate::operation::delete_query_definition::DeleteQueryDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
1001        }
1002    }
1003}
1004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
1005where
1006    R: Send + Sync + std::fmt::Debug + 'static,
1007{
1008    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
1009        match err {
1010            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1011            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1012                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1013                source: err.into(),
1014            }),
1015        }
1016    }
1017}
1018impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
1019    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
1020        match err {
1021            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidParameterException(inner) => {
1022                Error::InvalidParameterException(inner)
1023            }
1024            crate::operation::delete_resource_policy::DeleteResourcePolicyError::OperationAbortedException(inner) => {
1025                Error::OperationAbortedException(inner)
1026            }
1027            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
1028                Error::ResourceNotFoundException(inner)
1029            }
1030            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ServiceUnavailableException(inner) => {
1031                Error::ServiceUnavailableException(inner)
1032            }
1033            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1034        }
1035    }
1036}
1037impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_retention_policy::DeleteRetentionPolicyError, R>> for Error
1038where
1039    R: Send + Sync + std::fmt::Debug + 'static,
1040{
1041    fn from(
1042        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_retention_policy::DeleteRetentionPolicyError, R>,
1043    ) -> Self {
1044        match err {
1045            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1046            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1047                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1048                source: err.into(),
1049            }),
1050        }
1051    }
1052}
1053impl From<crate::operation::delete_retention_policy::DeleteRetentionPolicyError> for Error {
1054    fn from(err: crate::operation::delete_retention_policy::DeleteRetentionPolicyError) -> Self {
1055        match err {
1056            crate::operation::delete_retention_policy::DeleteRetentionPolicyError::InvalidParameterException(inner) => {
1057                Error::InvalidParameterException(inner)
1058            }
1059            crate::operation::delete_retention_policy::DeleteRetentionPolicyError::OperationAbortedException(inner) => {
1060                Error::OperationAbortedException(inner)
1061            }
1062            crate::operation::delete_retention_policy::DeleteRetentionPolicyError::ResourceNotFoundException(inner) => {
1063                Error::ResourceNotFoundException(inner)
1064            }
1065            crate::operation::delete_retention_policy::DeleteRetentionPolicyError::ServiceUnavailableException(inner) => {
1066                Error::ServiceUnavailableException(inner)
1067            }
1068            crate::operation::delete_retention_policy::DeleteRetentionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1069        }
1070    }
1071}
1072impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scheduled_query::DeleteScheduledQueryError, R>> for Error
1073where
1074    R: Send + Sync + std::fmt::Debug + 'static,
1075{
1076    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scheduled_query::DeleteScheduledQueryError, R>) -> Self {
1077        match err {
1078            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1079            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1080                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1081                source: err.into(),
1082            }),
1083        }
1084    }
1085}
1086impl From<crate::operation::delete_scheduled_query::DeleteScheduledQueryError> for Error {
1087    fn from(err: crate::operation::delete_scheduled_query::DeleteScheduledQueryError) -> Self {
1088        match err {
1089            crate::operation::delete_scheduled_query::DeleteScheduledQueryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1090            crate::operation::delete_scheduled_query::DeleteScheduledQueryError::InternalServerException(inner) => {
1091                Error::InternalServerException(inner)
1092            }
1093            crate::operation::delete_scheduled_query::DeleteScheduledQueryError::ResourceNotFoundException(inner) => {
1094                Error::ResourceNotFoundException(inner)
1095            }
1096            crate::operation::delete_scheduled_query::DeleteScheduledQueryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1097            crate::operation::delete_scheduled_query::DeleteScheduledQueryError::ValidationException(inner) => Error::ValidationException(inner),
1098            crate::operation::delete_scheduled_query::DeleteScheduledQueryError::Unhandled(inner) => Error::Unhandled(inner),
1099        }
1100    }
1101}
1102impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError, R>>
1103    for Error
1104where
1105    R: Send + Sync + std::fmt::Debug + 'static,
1106{
1107    fn from(
1108        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError, R>,
1109    ) -> Self {
1110        match err {
1111            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1112            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1113                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1114                source: err.into(),
1115            }),
1116        }
1117    }
1118}
1119impl From<crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError> for Error {
1120    fn from(err: crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError) -> Self {
1121        match err {
1122            crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError::InvalidParameterException(inner) => {
1123                Error::InvalidParameterException(inner)
1124            }
1125            crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError::OperationAbortedException(inner) => {
1126                Error::OperationAbortedException(inner)
1127            }
1128            crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError::ResourceNotFoundException(inner) => {
1129                Error::ResourceNotFoundException(inner)
1130            }
1131            crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError::ServiceUnavailableException(inner) => {
1132                Error::ServiceUnavailableException(inner)
1133            }
1134            crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError::Unhandled(inner) => Error::Unhandled(inner),
1135        }
1136    }
1137}
1138impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_syslog_configuration::DeleteSyslogConfigurationError, R>>
1139    for Error
1140where
1141    R: Send + Sync + std::fmt::Debug + 'static,
1142{
1143    fn from(
1144        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_syslog_configuration::DeleteSyslogConfigurationError, R>,
1145    ) -> Self {
1146        match err {
1147            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1148            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1149                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1150                source: err.into(),
1151            }),
1152        }
1153    }
1154}
1155impl From<crate::operation::delete_syslog_configuration::DeleteSyslogConfigurationError> for Error {
1156    fn from(err: crate::operation::delete_syslog_configuration::DeleteSyslogConfigurationError) -> Self {
1157        match err {
1158            crate::operation::delete_syslog_configuration::DeleteSyslogConfigurationError::AccessDeniedException(inner) => {
1159                Error::AccessDeniedException(inner)
1160            }
1161            crate::operation::delete_syslog_configuration::DeleteSyslogConfigurationError::InvalidOperationException(inner) => {
1162                Error::InvalidOperationException(inner)
1163            }
1164            crate::operation::delete_syslog_configuration::DeleteSyslogConfigurationError::InvalidParameterException(inner) => {
1165                Error::InvalidParameterException(inner)
1166            }
1167            crate::operation::delete_syslog_configuration::DeleteSyslogConfigurationError::OperationAbortedException(inner) => {
1168                Error::OperationAbortedException(inner)
1169            }
1170            crate::operation::delete_syslog_configuration::DeleteSyslogConfigurationError::ResourceNotFoundException(inner) => {
1171                Error::ResourceNotFoundException(inner)
1172            }
1173            crate::operation::delete_syslog_configuration::DeleteSyslogConfigurationError::ServiceUnavailableException(inner) => {
1174                Error::ServiceUnavailableException(inner)
1175            }
1176            crate::operation::delete_syslog_configuration::DeleteSyslogConfigurationError::ThrottlingException(inner) => {
1177                Error::ThrottlingException(inner)
1178            }
1179            crate::operation::delete_syslog_configuration::DeleteSyslogConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1180        }
1181    }
1182}
1183impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transformer::DeleteTransformerError, R>> for Error
1184where
1185    R: Send + Sync + std::fmt::Debug + 'static,
1186{
1187    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transformer::DeleteTransformerError, R>) -> Self {
1188        match err {
1189            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1190            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1191                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1192                source: err.into(),
1193            }),
1194        }
1195    }
1196}
1197impl From<crate::operation::delete_transformer::DeleteTransformerError> for Error {
1198    fn from(err: crate::operation::delete_transformer::DeleteTransformerError) -> Self {
1199        match err {
1200            crate::operation::delete_transformer::DeleteTransformerError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
1201            crate::operation::delete_transformer::DeleteTransformerError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1202            crate::operation::delete_transformer::DeleteTransformerError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
1203            crate::operation::delete_transformer::DeleteTransformerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1204            crate::operation::delete_transformer::DeleteTransformerError::ServiceUnavailableException(inner) => {
1205                Error::ServiceUnavailableException(inner)
1206            }
1207            crate::operation::delete_transformer::DeleteTransformerError::Unhandled(inner) => Error::Unhandled(inner),
1208        }
1209    }
1210}
1211impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_policies::DescribeAccountPoliciesError, 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::describe_account_policies::DescribeAccountPoliciesError, 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::describe_account_policies::DescribeAccountPoliciesError> for Error {
1229    fn from(err: crate::operation::describe_account_policies::DescribeAccountPoliciesError) -> Self {
1230        match err {
1231            crate::operation::describe_account_policies::DescribeAccountPoliciesError::InvalidParameterException(inner) => {
1232                Error::InvalidParameterException(inner)
1233            }
1234            crate::operation::describe_account_policies::DescribeAccountPoliciesError::OperationAbortedException(inner) => {
1235                Error::OperationAbortedException(inner)
1236            }
1237            crate::operation::describe_account_policies::DescribeAccountPoliciesError::ResourceNotFoundException(inner) => {
1238                Error::ResourceNotFoundException(inner)
1239            }
1240            crate::operation::describe_account_policies::DescribeAccountPoliciesError::ServiceUnavailableException(inner) => {
1241                Error::ServiceUnavailableException(inner)
1242            }
1243            crate::operation::describe_account_policies::DescribeAccountPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1244        }
1245    }
1246}
1247impl<R>
1248    From<
1249        ::aws_smithy_runtime_api::client::result::SdkError<
1250            crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError,
1251            R,
1252        >,
1253    > for Error
1254where
1255    R: Send + Sync + std::fmt::Debug + 'static,
1256{
1257    fn from(
1258        err: ::aws_smithy_runtime_api::client::result::SdkError<
1259            crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError,
1260            R,
1261        >,
1262    ) -> Self {
1263        match err {
1264            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1265            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1266                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1267                source: err.into(),
1268            }),
1269        }
1270    }
1271}
1272impl From<crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError> for Error {
1273    fn from(err: crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError) -> Self {
1274        match err {
1275            crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::ResourceNotFoundException(inner) => {
1276                Error::ResourceNotFoundException(inner)
1277            }
1278            crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::ServiceUnavailableException(inner) => {
1279                Error::ServiceUnavailableException(inner)
1280            }
1281            crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::ThrottlingException(inner) => {
1282                Error::ThrottlingException(inner)
1283            }
1284            crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::ValidationException(inner) => {
1285                Error::ValidationException(inner)
1286            }
1287            crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
1288        }
1289    }
1290}
1291impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_deliveries::DescribeDeliveriesError, R>> for Error
1292where
1293    R: Send + Sync + std::fmt::Debug + 'static,
1294{
1295    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_deliveries::DescribeDeliveriesError, R>) -> Self {
1296        match err {
1297            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1298            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1299                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1300                source: err.into(),
1301            }),
1302        }
1303    }
1304}
1305impl From<crate::operation::describe_deliveries::DescribeDeliveriesError> for Error {
1306    fn from(err: crate::operation::describe_deliveries::DescribeDeliveriesError) -> Self {
1307        match err {
1308            crate::operation::describe_deliveries::DescribeDeliveriesError::ServiceQuotaExceededException(inner) => {
1309                Error::ServiceQuotaExceededException(inner)
1310            }
1311            crate::operation::describe_deliveries::DescribeDeliveriesError::ServiceUnavailableException(inner) => {
1312                Error::ServiceUnavailableException(inner)
1313            }
1314            crate::operation::describe_deliveries::DescribeDeliveriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1315            crate::operation::describe_deliveries::DescribeDeliveriesError::ValidationException(inner) => Error::ValidationException(inner),
1316            crate::operation::describe_deliveries::DescribeDeliveriesError::Unhandled(inner) => Error::Unhandled(inner),
1317        }
1318    }
1319}
1320impl<R>
1321    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError, R>>
1322    for Error
1323where
1324    R: Send + Sync + std::fmt::Debug + 'static,
1325{
1326    fn from(
1327        err: ::aws_smithy_runtime_api::client::result::SdkError<
1328            crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError,
1329            R,
1330        >,
1331    ) -> Self {
1332        match err {
1333            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1334            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1335                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1336                source: err.into(),
1337            }),
1338        }
1339    }
1340}
1341impl From<crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError> for Error {
1342    fn from(err: crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError) -> Self {
1343        match err {
1344            crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::ServiceQuotaExceededException(inner) => {
1345                Error::ServiceQuotaExceededException(inner)
1346            }
1347            crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::ServiceUnavailableException(inner) => {
1348                Error::ServiceUnavailableException(inner)
1349            }
1350            crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::ThrottlingException(inner) => {
1351                Error::ThrottlingException(inner)
1352            }
1353            crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::ValidationException(inner) => {
1354                Error::ValidationException(inner)
1355            }
1356            crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::Unhandled(inner) => Error::Unhandled(inner),
1357        }
1358    }
1359}
1360impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_sources::DescribeDeliverySourcesError, R>>
1361    for Error
1362where
1363    R: Send + Sync + std::fmt::Debug + 'static,
1364{
1365    fn from(
1366        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_sources::DescribeDeliverySourcesError, R>,
1367    ) -> Self {
1368        match err {
1369            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1370            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1371                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1372                source: err.into(),
1373            }),
1374        }
1375    }
1376}
1377impl From<crate::operation::describe_delivery_sources::DescribeDeliverySourcesError> for Error {
1378    fn from(err: crate::operation::describe_delivery_sources::DescribeDeliverySourcesError) -> Self {
1379        match err {
1380            crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::ServiceQuotaExceededException(inner) => {
1381                Error::ServiceQuotaExceededException(inner)
1382            }
1383            crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::ServiceUnavailableException(inner) => {
1384                Error::ServiceUnavailableException(inner)
1385            }
1386            crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::ThrottlingException(inner) => {
1387                Error::ThrottlingException(inner)
1388            }
1389            crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::ValidationException(inner) => {
1390                Error::ValidationException(inner)
1391            }
1392            crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::Unhandled(inner) => Error::Unhandled(inner),
1393        }
1394    }
1395}
1396impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_destinations::DescribeDestinationsError, R>> for Error
1397where
1398    R: Send + Sync + std::fmt::Debug + 'static,
1399{
1400    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_destinations::DescribeDestinationsError, R>) -> Self {
1401        match err {
1402            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1403            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1404                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1405                source: err.into(),
1406            }),
1407        }
1408    }
1409}
1410impl From<crate::operation::describe_destinations::DescribeDestinationsError> for Error {
1411    fn from(err: crate::operation::describe_destinations::DescribeDestinationsError) -> Self {
1412        match err {
1413            crate::operation::describe_destinations::DescribeDestinationsError::InvalidParameterException(inner) => {
1414                Error::InvalidParameterException(inner)
1415            }
1416            crate::operation::describe_destinations::DescribeDestinationsError::ServiceUnavailableException(inner) => {
1417                Error::ServiceUnavailableException(inner)
1418            }
1419            crate::operation::describe_destinations::DescribeDestinationsError::Unhandled(inner) => Error::Unhandled(inner),
1420        }
1421    }
1422}
1423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>> for Error
1424where
1425    R: Send + Sync + std::fmt::Debug + 'static,
1426{
1427    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>) -> Self {
1428        match err {
1429            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1430            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1431                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1432                source: err.into(),
1433            }),
1434        }
1435    }
1436}
1437impl From<crate::operation::describe_export_tasks::DescribeExportTasksError> for Error {
1438    fn from(err: crate::operation::describe_export_tasks::DescribeExportTasksError) -> Self {
1439        match err {
1440            crate::operation::describe_export_tasks::DescribeExportTasksError::InvalidParameterException(inner) => {
1441                Error::InvalidParameterException(inner)
1442            }
1443            crate::operation::describe_export_tasks::DescribeExportTasksError::ServiceUnavailableException(inner) => {
1444                Error::ServiceUnavailableException(inner)
1445            }
1446            crate::operation::describe_export_tasks::DescribeExportTasksError::Unhandled(inner) => Error::Unhandled(inner),
1447        }
1448    }
1449}
1450impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_field_indexes::DescribeFieldIndexesError, R>> for Error
1451where
1452    R: Send + Sync + std::fmt::Debug + 'static,
1453{
1454    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_field_indexes::DescribeFieldIndexesError, R>) -> Self {
1455        match err {
1456            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1457            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1458                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1459                source: err.into(),
1460            }),
1461        }
1462    }
1463}
1464impl From<crate::operation::describe_field_indexes::DescribeFieldIndexesError> for Error {
1465    fn from(err: crate::operation::describe_field_indexes::DescribeFieldIndexesError) -> Self {
1466        match err {
1467            crate::operation::describe_field_indexes::DescribeFieldIndexesError::InvalidParameterException(inner) => {
1468                Error::InvalidParameterException(inner)
1469            }
1470            crate::operation::describe_field_indexes::DescribeFieldIndexesError::LimitExceededException(inner) => {
1471                Error::LimitExceededException(inner)
1472            }
1473            crate::operation::describe_field_indexes::DescribeFieldIndexesError::OperationAbortedException(inner) => {
1474                Error::OperationAbortedException(inner)
1475            }
1476            crate::operation::describe_field_indexes::DescribeFieldIndexesError::ResourceNotFoundException(inner) => {
1477                Error::ResourceNotFoundException(inner)
1478            }
1479            crate::operation::describe_field_indexes::DescribeFieldIndexesError::ServiceUnavailableException(inner) => {
1480                Error::ServiceUnavailableException(inner)
1481            }
1482            crate::operation::describe_field_indexes::DescribeFieldIndexesError::Unhandled(inner) => Error::Unhandled(inner),
1483        }
1484    }
1485}
1486impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError, R>>
1487    for Error
1488where
1489    R: Send + Sync + std::fmt::Debug + 'static,
1490{
1491    fn from(
1492        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError, R>,
1493    ) -> Self {
1494        match err {
1495            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1496            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1497                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1498                source: err.into(),
1499            }),
1500        }
1501    }
1502}
1503impl From<crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError> for Error {
1504    fn from(err: crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError) -> Self {
1505        match err {
1506            crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError::AccessDeniedException(inner) => {
1507                Error::AccessDeniedException(inner)
1508            }
1509            crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError::InvalidOperationException(inner) => {
1510                Error::InvalidOperationException(inner)
1511            }
1512            crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError::InvalidParameterException(inner) => {
1513                Error::InvalidParameterException(inner)
1514            }
1515            crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError::ResourceNotFoundException(inner) => {
1516                Error::ResourceNotFoundException(inner)
1517            }
1518            crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError::ThrottlingException(inner) => {
1519                Error::ThrottlingException(inner)
1520            }
1521            crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError::Unhandled(inner) => Error::Unhandled(inner),
1522        }
1523    }
1524}
1525impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_tasks::DescribeImportTasksError, R>> for Error
1526where
1527    R: Send + Sync + std::fmt::Debug + 'static,
1528{
1529    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_tasks::DescribeImportTasksError, R>) -> Self {
1530        match err {
1531            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1532            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1533                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1534                source: err.into(),
1535            }),
1536        }
1537    }
1538}
1539impl From<crate::operation::describe_import_tasks::DescribeImportTasksError> for Error {
1540    fn from(err: crate::operation::describe_import_tasks::DescribeImportTasksError) -> Self {
1541        match err {
1542            crate::operation::describe_import_tasks::DescribeImportTasksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1543            crate::operation::describe_import_tasks::DescribeImportTasksError::InvalidOperationException(inner) => {
1544                Error::InvalidOperationException(inner)
1545            }
1546            crate::operation::describe_import_tasks::DescribeImportTasksError::InvalidParameterException(inner) => {
1547                Error::InvalidParameterException(inner)
1548            }
1549            crate::operation::describe_import_tasks::DescribeImportTasksError::ResourceNotFoundException(inner) => {
1550                Error::ResourceNotFoundException(inner)
1551            }
1552            crate::operation::describe_import_tasks::DescribeImportTasksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1553            crate::operation::describe_import_tasks::DescribeImportTasksError::Unhandled(inner) => Error::Unhandled(inner),
1554        }
1555    }
1556}
1557impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_index_policies::DescribeIndexPoliciesError, R>> for Error
1558where
1559    R: Send + Sync + std::fmt::Debug + 'static,
1560{
1561    fn from(
1562        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_index_policies::DescribeIndexPoliciesError, R>,
1563    ) -> Self {
1564        match err {
1565            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1566            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1567                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1568                source: err.into(),
1569            }),
1570        }
1571    }
1572}
1573impl From<crate::operation::describe_index_policies::DescribeIndexPoliciesError> for Error {
1574    fn from(err: crate::operation::describe_index_policies::DescribeIndexPoliciesError) -> Self {
1575        match err {
1576            crate::operation::describe_index_policies::DescribeIndexPoliciesError::InvalidParameterException(inner) => {
1577                Error::InvalidParameterException(inner)
1578            }
1579            crate::operation::describe_index_policies::DescribeIndexPoliciesError::LimitExceededException(inner) => {
1580                Error::LimitExceededException(inner)
1581            }
1582            crate::operation::describe_index_policies::DescribeIndexPoliciesError::OperationAbortedException(inner) => {
1583                Error::OperationAbortedException(inner)
1584            }
1585            crate::operation::describe_index_policies::DescribeIndexPoliciesError::ResourceNotFoundException(inner) => {
1586                Error::ResourceNotFoundException(inner)
1587            }
1588            crate::operation::describe_index_policies::DescribeIndexPoliciesError::ServiceUnavailableException(inner) => {
1589                Error::ServiceUnavailableException(inner)
1590            }
1591            crate::operation::describe_index_policies::DescribeIndexPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1592        }
1593    }
1594}
1595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_log_groups::DescribeLogGroupsError, R>> for Error
1596where
1597    R: Send + Sync + std::fmt::Debug + 'static,
1598{
1599    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_log_groups::DescribeLogGroupsError, R>) -> Self {
1600        match err {
1601            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1602            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1603                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1604                source: err.into(),
1605            }),
1606        }
1607    }
1608}
1609impl From<crate::operation::describe_log_groups::DescribeLogGroupsError> for Error {
1610    fn from(err: crate::operation::describe_log_groups::DescribeLogGroupsError) -> Self {
1611        match err {
1612            crate::operation::describe_log_groups::DescribeLogGroupsError::InvalidParameterException(inner) => {
1613                Error::InvalidParameterException(inner)
1614            }
1615            crate::operation::describe_log_groups::DescribeLogGroupsError::ServiceUnavailableException(inner) => {
1616                Error::ServiceUnavailableException(inner)
1617            }
1618            crate::operation::describe_log_groups::DescribeLogGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1619        }
1620    }
1621}
1622impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_log_streams::DescribeLogStreamsError, R>> for Error
1623where
1624    R: Send + Sync + std::fmt::Debug + 'static,
1625{
1626    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_log_streams::DescribeLogStreamsError, R>) -> Self {
1627        match err {
1628            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1629            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1630                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1631                source: err.into(),
1632            }),
1633        }
1634    }
1635}
1636impl From<crate::operation::describe_log_streams::DescribeLogStreamsError> for Error {
1637    fn from(err: crate::operation::describe_log_streams::DescribeLogStreamsError) -> Self {
1638        match err {
1639            crate::operation::describe_log_streams::DescribeLogStreamsError::InvalidParameterException(inner) => {
1640                Error::InvalidParameterException(inner)
1641            }
1642            crate::operation::describe_log_streams::DescribeLogStreamsError::ResourceNotFoundException(inner) => {
1643                Error::ResourceNotFoundException(inner)
1644            }
1645            crate::operation::describe_log_streams::DescribeLogStreamsError::ServiceUnavailableException(inner) => {
1646                Error::ServiceUnavailableException(inner)
1647            }
1648            crate::operation::describe_log_streams::DescribeLogStreamsError::Unhandled(inner) => Error::Unhandled(inner),
1649        }
1650    }
1651}
1652impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lookup_tables::DescribeLookupTablesError, R>> for Error
1653where
1654    R: Send + Sync + std::fmt::Debug + 'static,
1655{
1656    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lookup_tables::DescribeLookupTablesError, R>) -> Self {
1657        match err {
1658            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1659            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1660                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1661                source: err.into(),
1662            }),
1663        }
1664    }
1665}
1666impl From<crate::operation::describe_lookup_tables::DescribeLookupTablesError> for Error {
1667    fn from(err: crate::operation::describe_lookup_tables::DescribeLookupTablesError) -> Self {
1668        match err {
1669            crate::operation::describe_lookup_tables::DescribeLookupTablesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1670            crate::operation::describe_lookup_tables::DescribeLookupTablesError::InvalidParameterException(inner) => {
1671                Error::InvalidParameterException(inner)
1672            }
1673            crate::operation::describe_lookup_tables::DescribeLookupTablesError::ResourceNotFoundException(inner) => {
1674                Error::ResourceNotFoundException(inner)
1675            }
1676            crate::operation::describe_lookup_tables::DescribeLookupTablesError::ServiceUnavailableException(inner) => {
1677                Error::ServiceUnavailableException(inner)
1678            }
1679            crate::operation::describe_lookup_tables::DescribeLookupTablesError::Unhandled(inner) => Error::Unhandled(inner),
1680        }
1681    }
1682}
1683impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_metric_filters::DescribeMetricFiltersError, R>> for Error
1684where
1685    R: Send + Sync + std::fmt::Debug + 'static,
1686{
1687    fn from(
1688        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_metric_filters::DescribeMetricFiltersError, R>,
1689    ) -> Self {
1690        match err {
1691            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1692            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1693                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1694                source: err.into(),
1695            }),
1696        }
1697    }
1698}
1699impl From<crate::operation::describe_metric_filters::DescribeMetricFiltersError> for Error {
1700    fn from(err: crate::operation::describe_metric_filters::DescribeMetricFiltersError) -> Self {
1701        match err {
1702            crate::operation::describe_metric_filters::DescribeMetricFiltersError::InvalidParameterException(inner) => {
1703                Error::InvalidParameterException(inner)
1704            }
1705            crate::operation::describe_metric_filters::DescribeMetricFiltersError::ResourceNotFoundException(inner) => {
1706                Error::ResourceNotFoundException(inner)
1707            }
1708            crate::operation::describe_metric_filters::DescribeMetricFiltersError::ServiceUnavailableException(inner) => {
1709                Error::ServiceUnavailableException(inner)
1710            }
1711            crate::operation::describe_metric_filters::DescribeMetricFiltersError::Unhandled(inner) => Error::Unhandled(inner),
1712        }
1713    }
1714}
1715impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_queries::DescribeQueriesError, R>> for Error
1716where
1717    R: Send + Sync + std::fmt::Debug + 'static,
1718{
1719    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_queries::DescribeQueriesError, R>) -> Self {
1720        match err {
1721            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1722            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1723                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1724                source: err.into(),
1725            }),
1726        }
1727    }
1728}
1729impl From<crate::operation::describe_queries::DescribeQueriesError> for Error {
1730    fn from(err: crate::operation::describe_queries::DescribeQueriesError) -> Self {
1731        match err {
1732            crate::operation::describe_queries::DescribeQueriesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1733            crate::operation::describe_queries::DescribeQueriesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1734            crate::operation::describe_queries::DescribeQueriesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1735            crate::operation::describe_queries::DescribeQueriesError::Unhandled(inner) => Error::Unhandled(inner),
1736        }
1737    }
1738}
1739impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_query_definitions::DescribeQueryDefinitionsError, R>>
1740    for Error
1741where
1742    R: Send + Sync + std::fmt::Debug + 'static,
1743{
1744    fn from(
1745        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_query_definitions::DescribeQueryDefinitionsError, R>,
1746    ) -> Self {
1747        match err {
1748            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1749            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1750                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1751                source: err.into(),
1752            }),
1753        }
1754    }
1755}
1756impl From<crate::operation::describe_query_definitions::DescribeQueryDefinitionsError> for Error {
1757    fn from(err: crate::operation::describe_query_definitions::DescribeQueryDefinitionsError) -> Self {
1758        match err {
1759            crate::operation::describe_query_definitions::DescribeQueryDefinitionsError::InvalidParameterException(inner) => {
1760                Error::InvalidParameterException(inner)
1761            }
1762            crate::operation::describe_query_definitions::DescribeQueryDefinitionsError::ServiceUnavailableException(inner) => {
1763                Error::ServiceUnavailableException(inner)
1764            }
1765            crate::operation::describe_query_definitions::DescribeQueryDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
1766        }
1767    }
1768}
1769impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policies::DescribeResourcePoliciesError, R>>
1770    for Error
1771where
1772    R: Send + Sync + std::fmt::Debug + 'static,
1773{
1774    fn from(
1775        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policies::DescribeResourcePoliciesError, R>,
1776    ) -> Self {
1777        match err {
1778            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1779            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1780                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1781                source: err.into(),
1782            }),
1783        }
1784    }
1785}
1786impl From<crate::operation::describe_resource_policies::DescribeResourcePoliciesError> for Error {
1787    fn from(err: crate::operation::describe_resource_policies::DescribeResourcePoliciesError) -> Self {
1788        match err {
1789            crate::operation::describe_resource_policies::DescribeResourcePoliciesError::InvalidParameterException(inner) => {
1790                Error::InvalidParameterException(inner)
1791            }
1792            crate::operation::describe_resource_policies::DescribeResourcePoliciesError::ServiceUnavailableException(inner) => {
1793                Error::ServiceUnavailableException(inner)
1794            }
1795            crate::operation::describe_resource_policies::DescribeResourcePoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1796        }
1797    }
1798}
1799impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError, R>>
1800    for Error
1801where
1802    R: Send + Sync + std::fmt::Debug + 'static,
1803{
1804    fn from(
1805        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError, R>,
1806    ) -> Self {
1807        match err {
1808            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1809            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1810                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1811                source: err.into(),
1812            }),
1813        }
1814    }
1815}
1816impl From<crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError> for Error {
1817    fn from(err: crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError) -> Self {
1818        match err {
1819            crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError::InvalidParameterException(inner) => {
1820                Error::InvalidParameterException(inner)
1821            }
1822            crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError::ResourceNotFoundException(inner) => {
1823                Error::ResourceNotFoundException(inner)
1824            }
1825            crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError::ServiceUnavailableException(inner) => {
1826                Error::ServiceUnavailableException(inner)
1827            }
1828            crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError::Unhandled(inner) => Error::Unhandled(inner),
1829        }
1830    }
1831}
1832impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_kms_key::DisassociateKmsKeyError, R>> for Error
1833where
1834    R: Send + Sync + std::fmt::Debug + 'static,
1835{
1836    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_kms_key::DisassociateKmsKeyError, R>) -> Self {
1837        match err {
1838            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1839            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1840                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1841                source: err.into(),
1842            }),
1843        }
1844    }
1845}
1846impl From<crate::operation::disassociate_kms_key::DisassociateKmsKeyError> for Error {
1847    fn from(err: crate::operation::disassociate_kms_key::DisassociateKmsKeyError) -> Self {
1848        match err {
1849            crate::operation::disassociate_kms_key::DisassociateKmsKeyError::InvalidParameterException(inner) => {
1850                Error::InvalidParameterException(inner)
1851            }
1852            crate::operation::disassociate_kms_key::DisassociateKmsKeyError::OperationAbortedException(inner) => {
1853                Error::OperationAbortedException(inner)
1854            }
1855            crate::operation::disassociate_kms_key::DisassociateKmsKeyError::ResourceNotFoundException(inner) => {
1856                Error::ResourceNotFoundException(inner)
1857            }
1858            crate::operation::disassociate_kms_key::DisassociateKmsKeyError::ServiceUnavailableException(inner) => {
1859                Error::ServiceUnavailableException(inner)
1860            }
1861            crate::operation::disassociate_kms_key::DisassociateKmsKeyError::Unhandled(inner) => Error::Unhandled(inner),
1862        }
1863    }
1864}
1865impl<R>
1866    From<
1867        ::aws_smithy_runtime_api::client::result::SdkError<
1868            crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError,
1869            R,
1870        >,
1871    > for Error
1872where
1873    R: Send + Sync + std::fmt::Debug + 'static,
1874{
1875    fn from(
1876        err: ::aws_smithy_runtime_api::client::result::SdkError<
1877            crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError,
1878            R,
1879        >,
1880    ) -> Self {
1881        match err {
1882            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1883            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1884                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1885                source: err.into(),
1886            }),
1887        }
1888    }
1889}
1890impl From<crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError> for Error {
1891    fn from(err: crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError) -> Self {
1892        match err {
1893            crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1894            crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
1895            crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1896            crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1897            crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
1898            crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1899        }
1900    }
1901}
1902impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::filter_log_events::FilterLogEventsError, R>> for Error
1903where
1904    R: Send + Sync + std::fmt::Debug + 'static,
1905{
1906    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::filter_log_events::FilterLogEventsError, R>) -> Self {
1907        match err {
1908            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1909            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1910                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1911                source: err.into(),
1912            }),
1913        }
1914    }
1915}
1916impl From<crate::operation::filter_log_events::FilterLogEventsError> for Error {
1917    fn from(err: crate::operation::filter_log_events::FilterLogEventsError) -> Self {
1918        match err {
1919            crate::operation::filter_log_events::FilterLogEventsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1920            crate::operation::filter_log_events::FilterLogEventsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1921            crate::operation::filter_log_events::FilterLogEventsError::ServiceUnavailableException(inner) => {
1922                Error::ServiceUnavailableException(inner)
1923            }
1924            crate::operation::filter_log_events::FilterLogEventsError::Unhandled(inner) => Error::Unhandled(inner),
1925        }
1926    }
1927}
1928impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_protection_policy::GetDataProtectionPolicyError, R>>
1929    for Error
1930where
1931    R: Send + Sync + std::fmt::Debug + 'static,
1932{
1933    fn from(
1934        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_protection_policy::GetDataProtectionPolicyError, R>,
1935    ) -> Self {
1936        match err {
1937            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1938            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1939                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1940                source: err.into(),
1941            }),
1942        }
1943    }
1944}
1945impl From<crate::operation::get_data_protection_policy::GetDataProtectionPolicyError> for Error {
1946    fn from(err: crate::operation::get_data_protection_policy::GetDataProtectionPolicyError) -> Self {
1947        match err {
1948            crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::InvalidParameterException(inner) => {
1949                Error::InvalidParameterException(inner)
1950            }
1951            crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::OperationAbortedException(inner) => {
1952                Error::OperationAbortedException(inner)
1953            }
1954            crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::ResourceNotFoundException(inner) => {
1955                Error::ResourceNotFoundException(inner)
1956            }
1957            crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::ServiceUnavailableException(inner) => {
1958                Error::ServiceUnavailableException(inner)
1959            }
1960            crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1961        }
1962    }
1963}
1964impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery::GetDeliveryError, R>> for Error
1965where
1966    R: Send + Sync + std::fmt::Debug + 'static,
1967{
1968    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery::GetDeliveryError, R>) -> Self {
1969        match err {
1970            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1971            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1972                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1973                source: err.into(),
1974            }),
1975        }
1976    }
1977}
1978impl From<crate::operation::get_delivery::GetDeliveryError> for Error {
1979    fn from(err: crate::operation::get_delivery::GetDeliveryError) -> Self {
1980        match err {
1981            crate::operation::get_delivery::GetDeliveryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1982            crate::operation::get_delivery::GetDeliveryError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1983            crate::operation::get_delivery::GetDeliveryError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1984            crate::operation::get_delivery::GetDeliveryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1985            crate::operation::get_delivery::GetDeliveryError::ValidationException(inner) => Error::ValidationException(inner),
1986            crate::operation::get_delivery::GetDeliveryError::Unhandled(inner) => Error::Unhandled(inner),
1987        }
1988    }
1989}
1990impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_destination::GetDeliveryDestinationError, R>> for Error
1991where
1992    R: Send + Sync + std::fmt::Debug + 'static,
1993{
1994    fn from(
1995        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_destination::GetDeliveryDestinationError, R>,
1996    ) -> Self {
1997        match err {
1998            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1999            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2000                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2001                source: err.into(),
2002            }),
2003        }
2004    }
2005}
2006impl From<crate::operation::get_delivery_destination::GetDeliveryDestinationError> for Error {
2007    fn from(err: crate::operation::get_delivery_destination::GetDeliveryDestinationError) -> Self {
2008        match err {
2009            crate::operation::get_delivery_destination::GetDeliveryDestinationError::ResourceNotFoundException(inner) => {
2010                Error::ResourceNotFoundException(inner)
2011            }
2012            crate::operation::get_delivery_destination::GetDeliveryDestinationError::ServiceQuotaExceededException(inner) => {
2013                Error::ServiceQuotaExceededException(inner)
2014            }
2015            crate::operation::get_delivery_destination::GetDeliveryDestinationError::ServiceUnavailableException(inner) => {
2016                Error::ServiceUnavailableException(inner)
2017            }
2018            crate::operation::get_delivery_destination::GetDeliveryDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2019            crate::operation::get_delivery_destination::GetDeliveryDestinationError::ValidationException(inner) => Error::ValidationException(inner),
2020            crate::operation::get_delivery_destination::GetDeliveryDestinationError::Unhandled(inner) => Error::Unhandled(inner),
2021        }
2022    }
2023}
2024impl<R>
2025    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError, R>>
2026    for Error
2027where
2028    R: Send + Sync + std::fmt::Debug + 'static,
2029{
2030    fn from(
2031        err: ::aws_smithy_runtime_api::client::result::SdkError<
2032            crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError,
2033            R,
2034        >,
2035    ) -> Self {
2036        match err {
2037            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2038            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2039                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2040                source: err.into(),
2041            }),
2042        }
2043    }
2044}
2045impl From<crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError> for Error {
2046    fn from(err: crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError) -> Self {
2047        match err {
2048            crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError::ResourceNotFoundException(inner) => {
2049                Error::ResourceNotFoundException(inner)
2050            }
2051            crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError::ServiceUnavailableException(inner) => {
2052                Error::ServiceUnavailableException(inner)
2053            }
2054            crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError::ValidationException(inner) => {
2055                Error::ValidationException(inner)
2056            }
2057            crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2058        }
2059    }
2060}
2061impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_source::GetDeliverySourceError, R>> for Error
2062where
2063    R: Send + Sync + std::fmt::Debug + 'static,
2064{
2065    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_source::GetDeliverySourceError, R>) -> Self {
2066        match err {
2067            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2068            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2069                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2070                source: err.into(),
2071            }),
2072        }
2073    }
2074}
2075impl From<crate::operation::get_delivery_source::GetDeliverySourceError> for Error {
2076    fn from(err: crate::operation::get_delivery_source::GetDeliverySourceError) -> Self {
2077        match err {
2078            crate::operation::get_delivery_source::GetDeliverySourceError::ResourceNotFoundException(inner) => {
2079                Error::ResourceNotFoundException(inner)
2080            }
2081            crate::operation::get_delivery_source::GetDeliverySourceError::ServiceQuotaExceededException(inner) => {
2082                Error::ServiceQuotaExceededException(inner)
2083            }
2084            crate::operation::get_delivery_source::GetDeliverySourceError::ServiceUnavailableException(inner) => {
2085                Error::ServiceUnavailableException(inner)
2086            }
2087            crate::operation::get_delivery_source::GetDeliverySourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2088            crate::operation::get_delivery_source::GetDeliverySourceError::ValidationException(inner) => Error::ValidationException(inner),
2089            crate::operation::get_delivery_source::GetDeliverySourceError::Unhandled(inner) => Error::Unhandled(inner),
2090        }
2091    }
2092}
2093impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>> for Error
2094where
2095    R: Send + Sync + std::fmt::Debug + 'static,
2096{
2097    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>) -> Self {
2098        match err {
2099            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2100            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2101                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2102                source: err.into(),
2103            }),
2104        }
2105    }
2106}
2107impl From<crate::operation::get_integration::GetIntegrationError> for Error {
2108    fn from(err: crate::operation::get_integration::GetIntegrationError) -> Self {
2109        match err {
2110            crate::operation::get_integration::GetIntegrationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2111            crate::operation::get_integration::GetIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2112            crate::operation::get_integration::GetIntegrationError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2113            crate::operation::get_integration::GetIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
2114        }
2115    }
2116}
2117impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError, R>> for Error
2118where
2119    R: Send + Sync + std::fmt::Debug + 'static,
2120{
2121    fn from(
2122        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError, R>,
2123    ) -> Self {
2124        match err {
2125            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2126            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2127                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2128                source: err.into(),
2129            }),
2130        }
2131    }
2132}
2133impl From<crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError> for Error {
2134    fn from(err: crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError) -> Self {
2135        match err {
2136            crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::InvalidParameterException(inner) => {
2137                Error::InvalidParameterException(inner)
2138            }
2139            crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::OperationAbortedException(inner) => {
2140                Error::OperationAbortedException(inner)
2141            }
2142            crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::ResourceNotFoundException(inner) => {
2143                Error::ResourceNotFoundException(inner)
2144            }
2145            crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::ServiceUnavailableException(inner) => {
2146                Error::ServiceUnavailableException(inner)
2147            }
2148            crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
2149        }
2150    }
2151}
2152impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_events::GetLogEventsError, R>> for Error
2153where
2154    R: Send + Sync + std::fmt::Debug + 'static,
2155{
2156    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_events::GetLogEventsError, R>) -> Self {
2157        match err {
2158            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2159            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2160                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2161                source: err.into(),
2162            }),
2163        }
2164    }
2165}
2166impl From<crate::operation::get_log_events::GetLogEventsError> for Error {
2167    fn from(err: crate::operation::get_log_events::GetLogEventsError) -> Self {
2168        match err {
2169            crate::operation::get_log_events::GetLogEventsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2170            crate::operation::get_log_events::GetLogEventsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2171            crate::operation::get_log_events::GetLogEventsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2172            crate::operation::get_log_events::GetLogEventsError::Unhandled(inner) => Error::Unhandled(inner),
2173        }
2174    }
2175}
2176impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_fields::GetLogFieldsError, R>> for Error
2177where
2178    R: Send + Sync + std::fmt::Debug + 'static,
2179{
2180    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_fields::GetLogFieldsError, R>) -> Self {
2181        match err {
2182            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2183            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2184                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2185                source: err.into(),
2186            }),
2187        }
2188    }
2189}
2190impl From<crate::operation::get_log_fields::GetLogFieldsError> for Error {
2191    fn from(err: crate::operation::get_log_fields::GetLogFieldsError) -> Self {
2192        match err {
2193            crate::operation::get_log_fields::GetLogFieldsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2194            crate::operation::get_log_fields::GetLogFieldsError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2195            crate::operation::get_log_fields::GetLogFieldsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2196            crate::operation::get_log_fields::GetLogFieldsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2197            crate::operation::get_log_fields::GetLogFieldsError::Unhandled(inner) => Error::Unhandled(inner),
2198        }
2199    }
2200}
2201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_group_fields::GetLogGroupFieldsError, R>> for Error
2202where
2203    R: Send + Sync + std::fmt::Debug + 'static,
2204{
2205    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_group_fields::GetLogGroupFieldsError, R>) -> Self {
2206        match err {
2207            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2208            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2209                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2210                source: err.into(),
2211            }),
2212        }
2213    }
2214}
2215impl From<crate::operation::get_log_group_fields::GetLogGroupFieldsError> for Error {
2216    fn from(err: crate::operation::get_log_group_fields::GetLogGroupFieldsError) -> Self {
2217        match err {
2218            crate::operation::get_log_group_fields::GetLogGroupFieldsError::InvalidParameterException(inner) => {
2219                Error::InvalidParameterException(inner)
2220            }
2221            crate::operation::get_log_group_fields::GetLogGroupFieldsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2222            crate::operation::get_log_group_fields::GetLogGroupFieldsError::ResourceNotFoundException(inner) => {
2223                Error::ResourceNotFoundException(inner)
2224            }
2225            crate::operation::get_log_group_fields::GetLogGroupFieldsError::ServiceUnavailableException(inner) => {
2226                Error::ServiceUnavailableException(inner)
2227            }
2228            crate::operation::get_log_group_fields::GetLogGroupFieldsError::Unhandled(inner) => Error::Unhandled(inner),
2229        }
2230    }
2231}
2232impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_object::GetLogObjectError, R>> for Error
2233where
2234    R: Send + Sync + std::fmt::Debug + 'static,
2235{
2236    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_object::GetLogObjectError, R>) -> Self {
2237        match err {
2238            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2239            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2240                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2241                source: err.into(),
2242            }),
2243        }
2244    }
2245}
2246impl From<crate::operation::get_log_object::GetLogObjectError> for Error {
2247    fn from(err: crate::operation::get_log_object::GetLogObjectError) -> Self {
2248        match err {
2249            crate::operation::get_log_object::GetLogObjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2250            crate::operation::get_log_object::GetLogObjectError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
2251            crate::operation::get_log_object::GetLogObjectError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2252            crate::operation::get_log_object::GetLogObjectError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2253            crate::operation::get_log_object::GetLogObjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2254            crate::operation::get_log_object::GetLogObjectError::InternalStreamingException(inner) => Error::InternalStreamingException(inner),
2255            crate::operation::get_log_object::GetLogObjectError::Unhandled(inner) => Error::Unhandled(inner),
2256        }
2257    }
2258}
2259impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_record::GetLogRecordError, R>> for Error
2260where
2261    R: Send + Sync + std::fmt::Debug + 'static,
2262{
2263    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_record::GetLogRecordError, R>) -> Self {
2264        match err {
2265            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2266            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2267                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2268                source: err.into(),
2269            }),
2270        }
2271    }
2272}
2273impl From<crate::operation::get_log_record::GetLogRecordError> for Error {
2274    fn from(err: crate::operation::get_log_record::GetLogRecordError) -> Self {
2275        match err {
2276            crate::operation::get_log_record::GetLogRecordError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2277            crate::operation::get_log_record::GetLogRecordError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2278            crate::operation::get_log_record::GetLogRecordError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2279            crate::operation::get_log_record::GetLogRecordError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2280            crate::operation::get_log_record::GetLogRecordError::Unhandled(inner) => Error::Unhandled(inner),
2281        }
2282    }
2283}
2284impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lookup_table::GetLookupTableError, R>> for Error
2285where
2286    R: Send + Sync + std::fmt::Debug + 'static,
2287{
2288    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lookup_table::GetLookupTableError, R>) -> Self {
2289        match err {
2290            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2291            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2292                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2293                source: err.into(),
2294            }),
2295        }
2296    }
2297}
2298impl From<crate::operation::get_lookup_table::GetLookupTableError> for Error {
2299    fn from(err: crate::operation::get_lookup_table::GetLookupTableError) -> Self {
2300        match err {
2301            crate::operation::get_lookup_table::GetLookupTableError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2302            crate::operation::get_lookup_table::GetLookupTableError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2303            crate::operation::get_lookup_table::GetLookupTableError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2304            crate::operation::get_lookup_table::GetLookupTableError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2305            crate::operation::get_lookup_table::GetLookupTableError::Unhandled(inner) => Error::Unhandled(inner),
2306        }
2307    }
2308}
2309impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_query_results::GetQueryResultsError, R>> for Error
2310where
2311    R: Send + Sync + std::fmt::Debug + 'static,
2312{
2313    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_query_results::GetQueryResultsError, R>) -> Self {
2314        match err {
2315            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2316            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2317                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2318                source: err.into(),
2319            }),
2320        }
2321    }
2322}
2323impl From<crate::operation::get_query_results::GetQueryResultsError> for Error {
2324    fn from(err: crate::operation::get_query_results::GetQueryResultsError) -> Self {
2325        match err {
2326            crate::operation::get_query_results::GetQueryResultsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2327            crate::operation::get_query_results::GetQueryResultsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2328            crate::operation::get_query_results::GetQueryResultsError::ServiceUnavailableException(inner) => {
2329                Error::ServiceUnavailableException(inner)
2330            }
2331            crate::operation::get_query_results::GetQueryResultsError::Unhandled(inner) => Error::Unhandled(inner),
2332        }
2333    }
2334}
2335impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_query::GetScheduledQueryError, R>> for Error
2336where
2337    R: Send + Sync + std::fmt::Debug + 'static,
2338{
2339    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_query::GetScheduledQueryError, R>) -> Self {
2340        match err {
2341            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2342            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2343                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2344                source: err.into(),
2345            }),
2346        }
2347    }
2348}
2349impl From<crate::operation::get_scheduled_query::GetScheduledQueryError> for Error {
2350    fn from(err: crate::operation::get_scheduled_query::GetScheduledQueryError) -> Self {
2351        match err {
2352            crate::operation::get_scheduled_query::GetScheduledQueryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2353            crate::operation::get_scheduled_query::GetScheduledQueryError::InternalServerException(inner) => Error::InternalServerException(inner),
2354            crate::operation::get_scheduled_query::GetScheduledQueryError::ResourceNotFoundException(inner) => {
2355                Error::ResourceNotFoundException(inner)
2356            }
2357            crate::operation::get_scheduled_query::GetScheduledQueryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2358            crate::operation::get_scheduled_query::GetScheduledQueryError::ValidationException(inner) => Error::ValidationException(inner),
2359            crate::operation::get_scheduled_query::GetScheduledQueryError::Unhandled(inner) => Error::Unhandled(inner),
2360        }
2361    }
2362}
2363impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError, R>>
2364    for Error
2365where
2366    R: Send + Sync + std::fmt::Debug + 'static,
2367{
2368    fn from(
2369        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError, R>,
2370    ) -> Self {
2371        match err {
2372            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2373            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2374                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2375                source: err.into(),
2376            }),
2377        }
2378    }
2379}
2380impl From<crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError> for Error {
2381    fn from(err: crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError) -> Self {
2382        match err {
2383            crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::AccessDeniedException(inner) => {
2384                Error::AccessDeniedException(inner)
2385            }
2386            crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::InternalServerException(inner) => {
2387                Error::InternalServerException(inner)
2388            }
2389            crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::ResourceNotFoundException(inner) => {
2390                Error::ResourceNotFoundException(inner)
2391            }
2392            crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::ThrottlingException(inner) => {
2393                Error::ThrottlingException(inner)
2394            }
2395            crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::ValidationException(inner) => {
2396                Error::ValidationException(inner)
2397            }
2398            crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::Unhandled(inner) => Error::Unhandled(inner),
2399        }
2400    }
2401}
2402impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_storage_tier_policy::GetStorageTierPolicyError, R>> for Error
2403where
2404    R: Send + Sync + std::fmt::Debug + 'static,
2405{
2406    fn from(
2407        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_storage_tier_policy::GetStorageTierPolicyError, R>,
2408    ) -> Self {
2409        match err {
2410            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2411            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2412                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2413                source: err.into(),
2414            }),
2415        }
2416    }
2417}
2418impl From<crate::operation::get_storage_tier_policy::GetStorageTierPolicyError> for Error {
2419    fn from(err: crate::operation::get_storage_tier_policy::GetStorageTierPolicyError) -> Self {
2420        match err {
2421            crate::operation::get_storage_tier_policy::GetStorageTierPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2422            crate::operation::get_storage_tier_policy::GetStorageTierPolicyError::InvalidParameterException(inner) => {
2423                Error::InvalidParameterException(inner)
2424            }
2425            crate::operation::get_storage_tier_policy::GetStorageTierPolicyError::OperationAbortedException(inner) => {
2426                Error::OperationAbortedException(inner)
2427            }
2428            crate::operation::get_storage_tier_policy::GetStorageTierPolicyError::ResourceNotFoundException(inner) => {
2429                Error::ResourceNotFoundException(inner)
2430            }
2431            crate::operation::get_storage_tier_policy::GetStorageTierPolicyError::ServiceUnavailableException(inner) => {
2432                Error::ServiceUnavailableException(inner)
2433            }
2434            crate::operation::get_storage_tier_policy::GetStorageTierPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2435        }
2436    }
2437}
2438impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_transformer::GetTransformerError, R>> for Error
2439where
2440    R: Send + Sync + std::fmt::Debug + 'static,
2441{
2442    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_transformer::GetTransformerError, R>) -> Self {
2443        match err {
2444            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2445            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2446                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2447                source: err.into(),
2448            }),
2449        }
2450    }
2451}
2452impl From<crate::operation::get_transformer::GetTransformerError> for Error {
2453    fn from(err: crate::operation::get_transformer::GetTransformerError) -> Self {
2454        match err {
2455            crate::operation::get_transformer::GetTransformerError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
2456            crate::operation::get_transformer::GetTransformerError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2457            crate::operation::get_transformer::GetTransformerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2458            crate::operation::get_transformer::GetTransformerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2459            crate::operation::get_transformer::GetTransformerError::Unhandled(inner) => Error::Unhandled(inner),
2460        }
2461    }
2462}
2463impl<R>
2464    From<
2465        ::aws_smithy_runtime_api::client::result::SdkError<
2466            crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError,
2467            R,
2468        >,
2469    > for Error
2470where
2471    R: Send + Sync + std::fmt::Debug + 'static,
2472{
2473    fn from(
2474        err: ::aws_smithy_runtime_api::client::result::SdkError<
2475            crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError,
2476            R,
2477        >,
2478    ) -> 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::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError> for Error {
2489    fn from(err: crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError) -> Self {
2490        match err {
2491            crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError::InvalidParameterException(inner) => {
2492                Error::InvalidParameterException(inner)
2493            }
2494            crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError::ServiceUnavailableException(inner) => {
2495                Error::ServiceUnavailableException(inner)
2496            }
2497            crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError::ValidationException(inner) => {
2498                Error::ValidationException(inner)
2499            }
2500            crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError::Unhandled(inner) => Error::Unhandled(inner),
2501        }
2502    }
2503}
2504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_anomalies::ListAnomaliesError, R>> for Error
2505where
2506    R: Send + Sync + std::fmt::Debug + 'static,
2507{
2508    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_anomalies::ListAnomaliesError, R>) -> Self {
2509        match err {
2510            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2511            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2512                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2513                source: err.into(),
2514            }),
2515        }
2516    }
2517}
2518impl From<crate::operation::list_anomalies::ListAnomaliesError> for Error {
2519    fn from(err: crate::operation::list_anomalies::ListAnomaliesError) -> Self {
2520        match err {
2521            crate::operation::list_anomalies::ListAnomaliesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2522            crate::operation::list_anomalies::ListAnomaliesError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2523            crate::operation::list_anomalies::ListAnomaliesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2524            crate::operation::list_anomalies::ListAnomaliesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2525            crate::operation::list_anomalies::ListAnomaliesError::Unhandled(inner) => Error::Unhandled(inner),
2526        }
2527    }
2528}
2529impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrations::ListIntegrationsError, R>> for Error
2530where
2531    R: Send + Sync + std::fmt::Debug + 'static,
2532{
2533    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrations::ListIntegrationsError, R>) -> Self {
2534        match err {
2535            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2536            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2537                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2538                source: err.into(),
2539            }),
2540        }
2541    }
2542}
2543impl From<crate::operation::list_integrations::ListIntegrationsError> for Error {
2544    fn from(err: crate::operation::list_integrations::ListIntegrationsError) -> Self {
2545        match err {
2546            crate::operation::list_integrations::ListIntegrationsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2547            crate::operation::list_integrations::ListIntegrationsError::ServiceUnavailableException(inner) => {
2548                Error::ServiceUnavailableException(inner)
2549            }
2550            crate::operation::list_integrations::ListIntegrationsError::Unhandled(inner) => Error::Unhandled(inner),
2551        }
2552    }
2553}
2554impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError, R>>
2555    for Error
2556where
2557    R: Send + Sync + std::fmt::Debug + 'static,
2558{
2559    fn from(
2560        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError, R>,
2561    ) -> Self {
2562        match err {
2563            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2564            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2565                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2566                source: err.into(),
2567            }),
2568        }
2569    }
2570}
2571impl From<crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError> for Error {
2572    fn from(err: crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError) -> Self {
2573        match err {
2574            crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::InvalidParameterException(inner) => {
2575                Error::InvalidParameterException(inner)
2576            }
2577            crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::OperationAbortedException(inner) => {
2578                Error::OperationAbortedException(inner)
2579            }
2580            crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::ResourceNotFoundException(inner) => {
2581                Error::ResourceNotFoundException(inner)
2582            }
2583            crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::ServiceUnavailableException(inner) => {
2584                Error::ServiceUnavailableException(inner)
2585            }
2586            crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::Unhandled(inner) => Error::Unhandled(inner),
2587        }
2588    }
2589}
2590impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_groups::ListLogGroupsError, R>> for Error
2591where
2592    R: Send + Sync + std::fmt::Debug + 'static,
2593{
2594    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_groups::ListLogGroupsError, R>) -> Self {
2595        match err {
2596            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2597            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2598                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2599                source: err.into(),
2600            }),
2601        }
2602    }
2603}
2604impl From<crate::operation::list_log_groups::ListLogGroupsError> for Error {
2605    fn from(err: crate::operation::list_log_groups::ListLogGroupsError) -> Self {
2606        match err {
2607            crate::operation::list_log_groups::ListLogGroupsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2608            crate::operation::list_log_groups::ListLogGroupsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2609            crate::operation::list_log_groups::ListLogGroupsError::Unhandled(inner) => Error::Unhandled(inner),
2610        }
2611    }
2612}
2613impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError, R>> for Error
2614where
2615    R: Send + Sync + std::fmt::Debug + 'static,
2616{
2617    fn from(
2618        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError, R>,
2619    ) -> Self {
2620        match err {
2621            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2622            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2623                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2624                source: err.into(),
2625            }),
2626        }
2627    }
2628}
2629impl From<crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError> for Error {
2630    fn from(err: crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError) -> Self {
2631        match err {
2632            crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::AccessDeniedException(inner) => {
2633                Error::AccessDeniedException(inner)
2634            }
2635            crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::InvalidParameterException(inner) => {
2636                Error::InvalidParameterException(inner)
2637            }
2638            crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::ResourceNotFoundException(inner) => {
2639                Error::ResourceNotFoundException(inner)
2640            }
2641            crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::ServiceUnavailableException(inner) => {
2642                Error::ServiceUnavailableException(inner)
2643            }
2644            crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::Unhandled(inner) => Error::Unhandled(inner),
2645        }
2646    }
2647}
2648impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scheduled_queries::ListScheduledQueriesError, R>> for Error
2649where
2650    R: Send + Sync + std::fmt::Debug + 'static,
2651{
2652    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scheduled_queries::ListScheduledQueriesError, R>) -> Self {
2653        match err {
2654            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2655            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2656                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2657                source: err.into(),
2658            }),
2659        }
2660    }
2661}
2662impl From<crate::operation::list_scheduled_queries::ListScheduledQueriesError> for Error {
2663    fn from(err: crate::operation::list_scheduled_queries::ListScheduledQueriesError) -> Self {
2664        match err {
2665            crate::operation::list_scheduled_queries::ListScheduledQueriesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2666            crate::operation::list_scheduled_queries::ListScheduledQueriesError::InternalServerException(inner) => {
2667                Error::InternalServerException(inner)
2668            }
2669            crate::operation::list_scheduled_queries::ListScheduledQueriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2670            crate::operation::list_scheduled_queries::ListScheduledQueriesError::ValidationException(inner) => Error::ValidationException(inner),
2671            crate::operation::list_scheduled_queries::ListScheduledQueriesError::Unhandled(inner) => Error::Unhandled(inner),
2672        }
2673    }
2674}
2675impl<R>
2676    From<
2677        ::aws_smithy_runtime_api::client::result::SdkError<
2678            crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError,
2679            R,
2680        >,
2681    > for Error
2682where
2683    R: Send + Sync + std::fmt::Debug + 'static,
2684{
2685    fn from(
2686        err: ::aws_smithy_runtime_api::client::result::SdkError<
2687            crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError,
2688            R,
2689        >,
2690    ) -> Self {
2691        match err {
2692            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2693            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2694                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2695                source: err.into(),
2696            }),
2697        }
2698    }
2699}
2700impl From<crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError> for Error {
2701    fn from(err: crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError) -> Self {
2702        match err {
2703            crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::AccessDeniedException(inner) => {
2704                Error::AccessDeniedException(inner)
2705            }
2706            crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::InternalServerException(inner) => {
2707                Error::InternalServerException(inner)
2708            }
2709            crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::ResourceNotFoundException(inner) => {
2710                Error::ResourceNotFoundException(inner)
2711            }
2712            crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::ThrottlingException(inner) => {
2713                Error::ThrottlingException(inner)
2714            }
2715            crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::ValidationException(inner) => {
2716                Error::ValidationException(inner)
2717            }
2718            crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::Unhandled(inner) => {
2719                Error::Unhandled(inner)
2720            }
2721        }
2722    }
2723}
2724impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_syslog_configurations::ListSyslogConfigurationsError, R>>
2725    for Error
2726where
2727    R: Send + Sync + std::fmt::Debug + 'static,
2728{
2729    fn from(
2730        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_syslog_configurations::ListSyslogConfigurationsError, R>,
2731    ) -> Self {
2732        match err {
2733            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2734            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2735                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2736                source: err.into(),
2737            }),
2738        }
2739    }
2740}
2741impl From<crate::operation::list_syslog_configurations::ListSyslogConfigurationsError> for Error {
2742    fn from(err: crate::operation::list_syslog_configurations::ListSyslogConfigurationsError) -> Self {
2743        match err {
2744            crate::operation::list_syslog_configurations::ListSyslogConfigurationsError::AccessDeniedException(inner) => {
2745                Error::AccessDeniedException(inner)
2746            }
2747            crate::operation::list_syslog_configurations::ListSyslogConfigurationsError::InvalidOperationException(inner) => {
2748                Error::InvalidOperationException(inner)
2749            }
2750            crate::operation::list_syslog_configurations::ListSyslogConfigurationsError::InvalidParameterException(inner) => {
2751                Error::InvalidParameterException(inner)
2752            }
2753            crate::operation::list_syslog_configurations::ListSyslogConfigurationsError::ResourceNotFoundException(inner) => {
2754                Error::ResourceNotFoundException(inner)
2755            }
2756            crate::operation::list_syslog_configurations::ListSyslogConfigurationsError::ServiceUnavailableException(inner) => {
2757                Error::ServiceUnavailableException(inner)
2758            }
2759            crate::operation::list_syslog_configurations::ListSyslogConfigurationsError::ThrottlingException(inner) => {
2760                Error::ThrottlingException(inner)
2761            }
2762            crate::operation::list_syslog_configurations::ListSyslogConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
2763        }
2764    }
2765}
2766impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2767where
2768    R: Send + Sync + std::fmt::Debug + 'static,
2769{
2770    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2771        match err {
2772            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2773            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2774                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2775                source: err.into(),
2776            }),
2777        }
2778    }
2779}
2780impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2781    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2782        match err {
2783            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidParameterException(inner) => {
2784                Error::InvalidParameterException(inner)
2785            }
2786            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2787                Error::ResourceNotFoundException(inner)
2788            }
2789            crate::operation::list_tags_for_resource::ListTagsForResourceError::ServiceUnavailableException(inner) => {
2790                Error::ServiceUnavailableException(inner)
2791            }
2792            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2793        }
2794    }
2795}
2796impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_log_group::ListTagsLogGroupError, R>> for Error
2797where
2798    R: Send + Sync + std::fmt::Debug + 'static,
2799{
2800    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_log_group::ListTagsLogGroupError, R>) -> Self {
2801        match err {
2802            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2803            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2804                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2805                source: err.into(),
2806            }),
2807        }
2808    }
2809}
2810impl From<crate::operation::list_tags_log_group::ListTagsLogGroupError> for Error {
2811    fn from(err: crate::operation::list_tags_log_group::ListTagsLogGroupError) -> Self {
2812        match err {
2813            crate::operation::list_tags_log_group::ListTagsLogGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2814            crate::operation::list_tags_log_group::ListTagsLogGroupError::ServiceUnavailableException(inner) => {
2815                Error::ServiceUnavailableException(inner)
2816            }
2817            crate::operation::list_tags_log_group::ListTagsLogGroupError::Unhandled(inner) => Error::Unhandled(inner),
2818        }
2819    }
2820}
2821impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_policy::PutAccountPolicyError, R>> for Error
2822where
2823    R: Send + Sync + std::fmt::Debug + 'static,
2824{
2825    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_policy::PutAccountPolicyError, R>) -> Self {
2826        match err {
2827            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2828            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2829                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2830                source: err.into(),
2831            }),
2832        }
2833    }
2834}
2835impl From<crate::operation::put_account_policy::PutAccountPolicyError> for Error {
2836    fn from(err: crate::operation::put_account_policy::PutAccountPolicyError) -> Self {
2837        match err {
2838            crate::operation::put_account_policy::PutAccountPolicyError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2839            crate::operation::put_account_policy::PutAccountPolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2840            crate::operation::put_account_policy::PutAccountPolicyError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2841            crate::operation::put_account_policy::PutAccountPolicyError::ServiceUnavailableException(inner) => {
2842                Error::ServiceUnavailableException(inner)
2843            }
2844            crate::operation::put_account_policy::PutAccountPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2845        }
2846    }
2847}
2848impl<R>
2849    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError, R>>
2850    for Error
2851where
2852    R: Send + Sync + std::fmt::Debug + 'static,
2853{
2854    fn from(
2855        err: ::aws_smithy_runtime_api::client::result::SdkError<
2856            crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError,
2857            R,
2858        >,
2859    ) -> Self {
2860        match err {
2861            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2862            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2863                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2864                source: err.into(),
2865            }),
2866        }
2867    }
2868}
2869impl From<crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError> for Error {
2870    fn from(err: crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError) -> Self {
2871        match err {
2872            crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::AccessDeniedException(inner) => {
2873                Error::AccessDeniedException(inner)
2874            }
2875            crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::InvalidOperationException(inner) => {
2876                Error::InvalidOperationException(inner)
2877            }
2878            crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::InvalidParameterException(inner) => {
2879                Error::InvalidParameterException(inner)
2880            }
2881            crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::OperationAbortedException(inner) => {
2882                Error::OperationAbortedException(inner)
2883            }
2884            crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::ResourceNotFoundException(inner) => {
2885                Error::ResourceNotFoundException(inner)
2886            }
2887            crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::ServiceUnavailableException(inner) => {
2888                Error::ServiceUnavailableException(inner)
2889            }
2890            crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::Unhandled(inner) => Error::Unhandled(inner),
2891        }
2892    }
2893}
2894impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_data_protection_policy::PutDataProtectionPolicyError, R>>
2895    for Error
2896where
2897    R: Send + Sync + std::fmt::Debug + 'static,
2898{
2899    fn from(
2900        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_data_protection_policy::PutDataProtectionPolicyError, R>,
2901    ) -> Self {
2902        match err {
2903            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2904            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2905                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2906                source: err.into(),
2907            }),
2908        }
2909    }
2910}
2911impl From<crate::operation::put_data_protection_policy::PutDataProtectionPolicyError> for Error {
2912    fn from(err: crate::operation::put_data_protection_policy::PutDataProtectionPolicyError) -> Self {
2913        match err {
2914            crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::InvalidParameterException(inner) => {
2915                Error::InvalidParameterException(inner)
2916            }
2917            crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::LimitExceededException(inner) => {
2918                Error::LimitExceededException(inner)
2919            }
2920            crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::OperationAbortedException(inner) => {
2921                Error::OperationAbortedException(inner)
2922            }
2923            crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::ResourceNotFoundException(inner) => {
2924                Error::ResourceNotFoundException(inner)
2925            }
2926            crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::ServiceUnavailableException(inner) => {
2927                Error::ServiceUnavailableException(inner)
2928            }
2929            crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2930        }
2931    }
2932}
2933impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_destination::PutDeliveryDestinationError, R>> for Error
2934where
2935    R: Send + Sync + std::fmt::Debug + 'static,
2936{
2937    fn from(
2938        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_destination::PutDeliveryDestinationError, R>,
2939    ) -> Self {
2940        match err {
2941            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2942            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2943                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2944                source: err.into(),
2945            }),
2946        }
2947    }
2948}
2949impl From<crate::operation::put_delivery_destination::PutDeliveryDestinationError> for Error {
2950    fn from(err: crate::operation::put_delivery_destination::PutDeliveryDestinationError) -> Self {
2951        match err {
2952            crate::operation::put_delivery_destination::PutDeliveryDestinationError::ConflictException(inner) => Error::ConflictException(inner),
2953            crate::operation::put_delivery_destination::PutDeliveryDestinationError::ResourceNotFoundException(inner) => {
2954                Error::ResourceNotFoundException(inner)
2955            }
2956            crate::operation::put_delivery_destination::PutDeliveryDestinationError::ServiceQuotaExceededException(inner) => {
2957                Error::ServiceQuotaExceededException(inner)
2958            }
2959            crate::operation::put_delivery_destination::PutDeliveryDestinationError::ServiceUnavailableException(inner) => {
2960                Error::ServiceUnavailableException(inner)
2961            }
2962            crate::operation::put_delivery_destination::PutDeliveryDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2963            crate::operation::put_delivery_destination::PutDeliveryDestinationError::ValidationException(inner) => Error::ValidationException(inner),
2964            crate::operation::put_delivery_destination::PutDeliveryDestinationError::Unhandled(inner) => Error::Unhandled(inner),
2965        }
2966    }
2967}
2968impl<R>
2969    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError, R>>
2970    for Error
2971where
2972    R: Send + Sync + std::fmt::Debug + 'static,
2973{
2974    fn from(
2975        err: ::aws_smithy_runtime_api::client::result::SdkError<
2976            crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError,
2977            R,
2978        >,
2979    ) -> Self {
2980        match err {
2981            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2982            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2983                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2984                source: err.into(),
2985            }),
2986        }
2987    }
2988}
2989impl From<crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError> for Error {
2990    fn from(err: crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError) -> Self {
2991        match err {
2992            crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::ConflictException(inner) => {
2993                Error::ConflictException(inner)
2994            }
2995            crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::ResourceNotFoundException(inner) => {
2996                Error::ResourceNotFoundException(inner)
2997            }
2998            crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::ServiceUnavailableException(inner) => {
2999                Error::ServiceUnavailableException(inner)
3000            }
3001            crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::ValidationException(inner) => {
3002                Error::ValidationException(inner)
3003            }
3004            crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
3005        }
3006    }
3007}
3008impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_source::PutDeliverySourceError, R>> for Error
3009where
3010    R: Send + Sync + std::fmt::Debug + 'static,
3011{
3012    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_source::PutDeliverySourceError, R>) -> Self {
3013        match err {
3014            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3015            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3016                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3017                source: err.into(),
3018            }),
3019        }
3020    }
3021}
3022impl From<crate::operation::put_delivery_source::PutDeliverySourceError> for Error {
3023    fn from(err: crate::operation::put_delivery_source::PutDeliverySourceError) -> Self {
3024        match err {
3025            crate::operation::put_delivery_source::PutDeliverySourceError::ConflictException(inner) => Error::ConflictException(inner),
3026            crate::operation::put_delivery_source::PutDeliverySourceError::ResourceNotFoundException(inner) => {
3027                Error::ResourceNotFoundException(inner)
3028            }
3029            crate::operation::put_delivery_source::PutDeliverySourceError::ServiceQuotaExceededException(inner) => {
3030                Error::ServiceQuotaExceededException(inner)
3031            }
3032            crate::operation::put_delivery_source::PutDeliverySourceError::ServiceUnavailableException(inner) => {
3033                Error::ServiceUnavailableException(inner)
3034            }
3035            crate::operation::put_delivery_source::PutDeliverySourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3036            crate::operation::put_delivery_source::PutDeliverySourceError::ValidationException(inner) => Error::ValidationException(inner),
3037            crate::operation::put_delivery_source::PutDeliverySourceError::Unhandled(inner) => Error::Unhandled(inner),
3038        }
3039    }
3040}
3041impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_destination::PutDestinationError, R>> for Error
3042where
3043    R: Send + Sync + std::fmt::Debug + 'static,
3044{
3045    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_destination::PutDestinationError, R>) -> Self {
3046        match err {
3047            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3048            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3049                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3050                source: err.into(),
3051            }),
3052        }
3053    }
3054}
3055impl From<crate::operation::put_destination::PutDestinationError> for Error {
3056    fn from(err: crate::operation::put_destination::PutDestinationError) -> Self {
3057        match err {
3058            crate::operation::put_destination::PutDestinationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3059            crate::operation::put_destination::PutDestinationError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
3060            crate::operation::put_destination::PutDestinationError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3061            crate::operation::put_destination::PutDestinationError::Unhandled(inner) => Error::Unhandled(inner),
3062        }
3063    }
3064}
3065impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_destination_policy::PutDestinationPolicyError, R>> for Error
3066where
3067    R: Send + Sync + std::fmt::Debug + 'static,
3068{
3069    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_destination_policy::PutDestinationPolicyError, R>) -> Self {
3070        match err {
3071            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3072            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3073                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3074                source: err.into(),
3075            }),
3076        }
3077    }
3078}
3079impl From<crate::operation::put_destination_policy::PutDestinationPolicyError> for Error {
3080    fn from(err: crate::operation::put_destination_policy::PutDestinationPolicyError) -> Self {
3081        match err {
3082            crate::operation::put_destination_policy::PutDestinationPolicyError::InvalidParameterException(inner) => {
3083                Error::InvalidParameterException(inner)
3084            }
3085            crate::operation::put_destination_policy::PutDestinationPolicyError::OperationAbortedException(inner) => {
3086                Error::OperationAbortedException(inner)
3087            }
3088            crate::operation::put_destination_policy::PutDestinationPolicyError::ServiceUnavailableException(inner) => {
3089                Error::ServiceUnavailableException(inner)
3090            }
3091            crate::operation::put_destination_policy::PutDestinationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
3092        }
3093    }
3094}
3095impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_index_policy::PutIndexPolicyError, R>> for Error
3096where
3097    R: Send + Sync + std::fmt::Debug + 'static,
3098{
3099    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_index_policy::PutIndexPolicyError, R>) -> Self {
3100        match err {
3101            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3102            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3103                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3104                source: err.into(),
3105            }),
3106        }
3107    }
3108}
3109impl From<crate::operation::put_index_policy::PutIndexPolicyError> for Error {
3110    fn from(err: crate::operation::put_index_policy::PutIndexPolicyError) -> Self {
3111        match err {
3112            crate::operation::put_index_policy::PutIndexPolicyError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3113            crate::operation::put_index_policy::PutIndexPolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3114            crate::operation::put_index_policy::PutIndexPolicyError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
3115            crate::operation::put_index_policy::PutIndexPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3116            crate::operation::put_index_policy::PutIndexPolicyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3117            crate::operation::put_index_policy::PutIndexPolicyError::Unhandled(inner) => Error::Unhandled(inner),
3118        }
3119    }
3120}
3121impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_integration::PutIntegrationError, R>> for Error
3122where
3123    R: Send + Sync + std::fmt::Debug + 'static,
3124{
3125    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_integration::PutIntegrationError, R>) -> Self {
3126        match err {
3127            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3128            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3129                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3130                source: err.into(),
3131            }),
3132        }
3133    }
3134}
3135impl From<crate::operation::put_integration::PutIntegrationError> for Error {
3136    fn from(err: crate::operation::put_integration::PutIntegrationError) -> Self {
3137        match err {
3138            crate::operation::put_integration::PutIntegrationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3139            crate::operation::put_integration::PutIntegrationError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3140            crate::operation::put_integration::PutIntegrationError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3141            crate::operation::put_integration::PutIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
3142            crate::operation::put_integration::PutIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
3143        }
3144    }
3145}
3146impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_log_events::PutLogEventsError, R>> for Error
3147where
3148    R: Send + Sync + std::fmt::Debug + 'static,
3149{
3150    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_log_events::PutLogEventsError, R>) -> Self {
3151        match err {
3152            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3153            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3154                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3155                source: err.into(),
3156            }),
3157        }
3158    }
3159}
3160impl From<crate::operation::put_log_events::PutLogEventsError> for Error {
3161    fn from(err: crate::operation::put_log_events::PutLogEventsError) -> Self {
3162        match err {
3163            crate::operation::put_log_events::PutLogEventsError::DataAlreadyAcceptedException(inner) => Error::DataAlreadyAcceptedException(inner),
3164            crate::operation::put_log_events::PutLogEventsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3165            crate::operation::put_log_events::PutLogEventsError::InvalidSequenceTokenException(inner) => Error::InvalidSequenceTokenException(inner),
3166            crate::operation::put_log_events::PutLogEventsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3167            crate::operation::put_log_events::PutLogEventsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3168            crate::operation::put_log_events::PutLogEventsError::UnrecognizedClientException(inner) => Error::UnrecognizedClientException(inner),
3169            crate::operation::put_log_events::PutLogEventsError::Unhandled(inner) => Error::Unhandled(inner),
3170        }
3171    }
3172}
3173impl<R>
3174    From<
3175        ::aws_smithy_runtime_api::client::result::SdkError<
3176            crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError,
3177            R,
3178        >,
3179    > for Error
3180where
3181    R: Send + Sync + std::fmt::Debug + 'static,
3182{
3183    fn from(
3184        err: ::aws_smithy_runtime_api::client::result::SdkError<
3185            crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError,
3186            R,
3187        >,
3188    ) -> Self {
3189        match err {
3190            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3191            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3192                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3193                source: err.into(),
3194            }),
3195        }
3196    }
3197}
3198impl From<crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError> for Error {
3199    fn from(err: crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError) -> Self {
3200        match err {
3201            crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::AccessDeniedException(inner) => {
3202                Error::AccessDeniedException(inner)
3203            }
3204            crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::InvalidOperationException(inner) => {
3205                Error::InvalidOperationException(inner)
3206            }
3207            crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::InvalidParameterException(inner) => {
3208                Error::InvalidParameterException(inner)
3209            }
3210            crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::OperationAbortedException(inner) => {
3211                Error::OperationAbortedException(inner)
3212            }
3213            crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::ResourceNotFoundException(inner) => {
3214                Error::ResourceNotFoundException(inner)
3215            }
3216            crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::ServiceUnavailableException(inner) => {
3217                Error::ServiceUnavailableException(inner)
3218            }
3219            crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::Unhandled(inner) => Error::Unhandled(inner),
3220        }
3221    }
3222}
3223impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metric_filter::PutMetricFilterError, R>> for Error
3224where
3225    R: Send + Sync + std::fmt::Debug + 'static,
3226{
3227    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metric_filter::PutMetricFilterError, R>) -> Self {
3228        match err {
3229            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3230            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3231                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3232                source: err.into(),
3233            }),
3234        }
3235    }
3236}
3237impl From<crate::operation::put_metric_filter::PutMetricFilterError> for Error {
3238    fn from(err: crate::operation::put_metric_filter::PutMetricFilterError) -> Self {
3239        match err {
3240            crate::operation::put_metric_filter::PutMetricFilterError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
3241            crate::operation::put_metric_filter::PutMetricFilterError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3242            crate::operation::put_metric_filter::PutMetricFilterError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3243            crate::operation::put_metric_filter::PutMetricFilterError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
3244            crate::operation::put_metric_filter::PutMetricFilterError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3245            crate::operation::put_metric_filter::PutMetricFilterError::ServiceUnavailableException(inner) => {
3246                Error::ServiceUnavailableException(inner)
3247            }
3248            crate::operation::put_metric_filter::PutMetricFilterError::Unhandled(inner) => Error::Unhandled(inner),
3249        }
3250    }
3251}
3252impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_query_definition::PutQueryDefinitionError, R>> for Error
3253where
3254    R: Send + Sync + std::fmt::Debug + 'static,
3255{
3256    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_query_definition::PutQueryDefinitionError, R>) -> Self {
3257        match err {
3258            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3259            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3260                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3261                source: err.into(),
3262            }),
3263        }
3264    }
3265}
3266impl From<crate::operation::put_query_definition::PutQueryDefinitionError> for Error {
3267    fn from(err: crate::operation::put_query_definition::PutQueryDefinitionError) -> Self {
3268        match err {
3269            crate::operation::put_query_definition::PutQueryDefinitionError::InvalidParameterException(inner) => {
3270                Error::InvalidParameterException(inner)
3271            }
3272            crate::operation::put_query_definition::PutQueryDefinitionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3273            crate::operation::put_query_definition::PutQueryDefinitionError::ResourceNotFoundException(inner) => {
3274                Error::ResourceNotFoundException(inner)
3275            }
3276            crate::operation::put_query_definition::PutQueryDefinitionError::ServiceUnavailableException(inner) => {
3277                Error::ServiceUnavailableException(inner)
3278            }
3279            crate::operation::put_query_definition::PutQueryDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
3280        }
3281    }
3282}
3283impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
3284where
3285    R: Send + Sync + std::fmt::Debug + 'static,
3286{
3287    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
3288        match err {
3289            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3290            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3291                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3292                source: err.into(),
3293            }),
3294        }
3295    }
3296}
3297impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
3298    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
3299        match err {
3300            crate::operation::put_resource_policy::PutResourcePolicyError::InvalidParameterException(inner) => {
3301                Error::InvalidParameterException(inner)
3302            }
3303            crate::operation::put_resource_policy::PutResourcePolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3304            crate::operation::put_resource_policy::PutResourcePolicyError::OperationAbortedException(inner) => {
3305                Error::OperationAbortedException(inner)
3306            }
3307            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
3308                Error::ResourceNotFoundException(inner)
3309            }
3310            crate::operation::put_resource_policy::PutResourcePolicyError::ServiceUnavailableException(inner) => {
3311                Error::ServiceUnavailableException(inner)
3312            }
3313            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
3314        }
3315    }
3316}
3317impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_retention_policy::PutRetentionPolicyError, R>> for Error
3318where
3319    R: Send + Sync + std::fmt::Debug + 'static,
3320{
3321    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_retention_policy::PutRetentionPolicyError, R>) -> Self {
3322        match err {
3323            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3324            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3325                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3326                source: err.into(),
3327            }),
3328        }
3329    }
3330}
3331impl From<crate::operation::put_retention_policy::PutRetentionPolicyError> for Error {
3332    fn from(err: crate::operation::put_retention_policy::PutRetentionPolicyError) -> Self {
3333        match err {
3334            crate::operation::put_retention_policy::PutRetentionPolicyError::InvalidParameterException(inner) => {
3335                Error::InvalidParameterException(inner)
3336            }
3337            crate::operation::put_retention_policy::PutRetentionPolicyError::OperationAbortedException(inner) => {
3338                Error::OperationAbortedException(inner)
3339            }
3340            crate::operation::put_retention_policy::PutRetentionPolicyError::ResourceNotFoundException(inner) => {
3341                Error::ResourceNotFoundException(inner)
3342            }
3343            crate::operation::put_retention_policy::PutRetentionPolicyError::ServiceUnavailableException(inner) => {
3344                Error::ServiceUnavailableException(inner)
3345            }
3346            crate::operation::put_retention_policy::PutRetentionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
3347        }
3348    }
3349}
3350impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_storage_tier_policy::PutStorageTierPolicyError, R>> for Error
3351where
3352    R: Send + Sync + std::fmt::Debug + 'static,
3353{
3354    fn from(
3355        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_storage_tier_policy::PutStorageTierPolicyError, R>,
3356    ) -> Self {
3357        match err {
3358            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3359            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3360                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3361                source: err.into(),
3362            }),
3363        }
3364    }
3365}
3366impl From<crate::operation::put_storage_tier_policy::PutStorageTierPolicyError> for Error {
3367    fn from(err: crate::operation::put_storage_tier_policy::PutStorageTierPolicyError) -> Self {
3368        match err {
3369            crate::operation::put_storage_tier_policy::PutStorageTierPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3370            crate::operation::put_storage_tier_policy::PutStorageTierPolicyError::InvalidParameterException(inner) => {
3371                Error::InvalidParameterException(inner)
3372            }
3373            crate::operation::put_storage_tier_policy::PutStorageTierPolicyError::OperationAbortedException(inner) => {
3374                Error::OperationAbortedException(inner)
3375            }
3376            crate::operation::put_storage_tier_policy::PutStorageTierPolicyError::ResourceNotFoundException(inner) => {
3377                Error::ResourceNotFoundException(inner)
3378            }
3379            crate::operation::put_storage_tier_policy::PutStorageTierPolicyError::ServiceUnavailableException(inner) => {
3380                Error::ServiceUnavailableException(inner)
3381            }
3382            crate::operation::put_storage_tier_policy::PutStorageTierPolicyError::Unhandled(inner) => Error::Unhandled(inner),
3383        }
3384    }
3385}
3386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_subscription_filter::PutSubscriptionFilterError, R>> for Error
3387where
3388    R: Send + Sync + std::fmt::Debug + 'static,
3389{
3390    fn from(
3391        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_subscription_filter::PutSubscriptionFilterError, R>,
3392    ) -> Self {
3393        match err {
3394            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3395            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3396                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3397                source: err.into(),
3398            }),
3399        }
3400    }
3401}
3402impl From<crate::operation::put_subscription_filter::PutSubscriptionFilterError> for Error {
3403    fn from(err: crate::operation::put_subscription_filter::PutSubscriptionFilterError) -> Self {
3404        match err {
3405            crate::operation::put_subscription_filter::PutSubscriptionFilterError::InvalidOperationException(inner) => {
3406                Error::InvalidOperationException(inner)
3407            }
3408            crate::operation::put_subscription_filter::PutSubscriptionFilterError::InvalidParameterException(inner) => {
3409                Error::InvalidParameterException(inner)
3410            }
3411            crate::operation::put_subscription_filter::PutSubscriptionFilterError::LimitExceededException(inner) => {
3412                Error::LimitExceededException(inner)
3413            }
3414            crate::operation::put_subscription_filter::PutSubscriptionFilterError::OperationAbortedException(inner) => {
3415                Error::OperationAbortedException(inner)
3416            }
3417            crate::operation::put_subscription_filter::PutSubscriptionFilterError::ResourceNotFoundException(inner) => {
3418                Error::ResourceNotFoundException(inner)
3419            }
3420            crate::operation::put_subscription_filter::PutSubscriptionFilterError::ServiceUnavailableException(inner) => {
3421                Error::ServiceUnavailableException(inner)
3422            }
3423            crate::operation::put_subscription_filter::PutSubscriptionFilterError::Unhandled(inner) => Error::Unhandled(inner),
3424        }
3425    }
3426}
3427impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_syslog_configuration::PutSyslogConfigurationError, R>> for Error
3428where
3429    R: Send + Sync + std::fmt::Debug + 'static,
3430{
3431    fn from(
3432        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_syslog_configuration::PutSyslogConfigurationError, R>,
3433    ) -> Self {
3434        match err {
3435            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3436            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3437                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3438                source: err.into(),
3439            }),
3440        }
3441    }
3442}
3443impl From<crate::operation::put_syslog_configuration::PutSyslogConfigurationError> for Error {
3444    fn from(err: crate::operation::put_syslog_configuration::PutSyslogConfigurationError) -> Self {
3445        match err {
3446            crate::operation::put_syslog_configuration::PutSyslogConfigurationError::AccessDeniedException(inner) => {
3447                Error::AccessDeniedException(inner)
3448            }
3449            crate::operation::put_syslog_configuration::PutSyslogConfigurationError::InvalidOperationException(inner) => {
3450                Error::InvalidOperationException(inner)
3451            }
3452            crate::operation::put_syslog_configuration::PutSyslogConfigurationError::InvalidParameterException(inner) => {
3453                Error::InvalidParameterException(inner)
3454            }
3455            crate::operation::put_syslog_configuration::PutSyslogConfigurationError::OperationAbortedException(inner) => {
3456                Error::OperationAbortedException(inner)
3457            }
3458            crate::operation::put_syslog_configuration::PutSyslogConfigurationError::ResourceNotFoundException(inner) => {
3459                Error::ResourceNotFoundException(inner)
3460            }
3461            crate::operation::put_syslog_configuration::PutSyslogConfigurationError::ServiceUnavailableException(inner) => {
3462                Error::ServiceUnavailableException(inner)
3463            }
3464            crate::operation::put_syslog_configuration::PutSyslogConfigurationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3465            crate::operation::put_syslog_configuration::PutSyslogConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3466        }
3467    }
3468}
3469impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_transformer::PutTransformerError, R>> for Error
3470where
3471    R: Send + Sync + std::fmt::Debug + 'static,
3472{
3473    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_transformer::PutTransformerError, R>) -> Self {
3474        match err {
3475            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3476            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3477                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3478                source: err.into(),
3479            }),
3480        }
3481    }
3482}
3483impl From<crate::operation::put_transformer::PutTransformerError> for Error {
3484    fn from(err: crate::operation::put_transformer::PutTransformerError) -> Self {
3485        match err {
3486            crate::operation::put_transformer::PutTransformerError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
3487            crate::operation::put_transformer::PutTransformerError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3488            crate::operation::put_transformer::PutTransformerError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3489            crate::operation::put_transformer::PutTransformerError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
3490            crate::operation::put_transformer::PutTransformerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3491            crate::operation::put_transformer::PutTransformerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3492            crate::operation::put_transformer::PutTransformerError::Unhandled(inner) => Error::Unhandled(inner),
3493        }
3494    }
3495}
3496impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_live_tail::StartLiveTailError, R>> for Error
3497where
3498    R: Send + Sync + std::fmt::Debug + 'static,
3499{
3500    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_live_tail::StartLiveTailError, R>) -> Self {
3501        match err {
3502            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3503            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3504                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3505                source: err.into(),
3506            }),
3507        }
3508    }
3509}
3510impl From<crate::operation::start_live_tail::StartLiveTailError> for Error {
3511    fn from(err: crate::operation::start_live_tail::StartLiveTailError) -> Self {
3512        match err {
3513            crate::operation::start_live_tail::StartLiveTailError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3514            crate::operation::start_live_tail::StartLiveTailError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
3515            crate::operation::start_live_tail::StartLiveTailError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3516            crate::operation::start_live_tail::StartLiveTailError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3517            crate::operation::start_live_tail::StartLiveTailError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3518            crate::operation::start_live_tail::StartLiveTailError::SessionTimeoutException(inner) => Error::SessionTimeoutException(inner),
3519            crate::operation::start_live_tail::StartLiveTailError::SessionStreamingException(inner) => Error::SessionStreamingException(inner),
3520            crate::operation::start_live_tail::StartLiveTailError::Unhandled(inner) => Error::Unhandled(inner),
3521        }
3522    }
3523}
3524impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_query::StartQueryError, R>> for Error
3525where
3526    R: Send + Sync + std::fmt::Debug + 'static,
3527{
3528    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_query::StartQueryError, R>) -> Self {
3529        match err {
3530            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3531            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3532                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3533                source: err.into(),
3534            }),
3535        }
3536    }
3537}
3538impl From<crate::operation::start_query::StartQueryError> for Error {
3539    fn from(err: crate::operation::start_query::StartQueryError) -> Self {
3540        match err {
3541            crate::operation::start_query::StartQueryError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3542            crate::operation::start_query::StartQueryError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3543            crate::operation::start_query::StartQueryError::MalformedQueryException(inner) => Error::MalformedQueryException(inner),
3544            crate::operation::start_query::StartQueryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3545            crate::operation::start_query::StartQueryError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3546            crate::operation::start_query::StartQueryError::Unhandled(inner) => Error::Unhandled(inner),
3547        }
3548    }
3549}
3550impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_query::StopQueryError, R>> for Error
3551where
3552    R: Send + Sync + std::fmt::Debug + 'static,
3553{
3554    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_query::StopQueryError, R>) -> Self {
3555        match err {
3556            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3557            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3558                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3559                source: err.into(),
3560            }),
3561        }
3562    }
3563}
3564impl From<crate::operation::stop_query::StopQueryError> for Error {
3565    fn from(err: crate::operation::stop_query::StopQueryError) -> Self {
3566        match err {
3567            crate::operation::stop_query::StopQueryError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3568            crate::operation::stop_query::StopQueryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3569            crate::operation::stop_query::StopQueryError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3570            crate::operation::stop_query::StopQueryError::Unhandled(inner) => Error::Unhandled(inner),
3571        }
3572    }
3573}
3574impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_log_group::TagLogGroupError, R>> for Error
3575where
3576    R: Send + Sync + std::fmt::Debug + 'static,
3577{
3578    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_log_group::TagLogGroupError, R>) -> Self {
3579        match err {
3580            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3581            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3582                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3583                source: err.into(),
3584            }),
3585        }
3586    }
3587}
3588impl From<crate::operation::tag_log_group::TagLogGroupError> for Error {
3589    fn from(err: crate::operation::tag_log_group::TagLogGroupError) -> Self {
3590        match err {
3591            crate::operation::tag_log_group::TagLogGroupError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3592            crate::operation::tag_log_group::TagLogGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3593            crate::operation::tag_log_group::TagLogGroupError::Unhandled(inner) => Error::Unhandled(inner),
3594        }
3595    }
3596}
3597impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3598where
3599    R: Send + Sync + std::fmt::Debug + 'static,
3600{
3601    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3602        match err {
3603            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3604            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3605                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3606                source: err.into(),
3607            }),
3608        }
3609    }
3610}
3611impl From<crate::operation::tag_resource::TagResourceError> for Error {
3612    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3613        match err {
3614            crate::operation::tag_resource::TagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3615            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3616            crate::operation::tag_resource::TagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3617            crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
3618            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3619        }
3620    }
3621}
3622impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_metric_filter::TestMetricFilterError, R>> for Error
3623where
3624    R: Send + Sync + std::fmt::Debug + 'static,
3625{
3626    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_metric_filter::TestMetricFilterError, R>) -> Self {
3627        match err {
3628            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3629            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3630                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3631                source: err.into(),
3632            }),
3633        }
3634    }
3635}
3636impl From<crate::operation::test_metric_filter::TestMetricFilterError> for Error {
3637    fn from(err: crate::operation::test_metric_filter::TestMetricFilterError) -> Self {
3638        match err {
3639            crate::operation::test_metric_filter::TestMetricFilterError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3640            crate::operation::test_metric_filter::TestMetricFilterError::ServiceUnavailableException(inner) => {
3641                Error::ServiceUnavailableException(inner)
3642            }
3643            crate::operation::test_metric_filter::TestMetricFilterError::Unhandled(inner) => Error::Unhandled(inner),
3644        }
3645    }
3646}
3647impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_transformer::TestTransformerError, R>> for Error
3648where
3649    R: Send + Sync + std::fmt::Debug + 'static,
3650{
3651    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_transformer::TestTransformerError, R>) -> Self {
3652        match err {
3653            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3654            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3655                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3656                source: err.into(),
3657            }),
3658        }
3659    }
3660}
3661impl From<crate::operation::test_transformer::TestTransformerError> for Error {
3662    fn from(err: crate::operation::test_transformer::TestTransformerError) -> Self {
3663        match err {
3664            crate::operation::test_transformer::TestTransformerError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
3665            crate::operation::test_transformer::TestTransformerError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3666            crate::operation::test_transformer::TestTransformerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3667            crate::operation::test_transformer::TestTransformerError::Unhandled(inner) => Error::Unhandled(inner),
3668        }
3669    }
3670}
3671impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_log_group::UntagLogGroupError, R>> for Error
3672where
3673    R: Send + Sync + std::fmt::Debug + 'static,
3674{
3675    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_log_group::UntagLogGroupError, R>) -> Self {
3676        match err {
3677            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3678            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3679                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3680                source: err.into(),
3681            }),
3682        }
3683    }
3684}
3685impl From<crate::operation::untag_log_group::UntagLogGroupError> for Error {
3686    fn from(err: crate::operation::untag_log_group::UntagLogGroupError) -> Self {
3687        match err {
3688            crate::operation::untag_log_group::UntagLogGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3689            crate::operation::untag_log_group::UntagLogGroupError::Unhandled(inner) => Error::Unhandled(inner),
3690        }
3691    }
3692}
3693impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3694where
3695    R: Send + Sync + std::fmt::Debug + 'static,
3696{
3697    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3698        match err {
3699            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3700            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3701                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3702                source: err.into(),
3703            }),
3704        }
3705    }
3706}
3707impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3708    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3709        match err {
3710            crate::operation::untag_resource::UntagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3711            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3712            crate::operation::untag_resource::UntagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3713            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3714        }
3715    }
3716}
3717impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_anomaly::UpdateAnomalyError, R>> for Error
3718where
3719    R: Send + Sync + std::fmt::Debug + 'static,
3720{
3721    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_anomaly::UpdateAnomalyError, R>) -> Self {
3722        match err {
3723            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3724            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3725                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3726                source: err.into(),
3727            }),
3728        }
3729    }
3730}
3731impl From<crate::operation::update_anomaly::UpdateAnomalyError> for Error {
3732    fn from(err: crate::operation::update_anomaly::UpdateAnomalyError) -> Self {
3733        match err {
3734            crate::operation::update_anomaly::UpdateAnomalyError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3735            crate::operation::update_anomaly::UpdateAnomalyError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
3736            crate::operation::update_anomaly::UpdateAnomalyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3737            crate::operation::update_anomaly::UpdateAnomalyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3738            crate::operation::update_anomaly::UpdateAnomalyError::Unhandled(inner) => Error::Unhandled(inner),
3739        }
3740    }
3741}
3742impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError, R>>
3743    for Error
3744where
3745    R: Send + Sync + std::fmt::Debug + 'static,
3746{
3747    fn from(
3748        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError, R>,
3749    ) -> Self {
3750        match err {
3751            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3752            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3753                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3754                source: err.into(),
3755            }),
3756        }
3757    }
3758}
3759impl From<crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError> for Error {
3760    fn from(err: crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError) -> Self {
3761        match err {
3762            crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::AccessDeniedException(inner) => {
3763                Error::AccessDeniedException(inner)
3764            }
3765            crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ConflictException(inner) => {
3766                Error::ConflictException(inner)
3767            }
3768            crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ResourceNotFoundException(inner) => {
3769                Error::ResourceNotFoundException(inner)
3770            }
3771            crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ServiceUnavailableException(inner) => {
3772                Error::ServiceUnavailableException(inner)
3773            }
3774            crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ThrottlingException(inner) => {
3775                Error::ThrottlingException(inner)
3776            }
3777            crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ValidationException(inner) => {
3778                Error::ValidationException(inner)
3779            }
3780            crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3781        }
3782    }
3783}
3784impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError, R>>
3785    for Error
3786where
3787    R: Send + Sync + std::fmt::Debug + 'static,
3788{
3789    fn from(
3790        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError, R>,
3791    ) -> Self {
3792        match err {
3793            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3794            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3795                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3796                source: err.into(),
3797            }),
3798        }
3799    }
3800}
3801impl From<crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError> for Error {
3802    fn from(err: crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError) -> Self {
3803        match err {
3804            crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::InvalidParameterException(inner) => {
3805                Error::InvalidParameterException(inner)
3806            }
3807            crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::OperationAbortedException(inner) => {
3808                Error::OperationAbortedException(inner)
3809            }
3810            crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::ResourceNotFoundException(inner) => {
3811                Error::ResourceNotFoundException(inner)
3812            }
3813            crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::ServiceUnavailableException(inner) => {
3814                Error::ServiceUnavailableException(inner)
3815            }
3816            crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
3817        }
3818    }
3819}
3820impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_lookup_table::UpdateLookupTableError, R>> for Error
3821where
3822    R: Send + Sync + std::fmt::Debug + 'static,
3823{
3824    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_lookup_table::UpdateLookupTableError, R>) -> Self {
3825        match err {
3826            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3827            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3828                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3829                source: err.into(),
3830            }),
3831        }
3832    }
3833}
3834impl From<crate::operation::update_lookup_table::UpdateLookupTableError> for Error {
3835    fn from(err: crate::operation::update_lookup_table::UpdateLookupTableError) -> Self {
3836        match err {
3837            crate::operation::update_lookup_table::UpdateLookupTableError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3838            crate::operation::update_lookup_table::UpdateLookupTableError::InvalidParameterException(inner) => {
3839                Error::InvalidParameterException(inner)
3840            }
3841            crate::operation::update_lookup_table::UpdateLookupTableError::ResourceNotFoundException(inner) => {
3842                Error::ResourceNotFoundException(inner)
3843            }
3844            crate::operation::update_lookup_table::UpdateLookupTableError::ServiceUnavailableException(inner) => {
3845                Error::ServiceUnavailableException(inner)
3846            }
3847            crate::operation::update_lookup_table::UpdateLookupTableError::ValidationException(inner) => Error::ValidationException(inner),
3848            crate::operation::update_lookup_table::UpdateLookupTableError::Unhandled(inner) => Error::Unhandled(inner),
3849        }
3850    }
3851}
3852impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scheduled_query::UpdateScheduledQueryError, R>> for Error
3853where
3854    R: Send + Sync + std::fmt::Debug + 'static,
3855{
3856    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scheduled_query::UpdateScheduledQueryError, R>) -> Self {
3857        match err {
3858            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3859            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3860                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3861                source: err.into(),
3862            }),
3863        }
3864    }
3865}
3866impl From<crate::operation::update_scheduled_query::UpdateScheduledQueryError> for Error {
3867    fn from(err: crate::operation::update_scheduled_query::UpdateScheduledQueryError) -> Self {
3868        match err {
3869            crate::operation::update_scheduled_query::UpdateScheduledQueryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3870            crate::operation::update_scheduled_query::UpdateScheduledQueryError::ConflictException(inner) => Error::ConflictException(inner),
3871            crate::operation::update_scheduled_query::UpdateScheduledQueryError::InternalServerException(inner) => {
3872                Error::InternalServerException(inner)
3873            }
3874            crate::operation::update_scheduled_query::UpdateScheduledQueryError::ResourceNotFoundException(inner) => {
3875                Error::ResourceNotFoundException(inner)
3876            }
3877            crate::operation::update_scheduled_query::UpdateScheduledQueryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3878            crate::operation::update_scheduled_query::UpdateScheduledQueryError::ValidationException(inner) => Error::ValidationException(inner),
3879            crate::operation::update_scheduled_query::UpdateScheduledQueryError::Unhandled(inner) => Error::Unhandled(inner),
3880        }
3881    }
3882}
3883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::GetLogObjectResponseStreamError, R>> for Error
3884where
3885    R: Send + Sync + std::fmt::Debug + 'static,
3886{
3887    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::GetLogObjectResponseStreamError, R>) -> Self {
3888        match err {
3889            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3890            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3891                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3892                source: err.into(),
3893            }),
3894        }
3895    }
3896}
3897impl From<crate::types::error::GetLogObjectResponseStreamError> for Error {
3898    fn from(err: crate::types::error::GetLogObjectResponseStreamError) -> Self {
3899        match err {
3900            crate::types::error::GetLogObjectResponseStreamError::InternalStreamingException(inner) => Error::InternalStreamingException(inner),
3901            crate::types::error::GetLogObjectResponseStreamError::Unhandled(inner) => Error::Unhandled(inner),
3902        }
3903    }
3904}
3905impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::StartLiveTailResponseStreamError, R>> for Error
3906where
3907    R: Send + Sync + std::fmt::Debug + 'static,
3908{
3909    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::StartLiveTailResponseStreamError, R>) -> Self {
3910        match err {
3911            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3912            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3913                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3914                source: err.into(),
3915            }),
3916        }
3917    }
3918}
3919impl From<crate::types::error::StartLiveTailResponseStreamError> for Error {
3920    fn from(err: crate::types::error::StartLiveTailResponseStreamError) -> Self {
3921        match err {
3922            crate::types::error::StartLiveTailResponseStreamError::SessionTimeoutException(inner) => Error::SessionTimeoutException(inner),
3923            crate::types::error::StartLiveTailResponseStreamError::SessionStreamingException(inner) => Error::SessionStreamingException(inner),
3924            crate::types::error::StartLiveTailResponseStreamError::Unhandled(inner) => Error::Unhandled(inner),
3925        }
3926    }
3927}
3928impl ::std::error::Error for Error {
3929    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3930        match self {
3931            Error::AccessDeniedException(inner) => inner.source(),
3932            Error::ConflictException(inner) => inner.source(),
3933            Error::DataAlreadyAcceptedException(inner) => inner.source(),
3934            Error::InternalServerException(inner) => inner.source(),
3935            Error::InternalStreamingException(inner) => inner.source(),
3936            Error::InvalidOperationException(inner) => inner.source(),
3937            Error::InvalidParameterException(inner) => inner.source(),
3938            Error::InvalidSequenceTokenException(inner) => inner.source(),
3939            Error::LimitExceededException(inner) => inner.source(),
3940            Error::MalformedQueryException(inner) => inner.source(),
3941            Error::OperationAbortedException(inner) => inner.source(),
3942            Error::ResourceAlreadyExistsException(inner) => inner.source(),
3943            Error::ResourceNotFoundException(inner) => inner.source(),
3944            Error::ServiceQuotaExceededException(inner) => inner.source(),
3945            Error::ServiceUnavailableException(inner) => inner.source(),
3946            Error::SessionStreamingException(inner) => inner.source(),
3947            Error::SessionTimeoutException(inner) => inner.source(),
3948            Error::ThrottlingException(inner) => inner.source(),
3949            Error::TooManyTagsException(inner) => inner.source(),
3950            Error::UnrecognizedClientException(inner) => inner.source(),
3951            Error::ValidationException(inner) => inner.source(),
3952            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3953        }
3954    }
3955}
3956impl ::aws_types::request_id::RequestId for Error {
3957    fn request_id(&self) -> Option<&str> {
3958        match self {
3959            Self::AccessDeniedException(e) => e.request_id(),
3960            Self::ConflictException(e) => e.request_id(),
3961            Self::DataAlreadyAcceptedException(e) => e.request_id(),
3962            Self::InternalServerException(e) => e.request_id(),
3963            Self::InternalStreamingException(e) => e.request_id(),
3964            Self::InvalidOperationException(e) => e.request_id(),
3965            Self::InvalidParameterException(e) => e.request_id(),
3966            Self::InvalidSequenceTokenException(e) => e.request_id(),
3967            Self::LimitExceededException(e) => e.request_id(),
3968            Self::MalformedQueryException(e) => e.request_id(),
3969            Self::OperationAbortedException(e) => e.request_id(),
3970            Self::ResourceAlreadyExistsException(e) => e.request_id(),
3971            Self::ResourceNotFoundException(e) => e.request_id(),
3972            Self::ServiceQuotaExceededException(e) => e.request_id(),
3973            Self::ServiceUnavailableException(e) => e.request_id(),
3974            Self::SessionStreamingException(e) => e.request_id(),
3975            Self::SessionTimeoutException(e) => e.request_id(),
3976            Self::ThrottlingException(e) => e.request_id(),
3977            Self::TooManyTagsException(e) => e.request_id(),
3978            Self::UnrecognizedClientException(e) => e.request_id(),
3979            Self::ValidationException(e) => e.request_id(),
3980            Self::Unhandled(e) => e.meta.request_id(),
3981        }
3982    }
3983}