aws_sdk_mediapackagev2/
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>You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>Updating or deleting this resource can cause an inconsistent state.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>Indicates that an error from the service occurred while trying to process a request.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The specified resource doesn't exist.</p>
13    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14    /// <p>The request would cause a service quota to be exceeded.</p>
15    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16    /// <p>The request throughput limit was exceeded.</p>
17    ThrottlingException(crate::types::error::ThrottlingException),
18    /// <p>The input failed to meet the constraints specified by the AWS service.</p>
19    ValidationException(crate::types::error::ValidationException),
20    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
21    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22    variable wildcard pattern and check `.code()`:
23     \
24    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25     \
26    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27    Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31        match self {
32            Error::AccessDeniedException(inner) => inner.fmt(f),
33            Error::ConflictException(inner) => inner.fmt(f),
34            Error::InternalServerException(inner) => inner.fmt(f),
35            Error::ResourceNotFoundException(inner) => inner.fmt(f),
36            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37            Error::ThrottlingException(inner) => inner.fmt(f),
38            Error::ValidationException(inner) => inner.fmt(f),
39            Error::Unhandled(_) => {
40                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41                    write!(f, "unhandled error ({code})")
42                } else {
43                    f.write_str("unhandled error")
44                }
45            }
46        }
47    }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52            source: value.into(),
53            meta: ::std::default::Default::default(),
54        })
55    }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59        match self {
60            Self::AccessDeniedException(inner) => inner.meta(),
61            Self::ConflictException(inner) => inner.meta(),
62            Self::InternalServerException(inner) => inner.meta(),
63            Self::ResourceNotFoundException(inner) => inner.meta(),
64            Self::ServiceQuotaExceededException(inner) => inner.meta(),
65            Self::ThrottlingException(inner) => inner.meta(),
66            Self::ValidationException(inner) => inner.meta(),
67            Self::Unhandled(inner) => &inner.meta,
68        }
69    }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_harvest_job::CancelHarvestJobError, R>> for Error
72where
73    R: Send + Sync + std::fmt::Debug + 'static,
74{
75    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_harvest_job::CancelHarvestJobError, R>) -> Self {
76        match err {
77            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80                source: err.into(),
81            }),
82        }
83    }
84}
85impl From<crate::operation::cancel_harvest_job::CancelHarvestJobError> for Error {
86    fn from(err: crate::operation::cancel_harvest_job::CancelHarvestJobError) -> Self {
87        match err {
88            crate::operation::cancel_harvest_job::CancelHarvestJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89            crate::operation::cancel_harvest_job::CancelHarvestJobError::ConflictException(inner) => Error::ConflictException(inner),
90            crate::operation::cancel_harvest_job::CancelHarvestJobError::InternalServerException(inner) => Error::InternalServerException(inner),
91            crate::operation::cancel_harvest_job::CancelHarvestJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
92            crate::operation::cancel_harvest_job::CancelHarvestJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
93            crate::operation::cancel_harvest_job::CancelHarvestJobError::ValidationException(inner) => Error::ValidationException(inner),
94            crate::operation::cancel_harvest_job::CancelHarvestJobError::Unhandled(inner) => Error::Unhandled(inner),
95        }
96    }
97}
98impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_channel::CreateChannelError, R>> for Error
99where
100    R: Send + Sync + std::fmt::Debug + 'static,
101{
102    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_channel::CreateChannelError, R>) -> Self {
103        match err {
104            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
105            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
106                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
107                source: err.into(),
108            }),
109        }
110    }
111}
112impl From<crate::operation::create_channel::CreateChannelError> for Error {
113    fn from(err: crate::operation::create_channel::CreateChannelError) -> Self {
114        match err {
115            crate::operation::create_channel::CreateChannelError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
116            crate::operation::create_channel::CreateChannelError::ConflictException(inner) => Error::ConflictException(inner),
117            crate::operation::create_channel::CreateChannelError::InternalServerException(inner) => Error::InternalServerException(inner),
118            crate::operation::create_channel::CreateChannelError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
119            crate::operation::create_channel::CreateChannelError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
120            crate::operation::create_channel::CreateChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
121            crate::operation::create_channel::CreateChannelError::ValidationException(inner) => Error::ValidationException(inner),
122            crate::operation::create_channel::CreateChannelError::Unhandled(inner) => Error::Unhandled(inner),
123        }
124    }
125}
126impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_channel_group::CreateChannelGroupError, R>> for Error
127where
128    R: Send + Sync + std::fmt::Debug + 'static,
129{
130    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_channel_group::CreateChannelGroupError, R>) -> Self {
131        match err {
132            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
133            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
134                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
135                source: err.into(),
136            }),
137        }
138    }
139}
140impl From<crate::operation::create_channel_group::CreateChannelGroupError> for Error {
141    fn from(err: crate::operation::create_channel_group::CreateChannelGroupError) -> Self {
142        match err {
143            crate::operation::create_channel_group::CreateChannelGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
144            crate::operation::create_channel_group::CreateChannelGroupError::ConflictException(inner) => Error::ConflictException(inner),
145            crate::operation::create_channel_group::CreateChannelGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
146            crate::operation::create_channel_group::CreateChannelGroupError::ResourceNotFoundException(inner) => {
147                Error::ResourceNotFoundException(inner)
148            }
149            crate::operation::create_channel_group::CreateChannelGroupError::ServiceQuotaExceededException(inner) => {
150                Error::ServiceQuotaExceededException(inner)
151            }
152            crate::operation::create_channel_group::CreateChannelGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
153            crate::operation::create_channel_group::CreateChannelGroupError::ValidationException(inner) => Error::ValidationException(inner),
154            crate::operation::create_channel_group::CreateChannelGroupError::Unhandled(inner) => Error::Unhandled(inner),
155        }
156    }
157}
158impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_harvest_job::CreateHarvestJobError, R>> for Error
159where
160    R: Send + Sync + std::fmt::Debug + 'static,
161{
162    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_harvest_job::CreateHarvestJobError, R>) -> Self {
163        match err {
164            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
165            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
166                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
167                source: err.into(),
168            }),
169        }
170    }
171}
172impl From<crate::operation::create_harvest_job::CreateHarvestJobError> for Error {
173    fn from(err: crate::operation::create_harvest_job::CreateHarvestJobError) -> Self {
174        match err {
175            crate::operation::create_harvest_job::CreateHarvestJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
176            crate::operation::create_harvest_job::CreateHarvestJobError::ConflictException(inner) => Error::ConflictException(inner),
177            crate::operation::create_harvest_job::CreateHarvestJobError::InternalServerException(inner) => Error::InternalServerException(inner),
178            crate::operation::create_harvest_job::CreateHarvestJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
179            crate::operation::create_harvest_job::CreateHarvestJobError::ServiceQuotaExceededException(inner) => {
180                Error::ServiceQuotaExceededException(inner)
181            }
182            crate::operation::create_harvest_job::CreateHarvestJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
183            crate::operation::create_harvest_job::CreateHarvestJobError::ValidationException(inner) => Error::ValidationException(inner),
184            crate::operation::create_harvest_job::CreateHarvestJobError::Unhandled(inner) => Error::Unhandled(inner),
185        }
186    }
187}
188impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_origin_endpoint::CreateOriginEndpointError, R>> for Error
189where
190    R: Send + Sync + std::fmt::Debug + 'static,
191{
192    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_origin_endpoint::CreateOriginEndpointError, R>) -> Self {
193        match err {
194            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
195            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
196                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
197                source: err.into(),
198            }),
199        }
200    }
201}
202impl From<crate::operation::create_origin_endpoint::CreateOriginEndpointError> for Error {
203    fn from(err: crate::operation::create_origin_endpoint::CreateOriginEndpointError) -> Self {
204        match err {
205            crate::operation::create_origin_endpoint::CreateOriginEndpointError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
206            crate::operation::create_origin_endpoint::CreateOriginEndpointError::ConflictException(inner) => Error::ConflictException(inner),
207            crate::operation::create_origin_endpoint::CreateOriginEndpointError::InternalServerException(inner) => {
208                Error::InternalServerException(inner)
209            }
210            crate::operation::create_origin_endpoint::CreateOriginEndpointError::ResourceNotFoundException(inner) => {
211                Error::ResourceNotFoundException(inner)
212            }
213            crate::operation::create_origin_endpoint::CreateOriginEndpointError::ServiceQuotaExceededException(inner) => {
214                Error::ServiceQuotaExceededException(inner)
215            }
216            crate::operation::create_origin_endpoint::CreateOriginEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
217            crate::operation::create_origin_endpoint::CreateOriginEndpointError::ValidationException(inner) => Error::ValidationException(inner),
218            crate::operation::create_origin_endpoint::CreateOriginEndpointError::Unhandled(inner) => Error::Unhandled(inner),
219        }
220    }
221}
222impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel::DeleteChannelError, R>> for Error
223where
224    R: Send + Sync + std::fmt::Debug + 'static,
225{
226    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel::DeleteChannelError, R>) -> Self {
227        match err {
228            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
229            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
230                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
231                source: err.into(),
232            }),
233        }
234    }
235}
236impl From<crate::operation::delete_channel::DeleteChannelError> for Error {
237    fn from(err: crate::operation::delete_channel::DeleteChannelError) -> Self {
238        match err {
239            crate::operation::delete_channel::DeleteChannelError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
240            crate::operation::delete_channel::DeleteChannelError::ConflictException(inner) => Error::ConflictException(inner),
241            crate::operation::delete_channel::DeleteChannelError::InternalServerException(inner) => Error::InternalServerException(inner),
242            crate::operation::delete_channel::DeleteChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
243            crate::operation::delete_channel::DeleteChannelError::ValidationException(inner) => Error::ValidationException(inner),
244            crate::operation::delete_channel::DeleteChannelError::Unhandled(inner) => Error::Unhandled(inner),
245        }
246    }
247}
248impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel_group::DeleteChannelGroupError, R>> for Error
249where
250    R: Send + Sync + std::fmt::Debug + 'static,
251{
252    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel_group::DeleteChannelGroupError, R>) -> Self {
253        match err {
254            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
255            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
256                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
257                source: err.into(),
258            }),
259        }
260    }
261}
262impl From<crate::operation::delete_channel_group::DeleteChannelGroupError> for Error {
263    fn from(err: crate::operation::delete_channel_group::DeleteChannelGroupError) -> Self {
264        match err {
265            crate::operation::delete_channel_group::DeleteChannelGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
266            crate::operation::delete_channel_group::DeleteChannelGroupError::ConflictException(inner) => Error::ConflictException(inner),
267            crate::operation::delete_channel_group::DeleteChannelGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
268            crate::operation::delete_channel_group::DeleteChannelGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
269            crate::operation::delete_channel_group::DeleteChannelGroupError::ValidationException(inner) => Error::ValidationException(inner),
270            crate::operation::delete_channel_group::DeleteChannelGroupError::Unhandled(inner) => Error::Unhandled(inner),
271        }
272    }
273}
274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel_policy::DeleteChannelPolicyError, R>> for Error
275where
276    R: Send + Sync + std::fmt::Debug + 'static,
277{
278    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_channel_policy::DeleteChannelPolicyError, R>) -> Self {
279        match err {
280            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
281            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
282                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
283                source: err.into(),
284            }),
285        }
286    }
287}
288impl From<crate::operation::delete_channel_policy::DeleteChannelPolicyError> for Error {
289    fn from(err: crate::operation::delete_channel_policy::DeleteChannelPolicyError) -> Self {
290        match err {
291            crate::operation::delete_channel_policy::DeleteChannelPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
292            crate::operation::delete_channel_policy::DeleteChannelPolicyError::ConflictException(inner) => Error::ConflictException(inner),
293            crate::operation::delete_channel_policy::DeleteChannelPolicyError::InternalServerException(inner) => {
294                Error::InternalServerException(inner)
295            }
296            crate::operation::delete_channel_policy::DeleteChannelPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
297            crate::operation::delete_channel_policy::DeleteChannelPolicyError::ValidationException(inner) => Error::ValidationException(inner),
298            crate::operation::delete_channel_policy::DeleteChannelPolicyError::Unhandled(inner) => Error::Unhandled(inner),
299        }
300    }
301}
302impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_origin_endpoint::DeleteOriginEndpointError, R>> for Error
303where
304    R: Send + Sync + std::fmt::Debug + 'static,
305{
306    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_origin_endpoint::DeleteOriginEndpointError, R>) -> Self {
307        match err {
308            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
309            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
310                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
311                source: err.into(),
312            }),
313        }
314    }
315}
316impl From<crate::operation::delete_origin_endpoint::DeleteOriginEndpointError> for Error {
317    fn from(err: crate::operation::delete_origin_endpoint::DeleteOriginEndpointError) -> Self {
318        match err {
319            crate::operation::delete_origin_endpoint::DeleteOriginEndpointError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
320            crate::operation::delete_origin_endpoint::DeleteOriginEndpointError::InternalServerException(inner) => {
321                Error::InternalServerException(inner)
322            }
323            crate::operation::delete_origin_endpoint::DeleteOriginEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
324            crate::operation::delete_origin_endpoint::DeleteOriginEndpointError::ValidationException(inner) => Error::ValidationException(inner),
325            crate::operation::delete_origin_endpoint::DeleteOriginEndpointError::Unhandled(inner) => Error::Unhandled(inner),
326        }
327    }
328}
329impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_origin_endpoint_policy::DeleteOriginEndpointPolicyError, R>>
330    for Error
331where
332    R: Send + Sync + std::fmt::Debug + 'static,
333{
334    fn from(
335        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_origin_endpoint_policy::DeleteOriginEndpointPolicyError, R>,
336    ) -> Self {
337        match err {
338            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
339            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
340                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
341                source: err.into(),
342            }),
343        }
344    }
345}
346impl From<crate::operation::delete_origin_endpoint_policy::DeleteOriginEndpointPolicyError> for Error {
347    fn from(err: crate::operation::delete_origin_endpoint_policy::DeleteOriginEndpointPolicyError) -> Self {
348        match err {
349            crate::operation::delete_origin_endpoint_policy::DeleteOriginEndpointPolicyError::AccessDeniedException(inner) => {
350                Error::AccessDeniedException(inner)
351            }
352            crate::operation::delete_origin_endpoint_policy::DeleteOriginEndpointPolicyError::ConflictException(inner) => {
353                Error::ConflictException(inner)
354            }
355            crate::operation::delete_origin_endpoint_policy::DeleteOriginEndpointPolicyError::InternalServerException(inner) => {
356                Error::InternalServerException(inner)
357            }
358            crate::operation::delete_origin_endpoint_policy::DeleteOriginEndpointPolicyError::ThrottlingException(inner) => {
359                Error::ThrottlingException(inner)
360            }
361            crate::operation::delete_origin_endpoint_policy::DeleteOriginEndpointPolicyError::ValidationException(inner) => {
362                Error::ValidationException(inner)
363            }
364            crate::operation::delete_origin_endpoint_policy::DeleteOriginEndpointPolicyError::Unhandled(inner) => Error::Unhandled(inner),
365        }
366    }
367}
368impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channel::GetChannelError, R>> for Error
369where
370    R: Send + Sync + std::fmt::Debug + 'static,
371{
372    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channel::GetChannelError, R>) -> Self {
373        match err {
374            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
375            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
376                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
377                source: err.into(),
378            }),
379        }
380    }
381}
382impl From<crate::operation::get_channel::GetChannelError> for Error {
383    fn from(err: crate::operation::get_channel::GetChannelError) -> Self {
384        match err {
385            crate::operation::get_channel::GetChannelError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
386            crate::operation::get_channel::GetChannelError::InternalServerException(inner) => Error::InternalServerException(inner),
387            crate::operation::get_channel::GetChannelError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
388            crate::operation::get_channel::GetChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
389            crate::operation::get_channel::GetChannelError::ValidationException(inner) => Error::ValidationException(inner),
390            crate::operation::get_channel::GetChannelError::Unhandled(inner) => Error::Unhandled(inner),
391        }
392    }
393}
394impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channel_group::GetChannelGroupError, R>> for Error
395where
396    R: Send + Sync + std::fmt::Debug + 'static,
397{
398    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channel_group::GetChannelGroupError, R>) -> Self {
399        match err {
400            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
401            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
402                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
403                source: err.into(),
404            }),
405        }
406    }
407}
408impl From<crate::operation::get_channel_group::GetChannelGroupError> for Error {
409    fn from(err: crate::operation::get_channel_group::GetChannelGroupError) -> Self {
410        match err {
411            crate::operation::get_channel_group::GetChannelGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
412            crate::operation::get_channel_group::GetChannelGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
413            crate::operation::get_channel_group::GetChannelGroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
414            crate::operation::get_channel_group::GetChannelGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
415            crate::operation::get_channel_group::GetChannelGroupError::ValidationException(inner) => Error::ValidationException(inner),
416            crate::operation::get_channel_group::GetChannelGroupError::Unhandled(inner) => Error::Unhandled(inner),
417        }
418    }
419}
420impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channel_policy::GetChannelPolicyError, R>> for Error
421where
422    R: Send + Sync + std::fmt::Debug + 'static,
423{
424    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_channel_policy::GetChannelPolicyError, R>) -> Self {
425        match err {
426            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
427            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
428                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
429                source: err.into(),
430            }),
431        }
432    }
433}
434impl From<crate::operation::get_channel_policy::GetChannelPolicyError> for Error {
435    fn from(err: crate::operation::get_channel_policy::GetChannelPolicyError) -> Self {
436        match err {
437            crate::operation::get_channel_policy::GetChannelPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
438            crate::operation::get_channel_policy::GetChannelPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
439            crate::operation::get_channel_policy::GetChannelPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
440            crate::operation::get_channel_policy::GetChannelPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
441            crate::operation::get_channel_policy::GetChannelPolicyError::ValidationException(inner) => Error::ValidationException(inner),
442            crate::operation::get_channel_policy::GetChannelPolicyError::Unhandled(inner) => Error::Unhandled(inner),
443        }
444    }
445}
446impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_harvest_job::GetHarvestJobError, R>> for Error
447where
448    R: Send + Sync + std::fmt::Debug + 'static,
449{
450    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_harvest_job::GetHarvestJobError, R>) -> Self {
451        match err {
452            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
453            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
454                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
455                source: err.into(),
456            }),
457        }
458    }
459}
460impl From<crate::operation::get_harvest_job::GetHarvestJobError> for Error {
461    fn from(err: crate::operation::get_harvest_job::GetHarvestJobError) -> Self {
462        match err {
463            crate::operation::get_harvest_job::GetHarvestJobError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
464            crate::operation::get_harvest_job::GetHarvestJobError::InternalServerException(inner) => Error::InternalServerException(inner),
465            crate::operation::get_harvest_job::GetHarvestJobError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
466            crate::operation::get_harvest_job::GetHarvestJobError::ThrottlingException(inner) => Error::ThrottlingException(inner),
467            crate::operation::get_harvest_job::GetHarvestJobError::ValidationException(inner) => Error::ValidationException(inner),
468            crate::operation::get_harvest_job::GetHarvestJobError::Unhandled(inner) => Error::Unhandled(inner),
469        }
470    }
471}
472impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_origin_endpoint::GetOriginEndpointError, R>> for Error
473where
474    R: Send + Sync + std::fmt::Debug + 'static,
475{
476    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_origin_endpoint::GetOriginEndpointError, R>) -> Self {
477        match err {
478            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
479            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
480                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
481                source: err.into(),
482            }),
483        }
484    }
485}
486impl From<crate::operation::get_origin_endpoint::GetOriginEndpointError> for Error {
487    fn from(err: crate::operation::get_origin_endpoint::GetOriginEndpointError) -> Self {
488        match err {
489            crate::operation::get_origin_endpoint::GetOriginEndpointError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
490            crate::operation::get_origin_endpoint::GetOriginEndpointError::InternalServerException(inner) => Error::InternalServerException(inner),
491            crate::operation::get_origin_endpoint::GetOriginEndpointError::ResourceNotFoundException(inner) => {
492                Error::ResourceNotFoundException(inner)
493            }
494            crate::operation::get_origin_endpoint::GetOriginEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
495            crate::operation::get_origin_endpoint::GetOriginEndpointError::ValidationException(inner) => Error::ValidationException(inner),
496            crate::operation::get_origin_endpoint::GetOriginEndpointError::Unhandled(inner) => Error::Unhandled(inner),
497        }
498    }
499}
500impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyError, R>>
501    for Error
502where
503    R: Send + Sync + std::fmt::Debug + 'static,
504{
505    fn from(
506        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyError, R>,
507    ) -> Self {
508        match err {
509            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
510            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
511                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
512                source: err.into(),
513            }),
514        }
515    }
516}
517impl From<crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyError> for Error {
518    fn from(err: crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyError) -> Self {
519        match err {
520            crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyError::AccessDeniedException(inner) => {
521                Error::AccessDeniedException(inner)
522            }
523            crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyError::InternalServerException(inner) => {
524                Error::InternalServerException(inner)
525            }
526            crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyError::ResourceNotFoundException(inner) => {
527                Error::ResourceNotFoundException(inner)
528            }
529            crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyError::ThrottlingException(inner) => {
530                Error::ThrottlingException(inner)
531            }
532            crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyError::ValidationException(inner) => {
533                Error::ValidationException(inner)
534            }
535            crate::operation::get_origin_endpoint_policy::GetOriginEndpointPolicyError::Unhandled(inner) => Error::Unhandled(inner),
536        }
537    }
538}
539impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channel_groups::ListChannelGroupsError, R>> for Error
540where
541    R: Send + Sync + std::fmt::Debug + 'static,
542{
543    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channel_groups::ListChannelGroupsError, R>) -> Self {
544        match err {
545            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
546            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
547                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
548                source: err.into(),
549            }),
550        }
551    }
552}
553impl From<crate::operation::list_channel_groups::ListChannelGroupsError> for Error {
554    fn from(err: crate::operation::list_channel_groups::ListChannelGroupsError) -> Self {
555        match err {
556            crate::operation::list_channel_groups::ListChannelGroupsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
557            crate::operation::list_channel_groups::ListChannelGroupsError::InternalServerException(inner) => Error::InternalServerException(inner),
558            crate::operation::list_channel_groups::ListChannelGroupsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
559            crate::operation::list_channel_groups::ListChannelGroupsError::ValidationException(inner) => Error::ValidationException(inner),
560            crate::operation::list_channel_groups::ListChannelGroupsError::Unhandled(inner) => Error::Unhandled(inner),
561        }
562    }
563}
564impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channels::ListChannelsError, R>> for Error
565where
566    R: Send + Sync + std::fmt::Debug + 'static,
567{
568    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_channels::ListChannelsError, R>) -> Self {
569        match err {
570            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
571            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
572                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
573                source: err.into(),
574            }),
575        }
576    }
577}
578impl From<crate::operation::list_channels::ListChannelsError> for Error {
579    fn from(err: crate::operation::list_channels::ListChannelsError) -> Self {
580        match err {
581            crate::operation::list_channels::ListChannelsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
582            crate::operation::list_channels::ListChannelsError::InternalServerException(inner) => Error::InternalServerException(inner),
583            crate::operation::list_channels::ListChannelsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
584            crate::operation::list_channels::ListChannelsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
585            crate::operation::list_channels::ListChannelsError::ValidationException(inner) => Error::ValidationException(inner),
586            crate::operation::list_channels::ListChannelsError::Unhandled(inner) => Error::Unhandled(inner),
587        }
588    }
589}
590impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_harvest_jobs::ListHarvestJobsError, R>> for Error
591where
592    R: Send + Sync + std::fmt::Debug + 'static,
593{
594    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_harvest_jobs::ListHarvestJobsError, R>) -> Self {
595        match err {
596            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
597            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
598                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
599                source: err.into(),
600            }),
601        }
602    }
603}
604impl From<crate::operation::list_harvest_jobs::ListHarvestJobsError> for Error {
605    fn from(err: crate::operation::list_harvest_jobs::ListHarvestJobsError) -> Self {
606        match err {
607            crate::operation::list_harvest_jobs::ListHarvestJobsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
608            crate::operation::list_harvest_jobs::ListHarvestJobsError::InternalServerException(inner) => Error::InternalServerException(inner),
609            crate::operation::list_harvest_jobs::ListHarvestJobsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
610            crate::operation::list_harvest_jobs::ListHarvestJobsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
611            crate::operation::list_harvest_jobs::ListHarvestJobsError::ValidationException(inner) => Error::ValidationException(inner),
612            crate::operation::list_harvest_jobs::ListHarvestJobsError::Unhandled(inner) => Error::Unhandled(inner),
613        }
614    }
615}
616impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_origin_endpoints::ListOriginEndpointsError, R>> for Error
617where
618    R: Send + Sync + std::fmt::Debug + 'static,
619{
620    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_origin_endpoints::ListOriginEndpointsError, R>) -> Self {
621        match err {
622            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
623            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
624                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
625                source: err.into(),
626            }),
627        }
628    }
629}
630impl From<crate::operation::list_origin_endpoints::ListOriginEndpointsError> for Error {
631    fn from(err: crate::operation::list_origin_endpoints::ListOriginEndpointsError) -> Self {
632        match err {
633            crate::operation::list_origin_endpoints::ListOriginEndpointsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
634            crate::operation::list_origin_endpoints::ListOriginEndpointsError::InternalServerException(inner) => {
635                Error::InternalServerException(inner)
636            }
637            crate::operation::list_origin_endpoints::ListOriginEndpointsError::ResourceNotFoundException(inner) => {
638                Error::ResourceNotFoundException(inner)
639            }
640            crate::operation::list_origin_endpoints::ListOriginEndpointsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
641            crate::operation::list_origin_endpoints::ListOriginEndpointsError::ValidationException(inner) => Error::ValidationException(inner),
642            crate::operation::list_origin_endpoints::ListOriginEndpointsError::Unhandled(inner) => Error::Unhandled(inner),
643        }
644    }
645}
646impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
647where
648    R: Send + Sync + std::fmt::Debug + 'static,
649{
650    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
651        match err {
652            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
653            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
654                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
655                source: err.into(),
656            }),
657        }
658    }
659}
660impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
661    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
662        match err {
663            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
664            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
665        }
666    }
667}
668impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_channel_policy::PutChannelPolicyError, R>> for Error
669where
670    R: Send + Sync + std::fmt::Debug + 'static,
671{
672    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_channel_policy::PutChannelPolicyError, R>) -> Self {
673        match err {
674            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
675            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
676                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
677                source: err.into(),
678            }),
679        }
680    }
681}
682impl From<crate::operation::put_channel_policy::PutChannelPolicyError> for Error {
683    fn from(err: crate::operation::put_channel_policy::PutChannelPolicyError) -> Self {
684        match err {
685            crate::operation::put_channel_policy::PutChannelPolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
686            crate::operation::put_channel_policy::PutChannelPolicyError::ConflictException(inner) => Error::ConflictException(inner),
687            crate::operation::put_channel_policy::PutChannelPolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
688            crate::operation::put_channel_policy::PutChannelPolicyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
689            crate::operation::put_channel_policy::PutChannelPolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
690            crate::operation::put_channel_policy::PutChannelPolicyError::ValidationException(inner) => Error::ValidationException(inner),
691            crate::operation::put_channel_policy::PutChannelPolicyError::Unhandled(inner) => Error::Unhandled(inner),
692        }
693    }
694}
695impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_origin_endpoint_policy::PutOriginEndpointPolicyError, R>>
696    for Error
697where
698    R: Send + Sync + std::fmt::Debug + 'static,
699{
700    fn from(
701        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_origin_endpoint_policy::PutOriginEndpointPolicyError, R>,
702    ) -> Self {
703        match err {
704            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
705            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
706                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
707                source: err.into(),
708            }),
709        }
710    }
711}
712impl From<crate::operation::put_origin_endpoint_policy::PutOriginEndpointPolicyError> for Error {
713    fn from(err: crate::operation::put_origin_endpoint_policy::PutOriginEndpointPolicyError) -> Self {
714        match err {
715            crate::operation::put_origin_endpoint_policy::PutOriginEndpointPolicyError::AccessDeniedException(inner) => {
716                Error::AccessDeniedException(inner)
717            }
718            crate::operation::put_origin_endpoint_policy::PutOriginEndpointPolicyError::ConflictException(inner) => Error::ConflictException(inner),
719            crate::operation::put_origin_endpoint_policy::PutOriginEndpointPolicyError::InternalServerException(inner) => {
720                Error::InternalServerException(inner)
721            }
722            crate::operation::put_origin_endpoint_policy::PutOriginEndpointPolicyError::ResourceNotFoundException(inner) => {
723                Error::ResourceNotFoundException(inner)
724            }
725            crate::operation::put_origin_endpoint_policy::PutOriginEndpointPolicyError::ThrottlingException(inner) => {
726                Error::ThrottlingException(inner)
727            }
728            crate::operation::put_origin_endpoint_policy::PutOriginEndpointPolicyError::ValidationException(inner) => {
729                Error::ValidationException(inner)
730            }
731            crate::operation::put_origin_endpoint_policy::PutOriginEndpointPolicyError::Unhandled(inner) => Error::Unhandled(inner),
732        }
733    }
734}
735impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_channel_state::ResetChannelStateError, R>> for Error
736where
737    R: Send + Sync + std::fmt::Debug + 'static,
738{
739    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_channel_state::ResetChannelStateError, R>) -> Self {
740        match err {
741            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
742            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
743                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
744                source: err.into(),
745            }),
746        }
747    }
748}
749impl From<crate::operation::reset_channel_state::ResetChannelStateError> for Error {
750    fn from(err: crate::operation::reset_channel_state::ResetChannelStateError) -> Self {
751        match err {
752            crate::operation::reset_channel_state::ResetChannelStateError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
753            crate::operation::reset_channel_state::ResetChannelStateError::ConflictException(inner) => Error::ConflictException(inner),
754            crate::operation::reset_channel_state::ResetChannelStateError::InternalServerException(inner) => Error::InternalServerException(inner),
755            crate::operation::reset_channel_state::ResetChannelStateError::ResourceNotFoundException(inner) => {
756                Error::ResourceNotFoundException(inner)
757            }
758            crate::operation::reset_channel_state::ResetChannelStateError::ThrottlingException(inner) => Error::ThrottlingException(inner),
759            crate::operation::reset_channel_state::ResetChannelStateError::ValidationException(inner) => Error::ValidationException(inner),
760            crate::operation::reset_channel_state::ResetChannelStateError::Unhandled(inner) => Error::Unhandled(inner),
761        }
762    }
763}
764impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_origin_endpoint_state::ResetOriginEndpointStateError, R>>
765    for Error
766where
767    R: Send + Sync + std::fmt::Debug + 'static,
768{
769    fn from(
770        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_origin_endpoint_state::ResetOriginEndpointStateError, R>,
771    ) -> Self {
772        match err {
773            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
774            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
775                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
776                source: err.into(),
777            }),
778        }
779    }
780}
781impl From<crate::operation::reset_origin_endpoint_state::ResetOriginEndpointStateError> for Error {
782    fn from(err: crate::operation::reset_origin_endpoint_state::ResetOriginEndpointStateError) -> Self {
783        match err {
784            crate::operation::reset_origin_endpoint_state::ResetOriginEndpointStateError::AccessDeniedException(inner) => {
785                Error::AccessDeniedException(inner)
786            }
787            crate::operation::reset_origin_endpoint_state::ResetOriginEndpointStateError::ConflictException(inner) => Error::ConflictException(inner),
788            crate::operation::reset_origin_endpoint_state::ResetOriginEndpointStateError::InternalServerException(inner) => {
789                Error::InternalServerException(inner)
790            }
791            crate::operation::reset_origin_endpoint_state::ResetOriginEndpointStateError::ResourceNotFoundException(inner) => {
792                Error::ResourceNotFoundException(inner)
793            }
794            crate::operation::reset_origin_endpoint_state::ResetOriginEndpointStateError::ThrottlingException(inner) => {
795                Error::ThrottlingException(inner)
796            }
797            crate::operation::reset_origin_endpoint_state::ResetOriginEndpointStateError::ValidationException(inner) => {
798                Error::ValidationException(inner)
799            }
800            crate::operation::reset_origin_endpoint_state::ResetOriginEndpointStateError::Unhandled(inner) => Error::Unhandled(inner),
801        }
802    }
803}
804impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
805where
806    R: Send + Sync + std::fmt::Debug + 'static,
807{
808    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
809        match err {
810            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
811            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
812                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
813                source: err.into(),
814            }),
815        }
816    }
817}
818impl From<crate::operation::tag_resource::TagResourceError> for Error {
819    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
820        match err {
821            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
822            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
823        }
824    }
825}
826impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
827where
828    R: Send + Sync + std::fmt::Debug + 'static,
829{
830    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
831        match err {
832            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
833            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
834                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
835                source: err.into(),
836            }),
837        }
838    }
839}
840impl From<crate::operation::untag_resource::UntagResourceError> for Error {
841    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
842        match err {
843            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
844            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
845        }
846    }
847}
848impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_channel::UpdateChannelError, R>> for Error
849where
850    R: Send + Sync + std::fmt::Debug + 'static,
851{
852    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_channel::UpdateChannelError, R>) -> Self {
853        match err {
854            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
855            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
856                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
857                source: err.into(),
858            }),
859        }
860    }
861}
862impl From<crate::operation::update_channel::UpdateChannelError> for Error {
863    fn from(err: crate::operation::update_channel::UpdateChannelError) -> Self {
864        match err {
865            crate::operation::update_channel::UpdateChannelError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
866            crate::operation::update_channel::UpdateChannelError::ConflictException(inner) => Error::ConflictException(inner),
867            crate::operation::update_channel::UpdateChannelError::InternalServerException(inner) => Error::InternalServerException(inner),
868            crate::operation::update_channel::UpdateChannelError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
869            crate::operation::update_channel::UpdateChannelError::ThrottlingException(inner) => Error::ThrottlingException(inner),
870            crate::operation::update_channel::UpdateChannelError::ValidationException(inner) => Error::ValidationException(inner),
871            crate::operation::update_channel::UpdateChannelError::Unhandled(inner) => Error::Unhandled(inner),
872        }
873    }
874}
875impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_channel_group::UpdateChannelGroupError, R>> for Error
876where
877    R: Send + Sync + std::fmt::Debug + 'static,
878{
879    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_channel_group::UpdateChannelGroupError, R>) -> Self {
880        match err {
881            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
882            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
883                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
884                source: err.into(),
885            }),
886        }
887    }
888}
889impl From<crate::operation::update_channel_group::UpdateChannelGroupError> for Error {
890    fn from(err: crate::operation::update_channel_group::UpdateChannelGroupError) -> Self {
891        match err {
892            crate::operation::update_channel_group::UpdateChannelGroupError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
893            crate::operation::update_channel_group::UpdateChannelGroupError::ConflictException(inner) => Error::ConflictException(inner),
894            crate::operation::update_channel_group::UpdateChannelGroupError::InternalServerException(inner) => Error::InternalServerException(inner),
895            crate::operation::update_channel_group::UpdateChannelGroupError::ResourceNotFoundException(inner) => {
896                Error::ResourceNotFoundException(inner)
897            }
898            crate::operation::update_channel_group::UpdateChannelGroupError::ThrottlingException(inner) => Error::ThrottlingException(inner),
899            crate::operation::update_channel_group::UpdateChannelGroupError::ValidationException(inner) => Error::ValidationException(inner),
900            crate::operation::update_channel_group::UpdateChannelGroupError::Unhandled(inner) => Error::Unhandled(inner),
901        }
902    }
903}
904impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_origin_endpoint::UpdateOriginEndpointError, R>> for Error
905where
906    R: Send + Sync + std::fmt::Debug + 'static,
907{
908    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_origin_endpoint::UpdateOriginEndpointError, R>) -> Self {
909        match err {
910            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
911            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
912                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
913                source: err.into(),
914            }),
915        }
916    }
917}
918impl From<crate::operation::update_origin_endpoint::UpdateOriginEndpointError> for Error {
919    fn from(err: crate::operation::update_origin_endpoint::UpdateOriginEndpointError) -> Self {
920        match err {
921            crate::operation::update_origin_endpoint::UpdateOriginEndpointError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
922            crate::operation::update_origin_endpoint::UpdateOriginEndpointError::ConflictException(inner) => Error::ConflictException(inner),
923            crate::operation::update_origin_endpoint::UpdateOriginEndpointError::InternalServerException(inner) => {
924                Error::InternalServerException(inner)
925            }
926            crate::operation::update_origin_endpoint::UpdateOriginEndpointError::ResourceNotFoundException(inner) => {
927                Error::ResourceNotFoundException(inner)
928            }
929            crate::operation::update_origin_endpoint::UpdateOriginEndpointError::ServiceQuotaExceededException(inner) => {
930                Error::ServiceQuotaExceededException(inner)
931            }
932            crate::operation::update_origin_endpoint::UpdateOriginEndpointError::ThrottlingException(inner) => Error::ThrottlingException(inner),
933            crate::operation::update_origin_endpoint::UpdateOriginEndpointError::ValidationException(inner) => Error::ValidationException(inner),
934            crate::operation::update_origin_endpoint::UpdateOriginEndpointError::Unhandled(inner) => Error::Unhandled(inner),
935        }
936    }
937}
938impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
939where
940    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
941    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
942{
943    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
944        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
945            meta: ::std::default::Default::default(),
946            source: err.into(),
947        })
948    }
949}
950impl ::std::error::Error for Error {
951    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
952        match self {
953            Error::AccessDeniedException(inner) => inner.source(),
954            Error::ConflictException(inner) => inner.source(),
955            Error::InternalServerException(inner) => inner.source(),
956            Error::ResourceNotFoundException(inner) => inner.source(),
957            Error::ServiceQuotaExceededException(inner) => inner.source(),
958            Error::ThrottlingException(inner) => inner.source(),
959            Error::ValidationException(inner) => inner.source(),
960            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
961        }
962    }
963}
964impl ::aws_types::request_id::RequestId for Error {
965    fn request_id(&self) -> Option<&str> {
966        match self {
967            Self::AccessDeniedException(e) => e.request_id(),
968            Self::ConflictException(e) => e.request_id(),
969            Self::InternalServerException(e) => e.request_id(),
970            Self::ResourceNotFoundException(e) => e.request_id(),
971            Self::ServiceQuotaExceededException(e) => e.request_id(),
972            Self::ThrottlingException(e) => e.request_id(),
973            Self::ValidationException(e) => e.request_id(),
974            Self::Unhandled(e) => e.meta.request_id(),
975        }
976    }
977}