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::create_delivery::CreateDeliveryError, 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::create_delivery::CreateDeliveryError, 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::create_delivery::CreateDeliveryError> for Error {
250 fn from(err: crate::operation::create_delivery::CreateDeliveryError) -> Self {
251 match err {
252 crate::operation::create_delivery::CreateDeliveryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
253 crate::operation::create_delivery::CreateDeliveryError::ConflictException(inner) => Error::ConflictException(inner),
254 crate::operation::create_delivery::CreateDeliveryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
255 crate::operation::create_delivery::CreateDeliveryError::ServiceQuotaExceededException(inner) => {
256 Error::ServiceQuotaExceededException(inner)
257 }
258 crate::operation::create_delivery::CreateDeliveryError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
259 crate::operation::create_delivery::CreateDeliveryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
260 crate::operation::create_delivery::CreateDeliveryError::ValidationException(inner) => Error::ValidationException(inner),
261 crate::operation::create_delivery::CreateDeliveryError::Unhandled(inner) => Error::Unhandled(inner),
262 }
263 }
264}
265impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_export_task::CreateExportTaskError, R>> for Error
266where
267 R: Send + Sync + std::fmt::Debug + 'static,
268{
269 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_export_task::CreateExportTaskError, R>) -> Self {
270 match err {
271 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
272 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
273 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
274 source: err.into(),
275 }),
276 }
277 }
278}
279impl From<crate::operation::create_export_task::CreateExportTaskError> for Error {
280 fn from(err: crate::operation::create_export_task::CreateExportTaskError) -> Self {
281 match err {
282 crate::operation::create_export_task::CreateExportTaskError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
283 crate::operation::create_export_task::CreateExportTaskError::LimitExceededException(inner) => Error::LimitExceededException(inner),
284 crate::operation::create_export_task::CreateExportTaskError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
285 crate::operation::create_export_task::CreateExportTaskError::ResourceAlreadyExistsException(inner) => {
286 Error::ResourceAlreadyExistsException(inner)
287 }
288 crate::operation::create_export_task::CreateExportTaskError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
289 crate::operation::create_export_task::CreateExportTaskError::ServiceUnavailableException(inner) => {
290 Error::ServiceUnavailableException(inner)
291 }
292 crate::operation::create_export_task::CreateExportTaskError::Unhandled(inner) => Error::Unhandled(inner),
293 }
294 }
295}
296impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError, R>>
297 for Error
298where
299 R: Send + Sync + std::fmt::Debug + 'static,
300{
301 fn from(
302 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError, R>,
303 ) -> Self {
304 match err {
305 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
306 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
307 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
308 source: err.into(),
309 }),
310 }
311 }
312}
313impl From<crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError> for Error {
314 fn from(err: crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError) -> Self {
315 match err {
316 crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError::InvalidParameterException(inner) => {
317 Error::InvalidParameterException(inner)
318 }
319 crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError::LimitExceededException(inner) => {
320 Error::LimitExceededException(inner)
321 }
322 crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError::OperationAbortedException(inner) => {
323 Error::OperationAbortedException(inner)
324 }
325 crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError::ResourceNotFoundException(inner) => {
326 Error::ResourceNotFoundException(inner)
327 }
328 crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError::ServiceUnavailableException(inner) => {
329 Error::ServiceUnavailableException(inner)
330 }
331 crate::operation::create_log_anomaly_detector::CreateLogAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
332 }
333 }
334}
335impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_log_group::CreateLogGroupError, R>> for Error
336where
337 R: Send + Sync + std::fmt::Debug + 'static,
338{
339 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_log_group::CreateLogGroupError, R>) -> Self {
340 match err {
341 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
342 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
343 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
344 source: err.into(),
345 }),
346 }
347 }
348}
349impl From<crate::operation::create_log_group::CreateLogGroupError> for Error {
350 fn from(err: crate::operation::create_log_group::CreateLogGroupError) -> Self {
351 match err {
352 crate::operation::create_log_group::CreateLogGroupError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
353 crate::operation::create_log_group::CreateLogGroupError::LimitExceededException(inner) => Error::LimitExceededException(inner),
354 crate::operation::create_log_group::CreateLogGroupError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
355 crate::operation::create_log_group::CreateLogGroupError::ResourceAlreadyExistsException(inner) => {
356 Error::ResourceAlreadyExistsException(inner)
357 }
358 crate::operation::create_log_group::CreateLogGroupError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
359 crate::operation::create_log_group::CreateLogGroupError::Unhandled(inner) => Error::Unhandled(inner),
360 }
361 }
362}
363impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_log_stream::CreateLogStreamError, R>> for Error
364where
365 R: Send + Sync + std::fmt::Debug + 'static,
366{
367 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_log_stream::CreateLogStreamError, R>) -> Self {
368 match err {
369 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
370 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
371 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
372 source: err.into(),
373 }),
374 }
375 }
376}
377impl From<crate::operation::create_log_stream::CreateLogStreamError> for Error {
378 fn from(err: crate::operation::create_log_stream::CreateLogStreamError) -> Self {
379 match err {
380 crate::operation::create_log_stream::CreateLogStreamError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
381 crate::operation::create_log_stream::CreateLogStreamError::ResourceAlreadyExistsException(inner) => {
382 Error::ResourceAlreadyExistsException(inner)
383 }
384 crate::operation::create_log_stream::CreateLogStreamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
385 crate::operation::create_log_stream::CreateLogStreamError::ServiceUnavailableException(inner) => {
386 Error::ServiceUnavailableException(inner)
387 }
388 crate::operation::create_log_stream::CreateLogStreamError::Unhandled(inner) => Error::Unhandled(inner),
389 }
390 }
391}
392impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scheduled_query::CreateScheduledQueryError, R>> for Error
393where
394 R: Send + Sync + std::fmt::Debug + 'static,
395{
396 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scheduled_query::CreateScheduledQueryError, R>) -> Self {
397 match err {
398 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
399 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
400 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
401 source: err.into(),
402 }),
403 }
404 }
405}
406impl From<crate::operation::create_scheduled_query::CreateScheduledQueryError> for Error {
407 fn from(err: crate::operation::create_scheduled_query::CreateScheduledQueryError) -> Self {
408 match err {
409 crate::operation::create_scheduled_query::CreateScheduledQueryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
410 crate::operation::create_scheduled_query::CreateScheduledQueryError::ConflictException(inner) => Error::ConflictException(inner),
411 crate::operation::create_scheduled_query::CreateScheduledQueryError::InternalServerException(inner) => {
412 Error::InternalServerException(inner)
413 }
414 crate::operation::create_scheduled_query::CreateScheduledQueryError::ResourceNotFoundException(inner) => {
415 Error::ResourceNotFoundException(inner)
416 }
417 crate::operation::create_scheduled_query::CreateScheduledQueryError::ServiceQuotaExceededException(inner) => {
418 Error::ServiceQuotaExceededException(inner)
419 }
420 crate::operation::create_scheduled_query::CreateScheduledQueryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
421 crate::operation::create_scheduled_query::CreateScheduledQueryError::ValidationException(inner) => Error::ValidationException(inner),
422 crate::operation::create_scheduled_query::CreateScheduledQueryError::Unhandled(inner) => Error::Unhandled(inner),
423 }
424 }
425}
426impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_account_policy::DeleteAccountPolicyError, R>> for Error
427where
428 R: Send + Sync + std::fmt::Debug + 'static,
429{
430 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_account_policy::DeleteAccountPolicyError, R>) -> Self {
431 match err {
432 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
433 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
434 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
435 source: err.into(),
436 }),
437 }
438 }
439}
440impl From<crate::operation::delete_account_policy::DeleteAccountPolicyError> for Error {
441 fn from(err: crate::operation::delete_account_policy::DeleteAccountPolicyError) -> Self {
442 match err {
443 crate::operation::delete_account_policy::DeleteAccountPolicyError::InvalidParameterException(inner) => {
444 Error::InvalidParameterException(inner)
445 }
446 crate::operation::delete_account_policy::DeleteAccountPolicyError::OperationAbortedException(inner) => {
447 Error::OperationAbortedException(inner)
448 }
449 crate::operation::delete_account_policy::DeleteAccountPolicyError::ResourceNotFoundException(inner) => {
450 Error::ResourceNotFoundException(inner)
451 }
452 crate::operation::delete_account_policy::DeleteAccountPolicyError::ServiceUnavailableException(inner) => {
453 Error::ServiceUnavailableException(inner)
454 }
455 crate::operation::delete_account_policy::DeleteAccountPolicyError::Unhandled(inner) => Error::Unhandled(inner),
456 }
457 }
458}
459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError, R>>
460 for Error
461where
462 R: Send + Sync + std::fmt::Debug + 'static,
463{
464 fn from(
465 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError, R>,
466 ) -> Self {
467 match err {
468 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
469 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
470 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
471 source: err.into(),
472 }),
473 }
474 }
475}
476impl From<crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError> for Error {
477 fn from(err: crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError) -> Self {
478 match err {
479 crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError::InvalidParameterException(inner) => {
480 Error::InvalidParameterException(inner)
481 }
482 crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError::OperationAbortedException(inner) => {
483 Error::OperationAbortedException(inner)
484 }
485 crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError::ResourceNotFoundException(inner) => {
486 Error::ResourceNotFoundException(inner)
487 }
488 crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError::ServiceUnavailableException(inner) => {
489 Error::ServiceUnavailableException(inner)
490 }
491 crate::operation::delete_data_protection_policy::DeleteDataProtectionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
492 }
493 }
494}
495impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery::DeleteDeliveryError, R>> for Error
496where
497 R: Send + Sync + std::fmt::Debug + 'static,
498{
499 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery::DeleteDeliveryError, R>) -> Self {
500 match err {
501 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
502 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
503 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
504 source: err.into(),
505 }),
506 }
507 }
508}
509impl From<crate::operation::delete_delivery::DeleteDeliveryError> for Error {
510 fn from(err: crate::operation::delete_delivery::DeleteDeliveryError) -> Self {
511 match err {
512 crate::operation::delete_delivery::DeleteDeliveryError::ConflictException(inner) => Error::ConflictException(inner),
513 crate::operation::delete_delivery::DeleteDeliveryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
514 crate::operation::delete_delivery::DeleteDeliveryError::ServiceQuotaExceededException(inner) => {
515 Error::ServiceQuotaExceededException(inner)
516 }
517 crate::operation::delete_delivery::DeleteDeliveryError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
518 crate::operation::delete_delivery::DeleteDeliveryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
519 crate::operation::delete_delivery::DeleteDeliveryError::ValidationException(inner) => Error::ValidationException(inner),
520 crate::operation::delete_delivery::DeleteDeliveryError::Unhandled(inner) => Error::Unhandled(inner),
521 }
522 }
523}
524impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError, R>>
525 for Error
526where
527 R: Send + Sync + std::fmt::Debug + 'static,
528{
529 fn from(
530 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError, R>,
531 ) -> Self {
532 match err {
533 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
534 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
535 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
536 source: err.into(),
537 }),
538 }
539 }
540}
541impl From<crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError> for Error {
542 fn from(err: crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError) -> Self {
543 match err {
544 crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::ConflictException(inner) => {
545 Error::ConflictException(inner)
546 }
547 crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::ResourceNotFoundException(inner) => {
548 Error::ResourceNotFoundException(inner)
549 }
550 crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::ServiceQuotaExceededException(inner) => {
551 Error::ServiceQuotaExceededException(inner)
552 }
553 crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::ServiceUnavailableException(inner) => {
554 Error::ServiceUnavailableException(inner)
555 }
556 crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::ThrottlingException(inner) => {
557 Error::ThrottlingException(inner)
558 }
559 crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::ValidationException(inner) => {
560 Error::ValidationException(inner)
561 }
562 crate::operation::delete_delivery_destination::DeleteDeliveryDestinationError::Unhandled(inner) => Error::Unhandled(inner),
563 }
564 }
565}
566impl<R>
567 From<
568 ::aws_smithy_runtime_api::client::result::SdkError<
569 crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError,
570 R,
571 >,
572 > for Error
573where
574 R: Send + Sync + std::fmt::Debug + 'static,
575{
576 fn from(
577 err: ::aws_smithy_runtime_api::client::result::SdkError<
578 crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError,
579 R,
580 >,
581 ) -> Self {
582 match err {
583 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
584 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
585 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
586 source: err.into(),
587 }),
588 }
589 }
590}
591impl From<crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError> for Error {
592 fn from(err: crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError) -> Self {
593 match err {
594 crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError::ConflictException(inner) => {
595 Error::ConflictException(inner)
596 }
597 crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError::ResourceNotFoundException(inner) => {
598 Error::ResourceNotFoundException(inner)
599 }
600 crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError::ServiceUnavailableException(inner) => {
601 Error::ServiceUnavailableException(inner)
602 }
603 crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError::ValidationException(inner) => {
604 Error::ValidationException(inner)
605 }
606 crate::operation::delete_delivery_destination_policy::DeleteDeliveryDestinationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
607 }
608 }
609}
610impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery_source::DeleteDeliverySourceError, R>> for Error
611where
612 R: Send + Sync + std::fmt::Debug + 'static,
613{
614 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery_source::DeleteDeliverySourceError, R>) -> Self {
615 match err {
616 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
617 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
618 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
619 source: err.into(),
620 }),
621 }
622 }
623}
624impl From<crate::operation::delete_delivery_source::DeleteDeliverySourceError> for Error {
625 fn from(err: crate::operation::delete_delivery_source::DeleteDeliverySourceError) -> Self {
626 match err {
627 crate::operation::delete_delivery_source::DeleteDeliverySourceError::ConflictException(inner) => Error::ConflictException(inner),
628 crate::operation::delete_delivery_source::DeleteDeliverySourceError::ResourceNotFoundException(inner) => {
629 Error::ResourceNotFoundException(inner)
630 }
631 crate::operation::delete_delivery_source::DeleteDeliverySourceError::ServiceQuotaExceededException(inner) => {
632 Error::ServiceQuotaExceededException(inner)
633 }
634 crate::operation::delete_delivery_source::DeleteDeliverySourceError::ServiceUnavailableException(inner) => {
635 Error::ServiceUnavailableException(inner)
636 }
637 crate::operation::delete_delivery_source::DeleteDeliverySourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
638 crate::operation::delete_delivery_source::DeleteDeliverySourceError::ValidationException(inner) => Error::ValidationException(inner),
639 crate::operation::delete_delivery_source::DeleteDeliverySourceError::Unhandled(inner) => Error::Unhandled(inner),
640 }
641 }
642}
643impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_destination::DeleteDestinationError, R>> for Error
644where
645 R: Send + Sync + std::fmt::Debug + 'static,
646{
647 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_destination::DeleteDestinationError, R>) -> Self {
648 match err {
649 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
650 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
651 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
652 source: err.into(),
653 }),
654 }
655 }
656}
657impl From<crate::operation::delete_destination::DeleteDestinationError> for Error {
658 fn from(err: crate::operation::delete_destination::DeleteDestinationError) -> Self {
659 match err {
660 crate::operation::delete_destination::DeleteDestinationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
661 crate::operation::delete_destination::DeleteDestinationError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
662 crate::operation::delete_destination::DeleteDestinationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
663 crate::operation::delete_destination::DeleteDestinationError::ServiceUnavailableException(inner) => {
664 Error::ServiceUnavailableException(inner)
665 }
666 crate::operation::delete_destination::DeleteDestinationError::Unhandled(inner) => Error::Unhandled(inner),
667 }
668 }
669}
670impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_index_policy::DeleteIndexPolicyError, R>> for Error
671where
672 R: Send + Sync + std::fmt::Debug + 'static,
673{
674 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_index_policy::DeleteIndexPolicyError, R>) -> Self {
675 match err {
676 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
677 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
678 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
679 source: err.into(),
680 }),
681 }
682 }
683}
684impl From<crate::operation::delete_index_policy::DeleteIndexPolicyError> for Error {
685 fn from(err: crate::operation::delete_index_policy::DeleteIndexPolicyError) -> Self {
686 match err {
687 crate::operation::delete_index_policy::DeleteIndexPolicyError::InvalidParameterException(inner) => {
688 Error::InvalidParameterException(inner)
689 }
690 crate::operation::delete_index_policy::DeleteIndexPolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
691 crate::operation::delete_index_policy::DeleteIndexPolicyError::OperationAbortedException(inner) => {
692 Error::OperationAbortedException(inner)
693 }
694 crate::operation::delete_index_policy::DeleteIndexPolicyError::ResourceNotFoundException(inner) => {
695 Error::ResourceNotFoundException(inner)
696 }
697 crate::operation::delete_index_policy::DeleteIndexPolicyError::ServiceUnavailableException(inner) => {
698 Error::ServiceUnavailableException(inner)
699 }
700 crate::operation::delete_index_policy::DeleteIndexPolicyError::Unhandled(inner) => Error::Unhandled(inner),
701 }
702 }
703}
704impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>> for Error
705where
706 R: Send + Sync + std::fmt::Debug + 'static,
707{
708 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>) -> Self {
709 match err {
710 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
711 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
712 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
713 source: err.into(),
714 }),
715 }
716 }
717}
718impl From<crate::operation::delete_integration::DeleteIntegrationError> for Error {
719 fn from(err: crate::operation::delete_integration::DeleteIntegrationError) -> Self {
720 match err {
721 crate::operation::delete_integration::DeleteIntegrationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
722 crate::operation::delete_integration::DeleteIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
723 crate::operation::delete_integration::DeleteIntegrationError::ServiceUnavailableException(inner) => {
724 Error::ServiceUnavailableException(inner)
725 }
726 crate::operation::delete_integration::DeleteIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
727 crate::operation::delete_integration::DeleteIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
728 }
729 }
730}
731impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError, R>>
732 for Error
733where
734 R: Send + Sync + std::fmt::Debug + 'static,
735{
736 fn from(
737 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError, R>,
738 ) -> Self {
739 match err {
740 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
741 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
742 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
743 source: err.into(),
744 }),
745 }
746 }
747}
748impl From<crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError> for Error {
749 fn from(err: crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError) -> Self {
750 match err {
751 crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError::InvalidParameterException(inner) => {
752 Error::InvalidParameterException(inner)
753 }
754 crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError::OperationAbortedException(inner) => {
755 Error::OperationAbortedException(inner)
756 }
757 crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError::ResourceNotFoundException(inner) => {
758 Error::ResourceNotFoundException(inner)
759 }
760 crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError::ServiceUnavailableException(inner) => {
761 Error::ServiceUnavailableException(inner)
762 }
763 crate::operation::delete_log_anomaly_detector::DeleteLogAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
764 }
765 }
766}
767impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_log_group::DeleteLogGroupError, R>> for Error
768where
769 R: Send + Sync + std::fmt::Debug + 'static,
770{
771 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_log_group::DeleteLogGroupError, R>) -> Self {
772 match err {
773 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
774 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
775 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
776 source: err.into(),
777 }),
778 }
779 }
780}
781impl From<crate::operation::delete_log_group::DeleteLogGroupError> for Error {
782 fn from(err: crate::operation::delete_log_group::DeleteLogGroupError) -> Self {
783 match err {
784 crate::operation::delete_log_group::DeleteLogGroupError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
785 crate::operation::delete_log_group::DeleteLogGroupError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
786 crate::operation::delete_log_group::DeleteLogGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
787 crate::operation::delete_log_group::DeleteLogGroupError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
788 crate::operation::delete_log_group::DeleteLogGroupError::ValidationException(inner) => Error::ValidationException(inner),
789 crate::operation::delete_log_group::DeleteLogGroupError::Unhandled(inner) => Error::Unhandled(inner),
790 }
791 }
792}
793impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_log_stream::DeleteLogStreamError, R>> for Error
794where
795 R: Send + Sync + std::fmt::Debug + 'static,
796{
797 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_log_stream::DeleteLogStreamError, R>) -> Self {
798 match err {
799 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
800 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
801 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
802 source: err.into(),
803 }),
804 }
805 }
806}
807impl From<crate::operation::delete_log_stream::DeleteLogStreamError> for Error {
808 fn from(err: crate::operation::delete_log_stream::DeleteLogStreamError) -> Self {
809 match err {
810 crate::operation::delete_log_stream::DeleteLogStreamError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
811 crate::operation::delete_log_stream::DeleteLogStreamError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
812 crate::operation::delete_log_stream::DeleteLogStreamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
813 crate::operation::delete_log_stream::DeleteLogStreamError::ServiceUnavailableException(inner) => {
814 Error::ServiceUnavailableException(inner)
815 }
816 crate::operation::delete_log_stream::DeleteLogStreamError::ValidationException(inner) => Error::ValidationException(inner),
817 crate::operation::delete_log_stream::DeleteLogStreamError::Unhandled(inner) => Error::Unhandled(inner),
818 }
819 }
820}
821impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_metric_filter::DeleteMetricFilterError, R>> for Error
822where
823 R: Send + Sync + std::fmt::Debug + 'static,
824{
825 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_metric_filter::DeleteMetricFilterError, R>) -> 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_metric_filter::DeleteMetricFilterError> for Error {
836 fn from(err: crate::operation::delete_metric_filter::DeleteMetricFilterError) -> Self {
837 match err {
838 crate::operation::delete_metric_filter::DeleteMetricFilterError::InvalidParameterException(inner) => {
839 Error::InvalidParameterException(inner)
840 }
841 crate::operation::delete_metric_filter::DeleteMetricFilterError::OperationAbortedException(inner) => {
842 Error::OperationAbortedException(inner)
843 }
844 crate::operation::delete_metric_filter::DeleteMetricFilterError::ResourceNotFoundException(inner) => {
845 Error::ResourceNotFoundException(inner)
846 }
847 crate::operation::delete_metric_filter::DeleteMetricFilterError::ServiceUnavailableException(inner) => {
848 Error::ServiceUnavailableException(inner)
849 }
850 crate::operation::delete_metric_filter::DeleteMetricFilterError::Unhandled(inner) => Error::Unhandled(inner),
851 }
852 }
853}
854impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_query_definition::DeleteQueryDefinitionError, R>> for Error
855where
856 R: Send + Sync + std::fmt::Debug + 'static,
857{
858 fn from(
859 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_query_definition::DeleteQueryDefinitionError, R>,
860 ) -> Self {
861 match err {
862 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
863 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
864 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
865 source: err.into(),
866 }),
867 }
868 }
869}
870impl From<crate::operation::delete_query_definition::DeleteQueryDefinitionError> for Error {
871 fn from(err: crate::operation::delete_query_definition::DeleteQueryDefinitionError) -> Self {
872 match err {
873 crate::operation::delete_query_definition::DeleteQueryDefinitionError::InvalidParameterException(inner) => {
874 Error::InvalidParameterException(inner)
875 }
876 crate::operation::delete_query_definition::DeleteQueryDefinitionError::ResourceNotFoundException(inner) => {
877 Error::ResourceNotFoundException(inner)
878 }
879 crate::operation::delete_query_definition::DeleteQueryDefinitionError::ServiceUnavailableException(inner) => {
880 Error::ServiceUnavailableException(inner)
881 }
882 crate::operation::delete_query_definition::DeleteQueryDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
883 }
884 }
885}
886impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
887where
888 R: Send + Sync + std::fmt::Debug + 'static,
889{
890 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
891 match err {
892 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
893 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
894 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
895 source: err.into(),
896 }),
897 }
898 }
899}
900impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
901 fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
902 match err {
903 crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidParameterException(inner) => {
904 Error::InvalidParameterException(inner)
905 }
906 crate::operation::delete_resource_policy::DeleteResourcePolicyError::OperationAbortedException(inner) => {
907 Error::OperationAbortedException(inner)
908 }
909 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
910 Error::ResourceNotFoundException(inner)
911 }
912 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ServiceUnavailableException(inner) => {
913 Error::ServiceUnavailableException(inner)
914 }
915 crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
916 }
917 }
918}
919impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_retention_policy::DeleteRetentionPolicyError, R>> for Error
920where
921 R: Send + Sync + std::fmt::Debug + 'static,
922{
923 fn from(
924 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_retention_policy::DeleteRetentionPolicyError, R>,
925 ) -> Self {
926 match err {
927 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
928 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
929 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
930 source: err.into(),
931 }),
932 }
933 }
934}
935impl From<crate::operation::delete_retention_policy::DeleteRetentionPolicyError> for Error {
936 fn from(err: crate::operation::delete_retention_policy::DeleteRetentionPolicyError) -> Self {
937 match err {
938 crate::operation::delete_retention_policy::DeleteRetentionPolicyError::InvalidParameterException(inner) => {
939 Error::InvalidParameterException(inner)
940 }
941 crate::operation::delete_retention_policy::DeleteRetentionPolicyError::OperationAbortedException(inner) => {
942 Error::OperationAbortedException(inner)
943 }
944 crate::operation::delete_retention_policy::DeleteRetentionPolicyError::ResourceNotFoundException(inner) => {
945 Error::ResourceNotFoundException(inner)
946 }
947 crate::operation::delete_retention_policy::DeleteRetentionPolicyError::ServiceUnavailableException(inner) => {
948 Error::ServiceUnavailableException(inner)
949 }
950 crate::operation::delete_retention_policy::DeleteRetentionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
951 }
952 }
953}
954impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scheduled_query::DeleteScheduledQueryError, R>> for Error
955where
956 R: Send + Sync + std::fmt::Debug + 'static,
957{
958 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scheduled_query::DeleteScheduledQueryError, R>) -> Self {
959 match err {
960 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
961 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
962 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
963 source: err.into(),
964 }),
965 }
966 }
967}
968impl From<crate::operation::delete_scheduled_query::DeleteScheduledQueryError> for Error {
969 fn from(err: crate::operation::delete_scheduled_query::DeleteScheduledQueryError) -> Self {
970 match err {
971 crate::operation::delete_scheduled_query::DeleteScheduledQueryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
972 crate::operation::delete_scheduled_query::DeleteScheduledQueryError::InternalServerException(inner) => {
973 Error::InternalServerException(inner)
974 }
975 crate::operation::delete_scheduled_query::DeleteScheduledQueryError::ResourceNotFoundException(inner) => {
976 Error::ResourceNotFoundException(inner)
977 }
978 crate::operation::delete_scheduled_query::DeleteScheduledQueryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
979 crate::operation::delete_scheduled_query::DeleteScheduledQueryError::ValidationException(inner) => Error::ValidationException(inner),
980 crate::operation::delete_scheduled_query::DeleteScheduledQueryError::Unhandled(inner) => Error::Unhandled(inner),
981 }
982 }
983}
984impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError, R>>
985 for Error
986where
987 R: Send + Sync + std::fmt::Debug + 'static,
988{
989 fn from(
990 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError, R>,
991 ) -> Self {
992 match err {
993 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
994 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
995 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
996 source: err.into(),
997 }),
998 }
999 }
1000}
1001impl From<crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError> for Error {
1002 fn from(err: crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError) -> Self {
1003 match err {
1004 crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError::InvalidParameterException(inner) => {
1005 Error::InvalidParameterException(inner)
1006 }
1007 crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError::OperationAbortedException(inner) => {
1008 Error::OperationAbortedException(inner)
1009 }
1010 crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError::ResourceNotFoundException(inner) => {
1011 Error::ResourceNotFoundException(inner)
1012 }
1013 crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError::ServiceUnavailableException(inner) => {
1014 Error::ServiceUnavailableException(inner)
1015 }
1016 crate::operation::delete_subscription_filter::DeleteSubscriptionFilterError::Unhandled(inner) => Error::Unhandled(inner),
1017 }
1018 }
1019}
1020impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transformer::DeleteTransformerError, R>> for Error
1021where
1022 R: Send + Sync + std::fmt::Debug + 'static,
1023{
1024 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_transformer::DeleteTransformerError, R>) -> Self {
1025 match err {
1026 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1027 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1028 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1029 source: err.into(),
1030 }),
1031 }
1032 }
1033}
1034impl From<crate::operation::delete_transformer::DeleteTransformerError> for Error {
1035 fn from(err: crate::operation::delete_transformer::DeleteTransformerError) -> Self {
1036 match err {
1037 crate::operation::delete_transformer::DeleteTransformerError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
1038 crate::operation::delete_transformer::DeleteTransformerError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1039 crate::operation::delete_transformer::DeleteTransformerError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
1040 crate::operation::delete_transformer::DeleteTransformerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1041 crate::operation::delete_transformer::DeleteTransformerError::ServiceUnavailableException(inner) => {
1042 Error::ServiceUnavailableException(inner)
1043 }
1044 crate::operation::delete_transformer::DeleteTransformerError::Unhandled(inner) => Error::Unhandled(inner),
1045 }
1046 }
1047}
1048impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_policies::DescribeAccountPoliciesError, R>>
1049 for Error
1050where
1051 R: Send + Sync + std::fmt::Debug + 'static,
1052{
1053 fn from(
1054 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_policies::DescribeAccountPoliciesError, R>,
1055 ) -> Self {
1056 match err {
1057 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1058 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1059 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1060 source: err.into(),
1061 }),
1062 }
1063 }
1064}
1065impl From<crate::operation::describe_account_policies::DescribeAccountPoliciesError> for Error {
1066 fn from(err: crate::operation::describe_account_policies::DescribeAccountPoliciesError) -> Self {
1067 match err {
1068 crate::operation::describe_account_policies::DescribeAccountPoliciesError::InvalidParameterException(inner) => {
1069 Error::InvalidParameterException(inner)
1070 }
1071 crate::operation::describe_account_policies::DescribeAccountPoliciesError::OperationAbortedException(inner) => {
1072 Error::OperationAbortedException(inner)
1073 }
1074 crate::operation::describe_account_policies::DescribeAccountPoliciesError::ResourceNotFoundException(inner) => {
1075 Error::ResourceNotFoundException(inner)
1076 }
1077 crate::operation::describe_account_policies::DescribeAccountPoliciesError::ServiceUnavailableException(inner) => {
1078 Error::ServiceUnavailableException(inner)
1079 }
1080 crate::operation::describe_account_policies::DescribeAccountPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1081 }
1082 }
1083}
1084impl<R>
1085 From<
1086 ::aws_smithy_runtime_api::client::result::SdkError<
1087 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError,
1088 R,
1089 >,
1090 > for Error
1091where
1092 R: Send + Sync + std::fmt::Debug + 'static,
1093{
1094 fn from(
1095 err: ::aws_smithy_runtime_api::client::result::SdkError<
1096 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError,
1097 R,
1098 >,
1099 ) -> Self {
1100 match err {
1101 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1102 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1103 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1104 source: err.into(),
1105 }),
1106 }
1107 }
1108}
1109impl From<crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError> for Error {
1110 fn from(err: crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError) -> Self {
1111 match err {
1112 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::ResourceNotFoundException(inner) => {
1113 Error::ResourceNotFoundException(inner)
1114 }
1115 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::ServiceUnavailableException(inner) => {
1116 Error::ServiceUnavailableException(inner)
1117 }
1118 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::ThrottlingException(inner) => {
1119 Error::ThrottlingException(inner)
1120 }
1121 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::ValidationException(inner) => {
1122 Error::ValidationException(inner)
1123 }
1124 crate::operation::describe_configuration_templates::DescribeConfigurationTemplatesError::Unhandled(inner) => Error::Unhandled(inner),
1125 }
1126 }
1127}
1128impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_deliveries::DescribeDeliveriesError, R>> for Error
1129where
1130 R: Send + Sync + std::fmt::Debug + 'static,
1131{
1132 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_deliveries::DescribeDeliveriesError, R>) -> Self {
1133 match err {
1134 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1135 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1136 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1137 source: err.into(),
1138 }),
1139 }
1140 }
1141}
1142impl From<crate::operation::describe_deliveries::DescribeDeliveriesError> for Error {
1143 fn from(err: crate::operation::describe_deliveries::DescribeDeliveriesError) -> Self {
1144 match err {
1145 crate::operation::describe_deliveries::DescribeDeliveriesError::ServiceQuotaExceededException(inner) => {
1146 Error::ServiceQuotaExceededException(inner)
1147 }
1148 crate::operation::describe_deliveries::DescribeDeliveriesError::ServiceUnavailableException(inner) => {
1149 Error::ServiceUnavailableException(inner)
1150 }
1151 crate::operation::describe_deliveries::DescribeDeliveriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1152 crate::operation::describe_deliveries::DescribeDeliveriesError::ValidationException(inner) => Error::ValidationException(inner),
1153 crate::operation::describe_deliveries::DescribeDeliveriesError::Unhandled(inner) => Error::Unhandled(inner),
1154 }
1155 }
1156}
1157impl<R>
1158 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError, R>>
1159 for Error
1160where
1161 R: Send + Sync + std::fmt::Debug + 'static,
1162{
1163 fn from(
1164 err: ::aws_smithy_runtime_api::client::result::SdkError<
1165 crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError,
1166 R,
1167 >,
1168 ) -> Self {
1169 match err {
1170 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1171 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1172 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1173 source: err.into(),
1174 }),
1175 }
1176 }
1177}
1178impl From<crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError> for Error {
1179 fn from(err: crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError) -> Self {
1180 match err {
1181 crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::ServiceQuotaExceededException(inner) => {
1182 Error::ServiceQuotaExceededException(inner)
1183 }
1184 crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::ServiceUnavailableException(inner) => {
1185 Error::ServiceUnavailableException(inner)
1186 }
1187 crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::ThrottlingException(inner) => {
1188 Error::ThrottlingException(inner)
1189 }
1190 crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::ValidationException(inner) => {
1191 Error::ValidationException(inner)
1192 }
1193 crate::operation::describe_delivery_destinations::DescribeDeliveryDestinationsError::Unhandled(inner) => Error::Unhandled(inner),
1194 }
1195 }
1196}
1197impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_sources::DescribeDeliverySourcesError, R>>
1198 for Error
1199where
1200 R: Send + Sync + std::fmt::Debug + 'static,
1201{
1202 fn from(
1203 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_sources::DescribeDeliverySourcesError, R>,
1204 ) -> Self {
1205 match err {
1206 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1207 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1208 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1209 source: err.into(),
1210 }),
1211 }
1212 }
1213}
1214impl From<crate::operation::describe_delivery_sources::DescribeDeliverySourcesError> for Error {
1215 fn from(err: crate::operation::describe_delivery_sources::DescribeDeliverySourcesError) -> Self {
1216 match err {
1217 crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::ServiceQuotaExceededException(inner) => {
1218 Error::ServiceQuotaExceededException(inner)
1219 }
1220 crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::ServiceUnavailableException(inner) => {
1221 Error::ServiceUnavailableException(inner)
1222 }
1223 crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::ThrottlingException(inner) => {
1224 Error::ThrottlingException(inner)
1225 }
1226 crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::ValidationException(inner) => {
1227 Error::ValidationException(inner)
1228 }
1229 crate::operation::describe_delivery_sources::DescribeDeliverySourcesError::Unhandled(inner) => Error::Unhandled(inner),
1230 }
1231 }
1232}
1233impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_destinations::DescribeDestinationsError, R>> for Error
1234where
1235 R: Send + Sync + std::fmt::Debug + 'static,
1236{
1237 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_destinations::DescribeDestinationsError, R>) -> Self {
1238 match err {
1239 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1240 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1241 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1242 source: err.into(),
1243 }),
1244 }
1245 }
1246}
1247impl From<crate::operation::describe_destinations::DescribeDestinationsError> for Error {
1248 fn from(err: crate::operation::describe_destinations::DescribeDestinationsError) -> Self {
1249 match err {
1250 crate::operation::describe_destinations::DescribeDestinationsError::InvalidParameterException(inner) => {
1251 Error::InvalidParameterException(inner)
1252 }
1253 crate::operation::describe_destinations::DescribeDestinationsError::ServiceUnavailableException(inner) => {
1254 Error::ServiceUnavailableException(inner)
1255 }
1256 crate::operation::describe_destinations::DescribeDestinationsError::Unhandled(inner) => Error::Unhandled(inner),
1257 }
1258 }
1259}
1260impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>> for Error
1261where
1262 R: Send + Sync + std::fmt::Debug + 'static,
1263{
1264 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_export_tasks::DescribeExportTasksError, R>) -> Self {
1265 match err {
1266 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1267 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1268 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1269 source: err.into(),
1270 }),
1271 }
1272 }
1273}
1274impl From<crate::operation::describe_export_tasks::DescribeExportTasksError> for Error {
1275 fn from(err: crate::operation::describe_export_tasks::DescribeExportTasksError) -> Self {
1276 match err {
1277 crate::operation::describe_export_tasks::DescribeExportTasksError::InvalidParameterException(inner) => {
1278 Error::InvalidParameterException(inner)
1279 }
1280 crate::operation::describe_export_tasks::DescribeExportTasksError::ServiceUnavailableException(inner) => {
1281 Error::ServiceUnavailableException(inner)
1282 }
1283 crate::operation::describe_export_tasks::DescribeExportTasksError::Unhandled(inner) => Error::Unhandled(inner),
1284 }
1285 }
1286}
1287impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_field_indexes::DescribeFieldIndexesError, R>> for Error
1288where
1289 R: Send + Sync + std::fmt::Debug + 'static,
1290{
1291 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_field_indexes::DescribeFieldIndexesError, R>) -> Self {
1292 match err {
1293 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1294 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1295 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1296 source: err.into(),
1297 }),
1298 }
1299 }
1300}
1301impl From<crate::operation::describe_field_indexes::DescribeFieldIndexesError> for Error {
1302 fn from(err: crate::operation::describe_field_indexes::DescribeFieldIndexesError) -> Self {
1303 match err {
1304 crate::operation::describe_field_indexes::DescribeFieldIndexesError::InvalidParameterException(inner) => {
1305 Error::InvalidParameterException(inner)
1306 }
1307 crate::operation::describe_field_indexes::DescribeFieldIndexesError::LimitExceededException(inner) => {
1308 Error::LimitExceededException(inner)
1309 }
1310 crate::operation::describe_field_indexes::DescribeFieldIndexesError::OperationAbortedException(inner) => {
1311 Error::OperationAbortedException(inner)
1312 }
1313 crate::operation::describe_field_indexes::DescribeFieldIndexesError::ResourceNotFoundException(inner) => {
1314 Error::ResourceNotFoundException(inner)
1315 }
1316 crate::operation::describe_field_indexes::DescribeFieldIndexesError::ServiceUnavailableException(inner) => {
1317 Error::ServiceUnavailableException(inner)
1318 }
1319 crate::operation::describe_field_indexes::DescribeFieldIndexesError::Unhandled(inner) => Error::Unhandled(inner),
1320 }
1321 }
1322}
1323impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_index_policies::DescribeIndexPoliciesError, R>> for Error
1324where
1325 R: Send + Sync + std::fmt::Debug + 'static,
1326{
1327 fn from(
1328 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_index_policies::DescribeIndexPoliciesError, R>,
1329 ) -> Self {
1330 match err {
1331 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1332 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1333 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1334 source: err.into(),
1335 }),
1336 }
1337 }
1338}
1339impl From<crate::operation::describe_index_policies::DescribeIndexPoliciesError> for Error {
1340 fn from(err: crate::operation::describe_index_policies::DescribeIndexPoliciesError) -> Self {
1341 match err {
1342 crate::operation::describe_index_policies::DescribeIndexPoliciesError::InvalidParameterException(inner) => {
1343 Error::InvalidParameterException(inner)
1344 }
1345 crate::operation::describe_index_policies::DescribeIndexPoliciesError::LimitExceededException(inner) => {
1346 Error::LimitExceededException(inner)
1347 }
1348 crate::operation::describe_index_policies::DescribeIndexPoliciesError::OperationAbortedException(inner) => {
1349 Error::OperationAbortedException(inner)
1350 }
1351 crate::operation::describe_index_policies::DescribeIndexPoliciesError::ResourceNotFoundException(inner) => {
1352 Error::ResourceNotFoundException(inner)
1353 }
1354 crate::operation::describe_index_policies::DescribeIndexPoliciesError::ServiceUnavailableException(inner) => {
1355 Error::ServiceUnavailableException(inner)
1356 }
1357 crate::operation::describe_index_policies::DescribeIndexPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1358 }
1359 }
1360}
1361impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_log_groups::DescribeLogGroupsError, R>> for Error
1362where
1363 R: Send + Sync + std::fmt::Debug + 'static,
1364{
1365 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_log_groups::DescribeLogGroupsError, R>) -> Self {
1366 match err {
1367 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1368 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1369 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1370 source: err.into(),
1371 }),
1372 }
1373 }
1374}
1375impl From<crate::operation::describe_log_groups::DescribeLogGroupsError> for Error {
1376 fn from(err: crate::operation::describe_log_groups::DescribeLogGroupsError) -> Self {
1377 match err {
1378 crate::operation::describe_log_groups::DescribeLogGroupsError::InvalidParameterException(inner) => {
1379 Error::InvalidParameterException(inner)
1380 }
1381 crate::operation::describe_log_groups::DescribeLogGroupsError::ServiceUnavailableException(inner) => {
1382 Error::ServiceUnavailableException(inner)
1383 }
1384 crate::operation::describe_log_groups::DescribeLogGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1385 }
1386 }
1387}
1388impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_log_streams::DescribeLogStreamsError, R>> for Error
1389where
1390 R: Send + Sync + std::fmt::Debug + 'static,
1391{
1392 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_log_streams::DescribeLogStreamsError, R>) -> Self {
1393 match err {
1394 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1395 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1396 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1397 source: err.into(),
1398 }),
1399 }
1400 }
1401}
1402impl From<crate::operation::describe_log_streams::DescribeLogStreamsError> for Error {
1403 fn from(err: crate::operation::describe_log_streams::DescribeLogStreamsError) -> Self {
1404 match err {
1405 crate::operation::describe_log_streams::DescribeLogStreamsError::InvalidParameterException(inner) => {
1406 Error::InvalidParameterException(inner)
1407 }
1408 crate::operation::describe_log_streams::DescribeLogStreamsError::ResourceNotFoundException(inner) => {
1409 Error::ResourceNotFoundException(inner)
1410 }
1411 crate::operation::describe_log_streams::DescribeLogStreamsError::ServiceUnavailableException(inner) => {
1412 Error::ServiceUnavailableException(inner)
1413 }
1414 crate::operation::describe_log_streams::DescribeLogStreamsError::Unhandled(inner) => Error::Unhandled(inner),
1415 }
1416 }
1417}
1418impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_metric_filters::DescribeMetricFiltersError, R>> for Error
1419where
1420 R: Send + Sync + std::fmt::Debug + 'static,
1421{
1422 fn from(
1423 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_metric_filters::DescribeMetricFiltersError, R>,
1424 ) -> Self {
1425 match err {
1426 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1427 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1428 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1429 source: err.into(),
1430 }),
1431 }
1432 }
1433}
1434impl From<crate::operation::describe_metric_filters::DescribeMetricFiltersError> for Error {
1435 fn from(err: crate::operation::describe_metric_filters::DescribeMetricFiltersError) -> Self {
1436 match err {
1437 crate::operation::describe_metric_filters::DescribeMetricFiltersError::InvalidParameterException(inner) => {
1438 Error::InvalidParameterException(inner)
1439 }
1440 crate::operation::describe_metric_filters::DescribeMetricFiltersError::ResourceNotFoundException(inner) => {
1441 Error::ResourceNotFoundException(inner)
1442 }
1443 crate::operation::describe_metric_filters::DescribeMetricFiltersError::ServiceUnavailableException(inner) => {
1444 Error::ServiceUnavailableException(inner)
1445 }
1446 crate::operation::describe_metric_filters::DescribeMetricFiltersError::Unhandled(inner) => Error::Unhandled(inner),
1447 }
1448 }
1449}
1450impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_queries::DescribeQueriesError, R>> for Error
1451where
1452 R: Send + Sync + std::fmt::Debug + 'static,
1453{
1454 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_queries::DescribeQueriesError, R>) -> Self {
1455 match err {
1456 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1457 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1458 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1459 source: err.into(),
1460 }),
1461 }
1462 }
1463}
1464impl From<crate::operation::describe_queries::DescribeQueriesError> for Error {
1465 fn from(err: crate::operation::describe_queries::DescribeQueriesError) -> Self {
1466 match err {
1467 crate::operation::describe_queries::DescribeQueriesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1468 crate::operation::describe_queries::DescribeQueriesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1469 crate::operation::describe_queries::DescribeQueriesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1470 crate::operation::describe_queries::DescribeQueriesError::Unhandled(inner) => Error::Unhandled(inner),
1471 }
1472 }
1473}
1474impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_query_definitions::DescribeQueryDefinitionsError, R>>
1475 for Error
1476where
1477 R: Send + Sync + std::fmt::Debug + 'static,
1478{
1479 fn from(
1480 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_query_definitions::DescribeQueryDefinitionsError, R>,
1481 ) -> Self {
1482 match err {
1483 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1484 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1485 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1486 source: err.into(),
1487 }),
1488 }
1489 }
1490}
1491impl From<crate::operation::describe_query_definitions::DescribeQueryDefinitionsError> for Error {
1492 fn from(err: crate::operation::describe_query_definitions::DescribeQueryDefinitionsError) -> Self {
1493 match err {
1494 crate::operation::describe_query_definitions::DescribeQueryDefinitionsError::InvalidParameterException(inner) => {
1495 Error::InvalidParameterException(inner)
1496 }
1497 crate::operation::describe_query_definitions::DescribeQueryDefinitionsError::ServiceUnavailableException(inner) => {
1498 Error::ServiceUnavailableException(inner)
1499 }
1500 crate::operation::describe_query_definitions::DescribeQueryDefinitionsError::Unhandled(inner) => Error::Unhandled(inner),
1501 }
1502 }
1503}
1504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policies::DescribeResourcePoliciesError, R>>
1505 for Error
1506where
1507 R: Send + Sync + std::fmt::Debug + 'static,
1508{
1509 fn from(
1510 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resource_policies::DescribeResourcePoliciesError, R>,
1511 ) -> Self {
1512 match err {
1513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1516 source: err.into(),
1517 }),
1518 }
1519 }
1520}
1521impl From<crate::operation::describe_resource_policies::DescribeResourcePoliciesError> for Error {
1522 fn from(err: crate::operation::describe_resource_policies::DescribeResourcePoliciesError) -> Self {
1523 match err {
1524 crate::operation::describe_resource_policies::DescribeResourcePoliciesError::InvalidParameterException(inner) => {
1525 Error::InvalidParameterException(inner)
1526 }
1527 crate::operation::describe_resource_policies::DescribeResourcePoliciesError::ServiceUnavailableException(inner) => {
1528 Error::ServiceUnavailableException(inner)
1529 }
1530 crate::operation::describe_resource_policies::DescribeResourcePoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1531 }
1532 }
1533}
1534impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError, R>>
1535 for Error
1536where
1537 R: Send + Sync + std::fmt::Debug + 'static,
1538{
1539 fn from(
1540 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError, R>,
1541 ) -> Self {
1542 match err {
1543 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1544 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1545 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1546 source: err.into(),
1547 }),
1548 }
1549 }
1550}
1551impl From<crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError> for Error {
1552 fn from(err: crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError) -> Self {
1553 match err {
1554 crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError::InvalidParameterException(inner) => {
1555 Error::InvalidParameterException(inner)
1556 }
1557 crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError::ResourceNotFoundException(inner) => {
1558 Error::ResourceNotFoundException(inner)
1559 }
1560 crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError::ServiceUnavailableException(inner) => {
1561 Error::ServiceUnavailableException(inner)
1562 }
1563 crate::operation::describe_subscription_filters::DescribeSubscriptionFiltersError::Unhandled(inner) => Error::Unhandled(inner),
1564 }
1565 }
1566}
1567impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_kms_key::DisassociateKmsKeyError, R>> for Error
1568where
1569 R: Send + Sync + std::fmt::Debug + 'static,
1570{
1571 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_kms_key::DisassociateKmsKeyError, R>) -> Self {
1572 match err {
1573 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1574 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1575 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1576 source: err.into(),
1577 }),
1578 }
1579 }
1580}
1581impl From<crate::operation::disassociate_kms_key::DisassociateKmsKeyError> for Error {
1582 fn from(err: crate::operation::disassociate_kms_key::DisassociateKmsKeyError) -> Self {
1583 match err {
1584 crate::operation::disassociate_kms_key::DisassociateKmsKeyError::InvalidParameterException(inner) => {
1585 Error::InvalidParameterException(inner)
1586 }
1587 crate::operation::disassociate_kms_key::DisassociateKmsKeyError::OperationAbortedException(inner) => {
1588 Error::OperationAbortedException(inner)
1589 }
1590 crate::operation::disassociate_kms_key::DisassociateKmsKeyError::ResourceNotFoundException(inner) => {
1591 Error::ResourceNotFoundException(inner)
1592 }
1593 crate::operation::disassociate_kms_key::DisassociateKmsKeyError::ServiceUnavailableException(inner) => {
1594 Error::ServiceUnavailableException(inner)
1595 }
1596 crate::operation::disassociate_kms_key::DisassociateKmsKeyError::Unhandled(inner) => Error::Unhandled(inner),
1597 }
1598 }
1599}
1600impl<R>
1601 From<
1602 ::aws_smithy_runtime_api::client::result::SdkError<
1603 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError,
1604 R,
1605 >,
1606 > for Error
1607where
1608 R: Send + Sync + std::fmt::Debug + 'static,
1609{
1610 fn from(
1611 err: ::aws_smithy_runtime_api::client::result::SdkError<
1612 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError,
1613 R,
1614 >,
1615 ) -> Self {
1616 match err {
1617 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1618 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1619 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1620 source: err.into(),
1621 }),
1622 }
1623 }
1624}
1625impl From<crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError> for Error {
1626 fn from(err: crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError) -> Self {
1627 match err {
1628 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1629 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::InternalServerException(inner) => Error::InternalServerException(inner),
1630 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1631 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1632 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
1633 crate::operation::disassociate_source_from_s3_table_integration::DisassociateSourceFromS3TableIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1634 }
1635 }
1636}
1637impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::filter_log_events::FilterLogEventsError, R>> for Error
1638where
1639 R: Send + Sync + std::fmt::Debug + 'static,
1640{
1641 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::filter_log_events::FilterLogEventsError, R>) -> Self {
1642 match err {
1643 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1644 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1645 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1646 source: err.into(),
1647 }),
1648 }
1649 }
1650}
1651impl From<crate::operation::filter_log_events::FilterLogEventsError> for Error {
1652 fn from(err: crate::operation::filter_log_events::FilterLogEventsError) -> Self {
1653 match err {
1654 crate::operation::filter_log_events::FilterLogEventsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1655 crate::operation::filter_log_events::FilterLogEventsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1656 crate::operation::filter_log_events::FilterLogEventsError::ServiceUnavailableException(inner) => {
1657 Error::ServiceUnavailableException(inner)
1658 }
1659 crate::operation::filter_log_events::FilterLogEventsError::Unhandled(inner) => Error::Unhandled(inner),
1660 }
1661 }
1662}
1663impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_protection_policy::GetDataProtectionPolicyError, R>>
1664 for Error
1665where
1666 R: Send + Sync + std::fmt::Debug + 'static,
1667{
1668 fn from(
1669 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_data_protection_policy::GetDataProtectionPolicyError, R>,
1670 ) -> Self {
1671 match err {
1672 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1673 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1674 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1675 source: err.into(),
1676 }),
1677 }
1678 }
1679}
1680impl From<crate::operation::get_data_protection_policy::GetDataProtectionPolicyError> for Error {
1681 fn from(err: crate::operation::get_data_protection_policy::GetDataProtectionPolicyError) -> Self {
1682 match err {
1683 crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::InvalidParameterException(inner) => {
1684 Error::InvalidParameterException(inner)
1685 }
1686 crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::OperationAbortedException(inner) => {
1687 Error::OperationAbortedException(inner)
1688 }
1689 crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::ResourceNotFoundException(inner) => {
1690 Error::ResourceNotFoundException(inner)
1691 }
1692 crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::ServiceUnavailableException(inner) => {
1693 Error::ServiceUnavailableException(inner)
1694 }
1695 crate::operation::get_data_protection_policy::GetDataProtectionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1696 }
1697 }
1698}
1699impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery::GetDeliveryError, R>> for Error
1700where
1701 R: Send + Sync + std::fmt::Debug + 'static,
1702{
1703 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery::GetDeliveryError, R>) -> Self {
1704 match err {
1705 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1706 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1707 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1708 source: err.into(),
1709 }),
1710 }
1711 }
1712}
1713impl From<crate::operation::get_delivery::GetDeliveryError> for Error {
1714 fn from(err: crate::operation::get_delivery::GetDeliveryError) -> Self {
1715 match err {
1716 crate::operation::get_delivery::GetDeliveryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1717 crate::operation::get_delivery::GetDeliveryError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1718 crate::operation::get_delivery::GetDeliveryError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1719 crate::operation::get_delivery::GetDeliveryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1720 crate::operation::get_delivery::GetDeliveryError::ValidationException(inner) => Error::ValidationException(inner),
1721 crate::operation::get_delivery::GetDeliveryError::Unhandled(inner) => Error::Unhandled(inner),
1722 }
1723 }
1724}
1725impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_destination::GetDeliveryDestinationError, R>> 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::get_delivery_destination::GetDeliveryDestinationError, 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::get_delivery_destination::GetDeliveryDestinationError> for Error {
1742 fn from(err: crate::operation::get_delivery_destination::GetDeliveryDestinationError) -> Self {
1743 match err {
1744 crate::operation::get_delivery_destination::GetDeliveryDestinationError::ResourceNotFoundException(inner) => {
1745 Error::ResourceNotFoundException(inner)
1746 }
1747 crate::operation::get_delivery_destination::GetDeliveryDestinationError::ServiceQuotaExceededException(inner) => {
1748 Error::ServiceQuotaExceededException(inner)
1749 }
1750 crate::operation::get_delivery_destination::GetDeliveryDestinationError::ServiceUnavailableException(inner) => {
1751 Error::ServiceUnavailableException(inner)
1752 }
1753 crate::operation::get_delivery_destination::GetDeliveryDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1754 crate::operation::get_delivery_destination::GetDeliveryDestinationError::ValidationException(inner) => Error::ValidationException(inner),
1755 crate::operation::get_delivery_destination::GetDeliveryDestinationError::Unhandled(inner) => Error::Unhandled(inner),
1756 }
1757 }
1758}
1759impl<R>
1760 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError, R>>
1761 for Error
1762where
1763 R: Send + Sync + std::fmt::Debug + 'static,
1764{
1765 fn from(
1766 err: ::aws_smithy_runtime_api::client::result::SdkError<
1767 crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError,
1768 R,
1769 >,
1770 ) -> Self {
1771 match err {
1772 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1773 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1774 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1775 source: err.into(),
1776 }),
1777 }
1778 }
1779}
1780impl From<crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError> for Error {
1781 fn from(err: crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError) -> Self {
1782 match err {
1783 crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError::ResourceNotFoundException(inner) => {
1784 Error::ResourceNotFoundException(inner)
1785 }
1786 crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError::ServiceUnavailableException(inner) => {
1787 Error::ServiceUnavailableException(inner)
1788 }
1789 crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError::ValidationException(inner) => {
1790 Error::ValidationException(inner)
1791 }
1792 crate::operation::get_delivery_destination_policy::GetDeliveryDestinationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
1793 }
1794 }
1795}
1796impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_source::GetDeliverySourceError, R>> for Error
1797where
1798 R: Send + Sync + std::fmt::Debug + 'static,
1799{
1800 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_delivery_source::GetDeliverySourceError, R>) -> Self {
1801 match err {
1802 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1803 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1804 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1805 source: err.into(),
1806 }),
1807 }
1808 }
1809}
1810impl From<crate::operation::get_delivery_source::GetDeliverySourceError> for Error {
1811 fn from(err: crate::operation::get_delivery_source::GetDeliverySourceError) -> Self {
1812 match err {
1813 crate::operation::get_delivery_source::GetDeliverySourceError::ResourceNotFoundException(inner) => {
1814 Error::ResourceNotFoundException(inner)
1815 }
1816 crate::operation::get_delivery_source::GetDeliverySourceError::ServiceQuotaExceededException(inner) => {
1817 Error::ServiceQuotaExceededException(inner)
1818 }
1819 crate::operation::get_delivery_source::GetDeliverySourceError::ServiceUnavailableException(inner) => {
1820 Error::ServiceUnavailableException(inner)
1821 }
1822 crate::operation::get_delivery_source::GetDeliverySourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1823 crate::operation::get_delivery_source::GetDeliverySourceError::ValidationException(inner) => Error::ValidationException(inner),
1824 crate::operation::get_delivery_source::GetDeliverySourceError::Unhandled(inner) => Error::Unhandled(inner),
1825 }
1826 }
1827}
1828impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>> for Error
1829where
1830 R: Send + Sync + std::fmt::Debug + 'static,
1831{
1832 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_integration::GetIntegrationError, R>) -> Self {
1833 match err {
1834 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1835 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1836 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1837 source: err.into(),
1838 }),
1839 }
1840 }
1841}
1842impl From<crate::operation::get_integration::GetIntegrationError> for Error {
1843 fn from(err: crate::operation::get_integration::GetIntegrationError) -> Self {
1844 match err {
1845 crate::operation::get_integration::GetIntegrationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1846 crate::operation::get_integration::GetIntegrationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1847 crate::operation::get_integration::GetIntegrationError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1848 crate::operation::get_integration::GetIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1849 }
1850 }
1851}
1852impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError, R>> for Error
1853where
1854 R: Send + Sync + std::fmt::Debug + 'static,
1855{
1856 fn from(
1857 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError, R>,
1858 ) -> Self {
1859 match err {
1860 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1861 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1862 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1863 source: err.into(),
1864 }),
1865 }
1866 }
1867}
1868impl From<crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError> for Error {
1869 fn from(err: crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError) -> Self {
1870 match err {
1871 crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::InvalidParameterException(inner) => {
1872 Error::InvalidParameterException(inner)
1873 }
1874 crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::OperationAbortedException(inner) => {
1875 Error::OperationAbortedException(inner)
1876 }
1877 crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::ResourceNotFoundException(inner) => {
1878 Error::ResourceNotFoundException(inner)
1879 }
1880 crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::ServiceUnavailableException(inner) => {
1881 Error::ServiceUnavailableException(inner)
1882 }
1883 crate::operation::get_log_anomaly_detector::GetLogAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
1884 }
1885 }
1886}
1887impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_events::GetLogEventsError, R>> for Error
1888where
1889 R: Send + Sync + std::fmt::Debug + 'static,
1890{
1891 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_events::GetLogEventsError, R>) -> Self {
1892 match err {
1893 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1894 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1895 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1896 source: err.into(),
1897 }),
1898 }
1899 }
1900}
1901impl From<crate::operation::get_log_events::GetLogEventsError> for Error {
1902 fn from(err: crate::operation::get_log_events::GetLogEventsError) -> Self {
1903 match err {
1904 crate::operation::get_log_events::GetLogEventsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1905 crate::operation::get_log_events::GetLogEventsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1906 crate::operation::get_log_events::GetLogEventsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1907 crate::operation::get_log_events::GetLogEventsError::Unhandled(inner) => Error::Unhandled(inner),
1908 }
1909 }
1910}
1911impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_fields::GetLogFieldsError, R>> for Error
1912where
1913 R: Send + Sync + std::fmt::Debug + 'static,
1914{
1915 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_fields::GetLogFieldsError, R>) -> Self {
1916 match err {
1917 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1918 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1919 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1920 source: err.into(),
1921 }),
1922 }
1923 }
1924}
1925impl From<crate::operation::get_log_fields::GetLogFieldsError> for Error {
1926 fn from(err: crate::operation::get_log_fields::GetLogFieldsError) -> Self {
1927 match err {
1928 crate::operation::get_log_fields::GetLogFieldsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1929 crate::operation::get_log_fields::GetLogFieldsError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
1930 crate::operation::get_log_fields::GetLogFieldsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1931 crate::operation::get_log_fields::GetLogFieldsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1932 crate::operation::get_log_fields::GetLogFieldsError::Unhandled(inner) => Error::Unhandled(inner),
1933 }
1934 }
1935}
1936impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_group_fields::GetLogGroupFieldsError, R>> for Error
1937where
1938 R: Send + Sync + std::fmt::Debug + 'static,
1939{
1940 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_group_fields::GetLogGroupFieldsError, R>) -> Self {
1941 match err {
1942 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1943 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1944 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1945 source: err.into(),
1946 }),
1947 }
1948 }
1949}
1950impl From<crate::operation::get_log_group_fields::GetLogGroupFieldsError> for Error {
1951 fn from(err: crate::operation::get_log_group_fields::GetLogGroupFieldsError) -> Self {
1952 match err {
1953 crate::operation::get_log_group_fields::GetLogGroupFieldsError::InvalidParameterException(inner) => {
1954 Error::InvalidParameterException(inner)
1955 }
1956 crate::operation::get_log_group_fields::GetLogGroupFieldsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1957 crate::operation::get_log_group_fields::GetLogGroupFieldsError::ResourceNotFoundException(inner) => {
1958 Error::ResourceNotFoundException(inner)
1959 }
1960 crate::operation::get_log_group_fields::GetLogGroupFieldsError::ServiceUnavailableException(inner) => {
1961 Error::ServiceUnavailableException(inner)
1962 }
1963 crate::operation::get_log_group_fields::GetLogGroupFieldsError::Unhandled(inner) => Error::Unhandled(inner),
1964 }
1965 }
1966}
1967impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_object::GetLogObjectError, R>> for Error
1968where
1969 R: Send + Sync + std::fmt::Debug + 'static,
1970{
1971 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_object::GetLogObjectError, R>) -> Self {
1972 match err {
1973 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1974 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1975 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1976 source: err.into(),
1977 }),
1978 }
1979 }
1980}
1981impl From<crate::operation::get_log_object::GetLogObjectError> for Error {
1982 fn from(err: crate::operation::get_log_object::GetLogObjectError) -> Self {
1983 match err {
1984 crate::operation::get_log_object::GetLogObjectError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1985 crate::operation::get_log_object::GetLogObjectError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
1986 crate::operation::get_log_object::GetLogObjectError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
1987 crate::operation::get_log_object::GetLogObjectError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1988 crate::operation::get_log_object::GetLogObjectError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1989 crate::operation::get_log_object::GetLogObjectError::InternalStreamingException(inner) => Error::InternalStreamingException(inner),
1990 crate::operation::get_log_object::GetLogObjectError::Unhandled(inner) => Error::Unhandled(inner),
1991 }
1992 }
1993}
1994impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_record::GetLogRecordError, R>> for Error
1995where
1996 R: Send + Sync + std::fmt::Debug + 'static,
1997{
1998 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_log_record::GetLogRecordError, R>) -> Self {
1999 match err {
2000 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2001 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2002 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2003 source: err.into(),
2004 }),
2005 }
2006 }
2007}
2008impl From<crate::operation::get_log_record::GetLogRecordError> for Error {
2009 fn from(err: crate::operation::get_log_record::GetLogRecordError) -> Self {
2010 match err {
2011 crate::operation::get_log_record::GetLogRecordError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2012 crate::operation::get_log_record::GetLogRecordError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2013 crate::operation::get_log_record::GetLogRecordError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2014 crate::operation::get_log_record::GetLogRecordError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2015 crate::operation::get_log_record::GetLogRecordError::Unhandled(inner) => Error::Unhandled(inner),
2016 }
2017 }
2018}
2019impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_query_results::GetQueryResultsError, R>> for Error
2020where
2021 R: Send + Sync + std::fmt::Debug + 'static,
2022{
2023 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_query_results::GetQueryResultsError, R>) -> Self {
2024 match err {
2025 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2026 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2027 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2028 source: err.into(),
2029 }),
2030 }
2031 }
2032}
2033impl From<crate::operation::get_query_results::GetQueryResultsError> for Error {
2034 fn from(err: crate::operation::get_query_results::GetQueryResultsError) -> Self {
2035 match err {
2036 crate::operation::get_query_results::GetQueryResultsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2037 crate::operation::get_query_results::GetQueryResultsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2038 crate::operation::get_query_results::GetQueryResultsError::ServiceUnavailableException(inner) => {
2039 Error::ServiceUnavailableException(inner)
2040 }
2041 crate::operation::get_query_results::GetQueryResultsError::Unhandled(inner) => Error::Unhandled(inner),
2042 }
2043 }
2044}
2045impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_query::GetScheduledQueryError, R>> for Error
2046where
2047 R: Send + Sync + std::fmt::Debug + 'static,
2048{
2049 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_query::GetScheduledQueryError, R>) -> Self {
2050 match err {
2051 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2052 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2053 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2054 source: err.into(),
2055 }),
2056 }
2057 }
2058}
2059impl From<crate::operation::get_scheduled_query::GetScheduledQueryError> for Error {
2060 fn from(err: crate::operation::get_scheduled_query::GetScheduledQueryError) -> Self {
2061 match err {
2062 crate::operation::get_scheduled_query::GetScheduledQueryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2063 crate::operation::get_scheduled_query::GetScheduledQueryError::InternalServerException(inner) => Error::InternalServerException(inner),
2064 crate::operation::get_scheduled_query::GetScheduledQueryError::ResourceNotFoundException(inner) => {
2065 Error::ResourceNotFoundException(inner)
2066 }
2067 crate::operation::get_scheduled_query::GetScheduledQueryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2068 crate::operation::get_scheduled_query::GetScheduledQueryError::ValidationException(inner) => Error::ValidationException(inner),
2069 crate::operation::get_scheduled_query::GetScheduledQueryError::Unhandled(inner) => Error::Unhandled(inner),
2070 }
2071 }
2072}
2073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError, R>>
2074 for Error
2075where
2076 R: Send + Sync + std::fmt::Debug + 'static,
2077{
2078 fn from(
2079 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError, R>,
2080 ) -> Self {
2081 match err {
2082 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2083 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2084 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2085 source: err.into(),
2086 }),
2087 }
2088 }
2089}
2090impl From<crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError> for Error {
2091 fn from(err: crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError) -> Self {
2092 match err {
2093 crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::AccessDeniedException(inner) => {
2094 Error::AccessDeniedException(inner)
2095 }
2096 crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::InternalServerException(inner) => {
2097 Error::InternalServerException(inner)
2098 }
2099 crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::ResourceNotFoundException(inner) => {
2100 Error::ResourceNotFoundException(inner)
2101 }
2102 crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::ThrottlingException(inner) => {
2103 Error::ThrottlingException(inner)
2104 }
2105 crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::ValidationException(inner) => {
2106 Error::ValidationException(inner)
2107 }
2108 crate::operation::get_scheduled_query_history::GetScheduledQueryHistoryError::Unhandled(inner) => Error::Unhandled(inner),
2109 }
2110 }
2111}
2112impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_transformer::GetTransformerError, R>> for Error
2113where
2114 R: Send + Sync + std::fmt::Debug + 'static,
2115{
2116 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_transformer::GetTransformerError, R>) -> Self {
2117 match err {
2118 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2119 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2120 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2121 source: err.into(),
2122 }),
2123 }
2124 }
2125}
2126impl From<crate::operation::get_transformer::GetTransformerError> for Error {
2127 fn from(err: crate::operation::get_transformer::GetTransformerError) -> Self {
2128 match err {
2129 crate::operation::get_transformer::GetTransformerError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
2130 crate::operation::get_transformer::GetTransformerError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2131 crate::operation::get_transformer::GetTransformerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2132 crate::operation::get_transformer::GetTransformerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2133 crate::operation::get_transformer::GetTransformerError::Unhandled(inner) => Error::Unhandled(inner),
2134 }
2135 }
2136}
2137impl<R>
2138 From<
2139 ::aws_smithy_runtime_api::client::result::SdkError<
2140 crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError,
2141 R,
2142 >,
2143 > for Error
2144where
2145 R: Send + Sync + std::fmt::Debug + 'static,
2146{
2147 fn from(
2148 err: ::aws_smithy_runtime_api::client::result::SdkError<
2149 crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError,
2150 R,
2151 >,
2152 ) -> Self {
2153 match err {
2154 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2155 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2156 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2157 source: err.into(),
2158 }),
2159 }
2160 }
2161}
2162impl From<crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError> for Error {
2163 fn from(err: crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError) -> Self {
2164 match err {
2165 crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError::InvalidParameterException(inner) => {
2166 Error::InvalidParameterException(inner)
2167 }
2168 crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError::ServiceUnavailableException(inner) => {
2169 Error::ServiceUnavailableException(inner)
2170 }
2171 crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError::ValidationException(inner) => {
2172 Error::ValidationException(inner)
2173 }
2174 crate::operation::list_aggregate_log_group_summaries::ListAggregateLogGroupSummariesError::Unhandled(inner) => Error::Unhandled(inner),
2175 }
2176 }
2177}
2178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_anomalies::ListAnomaliesError, R>> for Error
2179where
2180 R: Send + Sync + std::fmt::Debug + 'static,
2181{
2182 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_anomalies::ListAnomaliesError, R>) -> Self {
2183 match err {
2184 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2185 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2186 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2187 source: err.into(),
2188 }),
2189 }
2190 }
2191}
2192impl From<crate::operation::list_anomalies::ListAnomaliesError> for Error {
2193 fn from(err: crate::operation::list_anomalies::ListAnomaliesError) -> Self {
2194 match err {
2195 crate::operation::list_anomalies::ListAnomaliesError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2196 crate::operation::list_anomalies::ListAnomaliesError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2197 crate::operation::list_anomalies::ListAnomaliesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2198 crate::operation::list_anomalies::ListAnomaliesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2199 crate::operation::list_anomalies::ListAnomaliesError::Unhandled(inner) => Error::Unhandled(inner),
2200 }
2201 }
2202}
2203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrations::ListIntegrationsError, R>> for Error
2204where
2205 R: Send + Sync + std::fmt::Debug + 'static,
2206{
2207 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_integrations::ListIntegrationsError, R>) -> Self {
2208 match err {
2209 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2210 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2211 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2212 source: err.into(),
2213 }),
2214 }
2215 }
2216}
2217impl From<crate::operation::list_integrations::ListIntegrationsError> for Error {
2218 fn from(err: crate::operation::list_integrations::ListIntegrationsError) -> Self {
2219 match err {
2220 crate::operation::list_integrations::ListIntegrationsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2221 crate::operation::list_integrations::ListIntegrationsError::ServiceUnavailableException(inner) => {
2222 Error::ServiceUnavailableException(inner)
2223 }
2224 crate::operation::list_integrations::ListIntegrationsError::Unhandled(inner) => Error::Unhandled(inner),
2225 }
2226 }
2227}
2228impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError, R>>
2229 for Error
2230where
2231 R: Send + Sync + std::fmt::Debug + 'static,
2232{
2233 fn from(
2234 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError, R>,
2235 ) -> Self {
2236 match err {
2237 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2238 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2239 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2240 source: err.into(),
2241 }),
2242 }
2243 }
2244}
2245impl From<crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError> for Error {
2246 fn from(err: crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError) -> Self {
2247 match err {
2248 crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::InvalidParameterException(inner) => {
2249 Error::InvalidParameterException(inner)
2250 }
2251 crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::OperationAbortedException(inner) => {
2252 Error::OperationAbortedException(inner)
2253 }
2254 crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::ResourceNotFoundException(inner) => {
2255 Error::ResourceNotFoundException(inner)
2256 }
2257 crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::ServiceUnavailableException(inner) => {
2258 Error::ServiceUnavailableException(inner)
2259 }
2260 crate::operation::list_log_anomaly_detectors::ListLogAnomalyDetectorsError::Unhandled(inner) => Error::Unhandled(inner),
2261 }
2262 }
2263}
2264impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_groups::ListLogGroupsError, 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::list_log_groups::ListLogGroupsError, 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::list_log_groups::ListLogGroupsError> for Error {
2279 fn from(err: crate::operation::list_log_groups::ListLogGroupsError) -> Self {
2280 match err {
2281 crate::operation::list_log_groups::ListLogGroupsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2282 crate::operation::list_log_groups::ListLogGroupsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2283 crate::operation::list_log_groups::ListLogGroupsError::Unhandled(inner) => Error::Unhandled(inner),
2284 }
2285 }
2286}
2287impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError, R>> for Error
2288where
2289 R: Send + Sync + std::fmt::Debug + 'static,
2290{
2291 fn from(
2292 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError, R>,
2293 ) -> Self {
2294 match err {
2295 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2296 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2297 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2298 source: err.into(),
2299 }),
2300 }
2301 }
2302}
2303impl From<crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError> for Error {
2304 fn from(err: crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError) -> Self {
2305 match err {
2306 crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::AccessDeniedException(inner) => {
2307 Error::AccessDeniedException(inner)
2308 }
2309 crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::InvalidParameterException(inner) => {
2310 Error::InvalidParameterException(inner)
2311 }
2312 crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::ResourceNotFoundException(inner) => {
2313 Error::ResourceNotFoundException(inner)
2314 }
2315 crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::ServiceUnavailableException(inner) => {
2316 Error::ServiceUnavailableException(inner)
2317 }
2318 crate::operation::list_log_groups_for_query::ListLogGroupsForQueryError::Unhandled(inner) => Error::Unhandled(inner),
2319 }
2320 }
2321}
2322impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scheduled_queries::ListScheduledQueriesError, R>> for Error
2323where
2324 R: Send + Sync + std::fmt::Debug + 'static,
2325{
2326 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scheduled_queries::ListScheduledQueriesError, R>) -> Self {
2327 match err {
2328 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2329 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2330 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2331 source: err.into(),
2332 }),
2333 }
2334 }
2335}
2336impl From<crate::operation::list_scheduled_queries::ListScheduledQueriesError> for Error {
2337 fn from(err: crate::operation::list_scheduled_queries::ListScheduledQueriesError) -> Self {
2338 match err {
2339 crate::operation::list_scheduled_queries::ListScheduledQueriesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
2340 crate::operation::list_scheduled_queries::ListScheduledQueriesError::InternalServerException(inner) => {
2341 Error::InternalServerException(inner)
2342 }
2343 crate::operation::list_scheduled_queries::ListScheduledQueriesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2344 crate::operation::list_scheduled_queries::ListScheduledQueriesError::ValidationException(inner) => Error::ValidationException(inner),
2345 crate::operation::list_scheduled_queries::ListScheduledQueriesError::Unhandled(inner) => Error::Unhandled(inner),
2346 }
2347 }
2348}
2349impl<R>
2350 From<
2351 ::aws_smithy_runtime_api::client::result::SdkError<
2352 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError,
2353 R,
2354 >,
2355 > for Error
2356where
2357 R: Send + Sync + std::fmt::Debug + 'static,
2358{
2359 fn from(
2360 err: ::aws_smithy_runtime_api::client::result::SdkError<
2361 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError,
2362 R,
2363 >,
2364 ) -> Self {
2365 match err {
2366 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2367 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2368 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2369 source: err.into(),
2370 }),
2371 }
2372 }
2373}
2374impl From<crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError> for Error {
2375 fn from(err: crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError) -> Self {
2376 match err {
2377 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::AccessDeniedException(inner) => {
2378 Error::AccessDeniedException(inner)
2379 }
2380 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::InternalServerException(inner) => {
2381 Error::InternalServerException(inner)
2382 }
2383 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::ResourceNotFoundException(inner) => {
2384 Error::ResourceNotFoundException(inner)
2385 }
2386 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::ThrottlingException(inner) => {
2387 Error::ThrottlingException(inner)
2388 }
2389 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::ValidationException(inner) => {
2390 Error::ValidationException(inner)
2391 }
2392 crate::operation::list_sources_for_s3_table_integration::ListSourcesForS3TableIntegrationError::Unhandled(inner) => {
2393 Error::Unhandled(inner)
2394 }
2395 }
2396 }
2397}
2398impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
2399where
2400 R: Send + Sync + std::fmt::Debug + 'static,
2401{
2402 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
2403 match err {
2404 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2405 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2406 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2407 source: err.into(),
2408 }),
2409 }
2410 }
2411}
2412impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
2413 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
2414 match err {
2415 crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidParameterException(inner) => {
2416 Error::InvalidParameterException(inner)
2417 }
2418 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
2419 Error::ResourceNotFoundException(inner)
2420 }
2421 crate::operation::list_tags_for_resource::ListTagsForResourceError::ServiceUnavailableException(inner) => {
2422 Error::ServiceUnavailableException(inner)
2423 }
2424 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
2425 }
2426 }
2427}
2428impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_log_group::ListTagsLogGroupError, R>> for Error
2429where
2430 R: Send + Sync + std::fmt::Debug + 'static,
2431{
2432 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_log_group::ListTagsLogGroupError, R>) -> Self {
2433 match err {
2434 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2435 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2436 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2437 source: err.into(),
2438 }),
2439 }
2440 }
2441}
2442impl From<crate::operation::list_tags_log_group::ListTagsLogGroupError> for Error {
2443 fn from(err: crate::operation::list_tags_log_group::ListTagsLogGroupError) -> Self {
2444 match err {
2445 crate::operation::list_tags_log_group::ListTagsLogGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2446 crate::operation::list_tags_log_group::ListTagsLogGroupError::ServiceUnavailableException(inner) => {
2447 Error::ServiceUnavailableException(inner)
2448 }
2449 crate::operation::list_tags_log_group::ListTagsLogGroupError::Unhandled(inner) => Error::Unhandled(inner),
2450 }
2451 }
2452}
2453impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_policy::PutAccountPolicyError, R>> for Error
2454where
2455 R: Send + Sync + std::fmt::Debug + 'static,
2456{
2457 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_account_policy::PutAccountPolicyError, R>) -> Self {
2458 match err {
2459 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2460 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2461 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2462 source: err.into(),
2463 }),
2464 }
2465 }
2466}
2467impl From<crate::operation::put_account_policy::PutAccountPolicyError> for Error {
2468 fn from(err: crate::operation::put_account_policy::PutAccountPolicyError) -> Self {
2469 match err {
2470 crate::operation::put_account_policy::PutAccountPolicyError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2471 crate::operation::put_account_policy::PutAccountPolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2472 crate::operation::put_account_policy::PutAccountPolicyError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2473 crate::operation::put_account_policy::PutAccountPolicyError::ServiceUnavailableException(inner) => {
2474 Error::ServiceUnavailableException(inner)
2475 }
2476 crate::operation::put_account_policy::PutAccountPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2477 }
2478 }
2479}
2480impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_data_protection_policy::PutDataProtectionPolicyError, R>>
2481 for Error
2482where
2483 R: Send + Sync + std::fmt::Debug + 'static,
2484{
2485 fn from(
2486 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_data_protection_policy::PutDataProtectionPolicyError, R>,
2487 ) -> Self {
2488 match err {
2489 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2490 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2491 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2492 source: err.into(),
2493 }),
2494 }
2495 }
2496}
2497impl From<crate::operation::put_data_protection_policy::PutDataProtectionPolicyError> for Error {
2498 fn from(err: crate::operation::put_data_protection_policy::PutDataProtectionPolicyError) -> Self {
2499 match err {
2500 crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::InvalidParameterException(inner) => {
2501 Error::InvalidParameterException(inner)
2502 }
2503 crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::LimitExceededException(inner) => {
2504 Error::LimitExceededException(inner)
2505 }
2506 crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::OperationAbortedException(inner) => {
2507 Error::OperationAbortedException(inner)
2508 }
2509 crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::ResourceNotFoundException(inner) => {
2510 Error::ResourceNotFoundException(inner)
2511 }
2512 crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::ServiceUnavailableException(inner) => {
2513 Error::ServiceUnavailableException(inner)
2514 }
2515 crate::operation::put_data_protection_policy::PutDataProtectionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2516 }
2517 }
2518}
2519impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_destination::PutDeliveryDestinationError, R>> for Error
2520where
2521 R: Send + Sync + std::fmt::Debug + 'static,
2522{
2523 fn from(
2524 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_destination::PutDeliveryDestinationError, R>,
2525 ) -> Self {
2526 match err {
2527 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2528 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2529 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2530 source: err.into(),
2531 }),
2532 }
2533 }
2534}
2535impl From<crate::operation::put_delivery_destination::PutDeliveryDestinationError> for Error {
2536 fn from(err: crate::operation::put_delivery_destination::PutDeliveryDestinationError) -> Self {
2537 match err {
2538 crate::operation::put_delivery_destination::PutDeliveryDestinationError::ConflictException(inner) => Error::ConflictException(inner),
2539 crate::operation::put_delivery_destination::PutDeliveryDestinationError::ResourceNotFoundException(inner) => {
2540 Error::ResourceNotFoundException(inner)
2541 }
2542 crate::operation::put_delivery_destination::PutDeliveryDestinationError::ServiceQuotaExceededException(inner) => {
2543 Error::ServiceQuotaExceededException(inner)
2544 }
2545 crate::operation::put_delivery_destination::PutDeliveryDestinationError::ServiceUnavailableException(inner) => {
2546 Error::ServiceUnavailableException(inner)
2547 }
2548 crate::operation::put_delivery_destination::PutDeliveryDestinationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2549 crate::operation::put_delivery_destination::PutDeliveryDestinationError::ValidationException(inner) => Error::ValidationException(inner),
2550 crate::operation::put_delivery_destination::PutDeliveryDestinationError::Unhandled(inner) => Error::Unhandled(inner),
2551 }
2552 }
2553}
2554impl<R>
2555 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError, R>>
2556 for Error
2557where
2558 R: Send + Sync + std::fmt::Debug + 'static,
2559{
2560 fn from(
2561 err: ::aws_smithy_runtime_api::client::result::SdkError<
2562 crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError,
2563 R,
2564 >,
2565 ) -> Self {
2566 match err {
2567 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2568 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2569 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2570 source: err.into(),
2571 }),
2572 }
2573 }
2574}
2575impl From<crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError> for Error {
2576 fn from(err: crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError) -> Self {
2577 match err {
2578 crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::ConflictException(inner) => {
2579 Error::ConflictException(inner)
2580 }
2581 crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::ResourceNotFoundException(inner) => {
2582 Error::ResourceNotFoundException(inner)
2583 }
2584 crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::ServiceUnavailableException(inner) => {
2585 Error::ServiceUnavailableException(inner)
2586 }
2587 crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::ValidationException(inner) => {
2588 Error::ValidationException(inner)
2589 }
2590 crate::operation::put_delivery_destination_policy::PutDeliveryDestinationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2591 }
2592 }
2593}
2594impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_source::PutDeliverySourceError, R>> for Error
2595where
2596 R: Send + Sync + std::fmt::Debug + 'static,
2597{
2598 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_delivery_source::PutDeliverySourceError, R>) -> Self {
2599 match err {
2600 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2601 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2602 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2603 source: err.into(),
2604 }),
2605 }
2606 }
2607}
2608impl From<crate::operation::put_delivery_source::PutDeliverySourceError> for Error {
2609 fn from(err: crate::operation::put_delivery_source::PutDeliverySourceError) -> Self {
2610 match err {
2611 crate::operation::put_delivery_source::PutDeliverySourceError::ConflictException(inner) => Error::ConflictException(inner),
2612 crate::operation::put_delivery_source::PutDeliverySourceError::ResourceNotFoundException(inner) => {
2613 Error::ResourceNotFoundException(inner)
2614 }
2615 crate::operation::put_delivery_source::PutDeliverySourceError::ServiceQuotaExceededException(inner) => {
2616 Error::ServiceQuotaExceededException(inner)
2617 }
2618 crate::operation::put_delivery_source::PutDeliverySourceError::ServiceUnavailableException(inner) => {
2619 Error::ServiceUnavailableException(inner)
2620 }
2621 crate::operation::put_delivery_source::PutDeliverySourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
2622 crate::operation::put_delivery_source::PutDeliverySourceError::ValidationException(inner) => Error::ValidationException(inner),
2623 crate::operation::put_delivery_source::PutDeliverySourceError::Unhandled(inner) => Error::Unhandled(inner),
2624 }
2625 }
2626}
2627impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_destination::PutDestinationError, R>> for Error
2628where
2629 R: Send + Sync + std::fmt::Debug + 'static,
2630{
2631 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_destination::PutDestinationError, R>) -> Self {
2632 match err {
2633 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2634 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2635 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2636 source: err.into(),
2637 }),
2638 }
2639 }
2640}
2641impl From<crate::operation::put_destination::PutDestinationError> for Error {
2642 fn from(err: crate::operation::put_destination::PutDestinationError) -> Self {
2643 match err {
2644 crate::operation::put_destination::PutDestinationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2645 crate::operation::put_destination::PutDestinationError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2646 crate::operation::put_destination::PutDestinationError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2647 crate::operation::put_destination::PutDestinationError::Unhandled(inner) => Error::Unhandled(inner),
2648 }
2649 }
2650}
2651impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_destination_policy::PutDestinationPolicyError, R>> for Error
2652where
2653 R: Send + Sync + std::fmt::Debug + 'static,
2654{
2655 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_destination_policy::PutDestinationPolicyError, R>) -> Self {
2656 match err {
2657 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2658 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2659 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2660 source: err.into(),
2661 }),
2662 }
2663 }
2664}
2665impl From<crate::operation::put_destination_policy::PutDestinationPolicyError> for Error {
2666 fn from(err: crate::operation::put_destination_policy::PutDestinationPolicyError) -> Self {
2667 match err {
2668 crate::operation::put_destination_policy::PutDestinationPolicyError::InvalidParameterException(inner) => {
2669 Error::InvalidParameterException(inner)
2670 }
2671 crate::operation::put_destination_policy::PutDestinationPolicyError::OperationAbortedException(inner) => {
2672 Error::OperationAbortedException(inner)
2673 }
2674 crate::operation::put_destination_policy::PutDestinationPolicyError::ServiceUnavailableException(inner) => {
2675 Error::ServiceUnavailableException(inner)
2676 }
2677 crate::operation::put_destination_policy::PutDestinationPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2678 }
2679 }
2680}
2681impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_index_policy::PutIndexPolicyError, R>> for Error
2682where
2683 R: Send + Sync + std::fmt::Debug + 'static,
2684{
2685 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_index_policy::PutIndexPolicyError, R>) -> Self {
2686 match err {
2687 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2688 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2689 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2690 source: err.into(),
2691 }),
2692 }
2693 }
2694}
2695impl From<crate::operation::put_index_policy::PutIndexPolicyError> for Error {
2696 fn from(err: crate::operation::put_index_policy::PutIndexPolicyError) -> Self {
2697 match err {
2698 crate::operation::put_index_policy::PutIndexPolicyError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2699 crate::operation::put_index_policy::PutIndexPolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2700 crate::operation::put_index_policy::PutIndexPolicyError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2701 crate::operation::put_index_policy::PutIndexPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2702 crate::operation::put_index_policy::PutIndexPolicyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2703 crate::operation::put_index_policy::PutIndexPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2704 }
2705 }
2706}
2707impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_integration::PutIntegrationError, R>> for Error
2708where
2709 R: Send + Sync + std::fmt::Debug + 'static,
2710{
2711 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_integration::PutIntegrationError, R>) -> Self {
2712 match err {
2713 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2714 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2715 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2716 source: err.into(),
2717 }),
2718 }
2719 }
2720}
2721impl From<crate::operation::put_integration::PutIntegrationError> for Error {
2722 fn from(err: crate::operation::put_integration::PutIntegrationError) -> Self {
2723 match err {
2724 crate::operation::put_integration::PutIntegrationError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2725 crate::operation::put_integration::PutIntegrationError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2726 crate::operation::put_integration::PutIntegrationError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2727 crate::operation::put_integration::PutIntegrationError::ValidationException(inner) => Error::ValidationException(inner),
2728 crate::operation::put_integration::PutIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
2729 }
2730 }
2731}
2732impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_log_events::PutLogEventsError, R>> for Error
2733where
2734 R: Send + Sync + std::fmt::Debug + 'static,
2735{
2736 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_log_events::PutLogEventsError, R>) -> 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_log_events::PutLogEventsError> for Error {
2747 fn from(err: crate::operation::put_log_events::PutLogEventsError) -> Self {
2748 match err {
2749 crate::operation::put_log_events::PutLogEventsError::DataAlreadyAcceptedException(inner) => Error::DataAlreadyAcceptedException(inner),
2750 crate::operation::put_log_events::PutLogEventsError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2751 crate::operation::put_log_events::PutLogEventsError::InvalidSequenceTokenException(inner) => Error::InvalidSequenceTokenException(inner),
2752 crate::operation::put_log_events::PutLogEventsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2753 crate::operation::put_log_events::PutLogEventsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
2754 crate::operation::put_log_events::PutLogEventsError::UnrecognizedClientException(inner) => Error::UnrecognizedClientException(inner),
2755 crate::operation::put_log_events::PutLogEventsError::Unhandled(inner) => Error::Unhandled(inner),
2756 }
2757 }
2758}
2759impl<R>
2760 From<
2761 ::aws_smithy_runtime_api::client::result::SdkError<
2762 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError,
2763 R,
2764 >,
2765 > for Error
2766where
2767 R: Send + Sync + std::fmt::Debug + 'static,
2768{
2769 fn from(
2770 err: ::aws_smithy_runtime_api::client::result::SdkError<
2771 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError,
2772 R,
2773 >,
2774 ) -> Self {
2775 match err {
2776 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2777 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2778 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2779 source: err.into(),
2780 }),
2781 }
2782 }
2783}
2784impl From<crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError> for Error {
2785 fn from(err: crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError) -> Self {
2786 match err {
2787 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::AccessDeniedException(inner) => {
2788 Error::AccessDeniedException(inner)
2789 }
2790 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::InvalidOperationException(inner) => {
2791 Error::InvalidOperationException(inner)
2792 }
2793 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::InvalidParameterException(inner) => {
2794 Error::InvalidParameterException(inner)
2795 }
2796 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::OperationAbortedException(inner) => {
2797 Error::OperationAbortedException(inner)
2798 }
2799 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::ResourceNotFoundException(inner) => {
2800 Error::ResourceNotFoundException(inner)
2801 }
2802 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::ServiceUnavailableException(inner) => {
2803 Error::ServiceUnavailableException(inner)
2804 }
2805 crate::operation::put_log_group_deletion_protection::PutLogGroupDeletionProtectionError::Unhandled(inner) => Error::Unhandled(inner),
2806 }
2807 }
2808}
2809impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metric_filter::PutMetricFilterError, R>> for Error
2810where
2811 R: Send + Sync + std::fmt::Debug + 'static,
2812{
2813 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_metric_filter::PutMetricFilterError, R>) -> Self {
2814 match err {
2815 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2816 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2817 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2818 source: err.into(),
2819 }),
2820 }
2821 }
2822}
2823impl From<crate::operation::put_metric_filter::PutMetricFilterError> for Error {
2824 fn from(err: crate::operation::put_metric_filter::PutMetricFilterError) -> Self {
2825 match err {
2826 crate::operation::put_metric_filter::PutMetricFilterError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
2827 crate::operation::put_metric_filter::PutMetricFilterError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2828 crate::operation::put_metric_filter::PutMetricFilterError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2829 crate::operation::put_metric_filter::PutMetricFilterError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2830 crate::operation::put_metric_filter::PutMetricFilterError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2831 crate::operation::put_metric_filter::PutMetricFilterError::ServiceUnavailableException(inner) => {
2832 Error::ServiceUnavailableException(inner)
2833 }
2834 crate::operation::put_metric_filter::PutMetricFilterError::Unhandled(inner) => Error::Unhandled(inner),
2835 }
2836 }
2837}
2838impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_query_definition::PutQueryDefinitionError, R>> for Error
2839where
2840 R: Send + Sync + std::fmt::Debug + 'static,
2841{
2842 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_query_definition::PutQueryDefinitionError, R>) -> Self {
2843 match err {
2844 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2845 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2846 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2847 source: err.into(),
2848 }),
2849 }
2850 }
2851}
2852impl From<crate::operation::put_query_definition::PutQueryDefinitionError> for Error {
2853 fn from(err: crate::operation::put_query_definition::PutQueryDefinitionError) -> Self {
2854 match err {
2855 crate::operation::put_query_definition::PutQueryDefinitionError::InvalidParameterException(inner) => {
2856 Error::InvalidParameterException(inner)
2857 }
2858 crate::operation::put_query_definition::PutQueryDefinitionError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2859 crate::operation::put_query_definition::PutQueryDefinitionError::ResourceNotFoundException(inner) => {
2860 Error::ResourceNotFoundException(inner)
2861 }
2862 crate::operation::put_query_definition::PutQueryDefinitionError::ServiceUnavailableException(inner) => {
2863 Error::ServiceUnavailableException(inner)
2864 }
2865 crate::operation::put_query_definition::PutQueryDefinitionError::Unhandled(inner) => Error::Unhandled(inner),
2866 }
2867 }
2868}
2869impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
2870where
2871 R: Send + Sync + std::fmt::Debug + 'static,
2872{
2873 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
2874 match err {
2875 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2876 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2877 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2878 source: err.into(),
2879 }),
2880 }
2881 }
2882}
2883impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
2884 fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
2885 match err {
2886 crate::operation::put_resource_policy::PutResourcePolicyError::InvalidParameterException(inner) => {
2887 Error::InvalidParameterException(inner)
2888 }
2889 crate::operation::put_resource_policy::PutResourcePolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2890 crate::operation::put_resource_policy::PutResourcePolicyError::OperationAbortedException(inner) => {
2891 Error::OperationAbortedException(inner)
2892 }
2893 crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
2894 Error::ResourceNotFoundException(inner)
2895 }
2896 crate::operation::put_resource_policy::PutResourcePolicyError::ServiceUnavailableException(inner) => {
2897 Error::ServiceUnavailableException(inner)
2898 }
2899 crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2900 }
2901 }
2902}
2903impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_retention_policy::PutRetentionPolicyError, R>> for Error
2904where
2905 R: Send + Sync + std::fmt::Debug + 'static,
2906{
2907 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_retention_policy::PutRetentionPolicyError, R>) -> Self {
2908 match err {
2909 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2910 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2911 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2912 source: err.into(),
2913 }),
2914 }
2915 }
2916}
2917impl From<crate::operation::put_retention_policy::PutRetentionPolicyError> for Error {
2918 fn from(err: crate::operation::put_retention_policy::PutRetentionPolicyError) -> Self {
2919 match err {
2920 crate::operation::put_retention_policy::PutRetentionPolicyError::InvalidParameterException(inner) => {
2921 Error::InvalidParameterException(inner)
2922 }
2923 crate::operation::put_retention_policy::PutRetentionPolicyError::OperationAbortedException(inner) => {
2924 Error::OperationAbortedException(inner)
2925 }
2926 crate::operation::put_retention_policy::PutRetentionPolicyError::ResourceNotFoundException(inner) => {
2927 Error::ResourceNotFoundException(inner)
2928 }
2929 crate::operation::put_retention_policy::PutRetentionPolicyError::ServiceUnavailableException(inner) => {
2930 Error::ServiceUnavailableException(inner)
2931 }
2932 crate::operation::put_retention_policy::PutRetentionPolicyError::Unhandled(inner) => Error::Unhandled(inner),
2933 }
2934 }
2935}
2936impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_subscription_filter::PutSubscriptionFilterError, R>> for Error
2937where
2938 R: Send + Sync + std::fmt::Debug + 'static,
2939{
2940 fn from(
2941 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_subscription_filter::PutSubscriptionFilterError, R>,
2942 ) -> Self {
2943 match err {
2944 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2945 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2946 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2947 source: err.into(),
2948 }),
2949 }
2950 }
2951}
2952impl From<crate::operation::put_subscription_filter::PutSubscriptionFilterError> for Error {
2953 fn from(err: crate::operation::put_subscription_filter::PutSubscriptionFilterError) -> Self {
2954 match err {
2955 crate::operation::put_subscription_filter::PutSubscriptionFilterError::InvalidOperationException(inner) => {
2956 Error::InvalidOperationException(inner)
2957 }
2958 crate::operation::put_subscription_filter::PutSubscriptionFilterError::InvalidParameterException(inner) => {
2959 Error::InvalidParameterException(inner)
2960 }
2961 crate::operation::put_subscription_filter::PutSubscriptionFilterError::LimitExceededException(inner) => {
2962 Error::LimitExceededException(inner)
2963 }
2964 crate::operation::put_subscription_filter::PutSubscriptionFilterError::OperationAbortedException(inner) => {
2965 Error::OperationAbortedException(inner)
2966 }
2967 crate::operation::put_subscription_filter::PutSubscriptionFilterError::ResourceNotFoundException(inner) => {
2968 Error::ResourceNotFoundException(inner)
2969 }
2970 crate::operation::put_subscription_filter::PutSubscriptionFilterError::ServiceUnavailableException(inner) => {
2971 Error::ServiceUnavailableException(inner)
2972 }
2973 crate::operation::put_subscription_filter::PutSubscriptionFilterError::Unhandled(inner) => Error::Unhandled(inner),
2974 }
2975 }
2976}
2977impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_transformer::PutTransformerError, R>> for Error
2978where
2979 R: Send + Sync + std::fmt::Debug + 'static,
2980{
2981 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_transformer::PutTransformerError, R>) -> Self {
2982 match err {
2983 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2984 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2985 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2986 source: err.into(),
2987 }),
2988 }
2989 }
2990}
2991impl From<crate::operation::put_transformer::PutTransformerError> for Error {
2992 fn from(err: crate::operation::put_transformer::PutTransformerError) -> Self {
2993 match err {
2994 crate::operation::put_transformer::PutTransformerError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
2995 crate::operation::put_transformer::PutTransformerError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
2996 crate::operation::put_transformer::PutTransformerError::LimitExceededException(inner) => Error::LimitExceededException(inner),
2997 crate::operation::put_transformer::PutTransformerError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
2998 crate::operation::put_transformer::PutTransformerError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2999 crate::operation::put_transformer::PutTransformerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3000 crate::operation::put_transformer::PutTransformerError::Unhandled(inner) => Error::Unhandled(inner),
3001 }
3002 }
3003}
3004impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_live_tail::StartLiveTailError, R>> for Error
3005where
3006 R: Send + Sync + std::fmt::Debug + 'static,
3007{
3008 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_live_tail::StartLiveTailError, R>) -> Self {
3009 match err {
3010 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3011 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3012 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3013 source: err.into(),
3014 }),
3015 }
3016 }
3017}
3018impl From<crate::operation::start_live_tail::StartLiveTailError> for Error {
3019 fn from(err: crate::operation::start_live_tail::StartLiveTailError) -> Self {
3020 match err {
3021 crate::operation::start_live_tail::StartLiveTailError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3022 crate::operation::start_live_tail::StartLiveTailError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
3023 crate::operation::start_live_tail::StartLiveTailError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3024 crate::operation::start_live_tail::StartLiveTailError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3025 crate::operation::start_live_tail::StartLiveTailError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3026 crate::operation::start_live_tail::StartLiveTailError::SessionTimeoutException(inner) => Error::SessionTimeoutException(inner),
3027 crate::operation::start_live_tail::StartLiveTailError::SessionStreamingException(inner) => Error::SessionStreamingException(inner),
3028 crate::operation::start_live_tail::StartLiveTailError::Unhandled(inner) => Error::Unhandled(inner),
3029 }
3030 }
3031}
3032impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_query::StartQueryError, R>> for Error
3033where
3034 R: Send + Sync + std::fmt::Debug + 'static,
3035{
3036 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_query::StartQueryError, R>) -> Self {
3037 match err {
3038 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3039 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3040 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3041 source: err.into(),
3042 }),
3043 }
3044 }
3045}
3046impl From<crate::operation::start_query::StartQueryError> for Error {
3047 fn from(err: crate::operation::start_query::StartQueryError) -> Self {
3048 match err {
3049 crate::operation::start_query::StartQueryError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3050 crate::operation::start_query::StartQueryError::LimitExceededException(inner) => Error::LimitExceededException(inner),
3051 crate::operation::start_query::StartQueryError::MalformedQueryException(inner) => Error::MalformedQueryException(inner),
3052 crate::operation::start_query::StartQueryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3053 crate::operation::start_query::StartQueryError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3054 crate::operation::start_query::StartQueryError::Unhandled(inner) => Error::Unhandled(inner),
3055 }
3056 }
3057}
3058impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_query::StopQueryError, R>> for Error
3059where
3060 R: Send + Sync + std::fmt::Debug + 'static,
3061{
3062 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_query::StopQueryError, R>) -> Self {
3063 match err {
3064 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3065 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3066 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3067 source: err.into(),
3068 }),
3069 }
3070 }
3071}
3072impl From<crate::operation::stop_query::StopQueryError> for Error {
3073 fn from(err: crate::operation::stop_query::StopQueryError) -> Self {
3074 match err {
3075 crate::operation::stop_query::StopQueryError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3076 crate::operation::stop_query::StopQueryError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3077 crate::operation::stop_query::StopQueryError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3078 crate::operation::stop_query::StopQueryError::Unhandled(inner) => Error::Unhandled(inner),
3079 }
3080 }
3081}
3082impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_log_group::TagLogGroupError, R>> for Error
3083where
3084 R: Send + Sync + std::fmt::Debug + 'static,
3085{
3086 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_log_group::TagLogGroupError, R>) -> Self {
3087 match err {
3088 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3089 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3090 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3091 source: err.into(),
3092 }),
3093 }
3094 }
3095}
3096impl From<crate::operation::tag_log_group::TagLogGroupError> for Error {
3097 fn from(err: crate::operation::tag_log_group::TagLogGroupError) -> Self {
3098 match err {
3099 crate::operation::tag_log_group::TagLogGroupError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3100 crate::operation::tag_log_group::TagLogGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3101 crate::operation::tag_log_group::TagLogGroupError::Unhandled(inner) => Error::Unhandled(inner),
3102 }
3103 }
3104}
3105impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
3106where
3107 R: Send + Sync + std::fmt::Debug + 'static,
3108{
3109 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
3110 match err {
3111 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3112 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3113 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3114 source: err.into(),
3115 }),
3116 }
3117 }
3118}
3119impl From<crate::operation::tag_resource::TagResourceError> for Error {
3120 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
3121 match err {
3122 crate::operation::tag_resource::TagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3123 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3124 crate::operation::tag_resource::TagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3125 crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
3126 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3127 }
3128 }
3129}
3130impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_metric_filter::TestMetricFilterError, R>> for Error
3131where
3132 R: Send + Sync + std::fmt::Debug + 'static,
3133{
3134 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_metric_filter::TestMetricFilterError, R>) -> Self {
3135 match err {
3136 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3137 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3138 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3139 source: err.into(),
3140 }),
3141 }
3142 }
3143}
3144impl From<crate::operation::test_metric_filter::TestMetricFilterError> for Error {
3145 fn from(err: crate::operation::test_metric_filter::TestMetricFilterError) -> Self {
3146 match err {
3147 crate::operation::test_metric_filter::TestMetricFilterError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3148 crate::operation::test_metric_filter::TestMetricFilterError::ServiceUnavailableException(inner) => {
3149 Error::ServiceUnavailableException(inner)
3150 }
3151 crate::operation::test_metric_filter::TestMetricFilterError::Unhandled(inner) => Error::Unhandled(inner),
3152 }
3153 }
3154}
3155impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_transformer::TestTransformerError, R>> for Error
3156where
3157 R: Send + Sync + std::fmt::Debug + 'static,
3158{
3159 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::test_transformer::TestTransformerError, R>) -> Self {
3160 match err {
3161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3164 source: err.into(),
3165 }),
3166 }
3167 }
3168}
3169impl From<crate::operation::test_transformer::TestTransformerError> for Error {
3170 fn from(err: crate::operation::test_transformer::TestTransformerError) -> Self {
3171 match err {
3172 crate::operation::test_transformer::TestTransformerError::InvalidOperationException(inner) => Error::InvalidOperationException(inner),
3173 crate::operation::test_transformer::TestTransformerError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3174 crate::operation::test_transformer::TestTransformerError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3175 crate::operation::test_transformer::TestTransformerError::Unhandled(inner) => Error::Unhandled(inner),
3176 }
3177 }
3178}
3179impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_log_group::UntagLogGroupError, R>> for Error
3180where
3181 R: Send + Sync + std::fmt::Debug + 'static,
3182{
3183 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_log_group::UntagLogGroupError, R>) -> Self {
3184 match err {
3185 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3186 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3187 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3188 source: err.into(),
3189 }),
3190 }
3191 }
3192}
3193impl From<crate::operation::untag_log_group::UntagLogGroupError> for Error {
3194 fn from(err: crate::operation::untag_log_group::UntagLogGroupError) -> Self {
3195 match err {
3196 crate::operation::untag_log_group::UntagLogGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3197 crate::operation::untag_log_group::UntagLogGroupError::Unhandled(inner) => Error::Unhandled(inner),
3198 }
3199 }
3200}
3201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
3202where
3203 R: Send + Sync + std::fmt::Debug + 'static,
3204{
3205 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
3206 match err {
3207 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3208 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3209 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3210 source: err.into(),
3211 }),
3212 }
3213 }
3214}
3215impl From<crate::operation::untag_resource::UntagResourceError> for Error {
3216 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
3217 match err {
3218 crate::operation::untag_resource::UntagResourceError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3219 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3220 crate::operation::untag_resource::UntagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3221 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
3222 }
3223 }
3224}
3225impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_anomaly::UpdateAnomalyError, R>> for Error
3226where
3227 R: Send + Sync + std::fmt::Debug + 'static,
3228{
3229 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_anomaly::UpdateAnomalyError, R>) -> Self {
3230 match err {
3231 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3232 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3233 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3234 source: err.into(),
3235 }),
3236 }
3237 }
3238}
3239impl From<crate::operation::update_anomaly::UpdateAnomalyError> for Error {
3240 fn from(err: crate::operation::update_anomaly::UpdateAnomalyError) -> Self {
3241 match err {
3242 crate::operation::update_anomaly::UpdateAnomalyError::InvalidParameterException(inner) => Error::InvalidParameterException(inner),
3243 crate::operation::update_anomaly::UpdateAnomalyError::OperationAbortedException(inner) => Error::OperationAbortedException(inner),
3244 crate::operation::update_anomaly::UpdateAnomalyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
3245 crate::operation::update_anomaly::UpdateAnomalyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
3246 crate::operation::update_anomaly::UpdateAnomalyError::Unhandled(inner) => Error::Unhandled(inner),
3247 }
3248 }
3249}
3250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError, R>>
3251 for Error
3252where
3253 R: Send + Sync + std::fmt::Debug + 'static,
3254{
3255 fn from(
3256 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError, R>,
3257 ) -> Self {
3258 match err {
3259 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3260 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3261 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3262 source: err.into(),
3263 }),
3264 }
3265 }
3266}
3267impl From<crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError> for Error {
3268 fn from(err: crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError) -> Self {
3269 match err {
3270 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::AccessDeniedException(inner) => {
3271 Error::AccessDeniedException(inner)
3272 }
3273 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ConflictException(inner) => {
3274 Error::ConflictException(inner)
3275 }
3276 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ResourceNotFoundException(inner) => {
3277 Error::ResourceNotFoundException(inner)
3278 }
3279 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ServiceUnavailableException(inner) => {
3280 Error::ServiceUnavailableException(inner)
3281 }
3282 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ThrottlingException(inner) => {
3283 Error::ThrottlingException(inner)
3284 }
3285 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::ValidationException(inner) => {
3286 Error::ValidationException(inner)
3287 }
3288 crate::operation::update_delivery_configuration::UpdateDeliveryConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
3289 }
3290 }
3291}
3292impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError, R>>
3293 for Error
3294where
3295 R: Send + Sync + std::fmt::Debug + 'static,
3296{
3297 fn from(
3298 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError, R>,
3299 ) -> 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::update_log_anomaly_detector::UpdateLogAnomalyDetectorError> for Error {
3310 fn from(err: crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError) -> Self {
3311 match err {
3312 crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::InvalidParameterException(inner) => {
3313 Error::InvalidParameterException(inner)
3314 }
3315 crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::OperationAbortedException(inner) => {
3316 Error::OperationAbortedException(inner)
3317 }
3318 crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::ResourceNotFoundException(inner) => {
3319 Error::ResourceNotFoundException(inner)
3320 }
3321 crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::ServiceUnavailableException(inner) => {
3322 Error::ServiceUnavailableException(inner)
3323 }
3324 crate::operation::update_log_anomaly_detector::UpdateLogAnomalyDetectorError::Unhandled(inner) => Error::Unhandled(inner),
3325 }
3326 }
3327}
3328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scheduled_query::UpdateScheduledQueryError, R>> for Error
3329where
3330 R: Send + Sync + std::fmt::Debug + 'static,
3331{
3332 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scheduled_query::UpdateScheduledQueryError, R>) -> Self {
3333 match err {
3334 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3335 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3336 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3337 source: err.into(),
3338 }),
3339 }
3340 }
3341}
3342impl From<crate::operation::update_scheduled_query::UpdateScheduledQueryError> for Error {
3343 fn from(err: crate::operation::update_scheduled_query::UpdateScheduledQueryError) -> Self {
3344 match err {
3345 crate::operation::update_scheduled_query::UpdateScheduledQueryError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
3346 crate::operation::update_scheduled_query::UpdateScheduledQueryError::InternalServerException(inner) => {
3347 Error::InternalServerException(inner)
3348 }
3349 crate::operation::update_scheduled_query::UpdateScheduledQueryError::ResourceNotFoundException(inner) => {
3350 Error::ResourceNotFoundException(inner)
3351 }
3352 crate::operation::update_scheduled_query::UpdateScheduledQueryError::ThrottlingException(inner) => Error::ThrottlingException(inner),
3353 crate::operation::update_scheduled_query::UpdateScheduledQueryError::ValidationException(inner) => Error::ValidationException(inner),
3354 crate::operation::update_scheduled_query::UpdateScheduledQueryError::Unhandled(inner) => Error::Unhandled(inner),
3355 }
3356 }
3357}
3358impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::GetLogObjectResponseStreamError, R>> for Error
3359where
3360 R: Send + Sync + std::fmt::Debug + 'static,
3361{
3362 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::GetLogObjectResponseStreamError, R>) -> Self {
3363 match err {
3364 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3365 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3366 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3367 source: err.into(),
3368 }),
3369 }
3370 }
3371}
3372impl From<crate::types::error::GetLogObjectResponseStreamError> for Error {
3373 fn from(err: crate::types::error::GetLogObjectResponseStreamError) -> Self {
3374 match err {
3375 crate::types::error::GetLogObjectResponseStreamError::InternalStreamingException(inner) => Error::InternalStreamingException(inner),
3376 crate::types::error::GetLogObjectResponseStreamError::Unhandled(inner) => Error::Unhandled(inner),
3377 }
3378 }
3379}
3380impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::StartLiveTailResponseStreamError, R>> for Error
3381where
3382 R: Send + Sync + std::fmt::Debug + 'static,
3383{
3384 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::StartLiveTailResponseStreamError, R>) -> Self {
3385 match err {
3386 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3387 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3388 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3389 source: err.into(),
3390 }),
3391 }
3392 }
3393}
3394impl From<crate::types::error::StartLiveTailResponseStreamError> for Error {
3395 fn from(err: crate::types::error::StartLiveTailResponseStreamError) -> Self {
3396 match err {
3397 crate::types::error::StartLiveTailResponseStreamError::SessionTimeoutException(inner) => Error::SessionTimeoutException(inner),
3398 crate::types::error::StartLiveTailResponseStreamError::SessionStreamingException(inner) => Error::SessionStreamingException(inner),
3399 crate::types::error::StartLiveTailResponseStreamError::Unhandled(inner) => Error::Unhandled(inner),
3400 }
3401 }
3402}
3403impl ::std::error::Error for Error {
3404 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
3405 match self {
3406 Error::AccessDeniedException(inner) => inner.source(),
3407 Error::ConflictException(inner) => inner.source(),
3408 Error::DataAlreadyAcceptedException(inner) => inner.source(),
3409 Error::InternalServerException(inner) => inner.source(),
3410 Error::InternalStreamingException(inner) => inner.source(),
3411 Error::InvalidOperationException(inner) => inner.source(),
3412 Error::InvalidParameterException(inner) => inner.source(),
3413 Error::InvalidSequenceTokenException(inner) => inner.source(),
3414 Error::LimitExceededException(inner) => inner.source(),
3415 Error::MalformedQueryException(inner) => inner.source(),
3416 Error::OperationAbortedException(inner) => inner.source(),
3417 Error::ResourceAlreadyExistsException(inner) => inner.source(),
3418 Error::ResourceNotFoundException(inner) => inner.source(),
3419 Error::ServiceQuotaExceededException(inner) => inner.source(),
3420 Error::ServiceUnavailableException(inner) => inner.source(),
3421 Error::SessionStreamingException(inner) => inner.source(),
3422 Error::SessionTimeoutException(inner) => inner.source(),
3423 Error::ThrottlingException(inner) => inner.source(),
3424 Error::TooManyTagsException(inner) => inner.source(),
3425 Error::UnrecognizedClientException(inner) => inner.source(),
3426 Error::ValidationException(inner) => inner.source(),
3427 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
3428 }
3429 }
3430}
3431impl ::aws_types::request_id::RequestId for Error {
3432 fn request_id(&self) -> Option<&str> {
3433 match self {
3434 Self::AccessDeniedException(e) => e.request_id(),
3435 Self::ConflictException(e) => e.request_id(),
3436 Self::DataAlreadyAcceptedException(e) => e.request_id(),
3437 Self::InternalServerException(e) => e.request_id(),
3438 Self::InternalStreamingException(e) => e.request_id(),
3439 Self::InvalidOperationException(e) => e.request_id(),
3440 Self::InvalidParameterException(e) => e.request_id(),
3441 Self::InvalidSequenceTokenException(e) => e.request_id(),
3442 Self::LimitExceededException(e) => e.request_id(),
3443 Self::MalformedQueryException(e) => e.request_id(),
3444 Self::OperationAbortedException(e) => e.request_id(),
3445 Self::ResourceAlreadyExistsException(e) => e.request_id(),
3446 Self::ResourceNotFoundException(e) => e.request_id(),
3447 Self::ServiceQuotaExceededException(e) => e.request_id(),
3448 Self::ServiceUnavailableException(e) => e.request_id(),
3449 Self::SessionStreamingException(e) => e.request_id(),
3450 Self::SessionTimeoutException(e) => e.request_id(),
3451 Self::ThrottlingException(e) => e.request_id(),
3452 Self::TooManyTagsException(e) => e.request_id(),
3453 Self::UnrecognizedClientException(e) => e.request_id(),
3454 Self::ValidationException(e) => e.request_id(),
3455 Self::Unhandled(e) => e.meta.request_id(),
3456 }
3457 }
3458}