Skip to main content

aws_sdk_paymentcryptography/
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 do not have sufficient access to perform this action.</p>
7    /// <p>This exception is thrown when the caller lacks the necessary IAM permissions to perform the requested operation. Verify that your IAM policy includes the required permissions for the specific Amazon Web Services Payment Cryptography action you're attempting.</p>
8    AccessDeniedException(crate::types::error::AccessDeniedException),
9    /// <p>This request can cause an inconsistent state for the resource.</p>
10    /// <p>The requested operation conflicts with the current state of the resource. For example, attempting to delete a key that is currently being used, or trying to create a resource that already exists.</p>
11    ConflictException(crate::types::error::ConflictException),
12    /// <p>The request processing has failed because of an unknown error, exception, or failure.</p>
13    /// <p>This indicates a server-side error within the Amazon Web Services Payment Cryptography service. If this error persists, contact support for assistance.</p>
14    InternalServerException(crate::types::error::InternalServerException),
15    /// <p>The resource-based policy would grant public access to the key.</p>
16    /// <p>Modify the policy to restrict access to specific principals and resubmit the request.</p>
17    PublicPolicyException(crate::types::error::PublicPolicyException),
18    /// <p>The request was denied due to resource not found.</p>
19    /// <p>The specified key, alias, or other resource does not exist in your account or region. Verify that the resource identifier is correct and that the resource exists in the expected region.</p>
20    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
21    /// <p>This request would cause a service quota to be exceeded.</p>
22    /// <p>You have reached the maximum number of keys, aliases, or other resources allowed in your account. Review your current usage and consider deleting unused resources or requesting a quota increase.</p>
23    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
24    /// <p>The service cannot complete the request.</p>
25    /// <p>The Amazon Web Services Payment Cryptography service is temporarily unavailable. This is typically a temporary condition - retry your request after a brief delay.</p>
26    ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
27    /// <p>The request was denied due to request throttling.</p>
28    /// <p>You have exceeded the rate limits for Amazon Web Services Payment Cryptography API calls. Implement exponential backoff and retry logic in your application to handle throttling gracefully.</p>
29    ThrottlingException(crate::types::error::ThrottlingException),
30    /// <p>The request was denied due to an invalid request error.</p>
31    /// <p>One or more parameters in your request are invalid. Check the parameter values, formats, and constraints specified in the API documentation.</p>
32    ValidationException(crate::types::error::ValidationException),
33    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
34    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
35    variable wildcard pattern and check `.code()`:
36     \
37    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
38     \
39    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
40    Unhandled(crate::error::sealed_unhandled::Unhandled),
41}
42impl ::std::fmt::Display for Error {
43    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
44        match self {
45            Error::AccessDeniedException(inner) => inner.fmt(f),
46            Error::ConflictException(inner) => inner.fmt(f),
47            Error::InternalServerException(inner) => inner.fmt(f),
48            Error::PublicPolicyException(inner) => inner.fmt(f),
49            Error::ResourceNotFoundException(inner) => inner.fmt(f),
50            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
51            Error::ServiceUnavailableException(inner) => inner.fmt(f),
52            Error::ThrottlingException(inner) => inner.fmt(f),
53            Error::ValidationException(inner) => inner.fmt(f),
54            Error::Unhandled(_) => {
55                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
56                    write!(f, "unhandled error ({code})")
57                } else {
58                    f.write_str("unhandled error")
59                }
60            }
61        }
62    }
63}
64impl From<::aws_smithy_types::error::operation::BuildError> for Error {
65    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
66        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
67            source: value.into(),
68            meta: ::std::default::Default::default(),
69        })
70    }
71}
72impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
73    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
74        match self {
75            Self::AccessDeniedException(inner) => inner.meta(),
76            Self::ConflictException(inner) => inner.meta(),
77            Self::InternalServerException(inner) => inner.meta(),
78            Self::PublicPolicyException(inner) => inner.meta(),
79            Self::ResourceNotFoundException(inner) => inner.meta(),
80            Self::ServiceQuotaExceededException(inner) => inner.meta(),
81            Self::ServiceUnavailableException(inner) => inner.meta(),
82            Self::ThrottlingException(inner) => inner.meta(),
83            Self::ValidationException(inner) => inner.meta(),
84            Self::Unhandled(inner) => &inner.meta,
85        }
86    }
87}
88impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_key_replication_regions::AddKeyReplicationRegionsError, R>>
89    for Error
90where
91    R: Send + Sync + std::fmt::Debug + 'static,
92{
93    fn from(
94        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_key_replication_regions::AddKeyReplicationRegionsError, R>,
95    ) -> Self {
96        match err {
97            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
98            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
99                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
100                source: err.into(),
101            }),
102        }
103    }
104}
105impl From<crate::operation::add_key_replication_regions::AddKeyReplicationRegionsError> for Error {
106    fn from(err: crate::operation::add_key_replication_regions::AddKeyReplicationRegionsError) -> Self {
107        match err {
108            crate::operation::add_key_replication_regions::AddKeyReplicationRegionsError::AccessDeniedException(inner) => {
109                Error::AccessDeniedException(inner)
110            }
111            crate::operation::add_key_replication_regions::AddKeyReplicationRegionsError::ConflictException(inner) => Error::ConflictException(inner),
112            crate::operation::add_key_replication_regions::AddKeyReplicationRegionsError::InternalServerException(inner) => {
113                Error::InternalServerException(inner)
114            }
115            crate::operation::add_key_replication_regions::AddKeyReplicationRegionsError::ResourceNotFoundException(inner) => {
116                Error::ResourceNotFoundException(inner)
117            }
118            crate::operation::add_key_replication_regions::AddKeyReplicationRegionsError::ServiceQuotaExceededException(inner) => {
119                Error::ServiceQuotaExceededException(inner)
120            }
121            crate::operation::add_key_replication_regions::AddKeyReplicationRegionsError::ThrottlingException(inner) => {
122                Error::ThrottlingException(inner)
123            }
124            crate::operation::add_key_replication_regions::AddKeyReplicationRegionsError::ValidationException(inner) => {
125                Error::ValidationException(inner)
126            }
127            crate::operation::add_key_replication_regions::AddKeyReplicationRegionsError::Unhandled(inner) => Error::Unhandled(inner),
128        }
129    }
130}
131impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_mpa_team::AssociateMpaTeamError, R>> for Error
132where
133    R: Send + Sync + std::fmt::Debug + 'static,
134{
135    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_mpa_team::AssociateMpaTeamError, R>) -> Self {
136        match err {
137            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
138            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
139                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
140                source: err.into(),
141            }),
142        }
143    }
144}
145impl From<crate::operation::associate_mpa_team::AssociateMpaTeamError> for Error {
146    fn from(err: crate::operation::associate_mpa_team::AssociateMpaTeamError) -> Self {
147        match err {
148            crate::operation::associate_mpa_team::AssociateMpaTeamError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
149            crate::operation::associate_mpa_team::AssociateMpaTeamError::ConflictException(inner) => Error::ConflictException(inner),
150            crate::operation::associate_mpa_team::AssociateMpaTeamError::InternalServerException(inner) => Error::InternalServerException(inner),
151            crate::operation::associate_mpa_team::AssociateMpaTeamError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
152            crate::operation::associate_mpa_team::AssociateMpaTeamError::ServiceQuotaExceededException(inner) => {
153                Error::ServiceQuotaExceededException(inner)
154            }
155            crate::operation::associate_mpa_team::AssociateMpaTeamError::ServiceUnavailableException(inner) => {
156                Error::ServiceUnavailableException(inner)
157            }
158            crate::operation::associate_mpa_team::AssociateMpaTeamError::ThrottlingException(inner) => Error::ThrottlingException(inner),
159            crate::operation::associate_mpa_team::AssociateMpaTeamError::ValidationException(inner) => Error::ValidationException(inner),
160            crate::operation::associate_mpa_team::AssociateMpaTeamError::Unhandled(inner) => Error::Unhandled(inner),
161        }
162    }
163}
164impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_alias::CreateAliasError, R>> for Error
165where
166    R: Send + Sync + std::fmt::Debug + 'static,
167{
168    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_alias::CreateAliasError, R>) -> Self {
169        match err {
170            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
171            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
172                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
173                source: err.into(),
174            }),
175        }
176    }
177}
178impl From<crate::operation::create_alias::CreateAliasError> for Error {
179    fn from(err: crate::operation::create_alias::CreateAliasError) -> Self {
180        match err {
181            crate::operation::create_alias::CreateAliasError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
182            crate::operation::create_alias::CreateAliasError::ConflictException(inner) => Error::ConflictException(inner),
183            crate::operation::create_alias::CreateAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
184            crate::operation::create_alias::CreateAliasError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
185            crate::operation::create_alias::CreateAliasError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
186            crate::operation::create_alias::CreateAliasError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
187            crate::operation::create_alias::CreateAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
188            crate::operation::create_alias::CreateAliasError::ValidationException(inner) => Error::ValidationException(inner),
189            crate::operation::create_alias::CreateAliasError::Unhandled(inner) => Error::Unhandled(inner),
190        }
191    }
192}
193impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key::CreateKeyError, R>> for Error
194where
195    R: Send + Sync + std::fmt::Debug + 'static,
196{
197    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_key::CreateKeyError, R>) -> Self {
198        match err {
199            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
200            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
201                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
202                source: err.into(),
203            }),
204        }
205    }
206}
207impl From<crate::operation::create_key::CreateKeyError> for Error {
208    fn from(err: crate::operation::create_key::CreateKeyError) -> Self {
209        match err {
210            crate::operation::create_key::CreateKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
211            crate::operation::create_key::CreateKeyError::ConflictException(inner) => Error::ConflictException(inner),
212            crate::operation::create_key::CreateKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
213            crate::operation::create_key::CreateKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
214            crate::operation::create_key::CreateKeyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
215            crate::operation::create_key::CreateKeyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
216            crate::operation::create_key::CreateKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
217            crate::operation::create_key::CreateKeyError::ValidationException(inner) => Error::ValidationException(inner),
218            crate::operation::create_key::CreateKeyError::Unhandled(inner) => Error::Unhandled(inner),
219        }
220    }
221}
222impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_alias::DeleteAliasError, 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_alias::DeleteAliasError, 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_alias::DeleteAliasError> for Error {
237    fn from(err: crate::operation::delete_alias::DeleteAliasError) -> Self {
238        match err {
239            crate::operation::delete_alias::DeleteAliasError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
240            crate::operation::delete_alias::DeleteAliasError::ConflictException(inner) => Error::ConflictException(inner),
241            crate::operation::delete_alias::DeleteAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
242            crate::operation::delete_alias::DeleteAliasError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
243            crate::operation::delete_alias::DeleteAliasError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
244            crate::operation::delete_alias::DeleteAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
245            crate::operation::delete_alias::DeleteAliasError::ValidationException(inner) => Error::ValidationException(inner),
246            crate::operation::delete_alias::DeleteAliasError::Unhandled(inner) => Error::Unhandled(inner),
247        }
248    }
249}
250impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_key::DeleteKeyError, 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::delete_key::DeleteKeyError, 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::delete_key::DeleteKeyError> for Error {
265    fn from(err: crate::operation::delete_key::DeleteKeyError) -> Self {
266        match err {
267            crate::operation::delete_key::DeleteKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
268            crate::operation::delete_key::DeleteKeyError::ConflictException(inner) => Error::ConflictException(inner),
269            crate::operation::delete_key::DeleteKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
270            crate::operation::delete_key::DeleteKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
271            crate::operation::delete_key::DeleteKeyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
272            crate::operation::delete_key::DeleteKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
273            crate::operation::delete_key::DeleteKeyError::ValidationException(inner) => Error::ValidationException(inner),
274            crate::operation::delete_key::DeleteKeyError::Unhandled(inner) => Error::Unhandled(inner),
275        }
276    }
277}
278impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
279where
280    R: Send + Sync + std::fmt::Debug + 'static,
281{
282    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> 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::delete_resource_policy::DeleteResourcePolicyError> for Error {
293    fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
294        match err {
295            crate::operation::delete_resource_policy::DeleteResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
296            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
297            crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
298                Error::InternalServerException(inner)
299            }
300            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
301                Error::ResourceNotFoundException(inner)
302            }
303            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ServiceUnavailableException(inner) => {
304                Error::ServiceUnavailableException(inner)
305            }
306            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
307            crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
308            crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
309        }
310    }
311}
312impl<R>
313    From<
314        ::aws_smithy_runtime_api::client::result::SdkError<
315            crate::operation::disable_default_key_replication_regions::DisableDefaultKeyReplicationRegionsError,
316            R,
317        >,
318    > for Error
319where
320    R: Send + Sync + std::fmt::Debug + 'static,
321{
322    fn from(
323        err: ::aws_smithy_runtime_api::client::result::SdkError<
324            crate::operation::disable_default_key_replication_regions::DisableDefaultKeyReplicationRegionsError,
325            R,
326        >,
327    ) -> Self {
328        match err {
329            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
330            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
331                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
332                source: err.into(),
333            }),
334        }
335    }
336}
337impl From<crate::operation::disable_default_key_replication_regions::DisableDefaultKeyReplicationRegionsError> for Error {
338    fn from(err: crate::operation::disable_default_key_replication_regions::DisableDefaultKeyReplicationRegionsError) -> Self {
339        match err {
340            crate::operation::disable_default_key_replication_regions::DisableDefaultKeyReplicationRegionsError::AccessDeniedException(inner) => {
341                Error::AccessDeniedException(inner)
342            }
343            crate::operation::disable_default_key_replication_regions::DisableDefaultKeyReplicationRegionsError::ConflictException(inner) => {
344                Error::ConflictException(inner)
345            }
346            crate::operation::disable_default_key_replication_regions::DisableDefaultKeyReplicationRegionsError::InternalServerException(inner) => {
347                Error::InternalServerException(inner)
348            }
349            crate::operation::disable_default_key_replication_regions::DisableDefaultKeyReplicationRegionsError::ResourceNotFoundException(inner) => {
350                Error::ResourceNotFoundException(inner)
351            }
352            crate::operation::disable_default_key_replication_regions::DisableDefaultKeyReplicationRegionsError::ServiceQuotaExceededException(
353                inner,
354            ) => Error::ServiceQuotaExceededException(inner),
355            crate::operation::disable_default_key_replication_regions::DisableDefaultKeyReplicationRegionsError::ThrottlingException(inner) => {
356                Error::ThrottlingException(inner)
357            }
358            crate::operation::disable_default_key_replication_regions::DisableDefaultKeyReplicationRegionsError::ValidationException(inner) => {
359                Error::ValidationException(inner)
360            }
361            crate::operation::disable_default_key_replication_regions::DisableDefaultKeyReplicationRegionsError::Unhandled(inner) => {
362                Error::Unhandled(inner)
363            }
364        }
365    }
366}
367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_mpa_team::DisassociateMpaTeamError, R>> for Error
368where
369    R: Send + Sync + std::fmt::Debug + 'static,
370{
371    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_mpa_team::DisassociateMpaTeamError, R>) -> Self {
372        match err {
373            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
374            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
375                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
376                source: err.into(),
377            }),
378        }
379    }
380}
381impl From<crate::operation::disassociate_mpa_team::DisassociateMpaTeamError> for Error {
382    fn from(err: crate::operation::disassociate_mpa_team::DisassociateMpaTeamError) -> Self {
383        match err {
384            crate::operation::disassociate_mpa_team::DisassociateMpaTeamError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
385            crate::operation::disassociate_mpa_team::DisassociateMpaTeamError::ConflictException(inner) => Error::ConflictException(inner),
386            crate::operation::disassociate_mpa_team::DisassociateMpaTeamError::InternalServerException(inner) => {
387                Error::InternalServerException(inner)
388            }
389            crate::operation::disassociate_mpa_team::DisassociateMpaTeamError::ResourceNotFoundException(inner) => {
390                Error::ResourceNotFoundException(inner)
391            }
392            crate::operation::disassociate_mpa_team::DisassociateMpaTeamError::ServiceQuotaExceededException(inner) => {
393                Error::ServiceQuotaExceededException(inner)
394            }
395            crate::operation::disassociate_mpa_team::DisassociateMpaTeamError::ServiceUnavailableException(inner) => {
396                Error::ServiceUnavailableException(inner)
397            }
398            crate::operation::disassociate_mpa_team::DisassociateMpaTeamError::ThrottlingException(inner) => Error::ThrottlingException(inner),
399            crate::operation::disassociate_mpa_team::DisassociateMpaTeamError::ValidationException(inner) => Error::ValidationException(inner),
400            crate::operation::disassociate_mpa_team::DisassociateMpaTeamError::Unhandled(inner) => Error::Unhandled(inner),
401        }
402    }
403}
404impl<R>
405    From<
406        ::aws_smithy_runtime_api::client::result::SdkError<
407            crate::operation::enable_default_key_replication_regions::EnableDefaultKeyReplicationRegionsError,
408            R,
409        >,
410    > for Error
411where
412    R: Send + Sync + std::fmt::Debug + 'static,
413{
414    fn from(
415        err: ::aws_smithy_runtime_api::client::result::SdkError<
416            crate::operation::enable_default_key_replication_regions::EnableDefaultKeyReplicationRegionsError,
417            R,
418        >,
419    ) -> Self {
420        match err {
421            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
422            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
423                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
424                source: err.into(),
425            }),
426        }
427    }
428}
429impl From<crate::operation::enable_default_key_replication_regions::EnableDefaultKeyReplicationRegionsError> for Error {
430    fn from(err: crate::operation::enable_default_key_replication_regions::EnableDefaultKeyReplicationRegionsError) -> Self {
431        match err {
432            crate::operation::enable_default_key_replication_regions::EnableDefaultKeyReplicationRegionsError::AccessDeniedException(inner) => {
433                Error::AccessDeniedException(inner)
434            }
435            crate::operation::enable_default_key_replication_regions::EnableDefaultKeyReplicationRegionsError::ConflictException(inner) => {
436                Error::ConflictException(inner)
437            }
438            crate::operation::enable_default_key_replication_regions::EnableDefaultKeyReplicationRegionsError::InternalServerException(inner) => {
439                Error::InternalServerException(inner)
440            }
441            crate::operation::enable_default_key_replication_regions::EnableDefaultKeyReplicationRegionsError::ResourceNotFoundException(inner) => {
442                Error::ResourceNotFoundException(inner)
443            }
444            crate::operation::enable_default_key_replication_regions::EnableDefaultKeyReplicationRegionsError::ServiceQuotaExceededException(
445                inner,
446            ) => Error::ServiceQuotaExceededException(inner),
447            crate::operation::enable_default_key_replication_regions::EnableDefaultKeyReplicationRegionsError::ThrottlingException(inner) => {
448                Error::ThrottlingException(inner)
449            }
450            crate::operation::enable_default_key_replication_regions::EnableDefaultKeyReplicationRegionsError::ValidationException(inner) => {
451                Error::ValidationException(inner)
452            }
453            crate::operation::enable_default_key_replication_regions::EnableDefaultKeyReplicationRegionsError::Unhandled(inner) => {
454                Error::Unhandled(inner)
455            }
456        }
457    }
458}
459impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_key::ExportKeyError, R>> for Error
460where
461    R: Send + Sync + std::fmt::Debug + 'static,
462{
463    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::export_key::ExportKeyError, R>) -> Self {
464        match err {
465            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
466            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
467                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
468                source: err.into(),
469            }),
470        }
471    }
472}
473impl From<crate::operation::export_key::ExportKeyError> for Error {
474    fn from(err: crate::operation::export_key::ExportKeyError) -> Self {
475        match err {
476            crate::operation::export_key::ExportKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
477            crate::operation::export_key::ExportKeyError::ConflictException(inner) => Error::ConflictException(inner),
478            crate::operation::export_key::ExportKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
479            crate::operation::export_key::ExportKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
480            crate::operation::export_key::ExportKeyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
481            crate::operation::export_key::ExportKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
482            crate::operation::export_key::ExportKeyError::ValidationException(inner) => Error::ValidationException(inner),
483            crate::operation::export_key::ExportKeyError::Unhandled(inner) => Error::Unhandled(inner),
484        }
485    }
486}
487impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_alias::GetAliasError, R>> for Error
488where
489    R: Send + Sync + std::fmt::Debug + 'static,
490{
491    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_alias::GetAliasError, R>) -> Self {
492        match err {
493            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
494            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
495                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
496                source: err.into(),
497            }),
498        }
499    }
500}
501impl From<crate::operation::get_alias::GetAliasError> for Error {
502    fn from(err: crate::operation::get_alias::GetAliasError) -> Self {
503        match err {
504            crate::operation::get_alias::GetAliasError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
505            crate::operation::get_alias::GetAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
506            crate::operation::get_alias::GetAliasError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
507            crate::operation::get_alias::GetAliasError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
508            crate::operation::get_alias::GetAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
509            crate::operation::get_alias::GetAliasError::ValidationException(inner) => Error::ValidationException(inner),
510            crate::operation::get_alias::GetAliasError::Unhandled(inner) => Error::Unhandled(inner),
511        }
512    }
513}
514impl<R>
515    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_certificate_signing_request::GetCertificateSigningRequestError, R>>
516    for Error
517where
518    R: Send + Sync + std::fmt::Debug + 'static,
519{
520    fn from(
521        err: ::aws_smithy_runtime_api::client::result::SdkError<
522            crate::operation::get_certificate_signing_request::GetCertificateSigningRequestError,
523            R,
524        >,
525    ) -> Self {
526        match err {
527            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
528            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
529                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
530                source: err.into(),
531            }),
532        }
533    }
534}
535impl From<crate::operation::get_certificate_signing_request::GetCertificateSigningRequestError> for Error {
536    fn from(err: crate::operation::get_certificate_signing_request::GetCertificateSigningRequestError) -> Self {
537        match err {
538            crate::operation::get_certificate_signing_request::GetCertificateSigningRequestError::AccessDeniedException(inner) => {
539                Error::AccessDeniedException(inner)
540            }
541            crate::operation::get_certificate_signing_request::GetCertificateSigningRequestError::InternalServerException(inner) => {
542                Error::InternalServerException(inner)
543            }
544            crate::operation::get_certificate_signing_request::GetCertificateSigningRequestError::ResourceNotFoundException(inner) => {
545                Error::ResourceNotFoundException(inner)
546            }
547            crate::operation::get_certificate_signing_request::GetCertificateSigningRequestError::ServiceUnavailableException(inner) => {
548                Error::ServiceUnavailableException(inner)
549            }
550            crate::operation::get_certificate_signing_request::GetCertificateSigningRequestError::ThrottlingException(inner) => {
551                Error::ThrottlingException(inner)
552            }
553            crate::operation::get_certificate_signing_request::GetCertificateSigningRequestError::ValidationException(inner) => {
554                Error::ValidationException(inner)
555            }
556            crate::operation::get_certificate_signing_request::GetCertificateSigningRequestError::Unhandled(inner) => Error::Unhandled(inner),
557        }
558    }
559}
560impl<R>
561    From<
562        ::aws_smithy_runtime_api::client::result::SdkError<
563            crate::operation::get_default_key_replication_regions::GetDefaultKeyReplicationRegionsError,
564            R,
565        >,
566    > for Error
567where
568    R: Send + Sync + std::fmt::Debug + 'static,
569{
570    fn from(
571        err: ::aws_smithy_runtime_api::client::result::SdkError<
572            crate::operation::get_default_key_replication_regions::GetDefaultKeyReplicationRegionsError,
573            R,
574        >,
575    ) -> Self {
576        match err {
577            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
578            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
579                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
580                source: err.into(),
581            }),
582        }
583    }
584}
585impl From<crate::operation::get_default_key_replication_regions::GetDefaultKeyReplicationRegionsError> for Error {
586    fn from(err: crate::operation::get_default_key_replication_regions::GetDefaultKeyReplicationRegionsError) -> Self {
587        match err {
588            crate::operation::get_default_key_replication_regions::GetDefaultKeyReplicationRegionsError::AccessDeniedException(inner) => {
589                Error::AccessDeniedException(inner)
590            }
591            crate::operation::get_default_key_replication_regions::GetDefaultKeyReplicationRegionsError::ConflictException(inner) => {
592                Error::ConflictException(inner)
593            }
594            crate::operation::get_default_key_replication_regions::GetDefaultKeyReplicationRegionsError::InternalServerException(inner) => {
595                Error::InternalServerException(inner)
596            }
597            crate::operation::get_default_key_replication_regions::GetDefaultKeyReplicationRegionsError::ResourceNotFoundException(inner) => {
598                Error::ResourceNotFoundException(inner)
599            }
600            crate::operation::get_default_key_replication_regions::GetDefaultKeyReplicationRegionsError::ServiceQuotaExceededException(inner) => {
601                Error::ServiceQuotaExceededException(inner)
602            }
603            crate::operation::get_default_key_replication_regions::GetDefaultKeyReplicationRegionsError::ThrottlingException(inner) => {
604                Error::ThrottlingException(inner)
605            }
606            crate::operation::get_default_key_replication_regions::GetDefaultKeyReplicationRegionsError::ValidationException(inner) => {
607                Error::ValidationException(inner)
608            }
609            crate::operation::get_default_key_replication_regions::GetDefaultKeyReplicationRegionsError::Unhandled(inner) => Error::Unhandled(inner),
610        }
611    }
612}
613impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_key::GetKeyError, R>> for Error
614where
615    R: Send + Sync + std::fmt::Debug + 'static,
616{
617    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_key::GetKeyError, R>) -> Self {
618        match err {
619            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
620            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
621                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
622                source: err.into(),
623            }),
624        }
625    }
626}
627impl From<crate::operation::get_key::GetKeyError> for Error {
628    fn from(err: crate::operation::get_key::GetKeyError) -> Self {
629        match err {
630            crate::operation::get_key::GetKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
631            crate::operation::get_key::GetKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
632            crate::operation::get_key::GetKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
633            crate::operation::get_key::GetKeyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
634            crate::operation::get_key::GetKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
635            crate::operation::get_key::GetKeyError::ValidationException(inner) => Error::ValidationException(inner),
636            crate::operation::get_key::GetKeyError::Unhandled(inner) => Error::Unhandled(inner),
637        }
638    }
639}
640impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_mpa_team_association::GetMpaTeamAssociationError, R>> for Error
641where
642    R: Send + Sync + std::fmt::Debug + 'static,
643{
644    fn from(
645        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_mpa_team_association::GetMpaTeamAssociationError, R>,
646    ) -> Self {
647        match err {
648            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
649            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
650                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
651                source: err.into(),
652            }),
653        }
654    }
655}
656impl From<crate::operation::get_mpa_team_association::GetMpaTeamAssociationError> for Error {
657    fn from(err: crate::operation::get_mpa_team_association::GetMpaTeamAssociationError) -> Self {
658        match err {
659            crate::operation::get_mpa_team_association::GetMpaTeamAssociationError::AccessDeniedException(inner) => {
660                Error::AccessDeniedException(inner)
661            }
662            crate::operation::get_mpa_team_association::GetMpaTeamAssociationError::ConflictException(inner) => Error::ConflictException(inner),
663            crate::operation::get_mpa_team_association::GetMpaTeamAssociationError::InternalServerException(inner) => {
664                Error::InternalServerException(inner)
665            }
666            crate::operation::get_mpa_team_association::GetMpaTeamAssociationError::ResourceNotFoundException(inner) => {
667                Error::ResourceNotFoundException(inner)
668            }
669            crate::operation::get_mpa_team_association::GetMpaTeamAssociationError::ServiceQuotaExceededException(inner) => {
670                Error::ServiceQuotaExceededException(inner)
671            }
672            crate::operation::get_mpa_team_association::GetMpaTeamAssociationError::ServiceUnavailableException(inner) => {
673                Error::ServiceUnavailableException(inner)
674            }
675            crate::operation::get_mpa_team_association::GetMpaTeamAssociationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
676            crate::operation::get_mpa_team_association::GetMpaTeamAssociationError::ValidationException(inner) => Error::ValidationException(inner),
677            crate::operation::get_mpa_team_association::GetMpaTeamAssociationError::Unhandled(inner) => Error::Unhandled(inner),
678        }
679    }
680}
681impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_parameters_for_export::GetParametersForExportError, R>>
682    for Error
683where
684    R: Send + Sync + std::fmt::Debug + 'static,
685{
686    fn from(
687        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_parameters_for_export::GetParametersForExportError, R>,
688    ) -> Self {
689        match err {
690            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
691            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
692                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
693                source: err.into(),
694            }),
695        }
696    }
697}
698impl From<crate::operation::get_parameters_for_export::GetParametersForExportError> for Error {
699    fn from(err: crate::operation::get_parameters_for_export::GetParametersForExportError) -> Self {
700        match err {
701            crate::operation::get_parameters_for_export::GetParametersForExportError::AccessDeniedException(inner) => {
702                Error::AccessDeniedException(inner)
703            }
704            crate::operation::get_parameters_for_export::GetParametersForExportError::ConflictException(inner) => Error::ConflictException(inner),
705            crate::operation::get_parameters_for_export::GetParametersForExportError::InternalServerException(inner) => {
706                Error::InternalServerException(inner)
707            }
708            crate::operation::get_parameters_for_export::GetParametersForExportError::ResourceNotFoundException(inner) => {
709                Error::ResourceNotFoundException(inner)
710            }
711            crate::operation::get_parameters_for_export::GetParametersForExportError::ServiceQuotaExceededException(inner) => {
712                Error::ServiceQuotaExceededException(inner)
713            }
714            crate::operation::get_parameters_for_export::GetParametersForExportError::ServiceUnavailableException(inner) => {
715                Error::ServiceUnavailableException(inner)
716            }
717            crate::operation::get_parameters_for_export::GetParametersForExportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
718            crate::operation::get_parameters_for_export::GetParametersForExportError::ValidationException(inner) => Error::ValidationException(inner),
719            crate::operation::get_parameters_for_export::GetParametersForExportError::Unhandled(inner) => Error::Unhandled(inner),
720        }
721    }
722}
723impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_parameters_for_import::GetParametersForImportError, R>>
724    for Error
725where
726    R: Send + Sync + std::fmt::Debug + 'static,
727{
728    fn from(
729        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_parameters_for_import::GetParametersForImportError, R>,
730    ) -> Self {
731        match err {
732            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
733            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
734                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
735                source: err.into(),
736            }),
737        }
738    }
739}
740impl From<crate::operation::get_parameters_for_import::GetParametersForImportError> for Error {
741    fn from(err: crate::operation::get_parameters_for_import::GetParametersForImportError) -> Self {
742        match err {
743            crate::operation::get_parameters_for_import::GetParametersForImportError::AccessDeniedException(inner) => {
744                Error::AccessDeniedException(inner)
745            }
746            crate::operation::get_parameters_for_import::GetParametersForImportError::ConflictException(inner) => Error::ConflictException(inner),
747            crate::operation::get_parameters_for_import::GetParametersForImportError::InternalServerException(inner) => {
748                Error::InternalServerException(inner)
749            }
750            crate::operation::get_parameters_for_import::GetParametersForImportError::ResourceNotFoundException(inner) => {
751                Error::ResourceNotFoundException(inner)
752            }
753            crate::operation::get_parameters_for_import::GetParametersForImportError::ServiceQuotaExceededException(inner) => {
754                Error::ServiceQuotaExceededException(inner)
755            }
756            crate::operation::get_parameters_for_import::GetParametersForImportError::ServiceUnavailableException(inner) => {
757                Error::ServiceUnavailableException(inner)
758            }
759            crate::operation::get_parameters_for_import::GetParametersForImportError::ThrottlingException(inner) => Error::ThrottlingException(inner),
760            crate::operation::get_parameters_for_import::GetParametersForImportError::ValidationException(inner) => Error::ValidationException(inner),
761            crate::operation::get_parameters_for_import::GetParametersForImportError::Unhandled(inner) => Error::Unhandled(inner),
762        }
763    }
764}
765impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_public_key_certificate::GetPublicKeyCertificateError, R>>
766    for Error
767where
768    R: Send + Sync + std::fmt::Debug + 'static,
769{
770    fn from(
771        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_public_key_certificate::GetPublicKeyCertificateError, R>,
772    ) -> Self {
773        match err {
774            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
775            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
776                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
777                source: err.into(),
778            }),
779        }
780    }
781}
782impl From<crate::operation::get_public_key_certificate::GetPublicKeyCertificateError> for Error {
783    fn from(err: crate::operation::get_public_key_certificate::GetPublicKeyCertificateError) -> Self {
784        match err {
785            crate::operation::get_public_key_certificate::GetPublicKeyCertificateError::AccessDeniedException(inner) => {
786                Error::AccessDeniedException(inner)
787            }
788            crate::operation::get_public_key_certificate::GetPublicKeyCertificateError::InternalServerException(inner) => {
789                Error::InternalServerException(inner)
790            }
791            crate::operation::get_public_key_certificate::GetPublicKeyCertificateError::ResourceNotFoundException(inner) => {
792                Error::ResourceNotFoundException(inner)
793            }
794            crate::operation::get_public_key_certificate::GetPublicKeyCertificateError::ServiceUnavailableException(inner) => {
795                Error::ServiceUnavailableException(inner)
796            }
797            crate::operation::get_public_key_certificate::GetPublicKeyCertificateError::ThrottlingException(inner) => {
798                Error::ThrottlingException(inner)
799            }
800            crate::operation::get_public_key_certificate::GetPublicKeyCertificateError::ValidationException(inner) => {
801                Error::ValidationException(inner)
802            }
803            crate::operation::get_public_key_certificate::GetPublicKeyCertificateError::Unhandled(inner) => Error::Unhandled(inner),
804        }
805    }
806}
807impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
808where
809    R: Send + Sync + std::fmt::Debug + 'static,
810{
811    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
812        match err {
813            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
814            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
815                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
816                source: err.into(),
817            }),
818        }
819    }
820}
821impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
822    fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
823        match err {
824            crate::operation::get_resource_policy::GetResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
825            crate::operation::get_resource_policy::GetResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
826            crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
827                Error::ResourceNotFoundException(inner)
828            }
829            crate::operation::get_resource_policy::GetResourcePolicyError::ServiceUnavailableException(inner) => {
830                Error::ServiceUnavailableException(inner)
831            }
832            crate::operation::get_resource_policy::GetResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
833            crate::operation::get_resource_policy::GetResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
834            crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
835        }
836    }
837}
838impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key::ImportKeyError, R>> for Error
839where
840    R: Send + Sync + std::fmt::Debug + 'static,
841{
842    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::import_key::ImportKeyError, R>) -> Self {
843        match err {
844            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
845            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
846                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
847                source: err.into(),
848            }),
849        }
850    }
851}
852impl From<crate::operation::import_key::ImportKeyError> for Error {
853    fn from(err: crate::operation::import_key::ImportKeyError) -> Self {
854        match err {
855            crate::operation::import_key::ImportKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
856            crate::operation::import_key::ImportKeyError::ConflictException(inner) => Error::ConflictException(inner),
857            crate::operation::import_key::ImportKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
858            crate::operation::import_key::ImportKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
859            crate::operation::import_key::ImportKeyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
860            crate::operation::import_key::ImportKeyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
861            crate::operation::import_key::ImportKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
862            crate::operation::import_key::ImportKeyError::ValidationException(inner) => Error::ValidationException(inner),
863            crate::operation::import_key::ImportKeyError::Unhandled(inner) => Error::Unhandled(inner),
864        }
865    }
866}
867impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>> for Error
868where
869    R: Send + Sync + std::fmt::Debug + 'static,
870{
871    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_aliases::ListAliasesError, R>) -> Self {
872        match err {
873            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
874            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
875                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
876                source: err.into(),
877            }),
878        }
879    }
880}
881impl From<crate::operation::list_aliases::ListAliasesError> for Error {
882    fn from(err: crate::operation::list_aliases::ListAliasesError) -> Self {
883        match err {
884            crate::operation::list_aliases::ListAliasesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
885            crate::operation::list_aliases::ListAliasesError::InternalServerException(inner) => Error::InternalServerException(inner),
886            crate::operation::list_aliases::ListAliasesError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
887            crate::operation::list_aliases::ListAliasesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
888            crate::operation::list_aliases::ListAliasesError::ThrottlingException(inner) => Error::ThrottlingException(inner),
889            crate::operation::list_aliases::ListAliasesError::ValidationException(inner) => Error::ValidationException(inner),
890            crate::operation::list_aliases::ListAliasesError::Unhandled(inner) => Error::Unhandled(inner),
891        }
892    }
893}
894impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_keys::ListKeysError, R>> for Error
895where
896    R: Send + Sync + std::fmt::Debug + 'static,
897{
898    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_keys::ListKeysError, R>) -> Self {
899        match err {
900            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
901            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
902                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
903                source: err.into(),
904            }),
905        }
906    }
907}
908impl From<crate::operation::list_keys::ListKeysError> for Error {
909    fn from(err: crate::operation::list_keys::ListKeysError) -> Self {
910        match err {
911            crate::operation::list_keys::ListKeysError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
912            crate::operation::list_keys::ListKeysError::InternalServerException(inner) => Error::InternalServerException(inner),
913            crate::operation::list_keys::ListKeysError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
914            crate::operation::list_keys::ListKeysError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
915            crate::operation::list_keys::ListKeysError::ThrottlingException(inner) => Error::ThrottlingException(inner),
916            crate::operation::list_keys::ListKeysError::ValidationException(inner) => Error::ValidationException(inner),
917            crate::operation::list_keys::ListKeysError::Unhandled(inner) => Error::Unhandled(inner),
918        }
919    }
920}
921impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
922where
923    R: Send + Sync + std::fmt::Debug + 'static,
924{
925    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
926        match err {
927            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
928            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
929                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
930                source: err.into(),
931            }),
932        }
933    }
934}
935impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
936    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
937        match err {
938            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
939            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
940                Error::InternalServerException(inner)
941            }
942            crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
943                Error::ResourceNotFoundException(inner)
944            }
945            crate::operation::list_tags_for_resource::ListTagsForResourceError::ServiceUnavailableException(inner) => {
946                Error::ServiceUnavailableException(inner)
947            }
948            crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
949            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
950            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
951        }
952    }
953}
954impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
955where
956    R: Send + Sync + std::fmt::Debug + 'static,
957{
958    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
959        match err {
960            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
961            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
962                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
963                source: err.into(),
964            }),
965        }
966    }
967}
968impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
969    fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
970        match err {
971            crate::operation::put_resource_policy::PutResourcePolicyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
972            crate::operation::put_resource_policy::PutResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
973            crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
974            crate::operation::put_resource_policy::PutResourcePolicyError::PublicPolicyException(inner) => Error::PublicPolicyException(inner),
975            crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
976                Error::ResourceNotFoundException(inner)
977            }
978            crate::operation::put_resource_policy::PutResourcePolicyError::ServiceQuotaExceededException(inner) => {
979                Error::ServiceQuotaExceededException(inner)
980            }
981            crate::operation::put_resource_policy::PutResourcePolicyError::ServiceUnavailableException(inner) => {
982                Error::ServiceUnavailableException(inner)
983            }
984            crate::operation::put_resource_policy::PutResourcePolicyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
985            crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
986            crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
987        }
988    }
989}
990impl<R>
991    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsError, R>>
992    for Error
993where
994    R: Send + Sync + std::fmt::Debug + 'static,
995{
996    fn from(
997        err: ::aws_smithy_runtime_api::client::result::SdkError<
998            crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsError,
999            R,
1000        >,
1001    ) -> Self {
1002        match err {
1003            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1004            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1005                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1006                source: err.into(),
1007            }),
1008        }
1009    }
1010}
1011impl From<crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsError> for Error {
1012    fn from(err: crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsError) -> Self {
1013        match err {
1014            crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsError::AccessDeniedException(inner) => {
1015                Error::AccessDeniedException(inner)
1016            }
1017            crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsError::ConflictException(inner) => {
1018                Error::ConflictException(inner)
1019            }
1020            crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsError::InternalServerException(inner) => {
1021                Error::InternalServerException(inner)
1022            }
1023            crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsError::ResourceNotFoundException(inner) => {
1024                Error::ResourceNotFoundException(inner)
1025            }
1026            crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsError::ServiceQuotaExceededException(inner) => {
1027                Error::ServiceQuotaExceededException(inner)
1028            }
1029            crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsError::ThrottlingException(inner) => {
1030                Error::ThrottlingException(inner)
1031            }
1032            crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsError::ValidationException(inner) => {
1033                Error::ValidationException(inner)
1034            }
1035            crate::operation::remove_key_replication_regions::RemoveKeyReplicationRegionsError::Unhandled(inner) => Error::Unhandled(inner),
1036        }
1037    }
1038}
1039impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_key::RestoreKeyError, R>> for Error
1040where
1041    R: Send + Sync + std::fmt::Debug + 'static,
1042{
1043    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_key::RestoreKeyError, R>) -> Self {
1044        match err {
1045            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1046            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1047                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1048                source: err.into(),
1049            }),
1050        }
1051    }
1052}
1053impl From<crate::operation::restore_key::RestoreKeyError> for Error {
1054    fn from(err: crate::operation::restore_key::RestoreKeyError) -> Self {
1055        match err {
1056            crate::operation::restore_key::RestoreKeyError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1057            crate::operation::restore_key::RestoreKeyError::ConflictException(inner) => Error::ConflictException(inner),
1058            crate::operation::restore_key::RestoreKeyError::InternalServerException(inner) => Error::InternalServerException(inner),
1059            crate::operation::restore_key::RestoreKeyError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1060            crate::operation::restore_key::RestoreKeyError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1061            crate::operation::restore_key::RestoreKeyError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1062            crate::operation::restore_key::RestoreKeyError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1063            crate::operation::restore_key::RestoreKeyError::ValidationException(inner) => Error::ValidationException(inner),
1064            crate::operation::restore_key::RestoreKeyError::Unhandled(inner) => Error::Unhandled(inner),
1065        }
1066    }
1067}
1068impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_key_usage::StartKeyUsageError, R>> for Error
1069where
1070    R: Send + Sync + std::fmt::Debug + 'static,
1071{
1072    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::start_key_usage::StartKeyUsageError, R>) -> Self {
1073        match err {
1074            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1075            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1076                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1077                source: err.into(),
1078            }),
1079        }
1080    }
1081}
1082impl From<crate::operation::start_key_usage::StartKeyUsageError> for Error {
1083    fn from(err: crate::operation::start_key_usage::StartKeyUsageError) -> Self {
1084        match err {
1085            crate::operation::start_key_usage::StartKeyUsageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1086            crate::operation::start_key_usage::StartKeyUsageError::ConflictException(inner) => Error::ConflictException(inner),
1087            crate::operation::start_key_usage::StartKeyUsageError::InternalServerException(inner) => Error::InternalServerException(inner),
1088            crate::operation::start_key_usage::StartKeyUsageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1089            crate::operation::start_key_usage::StartKeyUsageError::ServiceQuotaExceededException(inner) => {
1090                Error::ServiceQuotaExceededException(inner)
1091            }
1092            crate::operation::start_key_usage::StartKeyUsageError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1093            crate::operation::start_key_usage::StartKeyUsageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1094            crate::operation::start_key_usage::StartKeyUsageError::ValidationException(inner) => Error::ValidationException(inner),
1095            crate::operation::start_key_usage::StartKeyUsageError::Unhandled(inner) => Error::Unhandled(inner),
1096        }
1097    }
1098}
1099impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_key_usage::StopKeyUsageError, R>> for Error
1100where
1101    R: Send + Sync + std::fmt::Debug + 'static,
1102{
1103    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::stop_key_usage::StopKeyUsageError, R>) -> Self {
1104        match err {
1105            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1106            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1107                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1108                source: err.into(),
1109            }),
1110        }
1111    }
1112}
1113impl From<crate::operation::stop_key_usage::StopKeyUsageError> for Error {
1114    fn from(err: crate::operation::stop_key_usage::StopKeyUsageError) -> Self {
1115        match err {
1116            crate::operation::stop_key_usage::StopKeyUsageError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1117            crate::operation::stop_key_usage::StopKeyUsageError::ConflictException(inner) => Error::ConflictException(inner),
1118            crate::operation::stop_key_usage::StopKeyUsageError::InternalServerException(inner) => Error::InternalServerException(inner),
1119            crate::operation::stop_key_usage::StopKeyUsageError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1120            crate::operation::stop_key_usage::StopKeyUsageError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1121            crate::operation::stop_key_usage::StopKeyUsageError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1122            crate::operation::stop_key_usage::StopKeyUsageError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1123            crate::operation::stop_key_usage::StopKeyUsageError::ValidationException(inner) => Error::ValidationException(inner),
1124            crate::operation::stop_key_usage::StopKeyUsageError::Unhandled(inner) => Error::Unhandled(inner),
1125        }
1126    }
1127}
1128impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1129where
1130    R: Send + Sync + std::fmt::Debug + 'static,
1131{
1132    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1133        match err {
1134            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1135            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1136                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1137                source: err.into(),
1138            }),
1139        }
1140    }
1141}
1142impl From<crate::operation::tag_resource::TagResourceError> for Error {
1143    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1144        match err {
1145            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1146            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1147            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1148            crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1149            crate::operation::tag_resource::TagResourceError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
1150            crate::operation::tag_resource::TagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1151            crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1152            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1153            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1154        }
1155    }
1156}
1157impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1158where
1159    R: Send + Sync + std::fmt::Debug + 'static,
1160{
1161    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1162        match err {
1163            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1164            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1165                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1166                source: err.into(),
1167            }),
1168        }
1169    }
1170}
1171impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1172    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1173        match err {
1174            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1175            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
1176            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1177            crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1178            crate::operation::untag_resource::UntagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1179            crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1180            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1181            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1182        }
1183    }
1184}
1185impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_alias::UpdateAliasError, R>> for Error
1186where
1187    R: Send + Sync + std::fmt::Debug + 'static,
1188{
1189    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_alias::UpdateAliasError, R>) -> Self {
1190        match err {
1191            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1192            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1193                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1194                source: err.into(),
1195            }),
1196        }
1197    }
1198}
1199impl From<crate::operation::update_alias::UpdateAliasError> for Error {
1200    fn from(err: crate::operation::update_alias::UpdateAliasError) -> Self {
1201        match err {
1202            crate::operation::update_alias::UpdateAliasError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1203            crate::operation::update_alias::UpdateAliasError::ConflictException(inner) => Error::ConflictException(inner),
1204            crate::operation::update_alias::UpdateAliasError::InternalServerException(inner) => Error::InternalServerException(inner),
1205            crate::operation::update_alias::UpdateAliasError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1206            crate::operation::update_alias::UpdateAliasError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
1207            crate::operation::update_alias::UpdateAliasError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1208            crate::operation::update_alias::UpdateAliasError::ValidationException(inner) => Error::ValidationException(inner),
1209            crate::operation::update_alias::UpdateAliasError::Unhandled(inner) => Error::Unhandled(inner),
1210        }
1211    }
1212}
1213impl ::std::error::Error for Error {
1214    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1215        match self {
1216            Error::AccessDeniedException(inner) => inner.source(),
1217            Error::ConflictException(inner) => inner.source(),
1218            Error::InternalServerException(inner) => inner.source(),
1219            Error::PublicPolicyException(inner) => inner.source(),
1220            Error::ResourceNotFoundException(inner) => inner.source(),
1221            Error::ServiceQuotaExceededException(inner) => inner.source(),
1222            Error::ServiceUnavailableException(inner) => inner.source(),
1223            Error::ThrottlingException(inner) => inner.source(),
1224            Error::ValidationException(inner) => inner.source(),
1225            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1226        }
1227    }
1228}
1229impl ::aws_types::request_id::RequestId for Error {
1230    fn request_id(&self) -> Option<&str> {
1231        match self {
1232            Self::AccessDeniedException(e) => e.request_id(),
1233            Self::ConflictException(e) => e.request_id(),
1234            Self::InternalServerException(e) => e.request_id(),
1235            Self::PublicPolicyException(e) => e.request_id(),
1236            Self::ResourceNotFoundException(e) => e.request_id(),
1237            Self::ServiceQuotaExceededException(e) => e.request_id(),
1238            Self::ServiceUnavailableException(e) => e.request_id(),
1239            Self::ThrottlingException(e) => e.request_id(),
1240            Self::ValidationException(e) => e.request_id(),
1241            Self::Unhandled(e) => e.meta.request_id(),
1242        }
1243    }
1244}