aws_sdk_kinesis/
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>Specifies that you do not have the permissions required to perform this operation.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The provided iterator exceeds the maximum age allowed.</p>
9    ExpiredIteratorException(crate::types::error::ExpiredIteratorException),
10    /// <p>The pagination token passed to the operation is expired.</p>
11    ExpiredNextTokenException(crate::types::error::ExpiredNextTokenException),
12    /// <p>The processing of the request failed because of an unknown error, exception, or failure.</p>
13    InternalFailureException(crate::types::error::InternalFailureException),
14    /// <p>A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.</p>
15    InvalidArgumentException(crate::types::error::InvalidArgumentException),
16    /// <p>The ciphertext references a key that doesn't exist or that you don't have access to.</p>
17    KmsAccessDeniedException(crate::types::error::KmsAccessDeniedException),
18    /// <p>The request was rejected because the specified customer master key (CMK) isn't enabled.</p>
19    KmsDisabledException(crate::types::error::KmsDisabledException),
20    /// <p>The request was rejected because the state of the specified resource isn't valid for this request. For more information, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/key-state.html">How Key State Affects Use of a Customer Master Key</a> in the <i>Amazon Web Services Key Management Service Developer Guide</i>.</p>
21    KmsInvalidStateException(crate::types::error::KmsInvalidStateException),
22    /// <p>The request was rejected because the specified entity or resource can't be found.</p>
23    KmsNotFoundException(crate::types::error::KmsNotFoundException),
24    /// <p>The Amazon Web Services access key ID needs a subscription for the service.</p>
25    KmsOptInRequired(crate::types::error::KmsOptInRequired),
26    /// <p>The request was denied due to request throttling. For more information about throttling, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/limits.html#requests-per-second">Limits</a> in the <i>Amazon Web Services Key Management Service Developer Guide</i>.</p>
27    KmsThrottlingException(crate::types::error::KmsThrottlingException),
28    /// <p>The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.</p>
29    LimitExceededException(crate::types::error::LimitExceededException),
30    /// <p>The request rate for the stream is too high, or the requested data is too large for the available throughput. Reduce the frequency or size of your requests. For more information, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Streams Limits</a> in the <i>Amazon Kinesis Data Streams Developer Guide</i>, and <a href="https://docs.aws.amazon.com/general/latest/gr/api-retries.html">Error Retries and Exponential Backoff in Amazon Web Services</a> in the <i>Amazon Web Services General Reference</i>.</p>
31    ProvisionedThroughputExceededException(crate::types::error::ProvisionedThroughputExceededException),
32    /// <p>The resource is not available for this operation. For successful operation, the resource must be in the <code>ACTIVE</code> state.</p>
33    ResourceInUseException(crate::types::error::ResourceInUseException),
34    /// <p>The requested resource could not be found. The stream might not be specified correctly.</p>
35    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
36    /// <p>Specifies that you tried to invoke this API for a data stream with the on-demand capacity mode. This API is only supported for data streams with the provisioned capacity mode.</p>
37    ValidationException(crate::types::error::ValidationException),
38    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
39    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
40    variable wildcard pattern and check `.code()`:
41     \
42    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
43     \
44    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
45    Unhandled(crate::error::sealed_unhandled::Unhandled),
46}
47impl ::std::fmt::Display for Error {
48    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
49        match self {
50            Error::AccessDeniedException(inner) => inner.fmt(f),
51            Error::ExpiredIteratorException(inner) => inner.fmt(f),
52            Error::ExpiredNextTokenException(inner) => inner.fmt(f),
53            Error::InternalFailureException(inner) => inner.fmt(f),
54            Error::InvalidArgumentException(inner) => inner.fmt(f),
55            Error::KmsAccessDeniedException(inner) => inner.fmt(f),
56            Error::KmsDisabledException(inner) => inner.fmt(f),
57            Error::KmsInvalidStateException(inner) => inner.fmt(f),
58            Error::KmsNotFoundException(inner) => inner.fmt(f),
59            Error::KmsOptInRequired(inner) => inner.fmt(f),
60            Error::KmsThrottlingException(inner) => inner.fmt(f),
61            Error::LimitExceededException(inner) => inner.fmt(f),
62            Error::ProvisionedThroughputExceededException(inner) => inner.fmt(f),
63            Error::ResourceInUseException(inner) => inner.fmt(f),
64            Error::ResourceNotFoundException(inner) => inner.fmt(f),
65            Error::ValidationException(inner) => inner.fmt(f),
66            Error::Unhandled(_) => {
67                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
68                    write!(f, "unhandled error ({code})")
69                } else {
70                    f.write_str("unhandled error")
71                }
72            }
73        }
74    }
75}
76impl From<::aws_smithy_types::error::operation::BuildError> for Error {
77    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
78        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79            source: value.into(),
80            meta: ::std::default::Default::default(),
81        })
82    }
83}
84impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
85    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
86        match self {
87            Self::AccessDeniedException(inner) => inner.meta(),
88            Self::ExpiredIteratorException(inner) => inner.meta(),
89            Self::ExpiredNextTokenException(inner) => inner.meta(),
90            Self::InternalFailureException(inner) => inner.meta(),
91            Self::InvalidArgumentException(inner) => inner.meta(),
92            Self::KmsAccessDeniedException(inner) => inner.meta(),
93            Self::KmsDisabledException(inner) => inner.meta(),
94            Self::KmsInvalidStateException(inner) => inner.meta(),
95            Self::KmsNotFoundException(inner) => inner.meta(),
96            Self::KmsOptInRequired(inner) => inner.meta(),
97            Self::KmsThrottlingException(inner) => inner.meta(),
98            Self::LimitExceededException(inner) => inner.meta(),
99            Self::ProvisionedThroughputExceededException(inner) => inner.meta(),
100            Self::ResourceInUseException(inner) => inner.meta(),
101            Self::ResourceNotFoundException(inner) => inner.meta(),
102            Self::ValidationException(inner) => inner.meta(),
103            Self::Unhandled(inner) => &inner.meta,
104        }
105    }
106}
107impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags_to_stream::AddTagsToStreamError, R>> for Error
108where
109    R: Send + Sync + std::fmt::Debug + 'static,
110{
111    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags_to_stream::AddTagsToStreamError, R>) -> Self {
112        match err {
113            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
114            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
115                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
116                source: err.into(),
117            }),
118        }
119    }
120}
121impl From<crate::operation::add_tags_to_stream::AddTagsToStreamError> for Error {
122    fn from(err: crate::operation::add_tags_to_stream::AddTagsToStreamError) -> Self {
123        match err {
124            crate::operation::add_tags_to_stream::AddTagsToStreamError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
125            crate::operation::add_tags_to_stream::AddTagsToStreamError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
126            crate::operation::add_tags_to_stream::AddTagsToStreamError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
127            crate::operation::add_tags_to_stream::AddTagsToStreamError::LimitExceededException(inner) => Error::LimitExceededException(inner),
128            crate::operation::add_tags_to_stream::AddTagsToStreamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
129            crate::operation::add_tags_to_stream::AddTagsToStreamError::Unhandled(inner) => Error::Unhandled(inner),
130        }
131    }
132}
133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stream::CreateStreamError, R>> for Error
134where
135    R: Send + Sync + std::fmt::Debug + 'static,
136{
137    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_stream::CreateStreamError, R>) -> Self {
138        match err {
139            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
140            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
141                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
142                source: err.into(),
143            }),
144        }
145    }
146}
147impl From<crate::operation::create_stream::CreateStreamError> for Error {
148    fn from(err: crate::operation::create_stream::CreateStreamError) -> Self {
149        match err {
150            crate::operation::create_stream::CreateStreamError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
151            crate::operation::create_stream::CreateStreamError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
152            crate::operation::create_stream::CreateStreamError::LimitExceededException(inner) => Error::LimitExceededException(inner),
153            crate::operation::create_stream::CreateStreamError::Unhandled(inner) => Error::Unhandled(inner),
154        }
155    }
156}
157impl<R>
158    From<
159        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::decrease_stream_retention_period::DecreaseStreamRetentionPeriodError, R>,
160    > for Error
161where
162    R: Send + Sync + std::fmt::Debug + 'static,
163{
164    fn from(
165        err: ::aws_smithy_runtime_api::client::result::SdkError<
166            crate::operation::decrease_stream_retention_period::DecreaseStreamRetentionPeriodError,
167            R,
168        >,
169    ) -> Self {
170        match err {
171            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
172            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
173                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
174                source: err.into(),
175            }),
176        }
177    }
178}
179impl From<crate::operation::decrease_stream_retention_period::DecreaseStreamRetentionPeriodError> for Error {
180    fn from(err: crate::operation::decrease_stream_retention_period::DecreaseStreamRetentionPeriodError) -> Self {
181        match err {
182            crate::operation::decrease_stream_retention_period::DecreaseStreamRetentionPeriodError::AccessDeniedException(inner) => {
183                Error::AccessDeniedException(inner)
184            }
185            crate::operation::decrease_stream_retention_period::DecreaseStreamRetentionPeriodError::InvalidArgumentException(inner) => {
186                Error::InvalidArgumentException(inner)
187            }
188            crate::operation::decrease_stream_retention_period::DecreaseStreamRetentionPeriodError::ResourceInUseException(inner) => {
189                Error::ResourceInUseException(inner)
190            }
191            crate::operation::decrease_stream_retention_period::DecreaseStreamRetentionPeriodError::LimitExceededException(inner) => {
192                Error::LimitExceededException(inner)
193            }
194            crate::operation::decrease_stream_retention_period::DecreaseStreamRetentionPeriodError::ResourceNotFoundException(inner) => {
195                Error::ResourceNotFoundException(inner)
196            }
197            crate::operation::decrease_stream_retention_period::DecreaseStreamRetentionPeriodError::Unhandled(inner) => Error::Unhandled(inner),
198        }
199    }
200}
201impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
202where
203    R: Send + Sync + std::fmt::Debug + 'static,
204{
205    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
206        match err {
207            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
208            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
209                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
210                source: err.into(),
211            }),
212        }
213    }
214}
215impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
216    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
217        match err {
218            crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
219            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InvalidArgumentException(inner) => {
220                Error::InvalidArgumentException(inner)
221            }
222            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceInUseException(inner) => {
223                Error::ResourceInUseException(inner)
224            }
225            crate::operation::delete_resource_policy::DeleteResourcePolicyError::LimitExceededException(inner) => {
226                Error::LimitExceededException(inner)
227            }
228            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
229                Error::ResourceNotFoundException(inner)
230            }
231            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
232        }
233    }
234}
235impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stream::DeleteStreamError, R>> for Error
236where
237    R: Send + Sync + std::fmt::Debug + 'static,
238{
239    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_stream::DeleteStreamError, R>) -> Self {
240        match err {
241            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
242            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
243                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
244                source: err.into(),
245            }),
246        }
247    }
248}
249impl From<crate::operation::delete_stream::DeleteStreamError> for Error {
250    fn from(err: crate::operation::delete_stream::DeleteStreamError) -> Self {
251        match err {
252            crate::operation::delete_stream::DeleteStreamError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
253            crate::operation::delete_stream::DeleteStreamError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
254            crate::operation::delete_stream::DeleteStreamError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
255            crate::operation::delete_stream::DeleteStreamError::LimitExceededException(inner) => Error::LimitExceededException(inner),
256            crate::operation::delete_stream::DeleteStreamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
257            crate::operation::delete_stream::DeleteStreamError::Unhandled(inner) => Error::Unhandled(inner),
258        }
259    }
260}
261impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_stream_consumer::DeregisterStreamConsumerError, R>>
262    for Error
263where
264    R: Send + Sync + std::fmt::Debug + 'static,
265{
266    fn from(
267        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_stream_consumer::DeregisterStreamConsumerError, R>,
268    ) -> Self {
269        match err {
270            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
271            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
272                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
273                source: err.into(),
274            }),
275        }
276    }
277}
278impl From<crate::operation::deregister_stream_consumer::DeregisterStreamConsumerError> for Error {
279    fn from(err: crate::operation::deregister_stream_consumer::DeregisterStreamConsumerError) -> Self {
280        match err {
281            crate::operation::deregister_stream_consumer::DeregisterStreamConsumerError::InvalidArgumentException(inner) => {
282                Error::InvalidArgumentException(inner)
283            }
284            crate::operation::deregister_stream_consumer::DeregisterStreamConsumerError::LimitExceededException(inner) => {
285                Error::LimitExceededException(inner)
286            }
287            crate::operation::deregister_stream_consumer::DeregisterStreamConsumerError::ResourceNotFoundException(inner) => {
288                Error::ResourceNotFoundException(inner)
289            }
290            crate::operation::deregister_stream_consumer::DeregisterStreamConsumerError::Unhandled(inner) => Error::Unhandled(inner),
291        }
292    }
293}
294impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_limits::DescribeLimitsError, R>> for Error
295where
296    R: Send + Sync + std::fmt::Debug + 'static,
297{
298    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_limits::DescribeLimitsError, R>) -> Self {
299        match err {
300            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
301            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
302                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
303                source: err.into(),
304            }),
305        }
306    }
307}
308impl From<crate::operation::describe_limits::DescribeLimitsError> for Error {
309    fn from(err: crate::operation::describe_limits::DescribeLimitsError) -> Self {
310        match err {
311            crate::operation::describe_limits::DescribeLimitsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
312            crate::operation::describe_limits::DescribeLimitsError::Unhandled(inner) => Error::Unhandled(inner),
313        }
314    }
315}
316impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stream::DescribeStreamError, R>> for Error
317where
318    R: Send + Sync + std::fmt::Debug + 'static,
319{
320    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stream::DescribeStreamError, R>) -> Self {
321        match err {
322            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
323            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
324                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
325                source: err.into(),
326            }),
327        }
328    }
329}
330impl From<crate::operation::describe_stream::DescribeStreamError> for Error {
331    fn from(err: crate::operation::describe_stream::DescribeStreamError) -> Self {
332        match err {
333            crate::operation::describe_stream::DescribeStreamError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
334            crate::operation::describe_stream::DescribeStreamError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
335            crate::operation::describe_stream::DescribeStreamError::LimitExceededException(inner) => Error::LimitExceededException(inner),
336            crate::operation::describe_stream::DescribeStreamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
337            crate::operation::describe_stream::DescribeStreamError::Unhandled(inner) => Error::Unhandled(inner),
338        }
339    }
340}
341impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stream_consumer::DescribeStreamConsumerError, R>> for Error
342where
343    R: Send + Sync + std::fmt::Debug + 'static,
344{
345    fn from(
346        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stream_consumer::DescribeStreamConsumerError, R>,
347    ) -> Self {
348        match err {
349            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
350            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
351                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
352                source: err.into(),
353            }),
354        }
355    }
356}
357impl From<crate::operation::describe_stream_consumer::DescribeStreamConsumerError> for Error {
358    fn from(err: crate::operation::describe_stream_consumer::DescribeStreamConsumerError) -> Self {
359        match err {
360            crate::operation::describe_stream_consumer::DescribeStreamConsumerError::InvalidArgumentException(inner) => {
361                Error::InvalidArgumentException(inner)
362            }
363            crate::operation::describe_stream_consumer::DescribeStreamConsumerError::LimitExceededException(inner) => {
364                Error::LimitExceededException(inner)
365            }
366            crate::operation::describe_stream_consumer::DescribeStreamConsumerError::ResourceNotFoundException(inner) => {
367                Error::ResourceNotFoundException(inner)
368            }
369            crate::operation::describe_stream_consumer::DescribeStreamConsumerError::Unhandled(inner) => Error::Unhandled(inner),
370        }
371    }
372}
373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_stream_summary::DescribeStreamSummaryError, R>> 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::describe_stream_summary::DescribeStreamSummaryError, 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::describe_stream_summary::DescribeStreamSummaryError> for Error {
390    fn from(err: crate::operation::describe_stream_summary::DescribeStreamSummaryError) -> Self {
391        match err {
392            crate::operation::describe_stream_summary::DescribeStreamSummaryError::AccessDeniedException(inner) => {
393                Error::AccessDeniedException(inner)
394            }
395            crate::operation::describe_stream_summary::DescribeStreamSummaryError::InvalidArgumentException(inner) => {
396                Error::InvalidArgumentException(inner)
397            }
398            crate::operation::describe_stream_summary::DescribeStreamSummaryError::LimitExceededException(inner) => {
399                Error::LimitExceededException(inner)
400            }
401            crate::operation::describe_stream_summary::DescribeStreamSummaryError::ResourceNotFoundException(inner) => {
402                Error::ResourceNotFoundException(inner)
403            }
404            crate::operation::describe_stream_summary::DescribeStreamSummaryError::Unhandled(inner) => Error::Unhandled(inner),
405        }
406    }
407}
408impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_enhanced_monitoring::DisableEnhancedMonitoringError, R>>
409    for Error
410where
411    R: Send + Sync + std::fmt::Debug + 'static,
412{
413    fn from(
414        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_enhanced_monitoring::DisableEnhancedMonitoringError, R>,
415    ) -> Self {
416        match err {
417            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
418            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
419                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
420                source: err.into(),
421            }),
422        }
423    }
424}
425impl From<crate::operation::disable_enhanced_monitoring::DisableEnhancedMonitoringError> for Error {
426    fn from(err: crate::operation::disable_enhanced_monitoring::DisableEnhancedMonitoringError) -> Self {
427        match err {
428            crate::operation::disable_enhanced_monitoring::DisableEnhancedMonitoringError::AccessDeniedException(inner) => {
429                Error::AccessDeniedException(inner)
430            }
431            crate::operation::disable_enhanced_monitoring::DisableEnhancedMonitoringError::InvalidArgumentException(inner) => {
432                Error::InvalidArgumentException(inner)
433            }
434            crate::operation::disable_enhanced_monitoring::DisableEnhancedMonitoringError::ResourceInUseException(inner) => {
435                Error::ResourceInUseException(inner)
436            }
437            crate::operation::disable_enhanced_monitoring::DisableEnhancedMonitoringError::LimitExceededException(inner) => {
438                Error::LimitExceededException(inner)
439            }
440            crate::operation::disable_enhanced_monitoring::DisableEnhancedMonitoringError::ResourceNotFoundException(inner) => {
441                Error::ResourceNotFoundException(inner)
442            }
443            crate::operation::disable_enhanced_monitoring::DisableEnhancedMonitoringError::Unhandled(inner) => Error::Unhandled(inner),
444        }
445    }
446}
447impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_enhanced_monitoring::EnableEnhancedMonitoringError, R>>
448    for Error
449where
450    R: Send + Sync + std::fmt::Debug + 'static,
451{
452    fn from(
453        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_enhanced_monitoring::EnableEnhancedMonitoringError, R>,
454    ) -> Self {
455        match err {
456            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
457            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
458                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
459                source: err.into(),
460            }),
461        }
462    }
463}
464impl From<crate::operation::enable_enhanced_monitoring::EnableEnhancedMonitoringError> for Error {
465    fn from(err: crate::operation::enable_enhanced_monitoring::EnableEnhancedMonitoringError) -> Self {
466        match err {
467            crate::operation::enable_enhanced_monitoring::EnableEnhancedMonitoringError::AccessDeniedException(inner) => {
468                Error::AccessDeniedException(inner)
469            }
470            crate::operation::enable_enhanced_monitoring::EnableEnhancedMonitoringError::InvalidArgumentException(inner) => {
471                Error::InvalidArgumentException(inner)
472            }
473            crate::operation::enable_enhanced_monitoring::EnableEnhancedMonitoringError::ResourceInUseException(inner) => {
474                Error::ResourceInUseException(inner)
475            }
476            crate::operation::enable_enhanced_monitoring::EnableEnhancedMonitoringError::LimitExceededException(inner) => {
477                Error::LimitExceededException(inner)
478            }
479            crate::operation::enable_enhanced_monitoring::EnableEnhancedMonitoringError::ResourceNotFoundException(inner) => {
480                Error::ResourceNotFoundException(inner)
481            }
482            crate::operation::enable_enhanced_monitoring::EnableEnhancedMonitoringError::Unhandled(inner) => Error::Unhandled(inner),
483        }
484    }
485}
486impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_records::GetRecordsError, R>> for Error
487where
488    R: Send + Sync + std::fmt::Debug + 'static,
489{
490    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_records::GetRecordsError, R>) -> Self {
491        match err {
492            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
493            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
494                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
495                source: err.into(),
496            }),
497        }
498    }
499}
500impl From<crate::operation::get_records::GetRecordsError> for Error {
501    fn from(err: crate::operation::get_records::GetRecordsError) -> Self {
502        match err {
503            crate::operation::get_records::GetRecordsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
504            crate::operation::get_records::GetRecordsError::KmsNotFoundException(inner) => Error::KmsNotFoundException(inner),
505            crate::operation::get_records::GetRecordsError::ExpiredIteratorException(inner) => Error::ExpiredIteratorException(inner),
506            crate::operation::get_records::GetRecordsError::KmsOptInRequired(inner) => Error::KmsOptInRequired(inner),
507            crate::operation::get_records::GetRecordsError::ProvisionedThroughputExceededException(inner) => {
508                Error::ProvisionedThroughputExceededException(inner)
509            }
510            crate::operation::get_records::GetRecordsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
511            crate::operation::get_records::GetRecordsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
512            crate::operation::get_records::GetRecordsError::KmsAccessDeniedException(inner) => Error::KmsAccessDeniedException(inner),
513            crate::operation::get_records::GetRecordsError::KmsDisabledException(inner) => Error::KmsDisabledException(inner),
514            crate::operation::get_records::GetRecordsError::KmsThrottlingException(inner) => Error::KmsThrottlingException(inner),
515            crate::operation::get_records::GetRecordsError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
516            crate::operation::get_records::GetRecordsError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
517            crate::operation::get_records::GetRecordsError::Unhandled(inner) => Error::Unhandled(inner),
518        }
519    }
520}
521impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
522where
523    R: Send + Sync + std::fmt::Debug + 'static,
524{
525    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
526        match err {
527            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
528            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
529                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
530                source: err.into(),
531            }),
532        }
533    }
534}
535impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
536    fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
537        match err {
538            crate::operation::get_resource_policy::GetResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
539            crate::operation::get_resource_policy::GetResourcePolicyError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
540            crate::operation::get_resource_policy::GetResourcePolicyError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
541            crate::operation::get_resource_policy::GetResourcePolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
542            crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
543                Error::ResourceNotFoundException(inner)
544            }
545            crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
546        }
547    }
548}
549impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_shard_iterator::GetShardIteratorError, R>> for Error
550where
551    R: Send + Sync + std::fmt::Debug + 'static,
552{
553    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_shard_iterator::GetShardIteratorError, R>) -> Self {
554        match err {
555            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
556            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
557                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
558                source: err.into(),
559            }),
560        }
561    }
562}
563impl From<crate::operation::get_shard_iterator::GetShardIteratorError> for Error {
564    fn from(err: crate::operation::get_shard_iterator::GetShardIteratorError) -> Self {
565        match err {
566            crate::operation::get_shard_iterator::GetShardIteratorError::InternalFailureException(inner) => Error::InternalFailureException(inner),
567            crate::operation::get_shard_iterator::GetShardIteratorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
568            crate::operation::get_shard_iterator::GetShardIteratorError::ProvisionedThroughputExceededException(inner) => {
569                Error::ProvisionedThroughputExceededException(inner)
570            }
571            crate::operation::get_shard_iterator::GetShardIteratorError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
572            crate::operation::get_shard_iterator::GetShardIteratorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
573            crate::operation::get_shard_iterator::GetShardIteratorError::Unhandled(inner) => Error::Unhandled(inner),
574        }
575    }
576}
577impl<R>
578    From<
579        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::increase_stream_retention_period::IncreaseStreamRetentionPeriodError, R>,
580    > for Error
581where
582    R: Send + Sync + std::fmt::Debug + 'static,
583{
584    fn from(
585        err: ::aws_smithy_runtime_api::client::result::SdkError<
586            crate::operation::increase_stream_retention_period::IncreaseStreamRetentionPeriodError,
587            R,
588        >,
589    ) -> Self {
590        match err {
591            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
592            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
593                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
594                source: err.into(),
595            }),
596        }
597    }
598}
599impl From<crate::operation::increase_stream_retention_period::IncreaseStreamRetentionPeriodError> for Error {
600    fn from(err: crate::operation::increase_stream_retention_period::IncreaseStreamRetentionPeriodError) -> Self {
601        match err {
602            crate::operation::increase_stream_retention_period::IncreaseStreamRetentionPeriodError::AccessDeniedException(inner) => {
603                Error::AccessDeniedException(inner)
604            }
605            crate::operation::increase_stream_retention_period::IncreaseStreamRetentionPeriodError::InvalidArgumentException(inner) => {
606                Error::InvalidArgumentException(inner)
607            }
608            crate::operation::increase_stream_retention_period::IncreaseStreamRetentionPeriodError::ResourceInUseException(inner) => {
609                Error::ResourceInUseException(inner)
610            }
611            crate::operation::increase_stream_retention_period::IncreaseStreamRetentionPeriodError::LimitExceededException(inner) => {
612                Error::LimitExceededException(inner)
613            }
614            crate::operation::increase_stream_retention_period::IncreaseStreamRetentionPeriodError::ResourceNotFoundException(inner) => {
615                Error::ResourceNotFoundException(inner)
616            }
617            crate::operation::increase_stream_retention_period::IncreaseStreamRetentionPeriodError::Unhandled(inner) => Error::Unhandled(inner),
618        }
619    }
620}
621impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shards::ListShardsError, R>> for Error
622where
623    R: Send + Sync + std::fmt::Debug + 'static,
624{
625    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_shards::ListShardsError, R>) -> Self {
626        match err {
627            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
628            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
629                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
630                source: err.into(),
631            }),
632        }
633    }
634}
635impl From<crate::operation::list_shards::ListShardsError> for Error {
636    fn from(err: crate::operation::list_shards::ListShardsError) -> Self {
637        match err {
638            crate::operation::list_shards::ListShardsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
639            crate::operation::list_shards::ListShardsError::ExpiredNextTokenException(inner) => Error::ExpiredNextTokenException(inner),
640            crate::operation::list_shards::ListShardsError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
641            crate::operation::list_shards::ListShardsError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
642            crate::operation::list_shards::ListShardsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
643            crate::operation::list_shards::ListShardsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
644            crate::operation::list_shards::ListShardsError::Unhandled(inner) => Error::Unhandled(inner),
645        }
646    }
647}
648impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stream_consumers::ListStreamConsumersError, R>> for Error
649where
650    R: Send + Sync + std::fmt::Debug + 'static,
651{
652    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_stream_consumers::ListStreamConsumersError, R>) -> Self {
653        match err {
654            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
655            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
656                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
657                source: err.into(),
658            }),
659        }
660    }
661}
662impl From<crate::operation::list_stream_consumers::ListStreamConsumersError> for Error {
663    fn from(err: crate::operation::list_stream_consumers::ListStreamConsumersError) -> Self {
664        match err {
665            crate::operation::list_stream_consumers::ListStreamConsumersError::ExpiredNextTokenException(inner) => {
666                Error::ExpiredNextTokenException(inner)
667            }
668            crate::operation::list_stream_consumers::ListStreamConsumersError::InvalidArgumentException(inner) => {
669                Error::InvalidArgumentException(inner)
670            }
671            crate::operation::list_stream_consumers::ListStreamConsumersError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
672            crate::operation::list_stream_consumers::ListStreamConsumersError::LimitExceededException(inner) => Error::LimitExceededException(inner),
673            crate::operation::list_stream_consumers::ListStreamConsumersError::ResourceNotFoundException(inner) => {
674                Error::ResourceNotFoundException(inner)
675            }
676            crate::operation::list_stream_consumers::ListStreamConsumersError::Unhandled(inner) => Error::Unhandled(inner),
677        }
678    }
679}
680impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_streams::ListStreamsError, 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::list_streams::ListStreamsError, 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::list_streams::ListStreamsError> for Error {
695    fn from(err: crate::operation::list_streams::ListStreamsError) -> Self {
696        match err {
697            crate::operation::list_streams::ListStreamsError::ExpiredNextTokenException(inner) => Error::ExpiredNextTokenException(inner),
698            crate::operation::list_streams::ListStreamsError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
699            crate::operation::list_streams::ListStreamsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
700            crate::operation::list_streams::ListStreamsError::Unhandled(inner) => Error::Unhandled(inner),
701        }
702    }
703}
704impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
705where
706    R: Send + Sync + std::fmt::Debug + 'static,
707{
708    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
709        match err {
710            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
711            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
712                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
713                source: err.into(),
714            }),
715        }
716    }
717}
718impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
719    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
720        match err {
721            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
722            crate::operation::list_tags_for_resource::ListTagsForResourceError::InvalidArgumentException(inner) => {
723                Error::InvalidArgumentException(inner)
724            }
725            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
726            crate::operation::list_tags_for_resource::ListTagsForResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
727            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
728                Error::ResourceNotFoundException(inner)
729            }
730            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
731        }
732    }
733}
734impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_stream::ListTagsForStreamError, R>> for Error
735where
736    R: Send + Sync + std::fmt::Debug + 'static,
737{
738    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_stream::ListTagsForStreamError, R>) -> Self {
739        match err {
740            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
741            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
742                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
743                source: err.into(),
744            }),
745        }
746    }
747}
748impl From<crate::operation::list_tags_for_stream::ListTagsForStreamError> for Error {
749    fn from(err: crate::operation::list_tags_for_stream::ListTagsForStreamError) -> Self {
750        match err {
751            crate::operation::list_tags_for_stream::ListTagsForStreamError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
752            crate::operation::list_tags_for_stream::ListTagsForStreamError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
753            crate::operation::list_tags_for_stream::ListTagsForStreamError::LimitExceededException(inner) => Error::LimitExceededException(inner),
754            crate::operation::list_tags_for_stream::ListTagsForStreamError::ResourceNotFoundException(inner) => {
755                Error::ResourceNotFoundException(inner)
756            }
757            crate::operation::list_tags_for_stream::ListTagsForStreamError::Unhandled(inner) => Error::Unhandled(inner),
758        }
759    }
760}
761impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::merge_shards::MergeShardsError, R>> for Error
762where
763    R: Send + Sync + std::fmt::Debug + 'static,
764{
765    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::merge_shards::MergeShardsError, R>) -> Self {
766        match err {
767            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
768            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
769                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
770                source: err.into(),
771            }),
772        }
773    }
774}
775impl From<crate::operation::merge_shards::MergeShardsError> for Error {
776    fn from(err: crate::operation::merge_shards::MergeShardsError) -> Self {
777        match err {
778            crate::operation::merge_shards::MergeShardsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
779            crate::operation::merge_shards::MergeShardsError::ValidationException(inner) => Error::ValidationException(inner),
780            crate::operation::merge_shards::MergeShardsError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
781            crate::operation::merge_shards::MergeShardsError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
782            crate::operation::merge_shards::MergeShardsError::LimitExceededException(inner) => Error::LimitExceededException(inner),
783            crate::operation::merge_shards::MergeShardsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
784            crate::operation::merge_shards::MergeShardsError::Unhandled(inner) => Error::Unhandled(inner),
785        }
786    }
787}
788impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_record::PutRecordError, R>> for Error
789where
790    R: Send + Sync + std::fmt::Debug + 'static,
791{
792    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_record::PutRecordError, R>) -> Self {
793        match err {
794            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
795            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
796                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
797                source: err.into(),
798            }),
799        }
800    }
801}
802impl From<crate::operation::put_record::PutRecordError> for Error {
803    fn from(err: crate::operation::put_record::PutRecordError) -> Self {
804        match err {
805            crate::operation::put_record::PutRecordError::InternalFailureException(inner) => Error::InternalFailureException(inner),
806            crate::operation::put_record::PutRecordError::KmsAccessDeniedException(inner) => Error::KmsAccessDeniedException(inner),
807            crate::operation::put_record::PutRecordError::KmsDisabledException(inner) => Error::KmsDisabledException(inner),
808            crate::operation::put_record::PutRecordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
809            crate::operation::put_record::PutRecordError::KmsNotFoundException(inner) => Error::KmsNotFoundException(inner),
810            crate::operation::put_record::PutRecordError::KmsOptInRequired(inner) => Error::KmsOptInRequired(inner),
811            crate::operation::put_record::PutRecordError::KmsThrottlingException(inner) => Error::KmsThrottlingException(inner),
812            crate::operation::put_record::PutRecordError::ProvisionedThroughputExceededException(inner) => {
813                Error::ProvisionedThroughputExceededException(inner)
814            }
815            crate::operation::put_record::PutRecordError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
816            crate::operation::put_record::PutRecordError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
817            crate::operation::put_record::PutRecordError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
818            crate::operation::put_record::PutRecordError::Unhandled(inner) => Error::Unhandled(inner),
819        }
820    }
821}
822impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_records::PutRecordsError, R>> for Error
823where
824    R: Send + Sync + std::fmt::Debug + 'static,
825{
826    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_records::PutRecordsError, R>) -> Self {
827        match err {
828            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
829            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
830                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
831                source: err.into(),
832            }),
833        }
834    }
835}
836impl From<crate::operation::put_records::PutRecordsError> for Error {
837    fn from(err: crate::operation::put_records::PutRecordsError) -> Self {
838        match err {
839            crate::operation::put_records::PutRecordsError::InternalFailureException(inner) => Error::InternalFailureException(inner),
840            crate::operation::put_records::PutRecordsError::KmsAccessDeniedException(inner) => Error::KmsAccessDeniedException(inner),
841            crate::operation::put_records::PutRecordsError::KmsDisabledException(inner) => Error::KmsDisabledException(inner),
842            crate::operation::put_records::PutRecordsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
843            crate::operation::put_records::PutRecordsError::KmsNotFoundException(inner) => Error::KmsNotFoundException(inner),
844            crate::operation::put_records::PutRecordsError::KmsOptInRequired(inner) => Error::KmsOptInRequired(inner),
845            crate::operation::put_records::PutRecordsError::KmsThrottlingException(inner) => Error::KmsThrottlingException(inner),
846            crate::operation::put_records::PutRecordsError::ProvisionedThroughputExceededException(inner) => {
847                Error::ProvisionedThroughputExceededException(inner)
848            }
849            crate::operation::put_records::PutRecordsError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
850            crate::operation::put_records::PutRecordsError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
851            crate::operation::put_records::PutRecordsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
852            crate::operation::put_records::PutRecordsError::Unhandled(inner) => Error::Unhandled(inner),
853        }
854    }
855}
856impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
857where
858    R: Send + Sync + std::fmt::Debug + 'static,
859{
860    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
861        match err {
862            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
863            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
864                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
865                source: err.into(),
866            }),
867        }
868    }
869}
870impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
871    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
872        match err {
873            crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
874            crate::operation::put_resource_policy::PutResourcePolicyError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
875            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
876            crate::operation::put_resource_policy::PutResourcePolicyError::LimitExceededException(inner) => Error::LimitExceededException(inner),
877            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
878                Error::ResourceNotFoundException(inner)
879            }
880            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
881        }
882    }
883}
884impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_stream_consumer::RegisterStreamConsumerError, R>> for Error
885where
886    R: Send + Sync + std::fmt::Debug + 'static,
887{
888    fn from(
889        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_stream_consumer::RegisterStreamConsumerError, R>,
890    ) -> Self {
891        match err {
892            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
893            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
894                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
895                source: err.into(),
896            }),
897        }
898    }
899}
900impl From<crate::operation::register_stream_consumer::RegisterStreamConsumerError> for Error {
901    fn from(err: crate::operation::register_stream_consumer::RegisterStreamConsumerError) -> Self {
902        match err {
903            crate::operation::register_stream_consumer::RegisterStreamConsumerError::InvalidArgumentException(inner) => {
904                Error::InvalidArgumentException(inner)
905            }
906            crate::operation::register_stream_consumer::RegisterStreamConsumerError::ResourceInUseException(inner) => {
907                Error::ResourceInUseException(inner)
908            }
909            crate::operation::register_stream_consumer::RegisterStreamConsumerError::LimitExceededException(inner) => {
910                Error::LimitExceededException(inner)
911            }
912            crate::operation::register_stream_consumer::RegisterStreamConsumerError::ResourceNotFoundException(inner) => {
913                Error::ResourceNotFoundException(inner)
914            }
915            crate::operation::register_stream_consumer::RegisterStreamConsumerError::Unhandled(inner) => Error::Unhandled(inner),
916        }
917    }
918}
919impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags_from_stream::RemoveTagsFromStreamError, R>> for Error
920where
921    R: Send + Sync + std::fmt::Debug + 'static,
922{
923    fn from(
924        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags_from_stream::RemoveTagsFromStreamError, R>,
925    ) -> Self {
926        match err {
927            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
928            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
929                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
930                source: err.into(),
931            }),
932        }
933    }
934}
935impl From<crate::operation::remove_tags_from_stream::RemoveTagsFromStreamError> for Error {
936    fn from(err: crate::operation::remove_tags_from_stream::RemoveTagsFromStreamError) -> Self {
937        match err {
938            crate::operation::remove_tags_from_stream::RemoveTagsFromStreamError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
939            crate::operation::remove_tags_from_stream::RemoveTagsFromStreamError::InvalidArgumentException(inner) => {
940                Error::InvalidArgumentException(inner)
941            }
942            crate::operation::remove_tags_from_stream::RemoveTagsFromStreamError::ResourceInUseException(inner) => {
943                Error::ResourceInUseException(inner)
944            }
945            crate::operation::remove_tags_from_stream::RemoveTagsFromStreamError::LimitExceededException(inner) => {
946                Error::LimitExceededException(inner)
947            }
948            crate::operation::remove_tags_from_stream::RemoveTagsFromStreamError::ResourceNotFoundException(inner) => {
949                Error::ResourceNotFoundException(inner)
950            }
951            crate::operation::remove_tags_from_stream::RemoveTagsFromStreamError::Unhandled(inner) => Error::Unhandled(inner),
952        }
953    }
954}
955impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::split_shard::SplitShardError, R>> for Error
956where
957    R: Send + Sync + std::fmt::Debug + 'static,
958{
959    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::split_shard::SplitShardError, R>) -> Self {
960        match err {
961            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
962            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
963                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
964                source: err.into(),
965            }),
966        }
967    }
968}
969impl From<crate::operation::split_shard::SplitShardError> for Error {
970    fn from(err: crate::operation::split_shard::SplitShardError) -> Self {
971        match err {
972            crate::operation::split_shard::SplitShardError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
973            crate::operation::split_shard::SplitShardError::ValidationException(inner) => Error::ValidationException(inner),
974            crate::operation::split_shard::SplitShardError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
975            crate::operation::split_shard::SplitShardError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
976            crate::operation::split_shard::SplitShardError::LimitExceededException(inner) => Error::LimitExceededException(inner),
977            crate::operation::split_shard::SplitShardError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
978            crate::operation::split_shard::SplitShardError::Unhandled(inner) => Error::Unhandled(inner),
979        }
980    }
981}
982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_stream_encryption::StartStreamEncryptionError, R>> for Error
983where
984    R: Send + Sync + std::fmt::Debug + 'static,
985{
986    fn from(
987        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_stream_encryption::StartStreamEncryptionError, R>,
988    ) -> Self {
989        match err {
990            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
991            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
992                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
993                source: err.into(),
994            }),
995        }
996    }
997}
998impl From<crate::operation::start_stream_encryption::StartStreamEncryptionError> for Error {
999    fn from(err: crate::operation::start_stream_encryption::StartStreamEncryptionError) -> Self {
1000        match err {
1001            crate::operation::start_stream_encryption::StartStreamEncryptionError::KmsAccessDeniedException(inner) => {
1002                Error::KmsAccessDeniedException(inner)
1003            }
1004            crate::operation::start_stream_encryption::StartStreamEncryptionError::KmsDisabledException(inner) => Error::KmsDisabledException(inner),
1005            crate::operation::start_stream_encryption::StartStreamEncryptionError::AccessDeniedException(inner) => {
1006                Error::AccessDeniedException(inner)
1007            }
1008            crate::operation::start_stream_encryption::StartStreamEncryptionError::KmsNotFoundException(inner) => Error::KmsNotFoundException(inner),
1009            crate::operation::start_stream_encryption::StartStreamEncryptionError::KmsOptInRequired(inner) => Error::KmsOptInRequired(inner),
1010            crate::operation::start_stream_encryption::StartStreamEncryptionError::KmsThrottlingException(inner) => {
1011                Error::KmsThrottlingException(inner)
1012            }
1013            crate::operation::start_stream_encryption::StartStreamEncryptionError::InvalidArgumentException(inner) => {
1014                Error::InvalidArgumentException(inner)
1015            }
1016            crate::operation::start_stream_encryption::StartStreamEncryptionError::KmsInvalidStateException(inner) => {
1017                Error::KmsInvalidStateException(inner)
1018            }
1019            crate::operation::start_stream_encryption::StartStreamEncryptionError::ResourceInUseException(inner) => {
1020                Error::ResourceInUseException(inner)
1021            }
1022            crate::operation::start_stream_encryption::StartStreamEncryptionError::LimitExceededException(inner) => {
1023                Error::LimitExceededException(inner)
1024            }
1025            crate::operation::start_stream_encryption::StartStreamEncryptionError::ResourceNotFoundException(inner) => {
1026                Error::ResourceNotFoundException(inner)
1027            }
1028            crate::operation::start_stream_encryption::StartStreamEncryptionError::Unhandled(inner) => Error::Unhandled(inner),
1029        }
1030    }
1031}
1032impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_stream_encryption::StopStreamEncryptionError, R>> for Error
1033where
1034    R: Send + Sync + std::fmt::Debug + 'static,
1035{
1036    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_stream_encryption::StopStreamEncryptionError, R>) -> Self {
1037        match err {
1038            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1039            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1040                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1041                source: err.into(),
1042            }),
1043        }
1044    }
1045}
1046impl From<crate::operation::stop_stream_encryption::StopStreamEncryptionError> for Error {
1047    fn from(err: crate::operation::stop_stream_encryption::StopStreamEncryptionError) -> Self {
1048        match err {
1049            crate::operation::stop_stream_encryption::StopStreamEncryptionError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1050            crate::operation::stop_stream_encryption::StopStreamEncryptionError::InvalidArgumentException(inner) => {
1051                Error::InvalidArgumentException(inner)
1052            }
1053            crate::operation::stop_stream_encryption::StopStreamEncryptionError::ResourceInUseException(inner) => {
1054                Error::ResourceInUseException(inner)
1055            }
1056            crate::operation::stop_stream_encryption::StopStreamEncryptionError::LimitExceededException(inner) => {
1057                Error::LimitExceededException(inner)
1058            }
1059            crate::operation::stop_stream_encryption::StopStreamEncryptionError::ResourceNotFoundException(inner) => {
1060                Error::ResourceNotFoundException(inner)
1061            }
1062            crate::operation::stop_stream_encryption::StopStreamEncryptionError::Unhandled(inner) => Error::Unhandled(inner),
1063        }
1064    }
1065}
1066impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::subscribe_to_shard::SubscribeToShardError, R>> for Error
1067where
1068    R: Send + Sync + std::fmt::Debug + 'static,
1069{
1070    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::subscribe_to_shard::SubscribeToShardError, R>) -> Self {
1071        match err {
1072            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1073            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1074                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1075                source: err.into(),
1076            }),
1077        }
1078    }
1079}
1080impl From<crate::operation::subscribe_to_shard::SubscribeToShardError> for Error {
1081    fn from(err: crate::operation::subscribe_to_shard::SubscribeToShardError) -> Self {
1082        match err {
1083            crate::operation::subscribe_to_shard::SubscribeToShardError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1084            crate::operation::subscribe_to_shard::SubscribeToShardError::KmsNotFoundException(inner) => Error::KmsNotFoundException(inner),
1085            crate::operation::subscribe_to_shard::SubscribeToShardError::KmsOptInRequired(inner) => Error::KmsOptInRequired(inner),
1086            crate::operation::subscribe_to_shard::SubscribeToShardError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1087            crate::operation::subscribe_to_shard::SubscribeToShardError::KmsDisabledException(inner) => Error::KmsDisabledException(inner),
1088            crate::operation::subscribe_to_shard::SubscribeToShardError::KmsAccessDeniedException(inner) => Error::KmsAccessDeniedException(inner),
1089            crate::operation::subscribe_to_shard::SubscribeToShardError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1090            crate::operation::subscribe_to_shard::SubscribeToShardError::KmsThrottlingException(inner) => Error::KmsThrottlingException(inner),
1091            crate::operation::subscribe_to_shard::SubscribeToShardError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1092            crate::operation::subscribe_to_shard::SubscribeToShardError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1093            crate::operation::subscribe_to_shard::SubscribeToShardError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1094            crate::operation::subscribe_to_shard::SubscribeToShardError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1095            crate::operation::subscribe_to_shard::SubscribeToShardError::Unhandled(inner) => Error::Unhandled(inner),
1096        }
1097    }
1098}
1099impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1100where
1101    R: Send + Sync + std::fmt::Debug + 'static,
1102{
1103    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1104        match err {
1105            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1106            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1107                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1108                source: err.into(),
1109            }),
1110        }
1111    }
1112}
1113impl From<crate::operation::tag_resource::TagResourceError> for Error {
1114    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1115        match err {
1116            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1117            crate::operation::tag_resource::TagResourceError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1118            crate::operation::tag_resource::TagResourceError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1119            crate::operation::tag_resource::TagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1120            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1121            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1122        }
1123    }
1124}
1125impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1126where
1127    R: Send + Sync + std::fmt::Debug + 'static,
1128{
1129    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1130        match err {
1131            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1132            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1133                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1134                source: err.into(),
1135            }),
1136        }
1137    }
1138}
1139impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1140    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1141        match err {
1142            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1143            crate::operation::untag_resource::UntagResourceError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1144            crate::operation::untag_resource::UntagResourceError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1145            crate::operation::untag_resource::UntagResourceError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1146            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1147            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1148        }
1149    }
1150}
1151impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_shard_count::UpdateShardCountError, R>> for Error
1152where
1153    R: Send + Sync + std::fmt::Debug + 'static,
1154{
1155    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_shard_count::UpdateShardCountError, R>) -> Self {
1156        match err {
1157            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1158            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1159                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1160                source: err.into(),
1161            }),
1162        }
1163    }
1164}
1165impl From<crate::operation::update_shard_count::UpdateShardCountError> for Error {
1166    fn from(err: crate::operation::update_shard_count::UpdateShardCountError) -> Self {
1167        match err {
1168            crate::operation::update_shard_count::UpdateShardCountError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1169            crate::operation::update_shard_count::UpdateShardCountError::ValidationException(inner) => Error::ValidationException(inner),
1170            crate::operation::update_shard_count::UpdateShardCountError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1171            crate::operation::update_shard_count::UpdateShardCountError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1172            crate::operation::update_shard_count::UpdateShardCountError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1173            crate::operation::update_shard_count::UpdateShardCountError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1174            crate::operation::update_shard_count::UpdateShardCountError::Unhandled(inner) => Error::Unhandled(inner),
1175        }
1176    }
1177}
1178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stream_mode::UpdateStreamModeError, R>> for Error
1179where
1180    R: Send + Sync + std::fmt::Debug + 'static,
1181{
1182    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_stream_mode::UpdateStreamModeError, R>) -> Self {
1183        match err {
1184            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1185            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1186                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1187                source: err.into(),
1188            }),
1189        }
1190    }
1191}
1192impl From<crate::operation::update_stream_mode::UpdateStreamModeError> for Error {
1193    fn from(err: crate::operation::update_stream_mode::UpdateStreamModeError) -> Self {
1194        match err {
1195            crate::operation::update_stream_mode::UpdateStreamModeError::InvalidArgumentException(inner) => Error::InvalidArgumentException(inner),
1196            crate::operation::update_stream_mode::UpdateStreamModeError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1197            crate::operation::update_stream_mode::UpdateStreamModeError::LimitExceededException(inner) => Error::LimitExceededException(inner),
1198            crate::operation::update_stream_mode::UpdateStreamModeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1199            crate::operation::update_stream_mode::UpdateStreamModeError::Unhandled(inner) => Error::Unhandled(inner),
1200        }
1201    }
1202}
1203impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
1204where
1205    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
1206    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
1207{
1208    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
1209        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1210            meta: ::std::default::Default::default(),
1211            source: err.into(),
1212        })
1213    }
1214}
1215impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::SubscribeToShardEventStreamError, R>> for Error
1216where
1217    R: Send + Sync + std::fmt::Debug + 'static,
1218{
1219    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::types::error::SubscribeToShardEventStreamError, R>) -> Self {
1220        match err {
1221            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1222            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1223                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1224                source: err.into(),
1225            }),
1226        }
1227    }
1228}
1229impl From<crate::types::error::SubscribeToShardEventStreamError> for Error {
1230    fn from(err: crate::types::error::SubscribeToShardEventStreamError) -> Self {
1231        match err {
1232            crate::types::error::SubscribeToShardEventStreamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1233            crate::types::error::SubscribeToShardEventStreamError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
1234            crate::types::error::SubscribeToShardEventStreamError::KmsDisabledException(inner) => Error::KmsDisabledException(inner),
1235            crate::types::error::SubscribeToShardEventStreamError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
1236            crate::types::error::SubscribeToShardEventStreamError::KmsAccessDeniedException(inner) => Error::KmsAccessDeniedException(inner),
1237            crate::types::error::SubscribeToShardEventStreamError::KmsNotFoundException(inner) => Error::KmsNotFoundException(inner),
1238            crate::types::error::SubscribeToShardEventStreamError::KmsOptInRequired(inner) => Error::KmsOptInRequired(inner),
1239            crate::types::error::SubscribeToShardEventStreamError::KmsThrottlingException(inner) => Error::KmsThrottlingException(inner),
1240            crate::types::error::SubscribeToShardEventStreamError::InternalFailureException(inner) => Error::InternalFailureException(inner),
1241            crate::types::error::SubscribeToShardEventStreamError::Unhandled(inner) => Error::Unhandled(inner),
1242        }
1243    }
1244}
1245impl ::std::error::Error for Error {
1246    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1247        match self {
1248            Error::AccessDeniedException(inner) => inner.source(),
1249            Error::ExpiredIteratorException(inner) => inner.source(),
1250            Error::ExpiredNextTokenException(inner) => inner.source(),
1251            Error::InternalFailureException(inner) => inner.source(),
1252            Error::InvalidArgumentException(inner) => inner.source(),
1253            Error::KmsAccessDeniedException(inner) => inner.source(),
1254            Error::KmsDisabledException(inner) => inner.source(),
1255            Error::KmsInvalidStateException(inner) => inner.source(),
1256            Error::KmsNotFoundException(inner) => inner.source(),
1257            Error::KmsOptInRequired(inner) => inner.source(),
1258            Error::KmsThrottlingException(inner) => inner.source(),
1259            Error::LimitExceededException(inner) => inner.source(),
1260            Error::ProvisionedThroughputExceededException(inner) => inner.source(),
1261            Error::ResourceInUseException(inner) => inner.source(),
1262            Error::ResourceNotFoundException(inner) => inner.source(),
1263            Error::ValidationException(inner) => inner.source(),
1264            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1265        }
1266    }
1267}
1268impl ::aws_types::request_id::RequestId for Error {
1269    fn request_id(&self) -> Option<&str> {
1270        match self {
1271            Self::AccessDeniedException(e) => e.request_id(),
1272            Self::ExpiredIteratorException(e) => e.request_id(),
1273            Self::ExpiredNextTokenException(e) => e.request_id(),
1274            Self::InternalFailureException(e) => e.request_id(),
1275            Self::InvalidArgumentException(e) => e.request_id(),
1276            Self::KmsAccessDeniedException(e) => e.request_id(),
1277            Self::KmsDisabledException(e) => e.request_id(),
1278            Self::KmsInvalidStateException(e) => e.request_id(),
1279            Self::KmsNotFoundException(e) => e.request_id(),
1280            Self::KmsOptInRequired(e) => e.request_id(),
1281            Self::KmsThrottlingException(e) => e.request_id(),
1282            Self::LimitExceededException(e) => e.request_id(),
1283            Self::ProvisionedThroughputExceededException(e) => e.request_id(),
1284            Self::ResourceInUseException(e) => e.request_id(),
1285            Self::ResourceNotFoundException(e) => e.request_id(),
1286            Self::ValidationException(e) => e.request_id(),
1287            Self::Unhandled(e) => e.meta.request_id(),
1288        }
1289    }
1290}