aws_sdk_pcaconnectorscep/
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 can receive this error if you attempt to perform an operation and you don't have the required permissions. This can be caused by insufficient permissions in policies attached to your Amazon Web Services Identity and Access Management (IAM) principal. It can also happen because of restrictions in place from an Amazon Web Services Organizations service control policy (SCP) that affects your Amazon Web Services account.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.</p>
9    BadRequestException(crate::types::error::BadRequestException),
10    /// <p>This request can't be completed for one of the following reasons because the requested resource was being concurrently modified by another request.</p>
11    ConflictException(crate::types::error::ConflictException),
12    /// <p>The request processing has failed because of an unknown error, exception or failure with an internal server.</p>
13    InternalServerException(crate::types::error::InternalServerException),
14    /// <p>The operation tried to access a nonexistent resource. The resource might be incorrectly specified, or it might have a status other than <code>ACTIVE</code>.</p>
15    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
16    /// <p>The request would cause a service quota to be exceeded.</p>
17    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
18    /// <p>The limit on the number of requests per second was exceeded.</p>
19    ThrottlingException(crate::types::error::ThrottlingException),
20    /// <p>An input validation error occurred. For example, invalid characters in a name tag, or an invalid pagination token.</p>
21    ValidationException(crate::types::error::ValidationException),
22    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
23    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
24    variable wildcard pattern and check `.code()`:
25     \
26    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
27     \
28    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
29    Unhandled(crate::error::sealed_unhandled::Unhandled),
30}
31impl ::std::fmt::Display for Error {
32    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
33        match self {
34            Error::AccessDeniedException(inner) => inner.fmt(f),
35            Error::BadRequestException(inner) => inner.fmt(f),
36            Error::ConflictException(inner) => inner.fmt(f),
37            Error::InternalServerException(inner) => inner.fmt(f),
38            Error::ResourceNotFoundException(inner) => inner.fmt(f),
39            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
40            Error::ThrottlingException(inner) => inner.fmt(f),
41            Error::ValidationException(inner) => inner.fmt(f),
42            Error::Unhandled(_) => {
43                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
44                    write!(f, "unhandled error ({code})")
45                } else {
46                    f.write_str("unhandled error")
47                }
48            }
49        }
50    }
51}
52impl From<::aws_smithy_types::error::operation::BuildError> for Error {
53    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
54        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
55            source: value.into(),
56            meta: ::std::default::Default::default(),
57        })
58    }
59}
60impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
61    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
62        match self {
63            Self::AccessDeniedException(inner) => inner.meta(),
64            Self::BadRequestException(inner) => inner.meta(),
65            Self::ConflictException(inner) => inner.meta(),
66            Self::InternalServerException(inner) => inner.meta(),
67            Self::ResourceNotFoundException(inner) => inner.meta(),
68            Self::ServiceQuotaExceededException(inner) => inner.meta(),
69            Self::ThrottlingException(inner) => inner.meta(),
70            Self::ValidationException(inner) => inner.meta(),
71            Self::Unhandled(inner) => &inner.meta,
72        }
73    }
74}
75impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_challenge::CreateChallengeError, R>> for Error
76where
77    R: Send + Sync + std::fmt::Debug + 'static,
78{
79    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_challenge::CreateChallengeError, R>) -> Self {
80        match err {
81            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
82            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
83                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
84                source: err.into(),
85            }),
86        }
87    }
88}
89impl From<crate::operation::create_challenge::CreateChallengeError> for Error {
90    fn from(err: crate::operation::create_challenge::CreateChallengeError) -> Self {
91        match err {
92            crate::operation::create_challenge::CreateChallengeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
93            crate::operation::create_challenge::CreateChallengeError::BadRequestException(inner) => Error::BadRequestException(inner),
94            crate::operation::create_challenge::CreateChallengeError::ConflictException(inner) => Error::ConflictException(inner),
95            crate::operation::create_challenge::CreateChallengeError::InternalServerException(inner) => Error::InternalServerException(inner),
96            crate::operation::create_challenge::CreateChallengeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
97            crate::operation::create_challenge::CreateChallengeError::ServiceQuotaExceededException(inner) => {
98                Error::ServiceQuotaExceededException(inner)
99            }
100            crate::operation::create_challenge::CreateChallengeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
101            crate::operation::create_challenge::CreateChallengeError::ValidationException(inner) => Error::ValidationException(inner),
102            crate::operation::create_challenge::CreateChallengeError::Unhandled(inner) => Error::Unhandled(inner),
103        }
104    }
105}
106impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connector::CreateConnectorError, R>> for Error
107where
108    R: Send + Sync + std::fmt::Debug + 'static,
109{
110    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_connector::CreateConnectorError, R>) -> Self {
111        match err {
112            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
113            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
114                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
115                source: err.into(),
116            }),
117        }
118    }
119}
120impl From<crate::operation::create_connector::CreateConnectorError> for Error {
121    fn from(err: crate::operation::create_connector::CreateConnectorError) -> Self {
122        match err {
123            crate::operation::create_connector::CreateConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
124            crate::operation::create_connector::CreateConnectorError::ConflictException(inner) => Error::ConflictException(inner),
125            crate::operation::create_connector::CreateConnectorError::InternalServerException(inner) => Error::InternalServerException(inner),
126            crate::operation::create_connector::CreateConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
127            crate::operation::create_connector::CreateConnectorError::ServiceQuotaExceededException(inner) => {
128                Error::ServiceQuotaExceededException(inner)
129            }
130            crate::operation::create_connector::CreateConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
131            crate::operation::create_connector::CreateConnectorError::ValidationException(inner) => Error::ValidationException(inner),
132            crate::operation::create_connector::CreateConnectorError::Unhandled(inner) => Error::Unhandled(inner),
133        }
134    }
135}
136impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_challenge::DeleteChallengeError, R>> for Error
137where
138    R: Send + Sync + std::fmt::Debug + 'static,
139{
140    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_challenge::DeleteChallengeError, R>) -> Self {
141        match err {
142            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
143            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
144                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
145                source: err.into(),
146            }),
147        }
148    }
149}
150impl From<crate::operation::delete_challenge::DeleteChallengeError> for Error {
151    fn from(err: crate::operation::delete_challenge::DeleteChallengeError) -> Self {
152        match err {
153            crate::operation::delete_challenge::DeleteChallengeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
154            crate::operation::delete_challenge::DeleteChallengeError::ConflictException(inner) => Error::ConflictException(inner),
155            crate::operation::delete_challenge::DeleteChallengeError::InternalServerException(inner) => Error::InternalServerException(inner),
156            crate::operation::delete_challenge::DeleteChallengeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
157            crate::operation::delete_challenge::DeleteChallengeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
158            crate::operation::delete_challenge::DeleteChallengeError::ValidationException(inner) => Error::ValidationException(inner),
159            crate::operation::delete_challenge::DeleteChallengeError::Unhandled(inner) => Error::Unhandled(inner),
160        }
161    }
162}
163impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector::DeleteConnectorError, R>> for Error
164where
165    R: Send + Sync + std::fmt::Debug + 'static,
166{
167    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_connector::DeleteConnectorError, R>) -> Self {
168        match err {
169            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
170            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
171                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
172                source: err.into(),
173            }),
174        }
175    }
176}
177impl From<crate::operation::delete_connector::DeleteConnectorError> for Error {
178    fn from(err: crate::operation::delete_connector::DeleteConnectorError) -> Self {
179        match err {
180            crate::operation::delete_connector::DeleteConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
181            crate::operation::delete_connector::DeleteConnectorError::ConflictException(inner) => Error::ConflictException(inner),
182            crate::operation::delete_connector::DeleteConnectorError::InternalServerException(inner) => Error::InternalServerException(inner),
183            crate::operation::delete_connector::DeleteConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
184            crate::operation::delete_connector::DeleteConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
185            crate::operation::delete_connector::DeleteConnectorError::ValidationException(inner) => Error::ValidationException(inner),
186            crate::operation::delete_connector::DeleteConnectorError::Unhandled(inner) => Error::Unhandled(inner),
187        }
188    }
189}
190impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_challenge_metadata::GetChallengeMetadataError, R>> for Error
191where
192    R: Send + Sync + std::fmt::Debug + 'static,
193{
194    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_challenge_metadata::GetChallengeMetadataError, R>) -> Self {
195        match err {
196            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
197            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
198                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
199                source: err.into(),
200            }),
201        }
202    }
203}
204impl From<crate::operation::get_challenge_metadata::GetChallengeMetadataError> for Error {
205    fn from(err: crate::operation::get_challenge_metadata::GetChallengeMetadataError) -> Self {
206        match err {
207            crate::operation::get_challenge_metadata::GetChallengeMetadataError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
208            crate::operation::get_challenge_metadata::GetChallengeMetadataError::InternalServerException(inner) => {
209                Error::InternalServerException(inner)
210            }
211            crate::operation::get_challenge_metadata::GetChallengeMetadataError::ResourceNotFoundException(inner) => {
212                Error::ResourceNotFoundException(inner)
213            }
214            crate::operation::get_challenge_metadata::GetChallengeMetadataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
215            crate::operation::get_challenge_metadata::GetChallengeMetadataError::ValidationException(inner) => Error::ValidationException(inner),
216            crate::operation::get_challenge_metadata::GetChallengeMetadataError::Unhandled(inner) => Error::Unhandled(inner),
217        }
218    }
219}
220impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_challenge_password::GetChallengePasswordError, R>> for Error
221where
222    R: Send + Sync + std::fmt::Debug + 'static,
223{
224    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_challenge_password::GetChallengePasswordError, R>) -> Self {
225        match err {
226            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
227            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
228                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
229                source: err.into(),
230            }),
231        }
232    }
233}
234impl From<crate::operation::get_challenge_password::GetChallengePasswordError> for Error {
235    fn from(err: crate::operation::get_challenge_password::GetChallengePasswordError) -> Self {
236        match err {
237            crate::operation::get_challenge_password::GetChallengePasswordError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
238            crate::operation::get_challenge_password::GetChallengePasswordError::InternalServerException(inner) => {
239                Error::InternalServerException(inner)
240            }
241            crate::operation::get_challenge_password::GetChallengePasswordError::ResourceNotFoundException(inner) => {
242                Error::ResourceNotFoundException(inner)
243            }
244            crate::operation::get_challenge_password::GetChallengePasswordError::ThrottlingException(inner) => Error::ThrottlingException(inner),
245            crate::operation::get_challenge_password::GetChallengePasswordError::ValidationException(inner) => Error::ValidationException(inner),
246            crate::operation::get_challenge_password::GetChallengePasswordError::Unhandled(inner) => Error::Unhandled(inner),
247        }
248    }
249}
250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connector::GetConnectorError, R>> for Error
251where
252    R: Send + Sync + std::fmt::Debug + 'static,
253{
254    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_connector::GetConnectorError, R>) -> Self {
255        match err {
256            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
257            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
258                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
259                source: err.into(),
260            }),
261        }
262    }
263}
264impl From<crate::operation::get_connector::GetConnectorError> for Error {
265    fn from(err: crate::operation::get_connector::GetConnectorError) -> Self {
266        match err {
267            crate::operation::get_connector::GetConnectorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
268            crate::operation::get_connector::GetConnectorError::InternalServerException(inner) => Error::InternalServerException(inner),
269            crate::operation::get_connector::GetConnectorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
270            crate::operation::get_connector::GetConnectorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
271            crate::operation::get_connector::GetConnectorError::ValidationException(inner) => Error::ValidationException(inner),
272            crate::operation::get_connector::GetConnectorError::Unhandled(inner) => Error::Unhandled(inner),
273        }
274    }
275}
276impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_challenge_metadata::ListChallengeMetadataError, R>> for Error
277where
278    R: Send + Sync + std::fmt::Debug + 'static,
279{
280    fn from(
281        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_challenge_metadata::ListChallengeMetadataError, R>,
282    ) -> Self {
283        match err {
284            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
285            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
286                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
287                source: err.into(),
288            }),
289        }
290    }
291}
292impl From<crate::operation::list_challenge_metadata::ListChallengeMetadataError> for Error {
293    fn from(err: crate::operation::list_challenge_metadata::ListChallengeMetadataError) -> Self {
294        match err {
295            crate::operation::list_challenge_metadata::ListChallengeMetadataError::AccessDeniedException(inner) => {
296                Error::AccessDeniedException(inner)
297            }
298            crate::operation::list_challenge_metadata::ListChallengeMetadataError::InternalServerException(inner) => {
299                Error::InternalServerException(inner)
300            }
301            crate::operation::list_challenge_metadata::ListChallengeMetadataError::ResourceNotFoundException(inner) => {
302                Error::ResourceNotFoundException(inner)
303            }
304            crate::operation::list_challenge_metadata::ListChallengeMetadataError::ThrottlingException(inner) => Error::ThrottlingException(inner),
305            crate::operation::list_challenge_metadata::ListChallengeMetadataError::ValidationException(inner) => Error::ValidationException(inner),
306            crate::operation::list_challenge_metadata::ListChallengeMetadataError::Unhandled(inner) => Error::Unhandled(inner),
307        }
308    }
309}
310impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connectors::ListConnectorsError, R>> for Error
311where
312    R: Send + Sync + std::fmt::Debug + 'static,
313{
314    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_connectors::ListConnectorsError, R>) -> Self {
315        match err {
316            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
317            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
318                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
319                source: err.into(),
320            }),
321        }
322    }
323}
324impl From<crate::operation::list_connectors::ListConnectorsError> for Error {
325    fn from(err: crate::operation::list_connectors::ListConnectorsError) -> Self {
326        match err {
327            crate::operation::list_connectors::ListConnectorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
328            crate::operation::list_connectors::ListConnectorsError::InternalServerException(inner) => Error::InternalServerException(inner),
329            crate::operation::list_connectors::ListConnectorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
330            crate::operation::list_connectors::ListConnectorsError::ValidationException(inner) => Error::ValidationException(inner),
331            crate::operation::list_connectors::ListConnectorsError::Unhandled(inner) => Error::Unhandled(inner),
332        }
333    }
334}
335impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
336where
337    R: Send + Sync + std::fmt::Debug + 'static,
338{
339    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
340        match err {
341            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
342            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
343                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
344                source: err.into(),
345            }),
346        }
347    }
348}
349impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
350    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
351        match err {
352            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
353            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
354                Error::InternalServerException(inner)
355            }
356            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
357                Error::ResourceNotFoundException(inner)
358            }
359            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
360            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
361            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
362        }
363    }
364}
365impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
366where
367    R: Send + Sync + std::fmt::Debug + 'static,
368{
369    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
370        match err {
371            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
372            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
373                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
374                source: err.into(),
375            }),
376        }
377    }
378}
379impl From<crate::operation::tag_resource::TagResourceError> for Error {
380    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
381        match err {
382            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
383            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
384            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
385            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
386            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
387            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
388        }
389    }
390}
391impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
392where
393    R: Send + Sync + std::fmt::Debug + 'static,
394{
395    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
396        match err {
397            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
398            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
399                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
400                source: err.into(),
401            }),
402        }
403    }
404}
405impl From<crate::operation::untag_resource::UntagResourceError> for Error {
406    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
407        match err {
408            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
409            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
410            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
411            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
412            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
413            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
414        }
415    }
416}
417impl ::std::error::Error for Error {
418    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
419        match self {
420            Error::AccessDeniedException(inner) => inner.source(),
421            Error::BadRequestException(inner) => inner.source(),
422            Error::ConflictException(inner) => inner.source(),
423            Error::InternalServerException(inner) => inner.source(),
424            Error::ResourceNotFoundException(inner) => inner.source(),
425            Error::ServiceQuotaExceededException(inner) => inner.source(),
426            Error::ThrottlingException(inner) => inner.source(),
427            Error::ValidationException(inner) => inner.source(),
428            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
429        }
430    }
431}
432impl ::aws_types::request_id::RequestId for Error {
433    fn request_id(&self) -> Option<&str> {
434        match self {
435            Self::AccessDeniedException(e) => e.request_id(),
436            Self::BadRequestException(e) => e.request_id(),
437            Self::ConflictException(e) => e.request_id(),
438            Self::InternalServerException(e) => e.request_id(),
439            Self::ResourceNotFoundException(e) => e.request_id(),
440            Self::ServiceQuotaExceededException(e) => e.request_id(),
441            Self::ThrottlingException(e) => e.request_id(),
442            Self::ValidationException(e) => e.request_id(),
443            Self::Unhandled(e) => e.meta.request_id(),
444        }
445    }
446}