aws_sdk_s3vectors/
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>Access denied.</p>
7    AccessDeniedException(crate::types::error::AccessDeniedException),
8    /// <p>The request failed because a vector bucket name or a vector index name already exists. Vector bucket names must be unique within your Amazon Web Services account for each Amazon Web Services Region. Vector index names must be unique within your vector bucket. Choose a different vector bucket name or vector index name, and try again.</p>
9    ConflictException(crate::types::error::ConflictException),
10    /// <p>The request failed due to an internal server error.</p>
11    InternalServerException(crate::types::error::InternalServerException),
12    /// <p>The specified Amazon Web Services KMS key isn't enabled.</p>
13    KmsDisabledException(crate::types::error::KmsDisabledException),
14    /// <p>The request was rejected for one of the following reasons:</p>
15    /// <ul>
16    /// <li>
17    /// <p>The <code>KeyUsage</code> value of the KMS key is incompatible with the API operation.</p></li>
18    /// <li>
19    /// <p>The encryption algorithm or signing algorithm specified for the operation is incompatible with the type of key material in the KMS key (<code>KeySpec</code>).</p></li>
20    /// </ul>
21    /// <p>For more information, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html#API_Encrypt_Errors">InvalidKeyUsageException</a> in the <i>Amazon Web Services Key Management Service API Reference</i>.</p>
22    KmsInvalidKeyUsageException(crate::types::error::KmsInvalidKeyUsageException),
23    /// <p>The key state of the KMS key isn't compatible with the operation.</p>
24    /// <p>For more information, see <a href="https://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html#API_Encrypt_Errors">KMSInvalidStateException</a> in the <i>Amazon Web Services Key Management Service API Reference</i>.</p>
25    KmsInvalidStateException(crate::types::error::KmsInvalidStateException),
26    /// <p>The KMS key can't be found.</p>
27    KmsNotFoundException(crate::types::error::KmsNotFoundException),
28    /// <p>The request was rejected because the specified resource can't be found.</p>
29    NotFoundException(crate::types::error::NotFoundException),
30    /// <p>The request timed out. Retry your request.</p>
31    RequestTimeoutException(crate::types::error::RequestTimeoutException),
32    /// <p>Your request exceeds a service quota.</p>
33    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
34    /// <p>The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.</p>
35    ServiceUnavailableException(crate::types::error::ServiceUnavailableException),
36    /// <p>The request was denied due to request throttling.</p>
37    TooManyRequestsException(crate::types::error::TooManyRequestsException),
38    /// <p>The requested action isn't valid.</p>
39    ValidationException(crate::types::error::ValidationException),
40    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
41    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
42    variable wildcard pattern and check `.code()`:
43     \
44    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
45     \
46    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
47    Unhandled(crate::error::sealed_unhandled::Unhandled),
48}
49impl ::std::fmt::Display for Error {
50    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
51        match self {
52            Error::AccessDeniedException(inner) => inner.fmt(f),
53            Error::ConflictException(inner) => inner.fmt(f),
54            Error::InternalServerException(inner) => inner.fmt(f),
55            Error::KmsDisabledException(inner) => inner.fmt(f),
56            Error::KmsInvalidKeyUsageException(inner) => inner.fmt(f),
57            Error::KmsInvalidStateException(inner) => inner.fmt(f),
58            Error::KmsNotFoundException(inner) => inner.fmt(f),
59            Error::NotFoundException(inner) => inner.fmt(f),
60            Error::RequestTimeoutException(inner) => inner.fmt(f),
61            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
62            Error::ServiceUnavailableException(inner) => inner.fmt(f),
63            Error::TooManyRequestsException(inner) => inner.fmt(f),
64            Error::ValidationException(inner) => inner.fmt(f),
65            Error::Unhandled(_) => {
66                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
67                    write!(f, "unhandled error ({code})")
68                } else {
69                    f.write_str("unhandled error")
70                }
71            }
72        }
73    }
74}
75impl From<::aws_smithy_types::error::operation::BuildError> for Error {
76    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
77        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
78            source: value.into(),
79            meta: ::std::default::Default::default(),
80        })
81    }
82}
83impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
84    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
85        match self {
86            Self::AccessDeniedException(inner) => inner.meta(),
87            Self::ConflictException(inner) => inner.meta(),
88            Self::InternalServerException(inner) => inner.meta(),
89            Self::KmsDisabledException(inner) => inner.meta(),
90            Self::KmsInvalidKeyUsageException(inner) => inner.meta(),
91            Self::KmsInvalidStateException(inner) => inner.meta(),
92            Self::KmsNotFoundException(inner) => inner.meta(),
93            Self::NotFoundException(inner) => inner.meta(),
94            Self::RequestTimeoutException(inner) => inner.meta(),
95            Self::ServiceQuotaExceededException(inner) => inner.meta(),
96            Self::ServiceUnavailableException(inner) => inner.meta(),
97            Self::TooManyRequestsException(inner) => inner.meta(),
98            Self::ValidationException(inner) => inner.meta(),
99            Self::Unhandled(inner) => &inner.meta,
100        }
101    }
102}
103impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_index::CreateIndexError, R>> for Error
104where
105    R: Send + Sync + std::fmt::Debug + 'static,
106{
107    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_index::CreateIndexError, R>) -> Self {
108        match err {
109            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
110            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
111                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
112                source: err.into(),
113            }),
114        }
115    }
116}
117impl From<crate::operation::create_index::CreateIndexError> for Error {
118    fn from(err: crate::operation::create_index::CreateIndexError) -> Self {
119        match err {
120            crate::operation::create_index::CreateIndexError::ConflictException(inner) => Error::ConflictException(inner),
121            crate::operation::create_index::CreateIndexError::NotFoundException(inner) => Error::NotFoundException(inner),
122            crate::operation::create_index::CreateIndexError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
123            crate::operation::create_index::CreateIndexError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
124            crate::operation::create_index::CreateIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
125            crate::operation::create_index::CreateIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
126            crate::operation::create_index::CreateIndexError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
127            crate::operation::create_index::CreateIndexError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
128            crate::operation::create_index::CreateIndexError::ValidationException(inner) => Error::ValidationException(inner),
129            crate::operation::create_index::CreateIndexError::Unhandled(inner) => Error::Unhandled(inner),
130        }
131    }
132}
133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vector_bucket::CreateVectorBucketError, R>> for Error
134where
135    R: Send + Sync + std::fmt::Debug + 'static,
136{
137    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_vector_bucket::CreateVectorBucketError, R>) -> Self {
138        match err {
139            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
140            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
141                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
142                source: err.into(),
143            }),
144        }
145    }
146}
147impl From<crate::operation::create_vector_bucket::CreateVectorBucketError> for Error {
148    fn from(err: crate::operation::create_vector_bucket::CreateVectorBucketError) -> Self {
149        match err {
150            crate::operation::create_vector_bucket::CreateVectorBucketError::ConflictException(inner) => Error::ConflictException(inner),
151            crate::operation::create_vector_bucket::CreateVectorBucketError::ServiceQuotaExceededException(inner) => {
152                Error::ServiceQuotaExceededException(inner)
153            }
154            crate::operation::create_vector_bucket::CreateVectorBucketError::ServiceUnavailableException(inner) => {
155                Error::ServiceUnavailableException(inner)
156            }
157            crate::operation::create_vector_bucket::CreateVectorBucketError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
158            crate::operation::create_vector_bucket::CreateVectorBucketError::InternalServerException(inner) => Error::InternalServerException(inner),
159            crate::operation::create_vector_bucket::CreateVectorBucketError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
160            crate::operation::create_vector_bucket::CreateVectorBucketError::TooManyRequestsException(inner) => {
161                Error::TooManyRequestsException(inner)
162            }
163            crate::operation::create_vector_bucket::CreateVectorBucketError::ValidationException(inner) => Error::ValidationException(inner),
164            crate::operation::create_vector_bucket::CreateVectorBucketError::Unhandled(inner) => Error::Unhandled(inner),
165        }
166    }
167}
168impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_index::DeleteIndexError, R>> for Error
169where
170    R: Send + Sync + std::fmt::Debug + 'static,
171{
172    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_index::DeleteIndexError, R>) -> Self {
173        match err {
174            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
175            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
176                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
177                source: err.into(),
178            }),
179        }
180    }
181}
182impl From<crate::operation::delete_index::DeleteIndexError> for Error {
183    fn from(err: crate::operation::delete_index::DeleteIndexError) -> Self {
184        match err {
185            crate::operation::delete_index::DeleteIndexError::NotFoundException(inner) => Error::NotFoundException(inner),
186            crate::operation::delete_index::DeleteIndexError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
187            crate::operation::delete_index::DeleteIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
188            crate::operation::delete_index::DeleteIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
189            crate::operation::delete_index::DeleteIndexError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
190            crate::operation::delete_index::DeleteIndexError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
191            crate::operation::delete_index::DeleteIndexError::ValidationException(inner) => Error::ValidationException(inner),
192            crate::operation::delete_index::DeleteIndexError::Unhandled(inner) => Error::Unhandled(inner),
193        }
194    }
195}
196impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vector_bucket::DeleteVectorBucketError, R>> for Error
197where
198    R: Send + Sync + std::fmt::Debug + 'static,
199{
200    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vector_bucket::DeleteVectorBucketError, R>) -> Self {
201        match err {
202            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
203            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
204                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
205                source: err.into(),
206            }),
207        }
208    }
209}
210impl From<crate::operation::delete_vector_bucket::DeleteVectorBucketError> for Error {
211    fn from(err: crate::operation::delete_vector_bucket::DeleteVectorBucketError) -> Self {
212        match err {
213            crate::operation::delete_vector_bucket::DeleteVectorBucketError::ConflictException(inner) => Error::ConflictException(inner),
214            crate::operation::delete_vector_bucket::DeleteVectorBucketError::NotFoundException(inner) => Error::NotFoundException(inner),
215            crate::operation::delete_vector_bucket::DeleteVectorBucketError::ServiceUnavailableException(inner) => {
216                Error::ServiceUnavailableException(inner)
217            }
218            crate::operation::delete_vector_bucket::DeleteVectorBucketError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
219            crate::operation::delete_vector_bucket::DeleteVectorBucketError::InternalServerException(inner) => Error::InternalServerException(inner),
220            crate::operation::delete_vector_bucket::DeleteVectorBucketError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
221            crate::operation::delete_vector_bucket::DeleteVectorBucketError::TooManyRequestsException(inner) => {
222                Error::TooManyRequestsException(inner)
223            }
224            crate::operation::delete_vector_bucket::DeleteVectorBucketError::ValidationException(inner) => Error::ValidationException(inner),
225            crate::operation::delete_vector_bucket::DeleteVectorBucketError::Unhandled(inner) => Error::Unhandled(inner),
226        }
227    }
228}
229impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vector_bucket_policy::DeleteVectorBucketPolicyError, R>>
230    for Error
231where
232    R: Send + Sync + std::fmt::Debug + 'static,
233{
234    fn from(
235        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vector_bucket_policy::DeleteVectorBucketPolicyError, R>,
236    ) -> Self {
237        match err {
238            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
239            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
240                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
241                source: err.into(),
242            }),
243        }
244    }
245}
246impl From<crate::operation::delete_vector_bucket_policy::DeleteVectorBucketPolicyError> for Error {
247    fn from(err: crate::operation::delete_vector_bucket_policy::DeleteVectorBucketPolicyError) -> Self {
248        match err {
249            crate::operation::delete_vector_bucket_policy::DeleteVectorBucketPolicyError::NotFoundException(inner) => Error::NotFoundException(inner),
250            crate::operation::delete_vector_bucket_policy::DeleteVectorBucketPolicyError::ServiceUnavailableException(inner) => {
251                Error::ServiceUnavailableException(inner)
252            }
253            crate::operation::delete_vector_bucket_policy::DeleteVectorBucketPolicyError::AccessDeniedException(inner) => {
254                Error::AccessDeniedException(inner)
255            }
256            crate::operation::delete_vector_bucket_policy::DeleteVectorBucketPolicyError::InternalServerException(inner) => {
257                Error::InternalServerException(inner)
258            }
259            crate::operation::delete_vector_bucket_policy::DeleteVectorBucketPolicyError::RequestTimeoutException(inner) => {
260                Error::RequestTimeoutException(inner)
261            }
262            crate::operation::delete_vector_bucket_policy::DeleteVectorBucketPolicyError::TooManyRequestsException(inner) => {
263                Error::TooManyRequestsException(inner)
264            }
265            crate::operation::delete_vector_bucket_policy::DeleteVectorBucketPolicyError::ValidationException(inner) => {
266                Error::ValidationException(inner)
267            }
268            crate::operation::delete_vector_bucket_policy::DeleteVectorBucketPolicyError::Unhandled(inner) => Error::Unhandled(inner),
269        }
270    }
271}
272impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vectors::DeleteVectorsError, R>> for Error
273where
274    R: Send + Sync + std::fmt::Debug + 'static,
275{
276    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_vectors::DeleteVectorsError, R>) -> Self {
277        match err {
278            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
279            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
280                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
281                source: err.into(),
282            }),
283        }
284    }
285}
286impl From<crate::operation::delete_vectors::DeleteVectorsError> for Error {
287    fn from(err: crate::operation::delete_vectors::DeleteVectorsError) -> Self {
288        match err {
289            crate::operation::delete_vectors::DeleteVectorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
290            crate::operation::delete_vectors::DeleteVectorsError::KmsDisabledException(inner) => Error::KmsDisabledException(inner),
291            crate::operation::delete_vectors::DeleteVectorsError::KmsInvalidKeyUsageException(inner) => Error::KmsInvalidKeyUsageException(inner),
292            crate::operation::delete_vectors::DeleteVectorsError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
293            crate::operation::delete_vectors::DeleteVectorsError::KmsNotFoundException(inner) => Error::KmsNotFoundException(inner),
294            crate::operation::delete_vectors::DeleteVectorsError::NotFoundException(inner) => Error::NotFoundException(inner),
295            crate::operation::delete_vectors::DeleteVectorsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
296            crate::operation::delete_vectors::DeleteVectorsError::InternalServerException(inner) => Error::InternalServerException(inner),
297            crate::operation::delete_vectors::DeleteVectorsError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
298            crate::operation::delete_vectors::DeleteVectorsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
299            crate::operation::delete_vectors::DeleteVectorsError::ValidationException(inner) => Error::ValidationException(inner),
300            crate::operation::delete_vectors::DeleteVectorsError::Unhandled(inner) => Error::Unhandled(inner),
301        }
302    }
303}
304impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_index::GetIndexError, R>> for Error
305where
306    R: Send + Sync + std::fmt::Debug + 'static,
307{
308    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_index::GetIndexError, R>) -> Self {
309        match err {
310            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
311            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
312                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
313                source: err.into(),
314            }),
315        }
316    }
317}
318impl From<crate::operation::get_index::GetIndexError> for Error {
319    fn from(err: crate::operation::get_index::GetIndexError) -> Self {
320        match err {
321            crate::operation::get_index::GetIndexError::NotFoundException(inner) => Error::NotFoundException(inner),
322            crate::operation::get_index::GetIndexError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
323            crate::operation::get_index::GetIndexError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
324            crate::operation::get_index::GetIndexError::InternalServerException(inner) => Error::InternalServerException(inner),
325            crate::operation::get_index::GetIndexError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
326            crate::operation::get_index::GetIndexError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
327            crate::operation::get_index::GetIndexError::ValidationException(inner) => Error::ValidationException(inner),
328            crate::operation::get_index::GetIndexError::Unhandled(inner) => Error::Unhandled(inner),
329        }
330    }
331}
332impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vector_bucket::GetVectorBucketError, R>> for Error
333where
334    R: Send + Sync + std::fmt::Debug + 'static,
335{
336    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vector_bucket::GetVectorBucketError, R>) -> Self {
337        match err {
338            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
339            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
340                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
341                source: err.into(),
342            }),
343        }
344    }
345}
346impl From<crate::operation::get_vector_bucket::GetVectorBucketError> for Error {
347    fn from(err: crate::operation::get_vector_bucket::GetVectorBucketError) -> Self {
348        match err {
349            crate::operation::get_vector_bucket::GetVectorBucketError::NotFoundException(inner) => Error::NotFoundException(inner),
350            crate::operation::get_vector_bucket::GetVectorBucketError::ServiceUnavailableException(inner) => {
351                Error::ServiceUnavailableException(inner)
352            }
353            crate::operation::get_vector_bucket::GetVectorBucketError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
354            crate::operation::get_vector_bucket::GetVectorBucketError::InternalServerException(inner) => Error::InternalServerException(inner),
355            crate::operation::get_vector_bucket::GetVectorBucketError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
356            crate::operation::get_vector_bucket::GetVectorBucketError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
357            crate::operation::get_vector_bucket::GetVectorBucketError::ValidationException(inner) => Error::ValidationException(inner),
358            crate::operation::get_vector_bucket::GetVectorBucketError::Unhandled(inner) => Error::Unhandled(inner),
359        }
360    }
361}
362impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vector_bucket_policy::GetVectorBucketPolicyError, R>> for Error
363where
364    R: Send + Sync + std::fmt::Debug + 'static,
365{
366    fn from(
367        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vector_bucket_policy::GetVectorBucketPolicyError, R>,
368    ) -> Self {
369        match err {
370            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
371            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
372                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
373                source: err.into(),
374            }),
375        }
376    }
377}
378impl From<crate::operation::get_vector_bucket_policy::GetVectorBucketPolicyError> for Error {
379    fn from(err: crate::operation::get_vector_bucket_policy::GetVectorBucketPolicyError) -> Self {
380        match err {
381            crate::operation::get_vector_bucket_policy::GetVectorBucketPolicyError::NotFoundException(inner) => Error::NotFoundException(inner),
382            crate::operation::get_vector_bucket_policy::GetVectorBucketPolicyError::ServiceUnavailableException(inner) => {
383                Error::ServiceUnavailableException(inner)
384            }
385            crate::operation::get_vector_bucket_policy::GetVectorBucketPolicyError::AccessDeniedException(inner) => {
386                Error::AccessDeniedException(inner)
387            }
388            crate::operation::get_vector_bucket_policy::GetVectorBucketPolicyError::InternalServerException(inner) => {
389                Error::InternalServerException(inner)
390            }
391            crate::operation::get_vector_bucket_policy::GetVectorBucketPolicyError::RequestTimeoutException(inner) => {
392                Error::RequestTimeoutException(inner)
393            }
394            crate::operation::get_vector_bucket_policy::GetVectorBucketPolicyError::TooManyRequestsException(inner) => {
395                Error::TooManyRequestsException(inner)
396            }
397            crate::operation::get_vector_bucket_policy::GetVectorBucketPolicyError::ValidationException(inner) => Error::ValidationException(inner),
398            crate::operation::get_vector_bucket_policy::GetVectorBucketPolicyError::Unhandled(inner) => Error::Unhandled(inner),
399        }
400    }
401}
402impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vectors::GetVectorsError, R>> for Error
403where
404    R: Send + Sync + std::fmt::Debug + 'static,
405{
406    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_vectors::GetVectorsError, R>) -> Self {
407        match err {
408            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
409            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
410                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
411                source: err.into(),
412            }),
413        }
414    }
415}
416impl From<crate::operation::get_vectors::GetVectorsError> for Error {
417    fn from(err: crate::operation::get_vectors::GetVectorsError) -> Self {
418        match err {
419            crate::operation::get_vectors::GetVectorsError::KmsDisabledException(inner) => Error::KmsDisabledException(inner),
420            crate::operation::get_vectors::GetVectorsError::KmsInvalidKeyUsageException(inner) => Error::KmsInvalidKeyUsageException(inner),
421            crate::operation::get_vectors::GetVectorsError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
422            crate::operation::get_vectors::GetVectorsError::KmsNotFoundException(inner) => Error::KmsNotFoundException(inner),
423            crate::operation::get_vectors::GetVectorsError::NotFoundException(inner) => Error::NotFoundException(inner),
424            crate::operation::get_vectors::GetVectorsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
425            crate::operation::get_vectors::GetVectorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
426            crate::operation::get_vectors::GetVectorsError::InternalServerException(inner) => Error::InternalServerException(inner),
427            crate::operation::get_vectors::GetVectorsError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
428            crate::operation::get_vectors::GetVectorsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
429            crate::operation::get_vectors::GetVectorsError::ValidationException(inner) => Error::ValidationException(inner),
430            crate::operation::get_vectors::GetVectorsError::Unhandled(inner) => Error::Unhandled(inner),
431        }
432    }
433}
434impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_indexes::ListIndexesError, R>> for Error
435where
436    R: Send + Sync + std::fmt::Debug + 'static,
437{
438    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_indexes::ListIndexesError, R>) -> Self {
439        match err {
440            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
441            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
442                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
443                source: err.into(),
444            }),
445        }
446    }
447}
448impl From<crate::operation::list_indexes::ListIndexesError> for Error {
449    fn from(err: crate::operation::list_indexes::ListIndexesError) -> Self {
450        match err {
451            crate::operation::list_indexes::ListIndexesError::NotFoundException(inner) => Error::NotFoundException(inner),
452            crate::operation::list_indexes::ListIndexesError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
453            crate::operation::list_indexes::ListIndexesError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
454            crate::operation::list_indexes::ListIndexesError::InternalServerException(inner) => Error::InternalServerException(inner),
455            crate::operation::list_indexes::ListIndexesError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
456            crate::operation::list_indexes::ListIndexesError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
457            crate::operation::list_indexes::ListIndexesError::ValidationException(inner) => Error::ValidationException(inner),
458            crate::operation::list_indexes::ListIndexesError::Unhandled(inner) => Error::Unhandled(inner),
459        }
460    }
461}
462impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
463where
464    R: Send + Sync + std::fmt::Debug + 'static,
465{
466    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
467        match err {
468            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
469            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
470                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
471                source: err.into(),
472            }),
473        }
474    }
475}
476impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
477    fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
478        match err {
479            crate::operation::list_tags_for_resource::ListTagsForResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
480            crate::operation::list_tags_for_resource::ListTagsForResourceError::ServiceUnavailableException(inner) => {
481                Error::ServiceUnavailableException(inner)
482            }
483            crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
484            crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
485                Error::InternalServerException(inner)
486            }
487            crate::operation::list_tags_for_resource::ListTagsForResourceError::RequestTimeoutException(inner) => {
488                Error::RequestTimeoutException(inner)
489            }
490            crate::operation::list_tags_for_resource::ListTagsForResourceError::TooManyRequestsException(inner) => {
491                Error::TooManyRequestsException(inner)
492            }
493            crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
494            crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
495        }
496    }
497}
498impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vector_buckets::ListVectorBucketsError, R>> for Error
499where
500    R: Send + Sync + std::fmt::Debug + 'static,
501{
502    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vector_buckets::ListVectorBucketsError, R>) -> Self {
503        match err {
504            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
505            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
506                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
507                source: err.into(),
508            }),
509        }
510    }
511}
512impl From<crate::operation::list_vector_buckets::ListVectorBucketsError> for Error {
513    fn from(err: crate::operation::list_vector_buckets::ListVectorBucketsError) -> Self {
514        match err {
515            crate::operation::list_vector_buckets::ListVectorBucketsError::ServiceUnavailableException(inner) => {
516                Error::ServiceUnavailableException(inner)
517            }
518            crate::operation::list_vector_buckets::ListVectorBucketsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
519            crate::operation::list_vector_buckets::ListVectorBucketsError::InternalServerException(inner) => Error::InternalServerException(inner),
520            crate::operation::list_vector_buckets::ListVectorBucketsError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
521            crate::operation::list_vector_buckets::ListVectorBucketsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
522            crate::operation::list_vector_buckets::ListVectorBucketsError::ValidationException(inner) => Error::ValidationException(inner),
523            crate::operation::list_vector_buckets::ListVectorBucketsError::Unhandled(inner) => Error::Unhandled(inner),
524        }
525    }
526}
527impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vectors::ListVectorsError, R>> for Error
528where
529    R: Send + Sync + std::fmt::Debug + 'static,
530{
531    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_vectors::ListVectorsError, R>) -> Self {
532        match err {
533            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
534            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
535                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
536                source: err.into(),
537            }),
538        }
539    }
540}
541impl From<crate::operation::list_vectors::ListVectorsError> for Error {
542    fn from(err: crate::operation::list_vectors::ListVectorsError) -> Self {
543        match err {
544            crate::operation::list_vectors::ListVectorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
545            crate::operation::list_vectors::ListVectorsError::NotFoundException(inner) => Error::NotFoundException(inner),
546            crate::operation::list_vectors::ListVectorsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
547            crate::operation::list_vectors::ListVectorsError::InternalServerException(inner) => Error::InternalServerException(inner),
548            crate::operation::list_vectors::ListVectorsError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
549            crate::operation::list_vectors::ListVectorsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
550            crate::operation::list_vectors::ListVectorsError::ValidationException(inner) => Error::ValidationException(inner),
551            crate::operation::list_vectors::ListVectorsError::Unhandled(inner) => Error::Unhandled(inner),
552        }
553    }
554}
555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_vector_bucket_policy::PutVectorBucketPolicyError, R>> for Error
556where
557    R: Send + Sync + std::fmt::Debug + 'static,
558{
559    fn from(
560        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_vector_bucket_policy::PutVectorBucketPolicyError, R>,
561    ) -> Self {
562        match err {
563            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
564            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
565                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
566                source: err.into(),
567            }),
568        }
569    }
570}
571impl From<crate::operation::put_vector_bucket_policy::PutVectorBucketPolicyError> for Error {
572    fn from(err: crate::operation::put_vector_bucket_policy::PutVectorBucketPolicyError) -> Self {
573        match err {
574            crate::operation::put_vector_bucket_policy::PutVectorBucketPolicyError::NotFoundException(inner) => Error::NotFoundException(inner),
575            crate::operation::put_vector_bucket_policy::PutVectorBucketPolicyError::ServiceUnavailableException(inner) => {
576                Error::ServiceUnavailableException(inner)
577            }
578            crate::operation::put_vector_bucket_policy::PutVectorBucketPolicyError::AccessDeniedException(inner) => {
579                Error::AccessDeniedException(inner)
580            }
581            crate::operation::put_vector_bucket_policy::PutVectorBucketPolicyError::InternalServerException(inner) => {
582                Error::InternalServerException(inner)
583            }
584            crate::operation::put_vector_bucket_policy::PutVectorBucketPolicyError::RequestTimeoutException(inner) => {
585                Error::RequestTimeoutException(inner)
586            }
587            crate::operation::put_vector_bucket_policy::PutVectorBucketPolicyError::TooManyRequestsException(inner) => {
588                Error::TooManyRequestsException(inner)
589            }
590            crate::operation::put_vector_bucket_policy::PutVectorBucketPolicyError::ValidationException(inner) => Error::ValidationException(inner),
591            crate::operation::put_vector_bucket_policy::PutVectorBucketPolicyError::Unhandled(inner) => Error::Unhandled(inner),
592        }
593    }
594}
595impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_vectors::PutVectorsError, R>> for Error
596where
597    R: Send + Sync + std::fmt::Debug + 'static,
598{
599    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_vectors::PutVectorsError, R>) -> Self {
600        match err {
601            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
602            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
603                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
604                source: err.into(),
605            }),
606        }
607    }
608}
609impl From<crate::operation::put_vectors::PutVectorsError> for Error {
610    fn from(err: crate::operation::put_vectors::PutVectorsError) -> Self {
611        match err {
612            crate::operation::put_vectors::PutVectorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
613            crate::operation::put_vectors::PutVectorsError::KmsDisabledException(inner) => Error::KmsDisabledException(inner),
614            crate::operation::put_vectors::PutVectorsError::KmsInvalidKeyUsageException(inner) => Error::KmsInvalidKeyUsageException(inner),
615            crate::operation::put_vectors::PutVectorsError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
616            crate::operation::put_vectors::PutVectorsError::KmsNotFoundException(inner) => Error::KmsNotFoundException(inner),
617            crate::operation::put_vectors::PutVectorsError::NotFoundException(inner) => Error::NotFoundException(inner),
618            crate::operation::put_vectors::PutVectorsError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
619            crate::operation::put_vectors::PutVectorsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
620            crate::operation::put_vectors::PutVectorsError::InternalServerException(inner) => Error::InternalServerException(inner),
621            crate::operation::put_vectors::PutVectorsError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
622            crate::operation::put_vectors::PutVectorsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
623            crate::operation::put_vectors::PutVectorsError::ValidationException(inner) => Error::ValidationException(inner),
624            crate::operation::put_vectors::PutVectorsError::Unhandled(inner) => Error::Unhandled(inner),
625        }
626    }
627}
628impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_vectors::QueryVectorsError, R>> for Error
629where
630    R: Send + Sync + std::fmt::Debug + 'static,
631{
632    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_vectors::QueryVectorsError, R>) -> Self {
633        match err {
634            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
635            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
636                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
637                source: err.into(),
638            }),
639        }
640    }
641}
642impl From<crate::operation::query_vectors::QueryVectorsError> for Error {
643    fn from(err: crate::operation::query_vectors::QueryVectorsError) -> Self {
644        match err {
645            crate::operation::query_vectors::QueryVectorsError::KmsDisabledException(inner) => Error::KmsDisabledException(inner),
646            crate::operation::query_vectors::QueryVectorsError::KmsInvalidKeyUsageException(inner) => Error::KmsInvalidKeyUsageException(inner),
647            crate::operation::query_vectors::QueryVectorsError::KmsInvalidStateException(inner) => Error::KmsInvalidStateException(inner),
648            crate::operation::query_vectors::QueryVectorsError::KmsNotFoundException(inner) => Error::KmsNotFoundException(inner),
649            crate::operation::query_vectors::QueryVectorsError::NotFoundException(inner) => Error::NotFoundException(inner),
650            crate::operation::query_vectors::QueryVectorsError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
651            crate::operation::query_vectors::QueryVectorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
652            crate::operation::query_vectors::QueryVectorsError::InternalServerException(inner) => Error::InternalServerException(inner),
653            crate::operation::query_vectors::QueryVectorsError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
654            crate::operation::query_vectors::QueryVectorsError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
655            crate::operation::query_vectors::QueryVectorsError::ValidationException(inner) => Error::ValidationException(inner),
656            crate::operation::query_vectors::QueryVectorsError::Unhandled(inner) => Error::Unhandled(inner),
657        }
658    }
659}
660impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
661where
662    R: Send + Sync + std::fmt::Debug + 'static,
663{
664    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
665        match err {
666            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
667            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
668                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
669                source: err.into(),
670            }),
671        }
672    }
673}
674impl From<crate::operation::tag_resource::TagResourceError> for Error {
675    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
676        match err {
677            crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
678            crate::operation::tag_resource::TagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
679            crate::operation::tag_resource::TagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
680            crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
681            crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
682            crate::operation::tag_resource::TagResourceError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
683            crate::operation::tag_resource::TagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
684            crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
685            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
686        }
687    }
688}
689impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
690where
691    R: Send + Sync + std::fmt::Debug + 'static,
692{
693    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
694        match err {
695            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
696            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
697                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
698                source: err.into(),
699            }),
700        }
701    }
702}
703impl From<crate::operation::untag_resource::UntagResourceError> for Error {
704    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
705        match err {
706            crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
707            crate::operation::untag_resource::UntagResourceError::NotFoundException(inner) => Error::NotFoundException(inner),
708            crate::operation::untag_resource::UntagResourceError::ServiceUnavailableException(inner) => Error::ServiceUnavailableException(inner),
709            crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
710            crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
711            crate::operation::untag_resource::UntagResourceError::RequestTimeoutException(inner) => Error::RequestTimeoutException(inner),
712            crate::operation::untag_resource::UntagResourceError::TooManyRequestsException(inner) => Error::TooManyRequestsException(inner),
713            crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
714            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
715        }
716    }
717}
718impl ::std::error::Error for Error {
719    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
720        match self {
721            Error::AccessDeniedException(inner) => inner.source(),
722            Error::ConflictException(inner) => inner.source(),
723            Error::InternalServerException(inner) => inner.source(),
724            Error::KmsDisabledException(inner) => inner.source(),
725            Error::KmsInvalidKeyUsageException(inner) => inner.source(),
726            Error::KmsInvalidStateException(inner) => inner.source(),
727            Error::KmsNotFoundException(inner) => inner.source(),
728            Error::NotFoundException(inner) => inner.source(),
729            Error::RequestTimeoutException(inner) => inner.source(),
730            Error::ServiceQuotaExceededException(inner) => inner.source(),
731            Error::ServiceUnavailableException(inner) => inner.source(),
732            Error::TooManyRequestsException(inner) => inner.source(),
733            Error::ValidationException(inner) => inner.source(),
734            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
735        }
736    }
737}
738impl ::aws_types::request_id::RequestId for Error {
739    fn request_id(&self) -> Option<&str> {
740        match self {
741            Self::AccessDeniedException(e) => e.request_id(),
742            Self::ConflictException(e) => e.request_id(),
743            Self::InternalServerException(e) => e.request_id(),
744            Self::KmsDisabledException(e) => e.request_id(),
745            Self::KmsInvalidKeyUsageException(e) => e.request_id(),
746            Self::KmsInvalidStateException(e) => e.request_id(),
747            Self::KmsNotFoundException(e) => e.request_id(),
748            Self::NotFoundException(e) => e.request_id(),
749            Self::RequestTimeoutException(e) => e.request_id(),
750            Self::ServiceQuotaExceededException(e) => e.request_id(),
751            Self::ServiceUnavailableException(e) => e.request_id(),
752            Self::TooManyRequestsException(e) => e.request_id(),
753            Self::ValidationException(e) => e.request_id(),
754            Self::Unhandled(e) => e.meta.request_id(),
755        }
756    }
757}