1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 DataAlreadyAcceptedException(crate::types::error::DataAlreadyAcceptedException),
14 InternalServerException(crate::types::error::InternalServerException),
16 InternalStreamingException(crate::types::error::InternalStreamingException),
18 InvalidOperationException(crate::types::error::InvalidOperationException),
20 InvalidParameterException(crate::types::error::InvalidParameterException),
22 InvalidSequenceTokenException(crate::types::error::InvalidSequenceTokenException),
26 LimitExceededException(crate::types::error::LimitExceededException),
28 MalformedQueryException(crate::types::error::MalformedQueryException),
31 OperationAbortedException(crate::types::error::OperationAbortedException),
33 ResourceAlreadyExistsException(crate::types::error::ResourceAlreadyExistsException),
35 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
37 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
39 ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
41 SessionStreamingException(crate::types::error::SessionStreamingException),
43 SessionTimeoutException(crate::types::error::SessionTimeoutException),
45 ThrottlingException(crate::types::error::ThrottlingException),
47 TooManyTagsException(crate::types::error::TooManyTagsException),
49 UnrecognizedClientException(crate::types::error::UnrecognizedClientException),
51 ValidationException(crate::types::error::ValidationException),
53 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
55 variable wildcard pattern and check `.code()`:
56 \
57 `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_transformer::DeleteTransformerError, R>> for Error
1139where
1140 R: Send + Sync + std::fmt::Debug + 'static,
1141{
1142 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transformer::DeleteTransformerError, R>) -> Self {
1143 match err {
1144 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1145 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1146 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1147 source: err.into(),
1148 }),
1149 }
1150 }
1151}
1152impl From<crate::operation::delete_transformer::DeleteTransformerError> for Error {
1153 fn from(err: crate::operation::delete_transformer::DeleteTransformerError) -> Self {
1154 match err {
1155 crate::operation::delete_transformer::DeleteTransformerError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
1156 crate::operation::delete_transformer::DeleteTransformerError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1157 crate::operation::delete_transformer::DeleteTransformerError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
1158 crate::operation::delete_transformer::DeleteTransformerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1159 crate::operation::delete_transformer::DeleteTransformerError::ServiceUnavailableException(inner) => {
1160 Error::ServiceUnavailableException(inner)
1161 }
1162 crate::operation::delete_transformer::DeleteTransformerError::Unhandled(inner) => Error::Unhandled(inner),
1163 }
1164 }
1165}
1166impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_policies::DescribeAccountPoliciesError, R>>
1167 for Error
1168where
1169 R: Send + Sync + std::fmt::Debug + 'static,
1170{
1171 fn from(
1172 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_policies::DescribeAccountPoliciesError, R>,
1173 ) -> Self {
1174 match err {
1175 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1176 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1177 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1178 source: err.into(),
1179 }),
1180 }
1181 }
1182}
1183impl From<crate::operation::describe_account_policies::DescribeAccountPoliciesError> for Error {
1184 fn from(err: crate::operation::describe_account_policies::DescribeAccountPoliciesError) -> Self {
1185 match err {
1186 crate::operation::describe_account_policies::DescribeAccountPoliciesError::InvalidParameterException(inner) => {
1187 Error::InvalidParameterException(inner)
1188 }
1189 crate::operation::describe_account_policies::DescribeAccountPoliciesError::OperationAbortedException(inner) => {
1190 Error::OperationAbortedException(inner)
1191 }
1192 crate::operation::describe_account_policies::DescribeAccountPoliciesError::ResourceNotFoundException(inner) => {
1193 Error::ResourceNotFoundException(inner)
1194 }
1195 crate::operation::describe_account_policies::DescribeAccountPoliciesError::ServiceUnavailableException(inner) => {
1196 Error::ServiceUnavailableException(inner)
1197 }
1198 crate::operation::describe_account_policies::DescribeAccountPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1199 }
1200 }
1201}
1202impl<R>
1203 From<
1204 ::aws_smithy_runtime_api::client::result::SdkError<
1205 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError,
1206 R,
1207 >,
1208 > for Error
1209where
1210 R: Send + Sync + std::fmt::Debug + 'static,
1211{
1212 fn from(
1213 err: ::aws_smithy_runtime_api::client::result::SdkError<
1214 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError,
1215 R,
1216 >,
1217 ) -> Self {
1218 match err {
1219 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1220 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1221 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1222 source: err.into(),
1223 }),
1224 }
1225 }
1226}
1227impl From<crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError> for Error {
1228 fn from(err: crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError) -> Self {
1229 match err {
1230 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::ResourceNotFoundException(inner) => {
1231 Error::ResourceNotFoundException(inner)
1232 }
1233 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::ServiceUnavailableException(inner) => {
1234 Error::ServiceUnavailableException(inner)
1235 }
1236 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::ThrottlingException(inner) => {
1237 Error::ThrottlingException(inner)
1238 }
1239 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::ValidationException(inner) => {
1240 Error::ValidationException(inner)
1241 }
1242 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
1243 }
1244 }
1245}
1246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_deliveries::DescribeDeliveriesError, R>> for Error
1247where
1248 R: Send + Sync + std::fmt::Debug + 'static,
1249{
1250 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_deliveries::DescribeDeliveriesError, R>) -> Self {
1251 match err {
1252 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1253 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1254 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1255 source: err.into(),
1256 }),
1257 }
1258 }
1259}
1260impl From<crate::operation::describe_deliveries::DescribeDeliveriesError> for Error {
1261 fn from(err: crate::operation::describe_deliveries::DescribeDeliveriesError) -> Self {
1262 match err {
1263 crate::operation::describe_deliveries::DescribeDeliveriesError::ServiceQuotaExceededException(inner) => {
1264 Error::ServiceQuotaExceededException(inner)
1265 }
1266 crate::operation::describe_deliveries::DescribeDeliveriesError::ServiceUnavailableException(inner) => {
1267 Error::ServiceUnavailableException(inner)
1268 }
1269 crate::operation::describe_deliveries::DescribeDeliveriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1270 crate::operation::describe_deliveries::DescribeDeliveriesError::ValidationException(inner) => Error::ValidationException(inner),
1271 crate::operation::describe_deliveries::DescribeDeliveriesError::Unhandled(inner) => Error::Unhandled(inner),
1272 }
1273 }
1274}
1275impl<R>
1276 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError, R>>
1277 for Error
1278where
1279 R: Send + Sync + std::fmt::Debug + 'static,
1280{
1281 fn from(
1282 err: ::aws_smithy_runtime_api::client::result::SdkError<
1283 crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError,
1284 R,
1285 >,
1286 ) -> Self {
1287 match err {
1288 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1289 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1290 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1291 source: err.into(),
1292 }),
1293 }
1294 }
1295}
1296impl From<crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError> for Error {
1297 fn from(err: crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError) -> Self {
1298 match err {
1299 crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::ServiceQuotaExceededException(inner) => {
1300 Error::ServiceQuotaExceededException(inner)
1301 }
1302 crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::ServiceUnavailableException(inner) => {
1303 Error::ServiceUnavailableException(inner)
1304 }
1305 crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::ThrottlingException(inner) => {
1306 Error::ThrottlingException(inner)
1307 }
1308 crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::ValidationException(inner) => {
1309 Error::ValidationException(inner)
1310 }
1311 crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::Unhandled(inner) => Error::Unhandled(inner),
1312 }
1313 }
1314}
1315impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_sources::DescribeDeliverySourcesError, R>>
1316 for Error
1317where
1318 R: Send + Sync + std::fmt::Debug + 'static,
1319{
1320 fn from(
1321 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_sources::DescribeDeliverySourcesError, R>,
1322 ) -> Self {
1323 match err {
1324 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1325 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1326 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1327 source: err.into(),
1328 }),
1329 }
1330 }
1331}
1332impl From<crate::operation::describe_delivery_sources::DescribeDeliverySourcesError> for Error {
1333 fn from(err: crate::operation::describe_delivery_sources::DescribeDeliverySourcesError) -> Self {
1334 match err {
1335 crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::ServiceQuotaExceededException(inner) => {
1336 Error::ServiceQuotaExceededException(inner)
1337 }
1338 crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::ServiceUnavailableException(inner) => {
1339 Error::ServiceUnavailableException(inner)
1340 }
1341 crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::ThrottlingException(inner) => {
1342 Error::ThrottlingException(inner)
1343 }
1344 crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::ValidationException(inner) => {
1345 Error::ValidationException(inner)
1346 }
1347 crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::Unhandled(inner) => Error::Unhandled(inner),
1348 }
1349 }
1350}
1351impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_destinations::DescribeDestinationsError, R>> for Error
1352where
1353 R: Send + Sync + std::fmt::Debug + 'static,
1354{
1355 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_destinations::DescribeDestinationsError, R>) -> Self {
1356 match err {
1357 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1358 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1359 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1360 source: err.into(),
1361 }),
1362 }
1363 }
1364}
1365impl From<crate::operation::describe_destinations::DescribeDestinationsError> for Error {
1366 fn from(err: crate::operation::describe_destinations::DescribeDestinationsError) -> Self {
1367 match err {
1368 crate::operation::describe_destinations::DescribeDestinationsError::InvalidParameterException(inner) => {
1369 Error::InvalidParameterException(inner)
1370 }
1371 crate::operation::describe_destinations::DescribeDestinationsError::ServiceUnavailableException(inner) => {
1372 Error::ServiceUnavailableException(inner)
1373 }
1374 crate::operation::describe_destinations::DescribeDestinationsError::Unhandled(inner) => Error::Unhandled(inner),
1375 }
1376 }
1377}
1378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>> for Error
1379where
1380 R: Send + Sync + std::fmt::Debug + 'static,
1381{
1382 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>) -> Self {
1383 match err {
1384 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1385 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1386 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1387 source: err.into(),
1388 }),
1389 }
1390 }
1391}
1392impl From<crate::operation::describe_export_tasks::DescribeExportTasksError> for Error {
1393 fn from(err: crate::operation::describe_export_tasks::DescribeExportTasksError) -> Self {
1394 match err {
1395 crate::operation::describe_export_tasks::DescribeExportTasksError::InvalidParameterException(inner) => {
1396 Error::InvalidParameterException(inner)
1397 }
1398 crate::operation::describe_export_tasks::DescribeExportTasksError::ServiceUnavailableException(inner) => {
1399 Error::ServiceUnavailableException(inner)
1400 }
1401 crate::operation::describe_export_tasks::DescribeExportTasksError::Unhandled(inner) => Error::Unhandled(inner),
1402 }
1403 }
1404}
1405impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_field_indexes::DescribeFieldIndexesError, R>> for Error
1406where
1407 R: Send + Sync + std::fmt::Debug + 'static,
1408{
1409 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_field_indexes::DescribeFieldIndexesError, R>) -> Self {
1410 match err {
1411 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1412 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1413 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1414 source: err.into(),
1415 }),
1416 }
1417 }
1418}
1419impl From<crate::operation::describe_field_indexes::DescribeFieldIndexesError> for Error {
1420 fn from(err: crate::operation::describe_field_indexes::DescribeFieldIndexesError) -> Self {
1421 match err {
1422 crate::operation::describe_field_indexes::DescribeFieldIndexesError::InvalidParameterException(inner) => {
1423 Error::InvalidParameterException(inner)
1424 }
1425 crate::operation::describe_field_indexes::DescribeFieldIndexesError::LimitExceededException(inner) => {
1426 Error::LimitExceededException(inner)
1427 }
1428 crate::operation::describe_field_indexes::DescribeFieldIndexesError::OperationAbortedException(inner) => {
1429 Error::OperationAbortedException(inner)
1430 }
1431 crate::operation::describe_field_indexes::DescribeFieldIndexesError::ResourceNotFoundException(inner) => {
1432 Error::ResourceNotFoundException(inner)
1433 }
1434 crate::operation::describe_field_indexes::DescribeFieldIndexesError::ServiceUnavailableException(inner) => {
1435 Error::ServiceUnavailableException(inner)
1436 }
1437 crate::operation::describe_field_indexes::DescribeFieldIndexesError::Unhandled(inner) => Error::Unhandled(inner),
1438 }
1439 }
1440}
1441impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError, R>>
1442 for Error
1443where
1444 R: Send + Sync + std::fmt::Debug + 'static,
1445{
1446 fn from(
1447 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError, R>,
1448 ) -> Self {
1449 match err {
1450 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1451 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1452 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1453 source: err.into(),
1454 }),
1455 }
1456 }
1457}
1458impl From<crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError> for Error {
1459 fn from(err: crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError) -> Self {
1460 match err {
1461 crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError::AccessDeniedException(inner) => {
1462 Error::AccessDeniedException(inner)
1463 }
1464 crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError::InvalidOperationException(inner) => {
1465 Error::InvalidOperationException(inner)
1466 }
1467 crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError::InvalidParameterException(inner) => {
1468 Error::InvalidParameterException(inner)
1469 }
1470 crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError::ResourceNotFoundException(inner) => {
1471 Error::ResourceNotFoundException(inner)
1472 }
1473 crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError::ThrottlingException(inner) => {
1474 Error::ThrottlingException(inner)
1475 }
1476 crate::operation::describe_import_task_batches::DescribeImportTaskBatchesError::Unhandled(inner) => Error::Unhandled(inner),
1477 }
1478 }
1479}
1480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_tasks::DescribeImportTasksError, R>> for Error
1481where
1482 R: Send + Sync + std::fmt::Debug + 'static,
1483{
1484 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_import_tasks::DescribeImportTasksError, R>) -> Self {
1485 match err {
1486 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1487 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1488 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1489 source: err.into(),
1490 }),
1491 }
1492 }
1493}
1494impl From<crate::operation::describe_import_tasks::DescribeImportTasksError> for Error {
1495 fn from(err: crate::operation::describe_import_tasks::DescribeImportTasksError) -> Self {
1496 match err {
1497 crate::operation::describe_import_tasks::DescribeImportTasksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1498 crate::operation::describe_import_tasks::DescribeImportTasksError::InvalidOperationException(inner) => {
1499 Error::InvalidOperationException(inner)
1500 }
1501 crate::operation::describe_import_tasks::DescribeImportTasksError::InvalidParameterException(inner) => {
1502 Error::InvalidParameterException(inner)
1503 }
1504 crate::operation::describe_import_tasks::DescribeImportTasksError::ResourceNotFoundException(inner) => {
1505 Error::ResourceNotFoundException(inner)
1506 }
1507 crate::operation::describe_import_tasks::DescribeImportTasksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1508 crate::operation::describe_import_tasks::DescribeImportTasksError::Unhandled(inner) => Error::Unhandled(inner),
1509 }
1510 }
1511}
1512impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_index_policies::DescribeIndexPoliciesError, R>> for Error
1513where
1514 R: Send + Sync + std::fmt::Debug + 'static,
1515{
1516 fn from(
1517 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_index_policies::DescribeIndexPoliciesError, R>,
1518 ) -> Self {
1519 match err {
1520 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1521 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1522 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1523 source: err.into(),
1524 }),
1525 }
1526 }
1527}
1528impl From<crate::operation::describe_index_policies::DescribeIndexPoliciesError> for Error {
1529 fn from(err: crate::operation::describe_index_policies::DescribeIndexPoliciesError) -> Self {
1530 match err {
1531 crate::operation::describe_index_policies::DescribeIndexPoliciesError::InvalidParameterException(inner) => {
1532 Error::InvalidParameterException(inner)
1533 }
1534 crate::operation::describe_index_policies::DescribeIndexPoliciesError::LimitExceededException(inner) => {
1535 Error::LimitExceededException(inner)
1536 }
1537 crate::operation::describe_index_policies::DescribeIndexPoliciesError::OperationAbortedException(inner) => {
1538 Error::OperationAbortedException(inner)
1539 }
1540 crate::operation::describe_index_policies::DescribeIndexPoliciesError::ResourceNotFoundException(inner) => {
1541 Error::ResourceNotFoundException(inner)
1542 }
1543 crate::operation::describe_index_policies::DescribeIndexPoliciesError::ServiceUnavailableException(inner) => {
1544 Error::ServiceUnavailableException(inner)
1545 }
1546 crate::operation::describe_index_policies::DescribeIndexPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1547 }
1548 }
1549}
1550impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_log_groups::DescribeLogGroupsError, R>> for Error
1551where
1552 R: Send + Sync + std::fmt::Debug + 'static,
1553{
1554 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_log_groups::DescribeLogGroupsError, R>) -> Self {
1555 match err {
1556 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1557 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1558 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1559 source: err.into(),
1560 }),
1561 }
1562 }
1563}
1564impl From<crate::operation::describe_log_groups::DescribeLogGroupsError> for Error {
1565 fn from(err: crate::operation::describe_log_groups::DescribeLogGroupsError) -> Self {
1566 match err {
1567 crate::operation::describe_log_groups::DescribeLogGroupsError::InvalidParameterException(inner) => {
1568 Error::InvalidParameterException(inner)
1569 }
1570 crate::operation::describe_log_groups::DescribeLogGroupsError::ServiceUnavailableException(inner) => {
1571 Error::ServiceUnavailableException(inner)
1572 }
1573 crate::operation::describe_log_groups::DescribeLogGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1574 }
1575 }
1576}
1577impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_log_streams::DescribeLogStreamsError, R>> for Error
1578where
1579 R: Send + Sync + std::fmt::Debug + 'static,
1580{
1581 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_log_streams::DescribeLogStreamsError, R>) -> Self {
1582 match err {
1583 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1584 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1585 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1586 source: err.into(),
1587 }),
1588 }
1589 }
1590}
1591impl From<crate::operation::describe_log_streams::DescribeLogStreamsError> for Error {
1592 fn from(err: crate::operation::describe_log_streams::DescribeLogStreamsError) -> Self {
1593 match err {
1594 crate::operation::describe_log_streams::DescribeLogStreamsError::InvalidParameterException(inner) => {
1595 Error::InvalidParameterException(inner)
1596 }
1597 crate::operation::describe_log_streams::DescribeLogStreamsError::ResourceNotFoundException(inner) => {
1598 Error::ResourceNotFoundException(inner)
1599 }
1600 crate::operation::describe_log_streams::DescribeLogStreamsError::ServiceUnavailableException(inner) => {
1601 Error::ServiceUnavailableException(inner)
1602 }
1603 crate::operation::describe_log_streams::DescribeLogStreamsError::Unhandled(inner) => Error::Unhandled(inner),
1604 }
1605 }
1606}
1607impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lookup_tables::DescribeLookupTablesError, R>> for Error
1608where
1609 R: Send + Sync + std::fmt::Debug + 'static,
1610{
1611 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_lookup_tables::DescribeLookupTablesError, R>) -> Self {
1612 match err {
1613 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1614 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1615 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1616 source: err.into(),
1617 }),
1618 }
1619 }
1620}
1621impl From<crate::operation::describe_lookup_tables::DescribeLookupTablesError> for Error {
1622 fn from(err: crate::operation::describe_lookup_tables::DescribeLookupTablesError) -> Self {
1623 match err {
1624 crate::operation::describe_lookup_tables::DescribeLookupTablesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1625 crate::operation::describe_lookup_tables::DescribeLookupTablesError::InvalidParameterException(inner) => {
1626 Error::InvalidParameterException(inner)
1627 }
1628 crate::operation::describe_lookup_tables::DescribeLookupTablesError::ResourceNotFoundException(inner) => {
1629 Error::ResourceNotFoundException(inner)
1630 }
1631 crate::operation::describe_lookup_tables::DescribeLookupTablesError::ServiceUnavailableException(inner) => {
1632 Error::ServiceUnavailableException(inner)
1633 }
1634 crate::operation::describe_lookup_tables::DescribeLookupTablesError::Unhandled(inner) => Error::Unhandled(inner),
1635 }
1636 }
1637}
1638impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_metric_filters::DescribeMetricFiltersError, R>> for Error
1639where
1640 R: Send + Sync + std::fmt::Debug + 'static,
1641{
1642 fn from(
1643 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_metric_filters::DescribeMetricFiltersError, R>,
1644 ) -> Self {
1645 match err {
1646 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1647 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1648 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1649 source: err.into(),
1650 }),
1651 }
1652 }
1653}
1654impl From<crate::operation::describe_metric_filters::DescribeMetricFiltersError> for Error {
1655 fn from(err: crate::operation::describe_metric_filters::DescribeMetricFiltersError) -> Self {
1656 match err {
1657 crate::operation::describe_metric_filters::DescribeMetricFiltersError::InvalidParameterException(inner) => {
1658 Error::InvalidParameterException(inner)
1659 }
1660 crate::operation::describe_metric_filters::DescribeMetricFiltersError::ResourceNotFoundException(inner) => {
1661 Error::ResourceNotFoundException(inner)
1662 }
1663 crate::operation::describe_metric_filters::DescribeMetricFiltersError::ServiceUnavailableException(inner) => {
1664 Error::ServiceUnavailableException(inner)
1665 }
1666 crate::operation::describe_metric_filters::DescribeMetricFiltersError::Unhandled(inner) => Error::Unhandled(inner),
1667 }
1668 }
1669}
1670impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_queries::DescribeQueriesError, R>> for Error
1671where
1672 R: Send + Sync + std::fmt::Debug + 'static,
1673{
1674 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_queries::DescribeQueriesError, R>) -> Self {
1675 match err {
1676 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1677 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1678 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1679 source: err.into(),
1680 }),
1681 }
1682 }
1683}
1684impl From<crate::operation::describe_queries::DescribeQueriesError> for Error {
1685 fn from(err: crate::operation::describe_queries::DescribeQueriesError) -> Self {
1686 match err {
1687 crate::operation::describe_queries::DescribeQueriesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1688 crate::operation::describe_queries::DescribeQueriesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1689 crate::operation::describe_queries::DescribeQueriesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1690 crate::operation::describe_queries::DescribeQueriesError::Unhandled(inner) => Error::Unhandled(inner),
1691 }
1692 }
1693}
1694impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_query_definitions::DescribeQueryDefinitionsError, R>>
1695 for Error
1696where
1697 R: Send + Sync + std::fmt::Debug + 'static,
1698{
1699 fn from(
1700 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_query_definitions::DescribeQueryDefinitionsError, R>,
1701 ) -> Self {
1702 match err {
1703 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1704 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1705 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1706 source: err.into(),
1707 }),
1708 }
1709 }
1710}
1711impl From<crate::operation::describe_query_definitions::DescribeQueryDefinitionsError> for Error {
1712 fn from(err: crate::operation::describe_query_definitions::DescribeQueryDefinitionsError) -> Self {
1713 match err {
1714 crate::operation::describe_query_definitions::DescribeQueryDefinitionsError::InvalidParameterException(inner) => {
1715 Error::InvalidParameterException(inner)
1716 }
1717 crate::operation::describe_query_definitions::DescribeQueryDefinitionsError::ServiceUnavailableException(inner) => {
1718 Error::ServiceUnavailableException(inner)
1719 }
1720 crate::operation::describe_query_definitions::DescribeQueryDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
1721 }
1722 }
1723}
1724impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policies::DescribeResourcePoliciesError, R>>
1725 for Error
1726where
1727 R: Send + Sync + std::fmt::Debug + 'static,
1728{
1729 fn from(
1730 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policies::DescribeResourcePoliciesError, R>,
1731 ) -> Self {
1732 match err {
1733 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1734 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1735 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1736 source: err.into(),
1737 }),
1738 }
1739 }
1740}
1741impl From<crate::operation::describe_resource_policies::DescribeResourcePoliciesError> for Error {
1742 fn from(err: crate::operation::describe_resource_policies::DescribeResourcePoliciesError) -> Self {
1743 match err {
1744 crate::operation::describe_resource_policies::DescribeResourcePoliciesError::InvalidParameterException(inner) => {
1745 Error::InvalidParameterException(inner)
1746 }
1747 crate::operation::describe_resource_policies::DescribeResourcePoliciesError::ServiceUnavailableException(inner) => {
1748 Error::ServiceUnavailableException(inner)
1749 }
1750 crate::operation::describe_resource_policies::DescribeResourcePoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1751 }
1752 }
1753}
1754impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError, R>>
1755 for Error
1756where
1757 R: Send + Sync + std::fmt::Debug + 'static,
1758{
1759 fn from(
1760 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError, R>,
1761 ) -> Self {
1762 match err {
1763 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1764 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1765 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1766 source: err.into(),
1767 }),
1768 }
1769 }
1770}
1771impl From<crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError> for Error {
1772 fn from(err: crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError) -> Self {
1773 match err {
1774 crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError::InvalidParameterException(inner) => {
1775 Error::InvalidParameterException(inner)
1776 }
1777 crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError::ResourceNotFoundException(inner) => {
1778 Error::ResourceNotFoundException(inner)
1779 }
1780 crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError::ServiceUnavailableException(inner) => {
1781 Error::ServiceUnavailableException(inner)
1782 }
1783 crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError::Unhandled(inner) => Error::Unhandled(inner),
1784 }
1785 }
1786}
1787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_kms_key::DisassociateKmsKeyError, R>> for Error
1788where
1789 R: Send + Sync + std::fmt::Debug + 'static,
1790{
1791 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_kms_key::DisassociateKmsKeyError, R>) -> Self {
1792 match err {
1793 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1794 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1795 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1796 source: err.into(),
1797 }),
1798 }
1799 }
1800}
1801impl From<crate::operation::disassociate_kms_key::DisassociateKmsKeyError> for Error {
1802 fn from(err: crate::operation::disassociate_kms_key::DisassociateKmsKeyError) -> Self {
1803 match err {
1804 crate::operation::disassociate_kms_key::DisassociateKmsKeyError::InvalidParameterException(inner) => {
1805 Error::InvalidParameterException(inner)
1806 }
1807 crate::operation::disassociate_kms_key::DisassociateKmsKeyError::OperationAbortedException(inner) => {
1808 Error::OperationAbortedException(inner)
1809 }
1810 crate::operation::disassociate_kms_key::DisassociateKmsKeyError::ResourceNotFoundException(inner) => {
1811 Error::ResourceNotFoundException(inner)
1812 }
1813 crate::operation::disassociate_kms_key::DisassociateKmsKeyError::ServiceUnavailableException(inner) => {
1814 Error::ServiceUnavailableException(inner)
1815 }
1816 crate::operation::disassociate_kms_key::DisassociateKmsKeyError::Unhandled(inner) => Error::Unhandled(inner),
1817 }
1818 }
1819}
1820impl<R>
1821 From<
1822 ::aws_smithy_runtime_api::client::result::SdkError<
1823 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError,
1824 R,
1825 >,
1826 > for Error
1827where
1828 R: Send + Sync + std::fmt::Debug + 'static,
1829{
1830 fn from(
1831 err: ::aws_smithy_runtime_api::client::result::SdkError<
1832 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError,
1833 R,
1834 >,
1835 ) -> Self {
1836 match err {
1837 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1838 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1839 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1840 source: err.into(),
1841 }),
1842 }
1843 }
1844}
1845impl From<crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError> for Error {
1846 fn from(err: crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError) -> Self {
1847 match err {
1848 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1849 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
1850 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1851 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1852 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
1853 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1854 }
1855 }
1856}
1857impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::filter_log_events::FilterLogEventsError, R>> for Error
1858where
1859 R: Send + Sync + std::fmt::Debug + 'static,
1860{
1861 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::filter_log_events::FilterLogEventsError, R>) -> Self {
1862 match err {
1863 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1864 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1865 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1866 source: err.into(),
1867 }),
1868 }
1869 }
1870}
1871impl From<crate::operation::filter_log_events::FilterLogEventsError> for Error {
1872 fn from(err: crate::operation::filter_log_events::FilterLogEventsError) -> Self {
1873 match err {
1874 crate::operation::filter_log_events::FilterLogEventsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1875 crate::operation::filter_log_events::FilterLogEventsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1876 crate::operation::filter_log_events::FilterLogEventsError::ServiceUnavailableException(inner) => {
1877 Error::ServiceUnavailableException(inner)
1878 }
1879 crate::operation::filter_log_events::FilterLogEventsError::Unhandled(inner) => Error::Unhandled(inner),
1880 }
1881 }
1882}
1883impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_protection_policy::GetDataProtectionPolicyError, R>>
1884 for Error
1885where
1886 R: Send + Sync + std::fmt::Debug + 'static,
1887{
1888 fn from(
1889 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_protection_policy::GetDataProtectionPolicyError, R>,
1890 ) -> Self {
1891 match err {
1892 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1893 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1894 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1895 source: err.into(),
1896 }),
1897 }
1898 }
1899}
1900impl From<crate::operation::get_data_protection_policy::GetDataProtectionPolicyError> for Error {
1901 fn from(err: crate::operation::get_data_protection_policy::GetDataProtectionPolicyError) -> Self {
1902 match err {
1903 crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::InvalidParameterException(inner) => {
1904 Error::InvalidParameterException(inner)
1905 }
1906 crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::OperationAbortedException(inner) => {
1907 Error::OperationAbortedException(inner)
1908 }
1909 crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::ResourceNotFoundException(inner) => {
1910 Error::ResourceNotFoundException(inner)
1911 }
1912 crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::ServiceUnavailableException(inner) => {
1913 Error::ServiceUnavailableException(inner)
1914 }
1915 crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1916 }
1917 }
1918}
1919impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery::GetDeliveryError, R>> for Error
1920where
1921 R: Send + Sync + std::fmt::Debug + 'static,
1922{
1923 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery::GetDeliveryError, R>) -> Self {
1924 match err {
1925 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1926 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1927 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1928 source: err.into(),
1929 }),
1930 }
1931 }
1932}
1933impl From<crate::operation::get_delivery::GetDeliveryError> for Error {
1934 fn from(err: crate::operation::get_delivery::GetDeliveryError) -> Self {
1935 match err {
1936 crate::operation::get_delivery::GetDeliveryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1937 crate::operation::get_delivery::GetDeliveryError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1938 crate::operation::get_delivery::GetDeliveryError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1939 crate::operation::get_delivery::GetDeliveryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1940 crate::operation::get_delivery::GetDeliveryError::ValidationException(inner) => Error::ValidationException(inner),
1941 crate::operation::get_delivery::GetDeliveryError::Unhandled(inner) => Error::Unhandled(inner),
1942 }
1943 }
1944}
1945impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_destination::GetDeliveryDestinationError, R>> for Error
1946where
1947 R: Send + Sync + std::fmt::Debug + 'static,
1948{
1949 fn from(
1950 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_destination::GetDeliveryDestinationError, R>,
1951 ) -> Self {
1952 match err {
1953 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1954 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1955 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1956 source: err.into(),
1957 }),
1958 }
1959 }
1960}
1961impl From<crate::operation::get_delivery_destination::GetDeliveryDestinationError> for Error {
1962 fn from(err: crate::operation::get_delivery_destination::GetDeliveryDestinationError) -> Self {
1963 match err {
1964 crate::operation::get_delivery_destination::GetDeliveryDestinationError::ResourceNotFoundException(inner) => {
1965 Error::ResourceNotFoundException(inner)
1966 }
1967 crate::operation::get_delivery_destination::GetDeliveryDestinationError::ServiceQuotaExceededException(inner) => {
1968 Error::ServiceQuotaExceededException(inner)
1969 }
1970 crate::operation::get_delivery_destination::GetDeliveryDestinationError::ServiceUnavailableException(inner) => {
1971 Error::ServiceUnavailableException(inner)
1972 }
1973 crate::operation::get_delivery_destination::GetDeliveryDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1974 crate::operation::get_delivery_destination::GetDeliveryDestinationError::ValidationException(inner) => Error::ValidationException(inner),
1975 crate::operation::get_delivery_destination::GetDeliveryDestinationError::Unhandled(inner) => Error::Unhandled(inner),
1976 }
1977 }
1978}
1979impl<R>
1980 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError, R>>
1981 for Error
1982where
1983 R: Send + Sync + std::fmt::Debug + 'static,
1984{
1985 fn from(
1986 err: ::aws_smithy_runtime_api::client::result::SdkError<
1987 crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError,
1988 R,
1989 >,
1990 ) -> Self {
1991 match err {
1992 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1993 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1994 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1995 source: err.into(),
1996 }),
1997 }
1998 }
1999}
2000impl From<crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError> for Error {
2001 fn from(err: crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError) -> Self {
2002 match err {
2003 crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError::ResourceNotFoundException(inner) => {
2004 Error::ResourceNotFoundException(inner)
2005 }
2006 crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError::ServiceUnavailableException(inner) => {
2007 Error::ServiceUnavailableException(inner)
2008 }
2009 crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError::ValidationException(inner) => {
2010 Error::ValidationException(inner)
2011 }
2012 crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2013 }
2014 }
2015}
2016impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_source::GetDeliverySourceError, R>> for Error
2017where
2018 R: Send + Sync + std::fmt::Debug + 'static,
2019{
2020 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_source::GetDeliverySourceError, R>) -> Self {
2021 match err {
2022 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2023 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2024 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2025 source: err.into(),
2026 }),
2027 }
2028 }
2029}
2030impl From<crate::operation::get_delivery_source::GetDeliverySourceError> for Error {
2031 fn from(err: crate::operation::get_delivery_source::GetDeliverySourceError) -> Self {
2032 match err {
2033 crate::operation::get_delivery_source::GetDeliverySourceError::ResourceNotFoundException(inner) => {
2034 Error::ResourceNotFoundException(inner)
2035 }
2036 crate::operation::get_delivery_source::GetDeliverySourceError::ServiceQuotaExceededException(inner) => {
2037 Error::ServiceQuotaExceededException(inner)
2038 }
2039 crate::operation::get_delivery_source::GetDeliverySourceError::ServiceUnavailableException(inner) => {
2040 Error::ServiceUnavailableException(inner)
2041 }
2042 crate::operation::get_delivery_source::GetDeliverySourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2043 crate::operation::get_delivery_source::GetDeliverySourceError::ValidationException(inner) => Error::ValidationException(inner),
2044 crate::operation::get_delivery_source::GetDeliverySourceError::Unhandled(inner) => Error::Unhandled(inner),
2045 }
2046 }
2047}
2048impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>> for Error
2049where
2050 R: Send + Sync + std::fmt::Debug + 'static,
2051{
2052 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>) -> Self {
2053 match err {
2054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2057 source: err.into(),
2058 }),
2059 }
2060 }
2061}
2062impl From<crate::operation::get_integration::GetIntegrationError> for Error {
2063 fn from(err: crate::operation::get_integration::GetIntegrationError) -> Self {
2064 match err {
2065 crate::operation::get_integration::GetIntegrationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2066 crate::operation::get_integration::GetIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2067 crate::operation::get_integration::GetIntegrationError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2068 crate::operation::get_integration::GetIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
2069 }
2070 }
2071}
2072impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError, R>> for Error
2073where
2074 R: Send + Sync + std::fmt::Debug + 'static,
2075{
2076 fn from(
2077 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError, R>,
2078 ) -> Self {
2079 match err {
2080 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2081 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2082 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2083 source: err.into(),
2084 }),
2085 }
2086 }
2087}
2088impl From<crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError> for Error {
2089 fn from(err: crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError) -> Self {
2090 match err {
2091 crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::InvalidParameterException(inner) => {
2092 Error::InvalidParameterException(inner)
2093 }
2094 crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::OperationAbortedException(inner) => {
2095 Error::OperationAbortedException(inner)
2096 }
2097 crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::ResourceNotFoundException(inner) => {
2098 Error::ResourceNotFoundException(inner)
2099 }
2100 crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::ServiceUnavailableException(inner) => {
2101 Error::ServiceUnavailableException(inner)
2102 }
2103 crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
2104 }
2105 }
2106}
2107impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_events::GetLogEventsError, R>> for Error
2108where
2109 R: Send + Sync + std::fmt::Debug + 'static,
2110{
2111 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_events::GetLogEventsError, R>) -> Self {
2112 match err {
2113 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2114 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2115 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2116 source: err.into(),
2117 }),
2118 }
2119 }
2120}
2121impl From<crate::operation::get_log_events::GetLogEventsError> for Error {
2122 fn from(err: crate::operation::get_log_events::GetLogEventsError) -> Self {
2123 match err {
2124 crate::operation::get_log_events::GetLogEventsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2125 crate::operation::get_log_events::GetLogEventsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2126 crate::operation::get_log_events::GetLogEventsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2127 crate::operation::get_log_events::GetLogEventsError::Unhandled(inner) => Error::Unhandled(inner),
2128 }
2129 }
2130}
2131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_fields::GetLogFieldsError, R>> for Error
2132where
2133 R: Send + Sync + std::fmt::Debug + 'static,
2134{
2135 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_fields::GetLogFieldsError, R>) -> Self {
2136 match err {
2137 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2138 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2139 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2140 source: err.into(),
2141 }),
2142 }
2143 }
2144}
2145impl From<crate::operation::get_log_fields::GetLogFieldsError> for Error {
2146 fn from(err: crate::operation::get_log_fields::GetLogFieldsError) -> Self {
2147 match err {
2148 crate::operation::get_log_fields::GetLogFieldsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2149 crate::operation::get_log_fields::GetLogFieldsError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2150 crate::operation::get_log_fields::GetLogFieldsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2151 crate::operation::get_log_fields::GetLogFieldsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2152 crate::operation::get_log_fields::GetLogFieldsError::Unhandled(inner) => Error::Unhandled(inner),
2153 }
2154 }
2155}
2156impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_group_fields::GetLogGroupFieldsError, R>> for Error
2157where
2158 R: Send + Sync + std::fmt::Debug + 'static,
2159{
2160 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_group_fields::GetLogGroupFieldsError, R>) -> Self {
2161 match err {
2162 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2163 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2164 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2165 source: err.into(),
2166 }),
2167 }
2168 }
2169}
2170impl From<crate::operation::get_log_group_fields::GetLogGroupFieldsError> for Error {
2171 fn from(err: crate::operation::get_log_group_fields::GetLogGroupFieldsError) -> Self {
2172 match err {
2173 crate::operation::get_log_group_fields::GetLogGroupFieldsError::InvalidParameterException(inner) => {
2174 Error::InvalidParameterException(inner)
2175 }
2176 crate::operation::get_log_group_fields::GetLogGroupFieldsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2177 crate::operation::get_log_group_fields::GetLogGroupFieldsError::ResourceNotFoundException(inner) => {
2178 Error::ResourceNotFoundException(inner)
2179 }
2180 crate::operation::get_log_group_fields::GetLogGroupFieldsError::ServiceUnavailableException(inner) => {
2181 Error::ServiceUnavailableException(inner)
2182 }
2183 crate::operation::get_log_group_fields::GetLogGroupFieldsError::Unhandled(inner) => Error::Unhandled(inner),
2184 }
2185 }
2186}
2187impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_object::GetLogObjectError, R>> for Error
2188where
2189 R: Send + Sync + std::fmt::Debug + 'static,
2190{
2191 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_object::GetLogObjectError, R>) -> Self {
2192 match err {
2193 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2194 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2195 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2196 source: err.into(),
2197 }),
2198 }
2199 }
2200}
2201impl From<crate::operation::get_log_object::GetLogObjectError> for Error {
2202 fn from(err: crate::operation::get_log_object::GetLogObjectError) -> Self {
2203 match err {
2204 crate::operation::get_log_object::GetLogObjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2205 crate::operation::get_log_object::GetLogObjectError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
2206 crate::operation::get_log_object::GetLogObjectError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2207 crate::operation::get_log_object::GetLogObjectError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2208 crate::operation::get_log_object::GetLogObjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2209 crate::operation::get_log_object::GetLogObjectError::InternalStreamingException(inner) => Error::InternalStreamingException(inner),
2210 crate::operation::get_log_object::GetLogObjectError::Unhandled(inner) => Error::Unhandled(inner),
2211 }
2212 }
2213}
2214impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_record::GetLogRecordError, R>> for Error
2215where
2216 R: Send + Sync + std::fmt::Debug + 'static,
2217{
2218 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_record::GetLogRecordError, R>) -> Self {
2219 match err {
2220 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2221 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2222 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2223 source: err.into(),
2224 }),
2225 }
2226 }
2227}
2228impl From<crate::operation::get_log_record::GetLogRecordError> for Error {
2229 fn from(err: crate::operation::get_log_record::GetLogRecordError) -> Self {
2230 match err {
2231 crate::operation::get_log_record::GetLogRecordError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2232 crate::operation::get_log_record::GetLogRecordError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2233 crate::operation::get_log_record::GetLogRecordError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2234 crate::operation::get_log_record::GetLogRecordError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2235 crate::operation::get_log_record::GetLogRecordError::Unhandled(inner) => Error::Unhandled(inner),
2236 }
2237 }
2238}
2239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lookup_table::GetLookupTableError, R>> for Error
2240where
2241 R: Send + Sync + std::fmt::Debug + 'static,
2242{
2243 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_lookup_table::GetLookupTableError, R>) -> Self {
2244 match err {
2245 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2246 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2247 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2248 source: err.into(),
2249 }),
2250 }
2251 }
2252}
2253impl From<crate::operation::get_lookup_table::GetLookupTableError> for Error {
2254 fn from(err: crate::operation::get_lookup_table::GetLookupTableError) -> Self {
2255 match err {
2256 crate::operation::get_lookup_table::GetLookupTableError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2257 crate::operation::get_lookup_table::GetLookupTableError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2258 crate::operation::get_lookup_table::GetLookupTableError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2259 crate::operation::get_lookup_table::GetLookupTableError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2260 crate::operation::get_lookup_table::GetLookupTableError::Unhandled(inner) => Error::Unhandled(inner),
2261 }
2262 }
2263}
2264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_query_results::GetQueryResultsError, R>> for Error
2265where
2266 R: Send + Sync + std::fmt::Debug + 'static,
2267{
2268 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_query_results::GetQueryResultsError, R>) -> Self {
2269 match err {
2270 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2271 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2272 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2273 source: err.into(),
2274 }),
2275 }
2276 }
2277}
2278impl From<crate::operation::get_query_results::GetQueryResultsError> for Error {
2279 fn from(err: crate::operation::get_query_results::GetQueryResultsError) -> Self {
2280 match err {
2281 crate::operation::get_query_results::GetQueryResultsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2282 crate::operation::get_query_results::GetQueryResultsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2283 crate::operation::get_query_results::GetQueryResultsError::ServiceUnavailableException(inner) => {
2284 Error::ServiceUnavailableException(inner)
2285 }
2286 crate::operation::get_query_results::GetQueryResultsError::Unhandled(inner) => Error::Unhandled(inner),
2287 }
2288 }
2289}
2290impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_query::GetScheduledQueryError, R>> for Error
2291where
2292 R: Send + Sync + std::fmt::Debug + 'static,
2293{
2294 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_query::GetScheduledQueryError, R>) -> Self {
2295 match err {
2296 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2297 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2298 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2299 source: err.into(),
2300 }),
2301 }
2302 }
2303}
2304impl From<crate::operation::get_scheduled_query::GetScheduledQueryError> for Error {
2305 fn from(err: crate::operation::get_scheduled_query::GetScheduledQueryError) -> Self {
2306 match err {
2307 crate::operation::get_scheduled_query::GetScheduledQueryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2308 crate::operation::get_scheduled_query::GetScheduledQueryError::InternalServerException(inner) => Error::InternalServerException(inner),
2309 crate::operation::get_scheduled_query::GetScheduledQueryError::ResourceNotFoundException(inner) => {
2310 Error::ResourceNotFoundException(inner)
2311 }
2312 crate::operation::get_scheduled_query::GetScheduledQueryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2313 crate::operation::get_scheduled_query::GetScheduledQueryError::ValidationException(inner) => Error::ValidationException(inner),
2314 crate::operation::get_scheduled_query::GetScheduledQueryError::Unhandled(inner) => Error::Unhandled(inner),
2315 }
2316 }
2317}
2318impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError, R>>
2319 for Error
2320where
2321 R: Send + Sync + std::fmt::Debug + 'static,
2322{
2323 fn from(
2324 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError, R>,
2325 ) -> Self {
2326 match err {
2327 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2328 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2329 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2330 source: err.into(),
2331 }),
2332 }
2333 }
2334}
2335impl From<crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError> for Error {
2336 fn from(err: crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError) -> Self {
2337 match err {
2338 crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::AccessDeniedException(inner) => {
2339 Error::AccessDeniedException(inner)
2340 }
2341 crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::InternalServerException(inner) => {
2342 Error::InternalServerException(inner)
2343 }
2344 crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::ResourceNotFoundException(inner) => {
2345 Error::ResourceNotFoundException(inner)
2346 }
2347 crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::ThrottlingException(inner) => {
2348 Error::ThrottlingException(inner)
2349 }
2350 crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::ValidationException(inner) => {
2351 Error::ValidationException(inner)
2352 }
2353 crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::Unhandled(inner) => Error::Unhandled(inner),
2354 }
2355 }
2356}
2357impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_transformer::GetTransformerError, R>> for Error
2358where
2359 R: Send + Sync + std::fmt::Debug + 'static,
2360{
2361 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_transformer::GetTransformerError, R>) -> Self {
2362 match err {
2363 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2364 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2365 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2366 source: err.into(),
2367 }),
2368 }
2369 }
2370}
2371impl From<crate::operation::get_transformer::GetTransformerError> for Error {
2372 fn from(err: crate::operation::get_transformer::GetTransformerError) -> Self {
2373 match err {
2374 crate::operation::get_transformer::GetTransformerError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
2375 crate::operation::get_transformer::GetTransformerError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2376 crate::operation::get_transformer::GetTransformerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2377 crate::operation::get_transformer::GetTransformerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2378 crate::operation::get_transformer::GetTransformerError::Unhandled(inner) => Error::Unhandled(inner),
2379 }
2380 }
2381}
2382impl<R>
2383 From<
2384 ::aws_smithy_runtime_api::client::result::SdkError<
2385 crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError,
2386 R,
2387 >,
2388 > for Error
2389where
2390 R: Send + Sync + std::fmt::Debug + 'static,
2391{
2392 fn from(
2393 err: ::aws_smithy_runtime_api::client::result::SdkError<
2394 crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError,
2395 R,
2396 >,
2397 ) -> Self {
2398 match err {
2399 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2400 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2401 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2402 source: err.into(),
2403 }),
2404 }
2405 }
2406}
2407impl From<crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError> for Error {
2408 fn from(err: crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError) -> Self {
2409 match err {
2410 crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError::InvalidParameterException(inner) => {
2411 Error::InvalidParameterException(inner)
2412 }
2413 crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError::ServiceUnavailableException(inner) => {
2414 Error::ServiceUnavailableException(inner)
2415 }
2416 crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError::ValidationException(inner) => {
2417 Error::ValidationException(inner)
2418 }
2419 crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError::Unhandled(inner) => Error::Unhandled(inner),
2420 }
2421 }
2422}
2423impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_anomalies::ListAnomaliesError, R>> for Error
2424where
2425 R: Send + Sync + std::fmt::Debug + 'static,
2426{
2427 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_anomalies::ListAnomaliesError, R>) -> Self {
2428 match err {
2429 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2430 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2431 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2432 source: err.into(),
2433 }),
2434 }
2435 }
2436}
2437impl From<crate::operation::list_anomalies::ListAnomaliesError> for Error {
2438 fn from(err: crate::operation::list_anomalies::ListAnomaliesError) -> Self {
2439 match err {
2440 crate::operation::list_anomalies::ListAnomaliesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2441 crate::operation::list_anomalies::ListAnomaliesError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2442 crate::operation::list_anomalies::ListAnomaliesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2443 crate::operation::list_anomalies::ListAnomaliesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2444 crate::operation::list_anomalies::ListAnomaliesError::Unhandled(inner) => Error::Unhandled(inner),
2445 }
2446 }
2447}
2448impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrations::ListIntegrationsError, R>> for Error
2449where
2450 R: Send + Sync + std::fmt::Debug + 'static,
2451{
2452 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrations::ListIntegrationsError, R>) -> Self {
2453 match err {
2454 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2455 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2456 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2457 source: err.into(),
2458 }),
2459 }
2460 }
2461}
2462impl From<crate::operation::list_integrations::ListIntegrationsError> for Error {
2463 fn from(err: crate::operation::list_integrations::ListIntegrationsError) -> Self {
2464 match err {
2465 crate::operation::list_integrations::ListIntegrationsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2466 crate::operation::list_integrations::ListIntegrationsError::ServiceUnavailableException(inner) => {
2467 Error::ServiceUnavailableException(inner)
2468 }
2469 crate::operation::list_integrations::ListIntegrationsError::Unhandled(inner) => Error::Unhandled(inner),
2470 }
2471 }
2472}
2473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError, R>>
2474 for Error
2475where
2476 R: Send + Sync + std::fmt::Debug + 'static,
2477{
2478 fn from(
2479 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError, R>,
2480 ) -> Self {
2481 match err {
2482 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2483 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2484 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2485 source: err.into(),
2486 }),
2487 }
2488 }
2489}
2490impl From<crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError> for Error {
2491 fn from(err: crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError) -> Self {
2492 match err {
2493 crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::InvalidParameterException(inner) => {
2494 Error::InvalidParameterException(inner)
2495 }
2496 crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::OperationAbortedException(inner) => {
2497 Error::OperationAbortedException(inner)
2498 }
2499 crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::ResourceNotFoundException(inner) => {
2500 Error::ResourceNotFoundException(inner)
2501 }
2502 crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::ServiceUnavailableException(inner) => {
2503 Error::ServiceUnavailableException(inner)
2504 }
2505 crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::Unhandled(inner) => Error::Unhandled(inner),
2506 }
2507 }
2508}
2509impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_groups::ListLogGroupsError, R>> for Error
2510where
2511 R: Send + Sync + std::fmt::Debug + 'static,
2512{
2513 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_groups::ListLogGroupsError, R>) -> Self {
2514 match err {
2515 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2516 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2517 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2518 source: err.into(),
2519 }),
2520 }
2521 }
2522}
2523impl From<crate::operation::list_log_groups::ListLogGroupsError> for Error {
2524 fn from(err: crate::operation::list_log_groups::ListLogGroupsError) -> Self {
2525 match err {
2526 crate::operation::list_log_groups::ListLogGroupsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2527 crate::operation::list_log_groups::ListLogGroupsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2528 crate::operation::list_log_groups::ListLogGroupsError::Unhandled(inner) => Error::Unhandled(inner),
2529 }
2530 }
2531}
2532impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError, R>> for Error
2533where
2534 R: Send + Sync + std::fmt::Debug + 'static,
2535{
2536 fn from(
2537 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError, R>,
2538 ) -> Self {
2539 match err {
2540 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2541 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2542 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2543 source: err.into(),
2544 }),
2545 }
2546 }
2547}
2548impl From<crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError> for Error {
2549 fn from(err: crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError) -> Self {
2550 match err {
2551 crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::AccessDeniedException(inner) => {
2552 Error::AccessDeniedException(inner)
2553 }
2554 crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::InvalidParameterException(inner) => {
2555 Error::InvalidParameterException(inner)
2556 }
2557 crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::ResourceNotFoundException(inner) => {
2558 Error::ResourceNotFoundException(inner)
2559 }
2560 crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::ServiceUnavailableException(inner) => {
2561 Error::ServiceUnavailableException(inner)
2562 }
2563 crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::Unhandled(inner) => Error::Unhandled(inner),
2564 }
2565 }
2566}
2567impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scheduled_queries::ListScheduledQueriesError, R>> for Error
2568where
2569 R: Send + Sync + std::fmt::Debug + 'static,
2570{
2571 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scheduled_queries::ListScheduledQueriesError, R>) -> Self {
2572 match err {
2573 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2574 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2575 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2576 source: err.into(),
2577 }),
2578 }
2579 }
2580}
2581impl From<crate::operation::list_scheduled_queries::ListScheduledQueriesError> for Error {
2582 fn from(err: crate::operation::list_scheduled_queries::ListScheduledQueriesError) -> Self {
2583 match err {
2584 crate::operation::list_scheduled_queries::ListScheduledQueriesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2585 crate::operation::list_scheduled_queries::ListScheduledQueriesError::InternalServerException(inner) => {
2586 Error::InternalServerException(inner)
2587 }
2588 crate::operation::list_scheduled_queries::ListScheduledQueriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2589 crate::operation::list_scheduled_queries::ListScheduledQueriesError::ValidationException(inner) => Error::ValidationException(inner),
2590 crate::operation::list_scheduled_queries::ListScheduledQueriesError::Unhandled(inner) => Error::Unhandled(inner),
2591 }
2592 }
2593}
2594impl<R>
2595 From<
2596 ::aws_smithy_runtime_api::client::result::SdkError<
2597 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError,
2598 R,
2599 >,
2600 > for Error
2601where
2602 R: Send + Sync + std::fmt::Debug + 'static,
2603{
2604 fn from(
2605 err: ::aws_smithy_runtime_api::client::result::SdkError<
2606 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError,
2607 R,
2608 >,
2609 ) -> Self {
2610 match err {
2611 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2612 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2613 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2614 source: err.into(),
2615 }),
2616 }
2617 }
2618}
2619impl From<crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError> for Error {
2620 fn from(err: crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError) -> Self {
2621 match err {
2622 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::AccessDeniedException(inner) => {
2623 Error::AccessDeniedException(inner)
2624 }
2625 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::InternalServerException(inner) => {
2626 Error::InternalServerException(inner)
2627 }
2628 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::ResourceNotFoundException(inner) => {
2629 Error::ResourceNotFoundException(inner)
2630 }
2631 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::ThrottlingException(inner) => {
2632 Error::ThrottlingException(inner)
2633 }
2634 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::ValidationException(inner) => {
2635 Error::ValidationException(inner)
2636 }
2637 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::Unhandled(inner) => {
2638 Error::Unhandled(inner)
2639 }
2640 }
2641 }
2642}
2643impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2644where
2645 R: Send + Sync + std::fmt::Debug + 'static,
2646{
2647 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2648 match err {
2649 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2650 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2651 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2652 source: err.into(),
2653 }),
2654 }
2655 }
2656}
2657impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2658 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2659 match err {
2660 crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidParameterException(inner) => {
2661 Error::InvalidParameterException(inner)
2662 }
2663 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2664 Error::ResourceNotFoundException(inner)
2665 }
2666 crate::operation::list_tags_for_resource::ListTagsForResourceError::ServiceUnavailableException(inner) => {
2667 Error::ServiceUnavailableException(inner)
2668 }
2669 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2670 }
2671 }
2672}
2673impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_log_group::ListTagsLogGroupError, R>> for Error
2674where
2675 R: Send + Sync + std::fmt::Debug + 'static,
2676{
2677 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_log_group::ListTagsLogGroupError, R>) -> Self {
2678 match err {
2679 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2680 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2681 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2682 source: err.into(),
2683 }),
2684 }
2685 }
2686}
2687impl From<crate::operation::list_tags_log_group::ListTagsLogGroupError> for Error {
2688 fn from(err: crate::operation::list_tags_log_group::ListTagsLogGroupError) -> Self {
2689 match err {
2690 crate::operation::list_tags_log_group::ListTagsLogGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2691 crate::operation::list_tags_log_group::ListTagsLogGroupError::ServiceUnavailableException(inner) => {
2692 Error::ServiceUnavailableException(inner)
2693 }
2694 crate::operation::list_tags_log_group::ListTagsLogGroupError::Unhandled(inner) => Error::Unhandled(inner),
2695 }
2696 }
2697}
2698impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_policy::PutAccountPolicyError, R>> for Error
2699where
2700 R: Send + Sync + std::fmt::Debug + 'static,
2701{
2702 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_policy::PutAccountPolicyError, R>) -> Self {
2703 match err {
2704 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2705 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2706 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2707 source: err.into(),
2708 }),
2709 }
2710 }
2711}
2712impl From<crate::operation::put_account_policy::PutAccountPolicyError> for Error {
2713 fn from(err: crate::operation::put_account_policy::PutAccountPolicyError) -> Self {
2714 match err {
2715 crate::operation::put_account_policy::PutAccountPolicyError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2716 crate::operation::put_account_policy::PutAccountPolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2717 crate::operation::put_account_policy::PutAccountPolicyError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2718 crate::operation::put_account_policy::PutAccountPolicyError::ServiceUnavailableException(inner) => {
2719 Error::ServiceUnavailableException(inner)
2720 }
2721 crate::operation::put_account_policy::PutAccountPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2722 }
2723 }
2724}
2725impl<R>
2726 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError, R>>
2727 for Error
2728where
2729 R: Send + Sync + std::fmt::Debug + 'static,
2730{
2731 fn from(
2732 err: ::aws_smithy_runtime_api::client::result::SdkError<
2733 crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError,
2734 R,
2735 >,
2736 ) -> Self {
2737 match err {
2738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2741 source: err.into(),
2742 }),
2743 }
2744 }
2745}
2746impl From<crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError> for Error {
2747 fn from(err: crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError) -> Self {
2748 match err {
2749 crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::AccessDeniedException(inner) => {
2750 Error::AccessDeniedException(inner)
2751 }
2752 crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::InvalidOperationException(inner) => {
2753 Error::InvalidOperationException(inner)
2754 }
2755 crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::InvalidParameterException(inner) => {
2756 Error::InvalidParameterException(inner)
2757 }
2758 crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::OperationAbortedException(inner) => {
2759 Error::OperationAbortedException(inner)
2760 }
2761 crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::ResourceNotFoundException(inner) => {
2762 Error::ResourceNotFoundException(inner)
2763 }
2764 crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::ServiceUnavailableException(inner) => {
2765 Error::ServiceUnavailableException(inner)
2766 }
2767 crate::operation::put_bearer_token_authentication::PutBearerTokenAuthenticationError::Unhandled(inner) => Error::Unhandled(inner),
2768 }
2769 }
2770}
2771impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_data_protection_policy::PutDataProtectionPolicyError, R>>
2772 for Error
2773where
2774 R: Send + Sync + std::fmt::Debug + 'static,
2775{
2776 fn from(
2777 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_data_protection_policy::PutDataProtectionPolicyError, R>,
2778 ) -> Self {
2779 match err {
2780 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2781 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2782 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2783 source: err.into(),
2784 }),
2785 }
2786 }
2787}
2788impl From<crate::operation::put_data_protection_policy::PutDataProtectionPolicyError> for Error {
2789 fn from(err: crate::operation::put_data_protection_policy::PutDataProtectionPolicyError) -> Self {
2790 match err {
2791 crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::InvalidParameterException(inner) => {
2792 Error::InvalidParameterException(inner)
2793 }
2794 crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::LimitExceededException(inner) => {
2795 Error::LimitExceededException(inner)
2796 }
2797 crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::OperationAbortedException(inner) => {
2798 Error::OperationAbortedException(inner)
2799 }
2800 crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::ResourceNotFoundException(inner) => {
2801 Error::ResourceNotFoundException(inner)
2802 }
2803 crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::ServiceUnavailableException(inner) => {
2804 Error::ServiceUnavailableException(inner)
2805 }
2806 crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2807 }
2808 }
2809}
2810impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_destination::PutDeliveryDestinationError, R>> for Error
2811where
2812 R: Send + Sync + std::fmt::Debug + 'static,
2813{
2814 fn from(
2815 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_destination::PutDeliveryDestinationError, R>,
2816 ) -> Self {
2817 match err {
2818 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2819 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2820 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2821 source: err.into(),
2822 }),
2823 }
2824 }
2825}
2826impl From<crate::operation::put_delivery_destination::PutDeliveryDestinationError> for Error {
2827 fn from(err: crate::operation::put_delivery_destination::PutDeliveryDestinationError) -> Self {
2828 match err {
2829 crate::operation::put_delivery_destination::PutDeliveryDestinationError::ConflictException(inner) => Error::ConflictException(inner),
2830 crate::operation::put_delivery_destination::PutDeliveryDestinationError::ResourceNotFoundException(inner) => {
2831 Error::ResourceNotFoundException(inner)
2832 }
2833 crate::operation::put_delivery_destination::PutDeliveryDestinationError::ServiceQuotaExceededException(inner) => {
2834 Error::ServiceQuotaExceededException(inner)
2835 }
2836 crate::operation::put_delivery_destination::PutDeliveryDestinationError::ServiceUnavailableException(inner) => {
2837 Error::ServiceUnavailableException(inner)
2838 }
2839 crate::operation::put_delivery_destination::PutDeliveryDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2840 crate::operation::put_delivery_destination::PutDeliveryDestinationError::ValidationException(inner) => Error::ValidationException(inner),
2841 crate::operation::put_delivery_destination::PutDeliveryDestinationError::Unhandled(inner) => Error::Unhandled(inner),
2842 }
2843 }
2844}
2845impl<R>
2846 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError, R>>
2847 for Error
2848where
2849 R: Send + Sync + std::fmt::Debug + 'static,
2850{
2851 fn from(
2852 err: ::aws_smithy_runtime_api::client::result::SdkError<
2853 crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError,
2854 R,
2855 >,
2856 ) -> Self {
2857 match err {
2858 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2859 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2860 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2861 source: err.into(),
2862 }),
2863 }
2864 }
2865}
2866impl From<crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError> for Error {
2867 fn from(err: crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError) -> Self {
2868 match err {
2869 crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::ConflictException(inner) => {
2870 Error::ConflictException(inner)
2871 }
2872 crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::ResourceNotFoundException(inner) => {
2873 Error::ResourceNotFoundException(inner)
2874 }
2875 crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::ServiceUnavailableException(inner) => {
2876 Error::ServiceUnavailableException(inner)
2877 }
2878 crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::ValidationException(inner) => {
2879 Error::ValidationException(inner)
2880 }
2881 crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2882 }
2883 }
2884}
2885impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_source::PutDeliverySourceError, R>> for Error
2886where
2887 R: Send + Sync + std::fmt::Debug + 'static,
2888{
2889 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_source::PutDeliverySourceError, R>) -> Self {
2890 match err {
2891 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2892 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2893 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2894 source: err.into(),
2895 }),
2896 }
2897 }
2898}
2899impl From<crate::operation::put_delivery_source::PutDeliverySourceError> for Error {
2900 fn from(err: crate::operation::put_delivery_source::PutDeliverySourceError) -> Self {
2901 match err {
2902 crate::operation::put_delivery_source::PutDeliverySourceError::ConflictException(inner) => Error::ConflictException(inner),
2903 crate::operation::put_delivery_source::PutDeliverySourceError::ResourceNotFoundException(inner) => {
2904 Error::ResourceNotFoundException(inner)
2905 }
2906 crate::operation::put_delivery_source::PutDeliverySourceError::ServiceQuotaExceededException(inner) => {
2907 Error::ServiceQuotaExceededException(inner)
2908 }
2909 crate::operation::put_delivery_source::PutDeliverySourceError::ServiceUnavailableException(inner) => {
2910 Error::ServiceUnavailableException(inner)
2911 }
2912 crate::operation::put_delivery_source::PutDeliverySourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2913 crate::operation::put_delivery_source::PutDeliverySourceError::ValidationException(inner) => Error::ValidationException(inner),
2914 crate::operation::put_delivery_source::PutDeliverySourceError::Unhandled(inner) => Error::Unhandled(inner),
2915 }
2916 }
2917}
2918impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_destination::PutDestinationError, R>> for Error
2919where
2920 R: Send + Sync + std::fmt::Debug + 'static,
2921{
2922 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_destination::PutDestinationError, R>) -> Self {
2923 match err {
2924 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2925 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2926 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2927 source: err.into(),
2928 }),
2929 }
2930 }
2931}
2932impl From<crate::operation::put_destination::PutDestinationError> for Error {
2933 fn from(err: crate::operation::put_destination::PutDestinationError) -> Self {
2934 match err {
2935 crate::operation::put_destination::PutDestinationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2936 crate::operation::put_destination::PutDestinationError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2937 crate::operation::put_destination::PutDestinationError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2938 crate::operation::put_destination::PutDestinationError::Unhandled(inner) => Error::Unhandled(inner),
2939 }
2940 }
2941}
2942impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_destination_policy::PutDestinationPolicyError, R>> for Error
2943where
2944 R: Send + Sync + std::fmt::Debug + 'static,
2945{
2946 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_destination_policy::PutDestinationPolicyError, R>) -> Self {
2947 match err {
2948 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2949 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2950 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2951 source: err.into(),
2952 }),
2953 }
2954 }
2955}
2956impl From<crate::operation::put_destination_policy::PutDestinationPolicyError> for Error {
2957 fn from(err: crate::operation::put_destination_policy::PutDestinationPolicyError) -> Self {
2958 match err {
2959 crate::operation::put_destination_policy::PutDestinationPolicyError::InvalidParameterException(inner) => {
2960 Error::InvalidParameterException(inner)
2961 }
2962 crate::operation::put_destination_policy::PutDestinationPolicyError::OperationAbortedException(inner) => {
2963 Error::OperationAbortedException(inner)
2964 }
2965 crate::operation::put_destination_policy::PutDestinationPolicyError::ServiceUnavailableException(inner) => {
2966 Error::ServiceUnavailableException(inner)
2967 }
2968 crate::operation::put_destination_policy::PutDestinationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2969 }
2970 }
2971}
2972impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_index_policy::PutIndexPolicyError, R>> for Error
2973where
2974 R: Send + Sync + std::fmt::Debug + 'static,
2975{
2976 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_index_policy::PutIndexPolicyError, R>) -> Self {
2977 match err {
2978 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2979 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2980 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2981 source: err.into(),
2982 }),
2983 }
2984 }
2985}
2986impl From<crate::operation::put_index_policy::PutIndexPolicyError> for Error {
2987 fn from(err: crate::operation::put_index_policy::PutIndexPolicyError) -> Self {
2988 match err {
2989 crate::operation::put_index_policy::PutIndexPolicyError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2990 crate::operation::put_index_policy::PutIndexPolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2991 crate::operation::put_index_policy::PutIndexPolicyError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2992 crate::operation::put_index_policy::PutIndexPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2993 crate::operation::put_index_policy::PutIndexPolicyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2994 crate::operation::put_index_policy::PutIndexPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2995 }
2996 }
2997}
2998impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_integration::PutIntegrationError, R>> for Error
2999where
3000 R: Send + Sync + std::fmt::Debug + 'static,
3001{
3002 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_integration::PutIntegrationError, R>) -> Self {
3003 match err {
3004 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3005 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3006 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3007 source: err.into(),
3008 }),
3009 }
3010 }
3011}
3012impl From<crate::operation::put_integration::PutIntegrationError> for Error {
3013 fn from(err: crate::operation::put_integration::PutIntegrationError) -> Self {
3014 match err {
3015 crate::operation::put_integration::PutIntegrationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3016 crate::operation::put_integration::PutIntegrationError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3017 crate::operation::put_integration::PutIntegrationError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3018 crate::operation::put_integration::PutIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
3019 crate::operation::put_integration::PutIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
3020 }
3021 }
3022}
3023impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_log_events::PutLogEventsError, R>> for Error
3024where
3025 R: Send + Sync + std::fmt::Debug + 'static,
3026{
3027 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_log_events::PutLogEventsError, R>) -> Self {
3028 match err {
3029 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3030 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3031 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3032 source: err.into(),
3033 }),
3034 }
3035 }
3036}
3037impl From<crate::operation::put_log_events::PutLogEventsError> for Error {
3038 fn from(err: crate::operation::put_log_events::PutLogEventsError) -> Self {
3039 match err {
3040 crate::operation::put_log_events::PutLogEventsError::DataAlreadyAcceptedException(inner) => Error::DataAlreadyAcceptedException(inner),
3041 crate::operation::put_log_events::PutLogEventsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3042 crate::operation::put_log_events::PutLogEventsError::InvalidSequenceTokenException(inner) => Error::InvalidSequenceTokenException(inner),
3043 crate::operation::put_log_events::PutLogEventsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3044 crate::operation::put_log_events::PutLogEventsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3045 crate::operation::put_log_events::PutLogEventsError::UnrecognizedClientException(inner) => Error::UnrecognizedClientException(inner),
3046 crate::operation::put_log_events::PutLogEventsError::Unhandled(inner) => Error::Unhandled(inner),
3047 }
3048 }
3049}
3050impl<R>
3051 From<
3052 ::aws_smithy_runtime_api::client::result::SdkError<
3053 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError,
3054 R,
3055 >,
3056 > for Error
3057where
3058 R: Send + Sync + std::fmt::Debug + 'static,
3059{
3060 fn from(
3061 err: ::aws_smithy_runtime_api::client::result::SdkError<
3062 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError,
3063 R,
3064 >,
3065 ) -> Self {
3066 match err {
3067 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3068 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3069 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3070 source: err.into(),
3071 }),
3072 }
3073 }
3074}
3075impl From<crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError> for Error {
3076 fn from(err: crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError) -> Self {
3077 match err {
3078 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::AccessDeniedException(inner) => {
3079 Error::AccessDeniedException(inner)
3080 }
3081 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::InvalidOperationException(inner) => {
3082 Error::InvalidOperationException(inner)
3083 }
3084 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::InvalidParameterException(inner) => {
3085 Error::InvalidParameterException(inner)
3086 }
3087 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::OperationAbortedException(inner) => {
3088 Error::OperationAbortedException(inner)
3089 }
3090 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::ResourceNotFoundException(inner) => {
3091 Error::ResourceNotFoundException(inner)
3092 }
3093 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::ServiceUnavailableException(inner) => {
3094 Error::ServiceUnavailableException(inner)
3095 }
3096 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::Unhandled(inner) => Error::Unhandled(inner),
3097 }
3098 }
3099}
3100impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metric_filter::PutMetricFilterError, R>> for Error
3101where
3102 R: Send + Sync + std::fmt::Debug + 'static,
3103{
3104 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metric_filter::PutMetricFilterError, R>) -> Self {
3105 match err {
3106 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3107 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3108 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3109 source: err.into(),
3110 }),
3111 }
3112 }
3113}
3114impl From<crate::operation::put_metric_filter::PutMetricFilterError> for Error {
3115 fn from(err: crate::operation::put_metric_filter::PutMetricFilterError) -> Self {
3116 match err {
3117 crate::operation::put_metric_filter::PutMetricFilterError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
3118 crate::operation::put_metric_filter::PutMetricFilterError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3119 crate::operation::put_metric_filter::PutMetricFilterError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3120 crate::operation::put_metric_filter::PutMetricFilterError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
3121 crate::operation::put_metric_filter::PutMetricFilterError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3122 crate::operation::put_metric_filter::PutMetricFilterError::ServiceUnavailableException(inner) => {
3123 Error::ServiceUnavailableException(inner)
3124 }
3125 crate::operation::put_metric_filter::PutMetricFilterError::Unhandled(inner) => Error::Unhandled(inner),
3126 }
3127 }
3128}
3129impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_query_definition::PutQueryDefinitionError, R>> for Error
3130where
3131 R: Send + Sync + std::fmt::Debug + 'static,
3132{
3133 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_query_definition::PutQueryDefinitionError, R>) -> Self {
3134 match err {
3135 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3136 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3137 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3138 source: err.into(),
3139 }),
3140 }
3141 }
3142}
3143impl From<crate::operation::put_query_definition::PutQueryDefinitionError> for Error {
3144 fn from(err: crate::operation::put_query_definition::PutQueryDefinitionError) -> Self {
3145 match err {
3146 crate::operation::put_query_definition::PutQueryDefinitionError::InvalidParameterException(inner) => {
3147 Error::InvalidParameterException(inner)
3148 }
3149 crate::operation::put_query_definition::PutQueryDefinitionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3150 crate::operation::put_query_definition::PutQueryDefinitionError::ResourceNotFoundException(inner) => {
3151 Error::ResourceNotFoundException(inner)
3152 }
3153 crate::operation::put_query_definition::PutQueryDefinitionError::ServiceUnavailableException(inner) => {
3154 Error::ServiceUnavailableException(inner)
3155 }
3156 crate::operation::put_query_definition::PutQueryDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
3157 }
3158 }
3159}
3160impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
3161where
3162 R: Send + Sync + std::fmt::Debug + 'static,
3163{
3164 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
3165 match err {
3166 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3167 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3168 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3169 source: err.into(),
3170 }),
3171 }
3172 }
3173}
3174impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
3175 fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
3176 match err {
3177 crate::operation::put_resource_policy::PutResourcePolicyError::InvalidParameterException(inner) => {
3178 Error::InvalidParameterException(inner)
3179 }
3180 crate::operation::put_resource_policy::PutResourcePolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3181 crate::operation::put_resource_policy::PutResourcePolicyError::OperationAbortedException(inner) => {
3182 Error::OperationAbortedException(inner)
3183 }
3184 crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
3185 Error::ResourceNotFoundException(inner)
3186 }
3187 crate::operation::put_resource_policy::PutResourcePolicyError::ServiceUnavailableException(inner) => {
3188 Error::ServiceUnavailableException(inner)
3189 }
3190 crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
3191 }
3192 }
3193}
3194impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_retention_policy::PutRetentionPolicyError, R>> for Error
3195where
3196 R: Send + Sync + std::fmt::Debug + 'static,
3197{
3198 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_retention_policy::PutRetentionPolicyError, R>) -> Self {
3199 match err {
3200 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3201 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3202 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3203 source: err.into(),
3204 }),
3205 }
3206 }
3207}
3208impl From<crate::operation::put_retention_policy::PutRetentionPolicyError> for Error {
3209 fn from(err: crate::operation::put_retention_policy::PutRetentionPolicyError) -> Self {
3210 match err {
3211 crate::operation::put_retention_policy::PutRetentionPolicyError::InvalidParameterException(inner) => {
3212 Error::InvalidParameterException(inner)
3213 }
3214 crate::operation::put_retention_policy::PutRetentionPolicyError::OperationAbortedException(inner) => {
3215 Error::OperationAbortedException(inner)
3216 }
3217 crate::operation::put_retention_policy::PutRetentionPolicyError::ResourceNotFoundException(inner) => {
3218 Error::ResourceNotFoundException(inner)
3219 }
3220 crate::operation::put_retention_policy::PutRetentionPolicyError::ServiceUnavailableException(inner) => {
3221 Error::ServiceUnavailableException(inner)
3222 }
3223 crate::operation::put_retention_policy::PutRetentionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
3224 }
3225 }
3226}
3227impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_subscription_filter::PutSubscriptionFilterError, R>> for Error
3228where
3229 R: Send + Sync + std::fmt::Debug + 'static,
3230{
3231 fn from(
3232 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_subscription_filter::PutSubscriptionFilterError, R>,
3233 ) -> Self {
3234 match err {
3235 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3236 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3237 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3238 source: err.into(),
3239 }),
3240 }
3241 }
3242}
3243impl From<crate::operation::put_subscription_filter::PutSubscriptionFilterError> for Error {
3244 fn from(err: crate::operation::put_subscription_filter::PutSubscriptionFilterError) -> Self {
3245 match err {
3246 crate::operation::put_subscription_filter::PutSubscriptionFilterError::InvalidOperationException(inner) => {
3247 Error::InvalidOperationException(inner)
3248 }
3249 crate::operation::put_subscription_filter::PutSubscriptionFilterError::InvalidParameterException(inner) => {
3250 Error::InvalidParameterException(inner)
3251 }
3252 crate::operation::put_subscription_filter::PutSubscriptionFilterError::LimitExceededException(inner) => {
3253 Error::LimitExceededException(inner)
3254 }
3255 crate::operation::put_subscription_filter::PutSubscriptionFilterError::OperationAbortedException(inner) => {
3256 Error::OperationAbortedException(inner)
3257 }
3258 crate::operation::put_subscription_filter::PutSubscriptionFilterError::ResourceNotFoundException(inner) => {
3259 Error::ResourceNotFoundException(inner)
3260 }
3261 crate::operation::put_subscription_filter::PutSubscriptionFilterError::ServiceUnavailableException(inner) => {
3262 Error::ServiceUnavailableException(inner)
3263 }
3264 crate::operation::put_subscription_filter::PutSubscriptionFilterError::Unhandled(inner) => Error::Unhandled(inner),
3265 }
3266 }
3267}
3268impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_transformer::PutTransformerError, R>> for Error
3269where
3270 R: Send + Sync + std::fmt::Debug + 'static,
3271{
3272 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_transformer::PutTransformerError, R>) -> Self {
3273 match err {
3274 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3275 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3276 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3277 source: err.into(),
3278 }),
3279 }
3280 }
3281}
3282impl From<crate::operation::put_transformer::PutTransformerError> for Error {
3283 fn from(err: crate::operation::put_transformer::PutTransformerError) -> Self {
3284 match err {
3285 crate::operation::put_transformer::PutTransformerError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
3286 crate::operation::put_transformer::PutTransformerError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3287 crate::operation::put_transformer::PutTransformerError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3288 crate::operation::put_transformer::PutTransformerError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
3289 crate::operation::put_transformer::PutTransformerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3290 crate::operation::put_transformer::PutTransformerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3291 crate::operation::put_transformer::PutTransformerError::Unhandled(inner) => Error::Unhandled(inner),
3292 }
3293 }
3294}
3295impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_live_tail::StartLiveTailError, R>> for Error
3296where
3297 R: Send + Sync + std::fmt::Debug + 'static,
3298{
3299 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_live_tail::StartLiveTailError, R>) -> Self {
3300 match err {
3301 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3302 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3303 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3304 source: err.into(),
3305 }),
3306 }
3307 }
3308}
3309impl From<crate::operation::start_live_tail::StartLiveTailError> for Error {
3310 fn from(err: crate::operation::start_live_tail::StartLiveTailError) -> Self {
3311 match err {
3312 crate::operation::start_live_tail::StartLiveTailError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3313 crate::operation::start_live_tail::StartLiveTailError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
3314 crate::operation::start_live_tail::StartLiveTailError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3315 crate::operation::start_live_tail::StartLiveTailError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3316 crate::operation::start_live_tail::StartLiveTailError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3317 crate::operation::start_live_tail::StartLiveTailError::SessionTimeoutException(inner) => Error::SessionTimeoutException(inner),
3318 crate::operation::start_live_tail::StartLiveTailError::SessionStreamingException(inner) => Error::SessionStreamingException(inner),
3319 crate::operation::start_live_tail::StartLiveTailError::Unhandled(inner) => Error::Unhandled(inner),
3320 }
3321 }
3322}
3323impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_query::StartQueryError, R>> for Error
3324where
3325 R: Send + Sync + std::fmt::Debug + 'static,
3326{
3327 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_query::StartQueryError, R>) -> Self {
3328 match err {
3329 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3330 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3331 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3332 source: err.into(),
3333 }),
3334 }
3335 }
3336}
3337impl From<crate::operation::start_query::StartQueryError> for Error {
3338 fn from(err: crate::operation::start_query::StartQueryError) -> Self {
3339 match err {
3340 crate::operation::start_query::StartQueryError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3341 crate::operation::start_query::StartQueryError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3342 crate::operation::start_query::StartQueryError::MalformedQueryException(inner) => Error::MalformedQueryException(inner),
3343 crate::operation::start_query::StartQueryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3344 crate::operation::start_query::StartQueryError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3345 crate::operation::start_query::StartQueryError::Unhandled(inner) => Error::Unhandled(inner),
3346 }
3347 }
3348}
3349impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_query::StopQueryError, R>> for Error
3350where
3351 R: Send + Sync + std::fmt::Debug + 'static,
3352{
3353 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_query::StopQueryError, R>) -> Self {
3354 match err {
3355 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3356 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3357 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3358 source: err.into(),
3359 }),
3360 }
3361 }
3362}
3363impl From<crate::operation::stop_query::StopQueryError> for Error {
3364 fn from(err: crate::operation::stop_query::StopQueryError) -> Self {
3365 match err {
3366 crate::operation::stop_query::StopQueryError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3367 crate::operation::stop_query::StopQueryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3368 crate::operation::stop_query::StopQueryError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3369 crate::operation::stop_query::StopQueryError::Unhandled(inner) => Error::Unhandled(inner),
3370 }
3371 }
3372}
3373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_log_group::TagLogGroupError, R>> for Error
3374where
3375 R: Send + Sync + std::fmt::Debug + 'static,
3376{
3377 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_log_group::TagLogGroupError, R>) -> Self {
3378 match err {
3379 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3380 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3381 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3382 source: err.into(),
3383 }),
3384 }
3385 }
3386}
3387impl From<crate::operation::tag_log_group::TagLogGroupError> for Error {
3388 fn from(err: crate::operation::tag_log_group::TagLogGroupError) -> Self {
3389 match err {
3390 crate::operation::tag_log_group::TagLogGroupError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3391 crate::operation::tag_log_group::TagLogGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3392 crate::operation::tag_log_group::TagLogGroupError::Unhandled(inner) => Error::Unhandled(inner),
3393 }
3394 }
3395}
3396impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3397where
3398 R: Send + Sync + std::fmt::Debug + 'static,
3399{
3400 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3401 match err {
3402 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3403 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3404 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3405 source: err.into(),
3406 }),
3407 }
3408 }
3409}
3410impl From<crate::operation::tag_resource::TagResourceError> for Error {
3411 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3412 match err {
3413 crate::operation::tag_resource::TagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3414 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3415 crate::operation::tag_resource::TagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3416 crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
3417 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3418 }
3419 }
3420}
3421impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_metric_filter::TestMetricFilterError, R>> for Error
3422where
3423 R: Send + Sync + std::fmt::Debug + 'static,
3424{
3425 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_metric_filter::TestMetricFilterError, R>) -> Self {
3426 match err {
3427 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3428 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3429 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3430 source: err.into(),
3431 }),
3432 }
3433 }
3434}
3435impl From<crate::operation::test_metric_filter::TestMetricFilterError> for Error {
3436 fn from(err: crate::operation::test_metric_filter::TestMetricFilterError) -> Self {
3437 match err {
3438 crate::operation::test_metric_filter::TestMetricFilterError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3439 crate::operation::test_metric_filter::TestMetricFilterError::ServiceUnavailableException(inner) => {
3440 Error::ServiceUnavailableException(inner)
3441 }
3442 crate::operation::test_metric_filter::TestMetricFilterError::Unhandled(inner) => Error::Unhandled(inner),
3443 }
3444 }
3445}
3446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_transformer::TestTransformerError, R>> for Error
3447where
3448 R: Send + Sync + std::fmt::Debug + 'static,
3449{
3450 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_transformer::TestTransformerError, R>) -> Self {
3451 match err {
3452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3455 source: err.into(),
3456 }),
3457 }
3458 }
3459}
3460impl From<crate::operation::test_transformer::TestTransformerError> for Error {
3461 fn from(err: crate::operation::test_transformer::TestTransformerError) -> Self {
3462 match err {
3463 crate::operation::test_transformer::TestTransformerError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
3464 crate::operation::test_transformer::TestTransformerError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3465 crate::operation::test_transformer::TestTransformerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3466 crate::operation::test_transformer::TestTransformerError::Unhandled(inner) => Error::Unhandled(inner),
3467 }
3468 }
3469}
3470impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_log_group::UntagLogGroupError, R>> for Error
3471where
3472 R: Send + Sync + std::fmt::Debug + 'static,
3473{
3474 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_log_group::UntagLogGroupError, R>) -> Self {
3475 match err {
3476 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3477 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3478 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3479 source: err.into(),
3480 }),
3481 }
3482 }
3483}
3484impl From<crate::operation::untag_log_group::UntagLogGroupError> for Error {
3485 fn from(err: crate::operation::untag_log_group::UntagLogGroupError) -> Self {
3486 match err {
3487 crate::operation::untag_log_group::UntagLogGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3488 crate::operation::untag_log_group::UntagLogGroupError::Unhandled(inner) => Error::Unhandled(inner),
3489 }
3490 }
3491}
3492impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3493where
3494 R: Send + Sync + std::fmt::Debug + 'static,
3495{
3496 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3497 match err {
3498 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3499 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3500 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3501 source: err.into(),
3502 }),
3503 }
3504 }
3505}
3506impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3507 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3508 match err {
3509 crate::operation::untag_resource::UntagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3510 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3511 crate::operation::untag_resource::UntagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3512 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3513 }
3514 }
3515}
3516impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_anomaly::UpdateAnomalyError, R>> for Error
3517where
3518 R: Send + Sync + std::fmt::Debug + 'static,
3519{
3520 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_anomaly::UpdateAnomalyError, R>) -> Self {
3521 match err {
3522 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3523 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3524 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3525 source: err.into(),
3526 }),
3527 }
3528 }
3529}
3530impl From<crate::operation::update_anomaly::UpdateAnomalyError> for Error {
3531 fn from(err: crate::operation::update_anomaly::UpdateAnomalyError) -> Self {
3532 match err {
3533 crate::operation::update_anomaly::UpdateAnomalyError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3534 crate::operation::update_anomaly::UpdateAnomalyError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
3535 crate::operation::update_anomaly::UpdateAnomalyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3536 crate::operation::update_anomaly::UpdateAnomalyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3537 crate::operation::update_anomaly::UpdateAnomalyError::Unhandled(inner) => Error::Unhandled(inner),
3538 }
3539 }
3540}
3541impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError, R>>
3542 for Error
3543where
3544 R: Send + Sync + std::fmt::Debug + 'static,
3545{
3546 fn from(
3547 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError, R>,
3548 ) -> Self {
3549 match err {
3550 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3551 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3552 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3553 source: err.into(),
3554 }),
3555 }
3556 }
3557}
3558impl From<crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError> for Error {
3559 fn from(err: crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError) -> Self {
3560 match err {
3561 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::AccessDeniedException(inner) => {
3562 Error::AccessDeniedException(inner)
3563 }
3564 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ConflictException(inner) => {
3565 Error::ConflictException(inner)
3566 }
3567 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ResourceNotFoundException(inner) => {
3568 Error::ResourceNotFoundException(inner)
3569 }
3570 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ServiceUnavailableException(inner) => {
3571 Error::ServiceUnavailableException(inner)
3572 }
3573 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ThrottlingException(inner) => {
3574 Error::ThrottlingException(inner)
3575 }
3576 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ValidationException(inner) => {
3577 Error::ValidationException(inner)
3578 }
3579 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3580 }
3581 }
3582}
3583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError, R>>
3584 for Error
3585where
3586 R: Send + Sync + std::fmt::Debug + 'static,
3587{
3588 fn from(
3589 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError, R>,
3590 ) -> Self {
3591 match err {
3592 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3593 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3594 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3595 source: err.into(),
3596 }),
3597 }
3598 }
3599}
3600impl From<crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError> for Error {
3601 fn from(err: crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError) -> Self {
3602 match err {
3603 crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::InvalidParameterException(inner) => {
3604 Error::InvalidParameterException(inner)
3605 }
3606 crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::OperationAbortedException(inner) => {
3607 Error::OperationAbortedException(inner)
3608 }
3609 crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::ResourceNotFoundException(inner) => {
3610 Error::ResourceNotFoundException(inner)
3611 }
3612 crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::ServiceUnavailableException(inner) => {
3613 Error::ServiceUnavailableException(inner)
3614 }
3615 crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
3616 }
3617 }
3618}
3619impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_lookup_table::UpdateLookupTableError, R>> for Error
3620where
3621 R: Send + Sync + std::fmt::Debug + 'static,
3622{
3623 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_lookup_table::UpdateLookupTableError, R>) -> Self {
3624 match err {
3625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3628 source: err.into(),
3629 }),
3630 }
3631 }
3632}
3633impl From<crate::operation::update_lookup_table::UpdateLookupTableError> for Error {
3634 fn from(err: crate::operation::update_lookup_table::UpdateLookupTableError) -> Self {
3635 match err {
3636 crate::operation::update_lookup_table::UpdateLookupTableError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3637 crate::operation::update_lookup_table::UpdateLookupTableError::InvalidParameterException(inner) => {
3638 Error::InvalidParameterException(inner)
3639 }
3640 crate::operation::update_lookup_table::UpdateLookupTableError::ResourceNotFoundException(inner) => {
3641 Error::ResourceNotFoundException(inner)
3642 }
3643 crate::operation::update_lookup_table::UpdateLookupTableError::ServiceUnavailableException(inner) => {
3644 Error::ServiceUnavailableException(inner)
3645 }
3646 crate::operation::update_lookup_table::UpdateLookupTableError::ValidationException(inner) => Error::ValidationException(inner),
3647 crate::operation::update_lookup_table::UpdateLookupTableError::Unhandled(inner) => Error::Unhandled(inner),
3648 }
3649 }
3650}
3651impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scheduled_query::UpdateScheduledQueryError, R>> for Error
3652where
3653 R: Send + Sync + std::fmt::Debug + 'static,
3654{
3655 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scheduled_query::UpdateScheduledQueryError, R>) -> Self {
3656 match err {
3657 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3658 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3659 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3660 source: err.into(),
3661 }),
3662 }
3663 }
3664}
3665impl From<crate::operation::update_scheduled_query::UpdateScheduledQueryError> for Error {
3666 fn from(err: crate::operation::update_scheduled_query::UpdateScheduledQueryError) -> Self {
3667 match err {
3668 crate::operation::update_scheduled_query::UpdateScheduledQueryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3669 crate::operation::update_scheduled_query::UpdateScheduledQueryError::InternalServerException(inner) => {
3670 Error::InternalServerException(inner)
3671 }
3672 crate::operation::update_scheduled_query::UpdateScheduledQueryError::ResourceNotFoundException(inner) => {
3673 Error::ResourceNotFoundException(inner)
3674 }
3675 crate::operation::update_scheduled_query::UpdateScheduledQueryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3676 crate::operation::update_scheduled_query::UpdateScheduledQueryError::ValidationException(inner) => Error::ValidationException(inner),
3677 crate::operation::update_scheduled_query::UpdateScheduledQueryError::Unhandled(inner) => Error::Unhandled(inner),
3678 }
3679 }
3680}
3681impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::GetLogObjectResponseStreamError, R>> for Error
3682where
3683 R: Send + Sync + std::fmt::Debug + 'static,
3684{
3685 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::GetLogObjectResponseStreamError, R>) -> Self {
3686 match err {
3687 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3688 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3689 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3690 source: err.into(),
3691 }),
3692 }
3693 }
3694}
3695impl From<crate::types::error::GetLogObjectResponseStreamError> for Error {
3696 fn from(err: crate::types::error::GetLogObjectResponseStreamError) -> Self {
3697 match err {
3698 crate::types::error::GetLogObjectResponseStreamError::InternalStreamingException(inner) => Error::InternalStreamingException(inner),
3699 crate::types::error::GetLogObjectResponseStreamError::Unhandled(inner) => Error::Unhandled(inner),
3700 }
3701 }
3702}
3703impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::StartLiveTailResponseStreamError, R>> for Error
3704where
3705 R: Send + Sync + std::fmt::Debug + 'static,
3706{
3707 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::StartLiveTailResponseStreamError, R>) -> Self {
3708 match err {
3709 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3710 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3711 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3712 source: err.into(),
3713 }),
3714 }
3715 }
3716}
3717impl From<crate::types::error::StartLiveTailResponseStreamError> for Error {
3718 fn from(err: crate::types::error::StartLiveTailResponseStreamError) -> Self {
3719 match err {
3720 crate::types::error::StartLiveTailResponseStreamError::SessionTimeoutException(inner) => Error::SessionTimeoutException(inner),
3721 crate::types::error::StartLiveTailResponseStreamError::SessionStreamingException(inner) => Error::SessionStreamingException(inner),
3722 crate::types::error::StartLiveTailResponseStreamError::Unhandled(inner) => Error::Unhandled(inner),
3723 }
3724 }
3725}
3726impl ::std::error::Error for Error {
3727 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3728 match self {
3729 Error::AccessDeniedException(inner) => inner.source(),
3730 Error::ConflictException(inner) => inner.source(),
3731 Error::DataAlreadyAcceptedException(inner) => inner.source(),
3732 Error::InternalServerException(inner) => inner.source(),
3733 Error::InternalStreamingException(inner) => inner.source(),
3734 Error::InvalidOperationException(inner) => inner.source(),
3735 Error::InvalidParameterException(inner) => inner.source(),
3736 Error::InvalidSequenceTokenException(inner) => inner.source(),
3737 Error::LimitExceededException(inner) => inner.source(),
3738 Error::MalformedQueryException(inner) => inner.source(),
3739 Error::OperationAbortedException(inner) => inner.source(),
3740 Error::ResourceAlreadyExistsException(inner) => inner.source(),
3741 Error::ResourceNotFoundException(inner) => inner.source(),
3742 Error::ServiceQuotaExceededException(inner) => inner.source(),
3743 Error::ServiceUnavailableException(inner) => inner.source(),
3744 Error::SessionStreamingException(inner) => inner.source(),
3745 Error::SessionTimeoutException(inner) => inner.source(),
3746 Error::ThrottlingException(inner) => inner.source(),
3747 Error::TooManyTagsException(inner) => inner.source(),
3748 Error::UnrecognizedClientException(inner) => inner.source(),
3749 Error::ValidationException(inner) => inner.source(),
3750 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3751 }
3752 }
3753}
3754impl ::aws_types::request_id::RequestId for Error {
3755 fn request_id(&self) -> Option<&str> {
3756 match self {
3757 Self::AccessDeniedException(e) => e.request_id(),
3758 Self::ConflictException(e) => e.request_id(),
3759 Self::DataAlreadyAcceptedException(e) => e.request_id(),
3760 Self::InternalServerException(e) => e.request_id(),
3761 Self::InternalStreamingException(e) => e.request_id(),
3762 Self::InvalidOperationException(e) => e.request_id(),
3763 Self::InvalidParameterException(e) => e.request_id(),
3764 Self::InvalidSequenceTokenException(e) => e.request_id(),
3765 Self::LimitExceededException(e) => e.request_id(),
3766 Self::MalformedQueryException(e) => e.request_id(),
3767 Self::OperationAbortedException(e) => e.request_id(),
3768 Self::ResourceAlreadyExistsException(e) => e.request_id(),
3769 Self::ResourceNotFoundException(e) => e.request_id(),
3770 Self::ServiceQuotaExceededException(e) => e.request_id(),
3771 Self::ServiceUnavailableException(e) => e.request_id(),
3772 Self::SessionStreamingException(e) => e.request_id(),
3773 Self::SessionTimeoutException(e) => e.request_id(),
3774 Self::ThrottlingException(e) => e.request_id(),
3775 Self::TooManyTagsException(e) => e.request_id(),
3776 Self::UnrecognizedClientException(e) => e.request_id(),
3777 Self::ValidationException(e) => e.request_id(),
3778 Self::Unhandled(e) => e.meta.request_id(),
3779 }
3780 }
3781}