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