aws_sdk_firehose/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>Another modification has already happened. Fetch <code>VersionId</code> again and use it to update the destination.</p>
7    ConcurrentModificationException(crate::types::error::ConcurrentModificationException),
8    /// <p>The specified input parameter has a value that is not valid.</p>
9    InvalidArgumentException(crate::types::error::InvalidArgumentException),
10    /// <p>Firehose throws this exception when an attempt to put records or to start or stop Firehose stream encryption fails. This happens when the KMS service throws one of the following exception types: <code>AccessDeniedException</code>, <code>InvalidStateException</code>, <code>DisabledException</code>, or <code>NotFoundException</code>.</p>
11    InvalidKmsResourceException(crate::types::error::InvalidKmsResourceException),
12    /// <p>Only requests from CloudWatch Logs are supported when CloudWatch Logs decompression is enabled.</p>
13    InvalidSourceException(crate::types::error::InvalidSourceException),
14    /// <p>You have already reached the limit for a requested resource.</p>
15    LimitExceededException(crate::types::error::LimitExceededException),
16    /// <p>The resource is already in use and not available for this operation.</p>
17    ResourceInUseException(crate::types::error::ResourceInUseException),
18    /// <p>The specified resource could not be found.</p>
19    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
20    /// <p>The service is unavailable. Back off and retry the operation. If you continue to see the exception, throughput limits for the Firehose stream may have been exceeded. For more information about limits and how to request an increase, see <a href="https://docs.aws.amazon.com/firehose/latest/dev/limits.html">Amazon Firehose Limits</a>.</p>
21    ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
22    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
23    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
24    variable wildcard pattern and check `.code()`:
25     \
26    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
27     \
28    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
29    Unhandled(crate::error::sealed_unhandled::Unhandled),
30}
31impl ::std::fmt::Display for Error {
32    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33        match self {
34            Error::ConcurrentModificationException(inner) => inner.fmt(f),
35            Error::InvalidArgumentException(inner) => inner.fmt(f),
36            Error::InvalidKmsResourceException(inner) => inner.fmt(f),
37            Error::InvalidSourceException(inner) => inner.fmt(f),
38            Error::LimitExceededException(inner) => inner.fmt(f),
39            Error::ResourceInUseException(inner) => inner.fmt(f),
40            Error::ResourceNotFoundException(inner) => inner.fmt(f),
41            Error::ServiceUnavailableException(inner) => inner.fmt(f),
42            Error::Unhandled(_) => {
43                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
44                    write!(f, "unhandled error ({code})")
45                } else {
46                    f.write_str("unhandled error")
47                }
48            }
49        }
50    }
51}
52impl From<::aws_smithy_types::error::operation::BuildError> for Error {
53    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
54        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
55            source: value.into(),
56            meta: ::std::default::Default::default(),
57        })
58    }
59}
60impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
61    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
62        match self {
63            Self::ConcurrentModificationException(inner) => inner.meta(),
64            Self::InvalidArgumentException(inner) => inner.meta(),
65            Self::InvalidKmsResourceException(inner) => inner.meta(),
66            Self::InvalidSourceException(inner) => inner.meta(),
67            Self::LimitExceededException(inner) => inner.meta(),
68            Self::ResourceInUseException(inner) => inner.meta(),
69            Self::ResourceNotFoundException(inner) => inner.meta(),
70            Self::ServiceUnavailableException(inner) => inner.meta(),
71            Self::Unhandled(inner) => &inner.meta,
72        }
73    }
74}
75impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_delivery_stream::CreateDeliveryStreamError, R>> for Error
76where
77    R: Send + Sync + std::fmt::Debug + 'static,
78{
79    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_delivery_stream::CreateDeliveryStreamError, R>) -> Self {
80        match err {
81            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
82            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
83                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
84                source: err.into(),
85            }),
86        }
87    }
88}
89impl From<crate::operation::create_delivery_stream::CreateDeliveryStreamError> for Error {
90    fn from(err: crate::operation::create_delivery_stream::CreateDeliveryStreamError) -> Self {
91        match err {
92            crate::operation::create_delivery_stream::CreateDeliveryStreamError::InvalidArgumentException(inner) => {
93                Error::InvalidArgumentException(inner)
94            }
95            crate::operation::create_delivery_stream::CreateDeliveryStreamError::InvalidKmsResourceException(inner) => {
96                Error::InvalidKmsResourceException(inner)
97            }
98            crate::operation::create_delivery_stream::CreateDeliveryStreamError::LimitExceededException(inner) => {
99                Error::LimitExceededException(inner)
100            }
101            crate::operation::create_delivery_stream::CreateDeliveryStreamError::ResourceInUseException(inner) => {
102                Error::ResourceInUseException(inner)
103            }
104            crate::operation::create_delivery_stream::CreateDeliveryStreamError::Unhandled(inner) => Error::Unhandled(inner),
105        }
106    }
107}
108impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery_stream::DeleteDeliveryStreamError, R>> for Error
109where
110    R: Send + Sync + std::fmt::Debug + 'static,
111{
112    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_delivery_stream::DeleteDeliveryStreamError, R>) -> Self {
113        match err {
114            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
115            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
116                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
117                source: err.into(),
118            }),
119        }
120    }
121}
122impl From<crate::operation::delete_delivery_stream::DeleteDeliveryStreamError> for Error {
123    fn from(err: crate::operation::delete_delivery_stream::DeleteDeliveryStreamError) -> Self {
124        match err {
125            crate::operation::delete_delivery_stream::DeleteDeliveryStreamError::ResourceInUseException(inner) => {
126                Error::ResourceInUseException(inner)
127            }
128            crate::operation::delete_delivery_stream::DeleteDeliveryStreamError::ResourceNotFoundException(inner) => {
129                Error::ResourceNotFoundException(inner)
130            }
131            crate::operation::delete_delivery_stream::DeleteDeliveryStreamError::Unhandled(inner) => Error::Unhandled(inner),
132        }
133    }
134}
135impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_stream::DescribeDeliveryStreamError, R>> for Error
136where
137    R: Send + Sync + std::fmt::Debug + 'static,
138{
139    fn from(
140        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_delivery_stream::DescribeDeliveryStreamError, R>,
141    ) -> Self {
142        match err {
143            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
144            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
145                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
146                source: err.into(),
147            }),
148        }
149    }
150}
151impl From<crate::operation::describe_delivery_stream::DescribeDeliveryStreamError> for Error {
152    fn from(err: crate::operation::describe_delivery_stream::DescribeDeliveryStreamError) -> Self {
153        match err {
154            crate::operation::describe_delivery_stream::DescribeDeliveryStreamError::ResourceNotFoundException(inner) => {
155                Error::ResourceNotFoundException(inner)
156            }
157            crate::operation::describe_delivery_stream::DescribeDeliveryStreamError::Unhandled(inner) => Error::Unhandled(inner),
158        }
159    }
160}
161impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_delivery_streams::ListDeliveryStreamsError, R>> for Error
162where
163    R: Send + Sync + std::fmt::Debug + 'static,
164{
165    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_delivery_streams::ListDeliveryStreamsError, R>) -> Self {
166        match err {
167            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
168            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
169                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
170                source: err.into(),
171            }),
172        }
173    }
174}
175impl From<crate::operation::list_delivery_streams::ListDeliveryStreamsError> for Error {
176    fn from(err: crate::operation::list_delivery_streams::ListDeliveryStreamsError) -> Self {
177        match err {
178            crate::operation::list_delivery_streams::ListDeliveryStreamsError::Unhandled(inner) => Error::Unhandled(inner),
179        }
180    }
181}
182impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_delivery_stream::ListTagsForDeliveryStreamError, R>>
183    for Error
184where
185    R: Send + Sync + std::fmt::Debug + 'static,
186{
187    fn from(
188        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_delivery_stream::ListTagsForDeliveryStreamError, R>,
189    ) -> Self {
190        match err {
191            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
192            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
193                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
194                source: err.into(),
195            }),
196        }
197    }
198}
199impl From<crate::operation::list_tags_for_delivery_stream::ListTagsForDeliveryStreamError> for Error {
200    fn from(err: crate::operation::list_tags_for_delivery_stream::ListTagsForDeliveryStreamError) -> Self {
201        match err {
202            crate::operation::list_tags_for_delivery_stream::ListTagsForDeliveryStreamError::InvalidArgumentException(inner) => {
203                Error::InvalidArgumentException(inner)
204            }
205            crate::operation::list_tags_for_delivery_stream::ListTagsForDeliveryStreamError::LimitExceededException(inner) => {
206                Error::LimitExceededException(inner)
207            }
208            crate::operation::list_tags_for_delivery_stream::ListTagsForDeliveryStreamError::ResourceNotFoundException(inner) => {
209                Error::ResourceNotFoundException(inner)
210            }
211            crate::operation::list_tags_for_delivery_stream::ListTagsForDeliveryStreamError::Unhandled(inner) => Error::Unhandled(inner),
212        }
213    }
214}
215impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_record::PutRecordError, R>> for Error
216where
217    R: Send + Sync + std::fmt::Debug + 'static,
218{
219    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_record::PutRecordError, R>) -> Self {
220        match err {
221            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
222            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
223                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
224                source: err.into(),
225            }),
226        }
227    }
228}
229impl From<crate::operation::put_record::PutRecordError> for Error {
230    fn from(err: crate::operation::put_record::PutRecordError) -> Self {
231        match err {
232            crate::operation::put_record::PutRecordError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
233            crate::operation::put_record::PutRecordError::InvalidKmsResourceException(inner) => Error::InvalidKmsResourceException(inner),
234            crate::operation::put_record::PutRecordError::InvalidSourceException(inner) => Error::InvalidSourceException(inner),
235            crate::operation::put_record::PutRecordError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
236            crate::operation::put_record::PutRecordError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
237            crate::operation::put_record::PutRecordError::Unhandled(inner) => Error::Unhandled(inner),
238        }
239    }
240}
241impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_record_batch::PutRecordBatchError, R>> for Error
242where
243    R: Send + Sync + std::fmt::Debug + 'static,
244{
245    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_record_batch::PutRecordBatchError, R>) -> Self {
246        match err {
247            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
248            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
249                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
250                source: err.into(),
251            }),
252        }
253    }
254}
255impl From<crate::operation::put_record_batch::PutRecordBatchError> for Error {
256    fn from(err: crate::operation::put_record_batch::PutRecordBatchError) -> Self {
257        match err {
258            crate::operation::put_record_batch::PutRecordBatchError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
259            crate::operation::put_record_batch::PutRecordBatchError::InvalidKmsResourceException(inner) => Error::InvalidKmsResourceException(inner),
260            crate::operation::put_record_batch::PutRecordBatchError::InvalidSourceException(inner) => Error::InvalidSourceException(inner),
261            crate::operation::put_record_batch::PutRecordBatchError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
262            crate::operation::put_record_batch::PutRecordBatchError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
263            crate::operation::put_record_batch::PutRecordBatchError::Unhandled(inner) => Error::Unhandled(inner),
264        }
265    }
266}
267impl<R>
268    From<
269        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_delivery_stream_encryption::StartDeliveryStreamEncryptionError, R>,
270    > for Error
271where
272    R: Send + Sync + std::fmt::Debug + 'static,
273{
274    fn from(
275        err: ::aws_smithy_runtime_api::client::result::SdkError<
276            crate::operation::start_delivery_stream_encryption::StartDeliveryStreamEncryptionError,
277            R,
278        >,
279    ) -> Self {
280        match err {
281            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
282            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
283                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
284                source: err.into(),
285            }),
286        }
287    }
288}
289impl From<crate::operation::start_delivery_stream_encryption::StartDeliveryStreamEncryptionError> for Error {
290    fn from(err: crate::operation::start_delivery_stream_encryption::StartDeliveryStreamEncryptionError) -> Self {
291        match err {
292            crate::operation::start_delivery_stream_encryption::StartDeliveryStreamEncryptionError::InvalidArgumentException(inner) => {
293                Error::InvalidArgumentException(inner)
294            }
295            crate::operation::start_delivery_stream_encryption::StartDeliveryStreamEncryptionError::InvalidKmsResourceException(inner) => {
296                Error::InvalidKmsResourceException(inner)
297            }
298            crate::operation::start_delivery_stream_encryption::StartDeliveryStreamEncryptionError::LimitExceededException(inner) => {
299                Error::LimitExceededException(inner)
300            }
301            crate::operation::start_delivery_stream_encryption::StartDeliveryStreamEncryptionError::ResourceInUseException(inner) => {
302                Error::ResourceInUseException(inner)
303            }
304            crate::operation::start_delivery_stream_encryption::StartDeliveryStreamEncryptionError::ResourceNotFoundException(inner) => {
305                Error::ResourceNotFoundException(inner)
306            }
307            crate::operation::start_delivery_stream_encryption::StartDeliveryStreamEncryptionError::Unhandled(inner) => Error::Unhandled(inner),
308        }
309    }
310}
311impl<R>
312    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_delivery_stream_encryption::StopDeliveryStreamEncryptionError, R>>
313    for Error
314where
315    R: Send + Sync + std::fmt::Debug + 'static,
316{
317    fn from(
318        err: ::aws_smithy_runtime_api::client::result::SdkError<
319            crate::operation::stop_delivery_stream_encryption::StopDeliveryStreamEncryptionError,
320            R,
321        >,
322    ) -> Self {
323        match err {
324            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
325            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
326                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
327                source: err.into(),
328            }),
329        }
330    }
331}
332impl From<crate::operation::stop_delivery_stream_encryption::StopDeliveryStreamEncryptionError> for Error {
333    fn from(err: crate::operation::stop_delivery_stream_encryption::StopDeliveryStreamEncryptionError) -> Self {
334        match err {
335            crate::operation::stop_delivery_stream_encryption::StopDeliveryStreamEncryptionError::InvalidArgumentException(inner) => {
336                Error::InvalidArgumentException(inner)
337            }
338            crate::operation::stop_delivery_stream_encryption::StopDeliveryStreamEncryptionError::LimitExceededException(inner) => {
339                Error::LimitExceededException(inner)
340            }
341            crate::operation::stop_delivery_stream_encryption::StopDeliveryStreamEncryptionError::ResourceInUseException(inner) => {
342                Error::ResourceInUseException(inner)
343            }
344            crate::operation::stop_delivery_stream_encryption::StopDeliveryStreamEncryptionError::ResourceNotFoundException(inner) => {
345                Error::ResourceNotFoundException(inner)
346            }
347            crate::operation::stop_delivery_stream_encryption::StopDeliveryStreamEncryptionError::Unhandled(inner) => Error::Unhandled(inner),
348        }
349    }
350}
351impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_delivery_stream::TagDeliveryStreamError, R>> for Error
352where
353    R: Send + Sync + std::fmt::Debug + 'static,
354{
355    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_delivery_stream::TagDeliveryStreamError, R>) -> Self {
356        match err {
357            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
358            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
359                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
360                source: err.into(),
361            }),
362        }
363    }
364}
365impl From<crate::operation::tag_delivery_stream::TagDeliveryStreamError> for Error {
366    fn from(err: crate::operation::tag_delivery_stream::TagDeliveryStreamError) -> Self {
367        match err {
368            crate::operation::tag_delivery_stream::TagDeliveryStreamError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
369            crate::operation::tag_delivery_stream::TagDeliveryStreamError::LimitExceededException(inner) => Error::LimitExceededException(inner),
370            crate::operation::tag_delivery_stream::TagDeliveryStreamError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
371            crate::operation::tag_delivery_stream::TagDeliveryStreamError::ResourceNotFoundException(inner) => {
372                Error::ResourceNotFoundException(inner)
373            }
374            crate::operation::tag_delivery_stream::TagDeliveryStreamError::Unhandled(inner) => Error::Unhandled(inner),
375        }
376    }
377}
378impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_delivery_stream::UntagDeliveryStreamError, R>> for Error
379where
380    R: Send + Sync + std::fmt::Debug + 'static,
381{
382    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_delivery_stream::UntagDeliveryStreamError, R>) -> Self {
383        match err {
384            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
385            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
386                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
387                source: err.into(),
388            }),
389        }
390    }
391}
392impl From<crate::operation::untag_delivery_stream::UntagDeliveryStreamError> for Error {
393    fn from(err: crate::operation::untag_delivery_stream::UntagDeliveryStreamError) -> Self {
394        match err {
395            crate::operation::untag_delivery_stream::UntagDeliveryStreamError::InvalidArgumentException(inner) => {
396                Error::InvalidArgumentException(inner)
397            }
398            crate::operation::untag_delivery_stream::UntagDeliveryStreamError::LimitExceededException(inner) => Error::LimitExceededException(inner),
399            crate::operation::untag_delivery_stream::UntagDeliveryStreamError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
400            crate::operation::untag_delivery_stream::UntagDeliveryStreamError::ResourceNotFoundException(inner) => {
401                Error::ResourceNotFoundException(inner)
402            }
403            crate::operation::untag_delivery_stream::UntagDeliveryStreamError::Unhandled(inner) => Error::Unhandled(inner),
404        }
405    }
406}
407impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_destination::UpdateDestinationError, R>> for Error
408where
409    R: Send + Sync + std::fmt::Debug + 'static,
410{
411    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_destination::UpdateDestinationError, R>) -> Self {
412        match err {
413            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
414            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
415                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
416                source: err.into(),
417            }),
418        }
419    }
420}
421impl From<crate::operation::update_destination::UpdateDestinationError> for Error {
422    fn from(err: crate::operation::update_destination::UpdateDestinationError) -> Self {
423        match err {
424            crate::operation::update_destination::UpdateDestinationError::ConcurrentModificationException(inner) => {
425                Error::ConcurrentModificationException(inner)
426            }
427            crate::operation::update_destination::UpdateDestinationError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
428            crate::operation::update_destination::UpdateDestinationError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
429            crate::operation::update_destination::UpdateDestinationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
430            crate::operation::update_destination::UpdateDestinationError::Unhandled(inner) => Error::Unhandled(inner),
431        }
432    }
433}
434impl ::std::error::Error for Error {
435    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
436        match self {
437            Error::ConcurrentModificationException(inner) => inner.source(),
438            Error::InvalidArgumentException(inner) => inner.source(),
439            Error::InvalidKmsResourceException(inner) => inner.source(),
440            Error::InvalidSourceException(inner) => inner.source(),
441            Error::LimitExceededException(inner) => inner.source(),
442            Error::ResourceInUseException(inner) => inner.source(),
443            Error::ResourceNotFoundException(inner) => inner.source(),
444            Error::ServiceUnavailableException(inner) => inner.source(),
445            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
446        }
447    }
448}
449impl ::aws_types::request_id::RequestId for Error {
450    fn request_id(&self) -> Option<&str> {
451        match self {
452            Self::ConcurrentModificationException(e) => e.request_id(),
453            Self::InvalidArgumentException(e) => e.request_id(),
454            Self::InvalidKmsResourceException(e) => e.request_id(),
455            Self::InvalidSourceException(e) => e.request_id(),
456            Self::LimitExceededException(e) => e.request_id(),
457            Self::ResourceInUseException(e) => e.request_id(),
458            Self::ResourceNotFoundException(e) => e.request_id(),
459            Self::ServiceUnavailableException(e) => e.request_id(),
460            Self::Unhandled(e) => e.meta.request_id(),
461        }
462    }
463}