1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 DryRunException(crate::types::error::DryRunException),
12 InsufficientCapacityException(crate::types::error::InsufficientCapacityException),
14 InternalServerException(crate::types::error::InternalServerException),
16 InvalidPaginationException(crate::types::error::InvalidPaginationException),
18 Ipv6CidrBlockNotFoundException(crate::types::error::Ipv6CidrBlockNotFoundException),
20 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
22 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
24 ThrottlingException(crate::types::error::ThrottlingException),
26 TooManyTagsException(crate::types::error::TooManyTagsException),
28 ValidationException(crate::types::error::ValidationException),
30 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
32 variable wildcard pattern and check `.code()`:
33 \
34 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
35 \
36 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
37 Unhandled(crate::error::sealed_unhandled::Unhandled),
38}
39impl ::std::fmt::Display for Error {
40 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
41 match self {
42 Error::AccessDeniedException(inner) => inner.fmt(f),
43 Error::ConflictException(inner) => inner.fmt(f),
44 Error::DryRunException(inner) => inner.fmt(f),
45 Error::InsufficientCapacityException(inner) => inner.fmt(f),
46 Error::InternalServerException(inner) => inner.fmt(f),
47 Error::InvalidPaginationException(inner) => inner.fmt(f),
48 Error::Ipv6CidrBlockNotFoundException(inner) => inner.fmt(f),
49 Error::ResourceNotFoundException(inner) => inner.fmt(f),
50 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
51 Error::ThrottlingException(inner) => inner.fmt(f),
52 Error::TooManyTagsException(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::DryRunException(inner) => inner.meta(),
78 Self::InsufficientCapacityException(inner) => inner.meta(),
79 Self::InternalServerException(inner) => inner.meta(),
80 Self::InvalidPaginationException(inner) => inner.meta(),
81 Self::Ipv6CidrBlockNotFoundException(inner) => inner.meta(),
82 Self::ResourceNotFoundException(inner) => inner.meta(),
83 Self::ServiceQuotaExceededException(inner) => inner.meta(),
84 Self::ThrottlingException(inner) => inner.meta(),
85 Self::TooManyTagsException(inner) => inner.meta(),
86 Self::ValidationException(inner) => inner.meta(),
87 Self::Unhandled(inner) => &inner.meta,
88 }
89 }
90}
91impl<R>
92 From<
93 ::aws_smithy_runtime_api::client::result::SdkError<
94 crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotError,
95 R,
96 >,
97 > for Error
98where
99 R: Send + Sync + std::fmt::Debug + 'static,
100{
101 fn from(
102 err: ::aws_smithy_runtime_api::client::result::SdkError<
103 crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotError,
104 R,
105 >,
106 ) -> Self {
107 match err {
108 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
109 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
110 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
111 source: err.into(),
112 }),
113 }
114 }
115}
116impl From<crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotError> for Error {
117 fn from(err: crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotError) -> Self {
118 match err {
119 crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotError::ConflictException(inner) => {
120 Error::ConflictException(inner)
121 }
122 crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotError::InternalServerException(inner) => {
123 Error::InternalServerException(inner)
124 }
125 crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotError::ResourceNotFoundException(inner) => {
126 Error::ResourceNotFoundException(inner)
127 }
128 crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotError::ServiceQuotaExceededException(inner) => {
129 Error::ServiceQuotaExceededException(inner)
130 }
131 crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotError::TooManyTagsException(inner) => {
132 Error::TooManyTagsException(inner)
133 }
134 crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotError::ValidationException(inner) => {
135 Error::ValidationException(inner)
136 }
137 crate::operation::convert_recovery_point_to_snapshot::ConvertRecoveryPointToSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
138 }
139 }
140}
141impl<R>
142 From<
143 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError, R>,
144 > for Error
145where
146 R: Send + Sync + std::fmt::Debug + 'static,
147{
148 fn from(
149 err: ::aws_smithy_runtime_api::client::result::SdkError<
150 crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError,
151 R,
152 >,
153 ) -> Self {
154 match err {
155 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
156 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
157 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
158 source: err.into(),
159 }),
160 }
161 }
162}
163impl From<crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError> for Error {
164 fn from(err: crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError) -> Self {
165 match err {
166 crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError::AccessDeniedException(inner) => {
167 Error::AccessDeniedException(inner)
168 }
169 crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError::ConflictException(inner) => {
170 Error::ConflictException(inner)
171 }
172 crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError::InternalServerException(inner) => {
173 Error::InternalServerException(inner)
174 }
175 crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError::ResourceNotFoundException(inner) => {
176 Error::ResourceNotFoundException(inner)
177 }
178 crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError::ThrottlingException(inner) => {
179 Error::ThrottlingException(inner)
180 }
181 crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError::ValidationException(inner) => {
182 Error::ValidationException(inner)
183 }
184 crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError::Unhandled(inner) => Error::Unhandled(inner),
185 }
186 }
187}
188impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_access::CreateEndpointAccessError, R>> for Error
189where
190 R: Send + Sync + std::fmt::Debug + 'static,
191{
192 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_access::CreateEndpointAccessError, R>) -> Self {
193 match err {
194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
197 source: err.into(),
198 }),
199 }
200 }
201}
202impl From<crate::operation::create_endpoint_access::CreateEndpointAccessError> for Error {
203 fn from(err: crate::operation::create_endpoint_access::CreateEndpointAccessError) -> Self {
204 match err {
205 crate::operation::create_endpoint_access::CreateEndpointAccessError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
206 crate::operation::create_endpoint_access::CreateEndpointAccessError::ConflictException(inner) => Error::ConflictException(inner),
207 crate::operation::create_endpoint_access::CreateEndpointAccessError::InternalServerException(inner) => {
208 Error::InternalServerException(inner)
209 }
210 crate::operation::create_endpoint_access::CreateEndpointAccessError::ResourceNotFoundException(inner) => {
211 Error::ResourceNotFoundException(inner)
212 }
213 crate::operation::create_endpoint_access::CreateEndpointAccessError::ServiceQuotaExceededException(inner) => {
214 Error::ServiceQuotaExceededException(inner)
215 }
216 crate::operation::create_endpoint_access::CreateEndpointAccessError::ValidationException(inner) => Error::ValidationException(inner),
217 crate::operation::create_endpoint_access::CreateEndpointAccessError::Unhandled(inner) => Error::Unhandled(inner),
218 }
219 }
220}
221impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_namespace::CreateNamespaceError, R>> for Error
222where
223 R: Send + Sync + std::fmt::Debug + 'static,
224{
225 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_namespace::CreateNamespaceError, R>) -> Self {
226 match err {
227 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
228 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
229 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
230 source: err.into(),
231 }),
232 }
233 }
234}
235impl From<crate::operation::create_namespace::CreateNamespaceError> for Error {
236 fn from(err: crate::operation::create_namespace::CreateNamespaceError) -> Self {
237 match err {
238 crate::operation::create_namespace::CreateNamespaceError::ConflictException(inner) => Error::ConflictException(inner),
239 crate::operation::create_namespace::CreateNamespaceError::InternalServerException(inner) => Error::InternalServerException(inner),
240 crate::operation::create_namespace::CreateNamespaceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
241 crate::operation::create_namespace::CreateNamespaceError::ValidationException(inner) => Error::ValidationException(inner),
242 crate::operation::create_namespace::CreateNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
243 }
244 }
245}
246impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_reservation::CreateReservationError, R>> for Error
247where
248 R: Send + Sync + std::fmt::Debug + 'static,
249{
250 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_reservation::CreateReservationError, R>) -> Self {
251 match err {
252 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
253 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
254 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
255 source: err.into(),
256 }),
257 }
258 }
259}
260impl From<crate::operation::create_reservation::CreateReservationError> for Error {
261 fn from(err: crate::operation::create_reservation::CreateReservationError) -> Self {
262 match err {
263 crate::operation::create_reservation::CreateReservationError::ConflictException(inner) => Error::ConflictException(inner),
264 crate::operation::create_reservation::CreateReservationError::InternalServerException(inner) => Error::InternalServerException(inner),
265 crate::operation::create_reservation::CreateReservationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
266 crate::operation::create_reservation::CreateReservationError::ServiceQuotaExceededException(inner) => {
267 Error::ServiceQuotaExceededException(inner)
268 }
269 crate::operation::create_reservation::CreateReservationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
270 crate::operation::create_reservation::CreateReservationError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
271 crate::operation::create_reservation::CreateReservationError::ValidationException(inner) => Error::ValidationException(inner),
272 crate::operation::create_reservation::CreateReservationError::Unhandled(inner) => Error::Unhandled(inner),
273 }
274 }
275}
276impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scheduled_action::CreateScheduledActionError, R>> for Error
277where
278 R: Send + Sync + std::fmt::Debug + 'static,
279{
280 fn from(
281 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scheduled_action::CreateScheduledActionError, R>,
282 ) -> Self {
283 match err {
284 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
285 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
286 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
287 source: err.into(),
288 }),
289 }
290 }
291}
292impl From<crate::operation::create_scheduled_action::CreateScheduledActionError> for Error {
293 fn from(err: crate::operation::create_scheduled_action::CreateScheduledActionError) -> Self {
294 match err {
295 crate::operation::create_scheduled_action::CreateScheduledActionError::ConflictException(inner) => Error::ConflictException(inner),
296 crate::operation::create_scheduled_action::CreateScheduledActionError::InternalServerException(inner) => {
297 Error::InternalServerException(inner)
298 }
299 crate::operation::create_scheduled_action::CreateScheduledActionError::ResourceNotFoundException(inner) => {
300 Error::ResourceNotFoundException(inner)
301 }
302 crate::operation::create_scheduled_action::CreateScheduledActionError::ValidationException(inner) => Error::ValidationException(inner),
303 crate::operation::create_scheduled_action::CreateScheduledActionError::Unhandled(inner) => Error::Unhandled(inner),
304 }
305 }
306}
307impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>> for Error
308where
309 R: Send + Sync + std::fmt::Debug + 'static,
310{
311 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot::CreateSnapshotError, R>) -> Self {
312 match err {
313 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
314 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
315 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
316 source: err.into(),
317 }),
318 }
319 }
320}
321impl From<crate::operation::create_snapshot::CreateSnapshotError> for Error {
322 fn from(err: crate::operation::create_snapshot::CreateSnapshotError) -> Self {
323 match err {
324 crate::operation::create_snapshot::CreateSnapshotError::ConflictException(inner) => Error::ConflictException(inner),
325 crate::operation::create_snapshot::CreateSnapshotError::InternalServerException(inner) => Error::InternalServerException(inner),
326 crate::operation::create_snapshot::CreateSnapshotError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
327 crate::operation::create_snapshot::CreateSnapshotError::ServiceQuotaExceededException(inner) => {
328 Error::ServiceQuotaExceededException(inner)
329 }
330 crate::operation::create_snapshot::CreateSnapshotError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
331 crate::operation::create_snapshot::CreateSnapshotError::ValidationException(inner) => Error::ValidationException(inner),
332 crate::operation::create_snapshot::CreateSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
333 }
334 }
335}
336impl<R>
337 From<
338 ::aws_smithy_runtime_api::client::result::SdkError<
339 crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationError,
340 R,
341 >,
342 > for Error
343where
344 R: Send + Sync + std::fmt::Debug + 'static,
345{
346 fn from(
347 err: ::aws_smithy_runtime_api::client::result::SdkError<
348 crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationError,
349 R,
350 >,
351 ) -> Self {
352 match err {
353 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
354 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
355 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
356 source: err.into(),
357 }),
358 }
359 }
360}
361impl From<crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationError> for Error {
362 fn from(err: crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationError) -> Self {
363 match err {
364 crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationError::AccessDeniedException(inner) => {
365 Error::AccessDeniedException(inner)
366 }
367 crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationError::ConflictException(inner) => {
368 Error::ConflictException(inner)
369 }
370 crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationError::InternalServerException(inner) => {
371 Error::InternalServerException(inner)
372 }
373 crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationError::ResourceNotFoundException(inner) => {
374 Error::ResourceNotFoundException(inner)
375 }
376 crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationError::ServiceQuotaExceededException(inner) => {
377 Error::ServiceQuotaExceededException(inner)
378 }
379 crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationError::ValidationException(inner) => {
380 Error::ValidationException(inner)
381 }
382 crate::operation::create_snapshot_copy_configuration::CreateSnapshotCopyConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
383 }
384 }
385}
386impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_usage_limit::CreateUsageLimitError, R>> for Error
387where
388 R: Send + Sync + std::fmt::Debug + 'static,
389{
390 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_usage_limit::CreateUsageLimitError, R>) -> Self {
391 match err {
392 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
393 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
394 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
395 source: err.into(),
396 }),
397 }
398 }
399}
400impl From<crate::operation::create_usage_limit::CreateUsageLimitError> for Error {
401 fn from(err: crate::operation::create_usage_limit::CreateUsageLimitError) -> Self {
402 match err {
403 crate::operation::create_usage_limit::CreateUsageLimitError::ConflictException(inner) => Error::ConflictException(inner),
404 crate::operation::create_usage_limit::CreateUsageLimitError::InternalServerException(inner) => Error::InternalServerException(inner),
405 crate::operation::create_usage_limit::CreateUsageLimitError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
406 crate::operation::create_usage_limit::CreateUsageLimitError::ServiceQuotaExceededException(inner) => {
407 Error::ServiceQuotaExceededException(inner)
408 }
409 crate::operation::create_usage_limit::CreateUsageLimitError::ValidationException(inner) => Error::ValidationException(inner),
410 crate::operation::create_usage_limit::CreateUsageLimitError::Unhandled(inner) => Error::Unhandled(inner),
411 }
412 }
413}
414impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workgroup::CreateWorkgroupError, R>> for Error
415where
416 R: Send + Sync + std::fmt::Debug + 'static,
417{
418 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_workgroup::CreateWorkgroupError, R>) -> Self {
419 match err {
420 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
421 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
422 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
423 source: err.into(),
424 }),
425 }
426 }
427}
428impl From<crate::operation::create_workgroup::CreateWorkgroupError> for Error {
429 fn from(err: crate::operation::create_workgroup::CreateWorkgroupError) -> Self {
430 match err {
431 crate::operation::create_workgroup::CreateWorkgroupError::ConflictException(inner) => Error::ConflictException(inner),
432 crate::operation::create_workgroup::CreateWorkgroupError::InsufficientCapacityException(inner) => {
433 Error::InsufficientCapacityException(inner)
434 }
435 crate::operation::create_workgroup::CreateWorkgroupError::InternalServerException(inner) => Error::InternalServerException(inner),
436 crate::operation::create_workgroup::CreateWorkgroupError::Ipv6CidrBlockNotFoundException(inner) => {
437 Error::Ipv6CidrBlockNotFoundException(inner)
438 }
439 crate::operation::create_workgroup::CreateWorkgroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
440 crate::operation::create_workgroup::CreateWorkgroupError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
441 crate::operation::create_workgroup::CreateWorkgroupError::ValidationException(inner) => Error::ValidationException(inner),
442 crate::operation::create_workgroup::CreateWorkgroupError::Unhandled(inner) => Error::Unhandled(inner),
443 }
444 }
445}
446impl<R>
447 From<
448 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError, R>,
449 > for Error
450where
451 R: Send + Sync + std::fmt::Debug + 'static,
452{
453 fn from(
454 err: ::aws_smithy_runtime_api::client::result::SdkError<
455 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError,
456 R,
457 >,
458 ) -> Self {
459 match err {
460 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
461 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
462 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
463 source: err.into(),
464 }),
465 }
466 }
467}
468impl From<crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError> for Error {
469 fn from(err: crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError) -> Self {
470 match err {
471 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError::AccessDeniedException(inner) => {
472 Error::AccessDeniedException(inner)
473 }
474 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError::ConflictException(inner) => {
475 Error::ConflictException(inner)
476 }
477 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError::InternalServerException(inner) => {
478 Error::InternalServerException(inner)
479 }
480 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError::ResourceNotFoundException(inner) => {
481 Error::ResourceNotFoundException(inner)
482 }
483 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError::ThrottlingException(inner) => {
484 Error::ThrottlingException(inner)
485 }
486 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError::ValidationException(inner) => {
487 Error::ValidationException(inner)
488 }
489 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError::Unhandled(inner) => Error::Unhandled(inner),
490 }
491 }
492}
493impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_access::DeleteEndpointAccessError, R>> for Error
494where
495 R: Send + Sync + std::fmt::Debug + 'static,
496{
497 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_access::DeleteEndpointAccessError, R>) -> Self {
498 match err {
499 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
500 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
501 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
502 source: err.into(),
503 }),
504 }
505 }
506}
507impl From<crate::operation::delete_endpoint_access::DeleteEndpointAccessError> for Error {
508 fn from(err: crate::operation::delete_endpoint_access::DeleteEndpointAccessError) -> Self {
509 match err {
510 crate::operation::delete_endpoint_access::DeleteEndpointAccessError::ConflictException(inner) => Error::ConflictException(inner),
511 crate::operation::delete_endpoint_access::DeleteEndpointAccessError::InternalServerException(inner) => {
512 Error::InternalServerException(inner)
513 }
514 crate::operation::delete_endpoint_access::DeleteEndpointAccessError::ResourceNotFoundException(inner) => {
515 Error::ResourceNotFoundException(inner)
516 }
517 crate::operation::delete_endpoint_access::DeleteEndpointAccessError::ValidationException(inner) => Error::ValidationException(inner),
518 crate::operation::delete_endpoint_access::DeleteEndpointAccessError::Unhandled(inner) => Error::Unhandled(inner),
519 }
520 }
521}
522impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_namespace::DeleteNamespaceError, R>> for Error
523where
524 R: Send + Sync + std::fmt::Debug + 'static,
525{
526 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_namespace::DeleteNamespaceError, R>) -> Self {
527 match err {
528 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
529 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
530 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
531 source: err.into(),
532 }),
533 }
534 }
535}
536impl From<crate::operation::delete_namespace::DeleteNamespaceError> for Error {
537 fn from(err: crate::operation::delete_namespace::DeleteNamespaceError) -> Self {
538 match err {
539 crate::operation::delete_namespace::DeleteNamespaceError::ConflictException(inner) => Error::ConflictException(inner),
540 crate::operation::delete_namespace::DeleteNamespaceError::InternalServerException(inner) => Error::InternalServerException(inner),
541 crate::operation::delete_namespace::DeleteNamespaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
542 crate::operation::delete_namespace::DeleteNamespaceError::ValidationException(inner) => Error::ValidationException(inner),
543 crate::operation::delete_namespace::DeleteNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
544 }
545 }
546}
547impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
548where
549 R: Send + Sync + std::fmt::Debug + 'static,
550{
551 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
552 match err {
553 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
554 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
555 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
556 source: err.into(),
557 }),
558 }
559 }
560}
561impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
562 fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
563 match err {
564 crate::operation::delete_resource_policy::DeleteResourcePolicyError::InternalServerException(inner) => {
565 Error::InternalServerException(inner)
566 }
567 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundException(inner) => {
568 Error::ResourceNotFoundException(inner)
569 }
570 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
571 crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
572 }
573 }
574}
575impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scheduled_action::DeleteScheduledActionError, R>> for Error
576where
577 R: Send + Sync + std::fmt::Debug + 'static,
578{
579 fn from(
580 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scheduled_action::DeleteScheduledActionError, R>,
581 ) -> Self {
582 match err {
583 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
584 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
585 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
586 source: err.into(),
587 }),
588 }
589 }
590}
591impl From<crate::operation::delete_scheduled_action::DeleteScheduledActionError> for Error {
592 fn from(err: crate::operation::delete_scheduled_action::DeleteScheduledActionError) -> Self {
593 match err {
594 crate::operation::delete_scheduled_action::DeleteScheduledActionError::InternalServerException(inner) => {
595 Error::InternalServerException(inner)
596 }
597 crate::operation::delete_scheduled_action::DeleteScheduledActionError::ResourceNotFoundException(inner) => {
598 Error::ResourceNotFoundException(inner)
599 }
600 crate::operation::delete_scheduled_action::DeleteScheduledActionError::ValidationException(inner) => Error::ValidationException(inner),
601 crate::operation::delete_scheduled_action::DeleteScheduledActionError::Unhandled(inner) => Error::Unhandled(inner),
602 }
603 }
604}
605impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>> for Error
606where
607 R: Send + Sync + std::fmt::Debug + 'static,
608{
609 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot::DeleteSnapshotError, R>) -> Self {
610 match err {
611 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
612 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
613 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
614 source: err.into(),
615 }),
616 }
617 }
618}
619impl From<crate::operation::delete_snapshot::DeleteSnapshotError> for Error {
620 fn from(err: crate::operation::delete_snapshot::DeleteSnapshotError) -> Self {
621 match err {
622 crate::operation::delete_snapshot::DeleteSnapshotError::ConflictException(inner) => Error::ConflictException(inner),
623 crate::operation::delete_snapshot::DeleteSnapshotError::InternalServerException(inner) => Error::InternalServerException(inner),
624 crate::operation::delete_snapshot::DeleteSnapshotError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
625 crate::operation::delete_snapshot::DeleteSnapshotError::ValidationException(inner) => Error::ValidationException(inner),
626 crate::operation::delete_snapshot::DeleteSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
627 }
628 }
629}
630impl<R>
631 From<
632 ::aws_smithy_runtime_api::client::result::SdkError<
633 crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationError,
634 R,
635 >,
636 > for Error
637where
638 R: Send + Sync + std::fmt::Debug + 'static,
639{
640 fn from(
641 err: ::aws_smithy_runtime_api::client::result::SdkError<
642 crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationError,
643 R,
644 >,
645 ) -> Self {
646 match err {
647 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
648 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
649 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
650 source: err.into(),
651 }),
652 }
653 }
654}
655impl From<crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationError> for Error {
656 fn from(err: crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationError) -> Self {
657 match err {
658 crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationError::AccessDeniedException(inner) => {
659 Error::AccessDeniedException(inner)
660 }
661 crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationError::ConflictException(inner) => {
662 Error::ConflictException(inner)
663 }
664 crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationError::InternalServerException(inner) => {
665 Error::InternalServerException(inner)
666 }
667 crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationError::ResourceNotFoundException(inner) => {
668 Error::ResourceNotFoundException(inner)
669 }
670 crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationError::ValidationException(inner) => {
671 Error::ValidationException(inner)
672 }
673 crate::operation::delete_snapshot_copy_configuration::DeleteSnapshotCopyConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
674 }
675 }
676}
677impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_usage_limit::DeleteUsageLimitError, R>> for Error
678where
679 R: Send + Sync + std::fmt::Debug + 'static,
680{
681 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_usage_limit::DeleteUsageLimitError, R>) -> Self {
682 match err {
683 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
684 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
685 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
686 source: err.into(),
687 }),
688 }
689 }
690}
691impl From<crate::operation::delete_usage_limit::DeleteUsageLimitError> for Error {
692 fn from(err: crate::operation::delete_usage_limit::DeleteUsageLimitError) -> Self {
693 match err {
694 crate::operation::delete_usage_limit::DeleteUsageLimitError::ConflictException(inner) => Error::ConflictException(inner),
695 crate::operation::delete_usage_limit::DeleteUsageLimitError::InternalServerException(inner) => Error::InternalServerException(inner),
696 crate::operation::delete_usage_limit::DeleteUsageLimitError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
697 crate::operation::delete_usage_limit::DeleteUsageLimitError::ValidationException(inner) => Error::ValidationException(inner),
698 crate::operation::delete_usage_limit::DeleteUsageLimitError::Unhandled(inner) => Error::Unhandled(inner),
699 }
700 }
701}
702impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workgroup::DeleteWorkgroupError, R>> for Error
703where
704 R: Send + Sync + std::fmt::Debug + 'static,
705{
706 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_workgroup::DeleteWorkgroupError, R>) -> Self {
707 match err {
708 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
709 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
710 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
711 source: err.into(),
712 }),
713 }
714 }
715}
716impl From<crate::operation::delete_workgroup::DeleteWorkgroupError> for Error {
717 fn from(err: crate::operation::delete_workgroup::DeleteWorkgroupError) -> Self {
718 match err {
719 crate::operation::delete_workgroup::DeleteWorkgroupError::ConflictException(inner) => Error::ConflictException(inner),
720 crate::operation::delete_workgroup::DeleteWorkgroupError::InternalServerException(inner) => Error::InternalServerException(inner),
721 crate::operation::delete_workgroup::DeleteWorkgroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
722 crate::operation::delete_workgroup::DeleteWorkgroupError::ValidationException(inner) => Error::ValidationException(inner),
723 crate::operation::delete_workgroup::DeleteWorkgroupError::Unhandled(inner) => Error::Unhandled(inner),
724 }
725 }
726}
727impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_credentials::GetCredentialsError, R>> for Error
728where
729 R: Send + Sync + std::fmt::Debug + 'static,
730{
731 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_credentials::GetCredentialsError, R>) -> Self {
732 match err {
733 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
734 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
735 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
736 source: err.into(),
737 }),
738 }
739 }
740}
741impl From<crate::operation::get_credentials::GetCredentialsError> for Error {
742 fn from(err: crate::operation::get_credentials::GetCredentialsError) -> Self {
743 match err {
744 crate::operation::get_credentials::GetCredentialsError::InternalServerException(inner) => Error::InternalServerException(inner),
745 crate::operation::get_credentials::GetCredentialsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
746 crate::operation::get_credentials::GetCredentialsError::ValidationException(inner) => Error::ValidationException(inner),
747 crate::operation::get_credentials::GetCredentialsError::Unhandled(inner) => Error::Unhandled(inner),
748 }
749 }
750}
751impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_custom_domain_association::GetCustomDomainAssociationError, R>>
752 for Error
753where
754 R: Send + Sync + std::fmt::Debug + 'static,
755{
756 fn from(
757 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_custom_domain_association::GetCustomDomainAssociationError, R>,
758 ) -> Self {
759 match err {
760 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
761 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
762 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
763 source: err.into(),
764 }),
765 }
766 }
767}
768impl From<crate::operation::get_custom_domain_association::GetCustomDomainAssociationError> for Error {
769 fn from(err: crate::operation::get_custom_domain_association::GetCustomDomainAssociationError) -> Self {
770 match err {
771 crate::operation::get_custom_domain_association::GetCustomDomainAssociationError::AccessDeniedException(inner) => {
772 Error::AccessDeniedException(inner)
773 }
774 crate::operation::get_custom_domain_association::GetCustomDomainAssociationError::ConflictException(inner) => {
775 Error::ConflictException(inner)
776 }
777 crate::operation::get_custom_domain_association::GetCustomDomainAssociationError::InternalServerException(inner) => {
778 Error::InternalServerException(inner)
779 }
780 crate::operation::get_custom_domain_association::GetCustomDomainAssociationError::ResourceNotFoundException(inner) => {
781 Error::ResourceNotFoundException(inner)
782 }
783 crate::operation::get_custom_domain_association::GetCustomDomainAssociationError::ThrottlingException(inner) => {
784 Error::ThrottlingException(inner)
785 }
786 crate::operation::get_custom_domain_association::GetCustomDomainAssociationError::ValidationException(inner) => {
787 Error::ValidationException(inner)
788 }
789 crate::operation::get_custom_domain_association::GetCustomDomainAssociationError::Unhandled(inner) => Error::Unhandled(inner),
790 }
791 }
792}
793impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_endpoint_access::GetEndpointAccessError, R>> for Error
794where
795 R: Send + Sync + std::fmt::Debug + 'static,
796{
797 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_endpoint_access::GetEndpointAccessError, R>) -> Self {
798 match err {
799 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
800 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
801 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
802 source: err.into(),
803 }),
804 }
805 }
806}
807impl From<crate::operation::get_endpoint_access::GetEndpointAccessError> for Error {
808 fn from(err: crate::operation::get_endpoint_access::GetEndpointAccessError) -> Self {
809 match err {
810 crate::operation::get_endpoint_access::GetEndpointAccessError::ConflictException(inner) => Error::ConflictException(inner),
811 crate::operation::get_endpoint_access::GetEndpointAccessError::InternalServerException(inner) => Error::InternalServerException(inner),
812 crate::operation::get_endpoint_access::GetEndpointAccessError::ResourceNotFoundException(inner) => {
813 Error::ResourceNotFoundException(inner)
814 }
815 crate::operation::get_endpoint_access::GetEndpointAccessError::ValidationException(inner) => Error::ValidationException(inner),
816 crate::operation::get_endpoint_access::GetEndpointAccessError::Unhandled(inner) => Error::Unhandled(inner),
817 }
818 }
819}
820impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError, R>>
821 for Error
822where
823 R: Send + Sync + std::fmt::Debug + 'static,
824{
825 fn from(
826 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError, R>,
827 ) -> Self {
828 match err {
829 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
830 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
831 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
832 source: err.into(),
833 }),
834 }
835 }
836}
837impl From<crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError> for Error {
838 fn from(err: crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError) -> Self {
839 match err {
840 crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError::AccessDeniedException(inner) => {
841 Error::AccessDeniedException(inner)
842 }
843 crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError::ConflictException(inner) => {
844 Error::ConflictException(inner)
845 }
846 crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError::DryRunException(inner) => {
847 Error::DryRunException(inner)
848 }
849 crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError::InternalServerException(inner) => {
850 Error::InternalServerException(inner)
851 }
852 crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError::ResourceNotFoundException(inner) => {
853 Error::ResourceNotFoundException(inner)
854 }
855 crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError::ThrottlingException(inner) => {
856 Error::ThrottlingException(inner)
857 }
858 crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError::ValidationException(inner) => {
859 Error::ValidationException(inner)
860 }
861 crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError::Unhandled(inner) => Error::Unhandled(inner),
862 }
863 }
864}
865impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_namespace::GetNamespaceError, R>> for Error
866where
867 R: Send + Sync + std::fmt::Debug + 'static,
868{
869 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_namespace::GetNamespaceError, R>) -> Self {
870 match err {
871 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
872 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
873 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
874 source: err.into(),
875 }),
876 }
877 }
878}
879impl From<crate::operation::get_namespace::GetNamespaceError> for Error {
880 fn from(err: crate::operation::get_namespace::GetNamespaceError) -> Self {
881 match err {
882 crate::operation::get_namespace::GetNamespaceError::InternalServerException(inner) => Error::InternalServerException(inner),
883 crate::operation::get_namespace::GetNamespaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
884 crate::operation::get_namespace::GetNamespaceError::ValidationException(inner) => Error::ValidationException(inner),
885 crate::operation::get_namespace::GetNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
886 }
887 }
888}
889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_recovery_point::GetRecoveryPointError, R>> for Error
890where
891 R: Send + Sync + std::fmt::Debug + 'static,
892{
893 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_recovery_point::GetRecoveryPointError, R>) -> Self {
894 match err {
895 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
896 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
897 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
898 source: err.into(),
899 }),
900 }
901 }
902}
903impl From<crate::operation::get_recovery_point::GetRecoveryPointError> for Error {
904 fn from(err: crate::operation::get_recovery_point::GetRecoveryPointError) -> Self {
905 match err {
906 crate::operation::get_recovery_point::GetRecoveryPointError::ConflictException(inner) => Error::ConflictException(inner),
907 crate::operation::get_recovery_point::GetRecoveryPointError::InternalServerException(inner) => Error::InternalServerException(inner),
908 crate::operation::get_recovery_point::GetRecoveryPointError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
909 crate::operation::get_recovery_point::GetRecoveryPointError::ValidationException(inner) => Error::ValidationException(inner),
910 crate::operation::get_recovery_point::GetRecoveryPointError::Unhandled(inner) => Error::Unhandled(inner),
911 }
912 }
913}
914impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_reservation::GetReservationError, R>> for Error
915where
916 R: Send + Sync + std::fmt::Debug + 'static,
917{
918 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_reservation::GetReservationError, R>) -> Self {
919 match err {
920 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
921 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
922 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
923 source: err.into(),
924 }),
925 }
926 }
927}
928impl From<crate::operation::get_reservation::GetReservationError> for Error {
929 fn from(err: crate::operation::get_reservation::GetReservationError) -> Self {
930 match err {
931 crate::operation::get_reservation::GetReservationError::InternalServerException(inner) => Error::InternalServerException(inner),
932 crate::operation::get_reservation::GetReservationError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
933 crate::operation::get_reservation::GetReservationError::ThrottlingException(inner) => Error::ThrottlingException(inner),
934 crate::operation::get_reservation::GetReservationError::ValidationException(inner) => Error::ValidationException(inner),
935 crate::operation::get_reservation::GetReservationError::Unhandled(inner) => Error::Unhandled(inner),
936 }
937 }
938}
939impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_reservation_offering::GetReservationOfferingError, R>> for Error
940where
941 R: Send + Sync + std::fmt::Debug + 'static,
942{
943 fn from(
944 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_reservation_offering::GetReservationOfferingError, R>,
945 ) -> Self {
946 match err {
947 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
948 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
949 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
950 source: err.into(),
951 }),
952 }
953 }
954}
955impl From<crate::operation::get_reservation_offering::GetReservationOfferingError> for Error {
956 fn from(err: crate::operation::get_reservation_offering::GetReservationOfferingError) -> Self {
957 match err {
958 crate::operation::get_reservation_offering::GetReservationOfferingError::InternalServerException(inner) => {
959 Error::InternalServerException(inner)
960 }
961 crate::operation::get_reservation_offering::GetReservationOfferingError::ResourceNotFoundException(inner) => {
962 Error::ResourceNotFoundException(inner)
963 }
964 crate::operation::get_reservation_offering::GetReservationOfferingError::ThrottlingException(inner) => Error::ThrottlingException(inner),
965 crate::operation::get_reservation_offering::GetReservationOfferingError::ValidationException(inner) => Error::ValidationException(inner),
966 crate::operation::get_reservation_offering::GetReservationOfferingError::Unhandled(inner) => Error::Unhandled(inner),
967 }
968 }
969}
970impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
971where
972 R: Send + Sync + std::fmt::Debug + 'static,
973{
974 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
975 match err {
976 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
977 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
978 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
979 source: err.into(),
980 }),
981 }
982 }
983}
984impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
985 fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
986 match err {
987 crate::operation::get_resource_policy::GetResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
988 crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
989 Error::ResourceNotFoundException(inner)
990 }
991 crate::operation::get_resource_policy::GetResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
992 crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
993 }
994 }
995}
996impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_action::GetScheduledActionError, R>> for Error
997where
998 R: Send + Sync + std::fmt::Debug + 'static,
999{
1000 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_scheduled_action::GetScheduledActionError, R>) -> Self {
1001 match err {
1002 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1003 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1004 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1005 source: err.into(),
1006 }),
1007 }
1008 }
1009}
1010impl From<crate::operation::get_scheduled_action::GetScheduledActionError> for Error {
1011 fn from(err: crate::operation::get_scheduled_action::GetScheduledActionError) -> Self {
1012 match err {
1013 crate::operation::get_scheduled_action::GetScheduledActionError::InternalServerException(inner) => Error::InternalServerException(inner),
1014 crate::operation::get_scheduled_action::GetScheduledActionError::ResourceNotFoundException(inner) => {
1015 Error::ResourceNotFoundException(inner)
1016 }
1017 crate::operation::get_scheduled_action::GetScheduledActionError::ValidationException(inner) => Error::ValidationException(inner),
1018 crate::operation::get_scheduled_action::GetScheduledActionError::Unhandled(inner) => Error::Unhandled(inner),
1019 }
1020 }
1021}
1022impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_snapshot::GetSnapshotError, R>> for Error
1023where
1024 R: Send + Sync + std::fmt::Debug + 'static,
1025{
1026 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_snapshot::GetSnapshotError, R>) -> Self {
1027 match err {
1028 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1029 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1030 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1031 source: err.into(),
1032 }),
1033 }
1034 }
1035}
1036impl From<crate::operation::get_snapshot::GetSnapshotError> for Error {
1037 fn from(err: crate::operation::get_snapshot::GetSnapshotError) -> Self {
1038 match err {
1039 crate::operation::get_snapshot::GetSnapshotError::InternalServerException(inner) => Error::InternalServerException(inner),
1040 crate::operation::get_snapshot::GetSnapshotError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1041 crate::operation::get_snapshot::GetSnapshotError::ValidationException(inner) => Error::ValidationException(inner),
1042 crate::operation::get_snapshot::GetSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
1043 }
1044 }
1045}
1046impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_table_restore_status::GetTableRestoreStatusError, R>> for Error
1047where
1048 R: Send + Sync + std::fmt::Debug + 'static,
1049{
1050 fn from(
1051 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_table_restore_status::GetTableRestoreStatusError, R>,
1052 ) -> Self {
1053 match err {
1054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1057 source: err.into(),
1058 }),
1059 }
1060 }
1061}
1062impl From<crate::operation::get_table_restore_status::GetTableRestoreStatusError> for Error {
1063 fn from(err: crate::operation::get_table_restore_status::GetTableRestoreStatusError) -> Self {
1064 match err {
1065 crate::operation::get_table_restore_status::GetTableRestoreStatusError::ResourceNotFoundException(inner) => {
1066 Error::ResourceNotFoundException(inner)
1067 }
1068 crate::operation::get_table_restore_status::GetTableRestoreStatusError::ValidationException(inner) => Error::ValidationException(inner),
1069 crate::operation::get_table_restore_status::GetTableRestoreStatusError::Unhandled(inner) => Error::Unhandled(inner),
1070 }
1071 }
1072}
1073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_track::GetTrackError, R>> for Error
1074where
1075 R: Send + Sync + std::fmt::Debug + 'static,
1076{
1077 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_track::GetTrackError, R>) -> Self {
1078 match err {
1079 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1080 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1081 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1082 source: err.into(),
1083 }),
1084 }
1085 }
1086}
1087impl From<crate::operation::get_track::GetTrackError> for Error {
1088 fn from(err: crate::operation::get_track::GetTrackError) -> Self {
1089 match err {
1090 crate::operation::get_track::GetTrackError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1091 crate::operation::get_track::GetTrackError::ConflictException(inner) => Error::ConflictException(inner),
1092 crate::operation::get_track::GetTrackError::DryRunException(inner) => Error::DryRunException(inner),
1093 crate::operation::get_track::GetTrackError::InternalServerException(inner) => Error::InternalServerException(inner),
1094 crate::operation::get_track::GetTrackError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1095 crate::operation::get_track::GetTrackError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1096 crate::operation::get_track::GetTrackError::ValidationException(inner) => Error::ValidationException(inner),
1097 crate::operation::get_track::GetTrackError::Unhandled(inner) => Error::Unhandled(inner),
1098 }
1099 }
1100}
1101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_usage_limit::GetUsageLimitError, R>> for Error
1102where
1103 R: Send + Sync + std::fmt::Debug + 'static,
1104{
1105 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_usage_limit::GetUsageLimitError, R>) -> Self {
1106 match err {
1107 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1108 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1109 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1110 source: err.into(),
1111 }),
1112 }
1113 }
1114}
1115impl From<crate::operation::get_usage_limit::GetUsageLimitError> for Error {
1116 fn from(err: crate::operation::get_usage_limit::GetUsageLimitError) -> Self {
1117 match err {
1118 crate::operation::get_usage_limit::GetUsageLimitError::ConflictException(inner) => Error::ConflictException(inner),
1119 crate::operation::get_usage_limit::GetUsageLimitError::InternalServerException(inner) => Error::InternalServerException(inner),
1120 crate::operation::get_usage_limit::GetUsageLimitError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1121 crate::operation::get_usage_limit::GetUsageLimitError::ValidationException(inner) => Error::ValidationException(inner),
1122 crate::operation::get_usage_limit::GetUsageLimitError::Unhandled(inner) => Error::Unhandled(inner),
1123 }
1124 }
1125}
1126impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workgroup::GetWorkgroupError, R>> for Error
1127where
1128 R: Send + Sync + std::fmt::Debug + 'static,
1129{
1130 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_workgroup::GetWorkgroupError, R>) -> Self {
1131 match err {
1132 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1133 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1134 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1135 source: err.into(),
1136 }),
1137 }
1138 }
1139}
1140impl From<crate::operation::get_workgroup::GetWorkgroupError> for Error {
1141 fn from(err: crate::operation::get_workgroup::GetWorkgroupError) -> Self {
1142 match err {
1143 crate::operation::get_workgroup::GetWorkgroupError::InternalServerException(inner) => Error::InternalServerException(inner),
1144 crate::operation::get_workgroup::GetWorkgroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1145 crate::operation::get_workgroup::GetWorkgroupError::ValidationException(inner) => Error::ValidationException(inner),
1146 crate::operation::get_workgroup::GetWorkgroupError::Unhandled(inner) => Error::Unhandled(inner),
1147 }
1148 }
1149}
1150impl<R>
1151 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_custom_domain_associations::ListCustomDomainAssociationsError, R>>
1152 for Error
1153where
1154 R: Send + Sync + std::fmt::Debug + 'static,
1155{
1156 fn from(
1157 err: ::aws_smithy_runtime_api::client::result::SdkError<
1158 crate::operation::list_custom_domain_associations::ListCustomDomainAssociationsError,
1159 R,
1160 >,
1161 ) -> 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::list_custom_domain_associations::ListCustomDomainAssociationsError> for Error {
1172 fn from(err: crate::operation::list_custom_domain_associations::ListCustomDomainAssociationsError) -> Self {
1173 match err {
1174 crate::operation::list_custom_domain_associations::ListCustomDomainAssociationsError::AccessDeniedException(inner) => {
1175 Error::AccessDeniedException(inner)
1176 }
1177 crate::operation::list_custom_domain_associations::ListCustomDomainAssociationsError::InternalServerException(inner) => {
1178 Error::InternalServerException(inner)
1179 }
1180 crate::operation::list_custom_domain_associations::ListCustomDomainAssociationsError::InvalidPaginationException(inner) => {
1181 Error::InvalidPaginationException(inner)
1182 }
1183 crate::operation::list_custom_domain_associations::ListCustomDomainAssociationsError::ThrottlingException(inner) => {
1184 Error::ThrottlingException(inner)
1185 }
1186 crate::operation::list_custom_domain_associations::ListCustomDomainAssociationsError::ValidationException(inner) => {
1187 Error::ValidationException(inner)
1188 }
1189 crate::operation::list_custom_domain_associations::ListCustomDomainAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1190 }
1191 }
1192}
1193impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_access::ListEndpointAccessError, R>> for Error
1194where
1195 R: Send + Sync + std::fmt::Debug + 'static,
1196{
1197 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_endpoint_access::ListEndpointAccessError, R>) -> Self {
1198 match err {
1199 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1200 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1201 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1202 source: err.into(),
1203 }),
1204 }
1205 }
1206}
1207impl From<crate::operation::list_endpoint_access::ListEndpointAccessError> for Error {
1208 fn from(err: crate::operation::list_endpoint_access::ListEndpointAccessError) -> Self {
1209 match err {
1210 crate::operation::list_endpoint_access::ListEndpointAccessError::ConflictException(inner) => Error::ConflictException(inner),
1211 crate::operation::list_endpoint_access::ListEndpointAccessError::InternalServerException(inner) => Error::InternalServerException(inner),
1212 crate::operation::list_endpoint_access::ListEndpointAccessError::ResourceNotFoundException(inner) => {
1213 Error::ResourceNotFoundException(inner)
1214 }
1215 crate::operation::list_endpoint_access::ListEndpointAccessError::ValidationException(inner) => Error::ValidationException(inner),
1216 crate::operation::list_endpoint_access::ListEndpointAccessError::Unhandled(inner) => Error::Unhandled(inner),
1217 }
1218 }
1219}
1220impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_workgroups::ListManagedWorkgroupsError, R>> for Error
1221where
1222 R: Send + Sync + std::fmt::Debug + 'static,
1223{
1224 fn from(
1225 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_managed_workgroups::ListManagedWorkgroupsError, R>,
1226 ) -> Self {
1227 match err {
1228 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1229 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1230 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1231 source: err.into(),
1232 }),
1233 }
1234 }
1235}
1236impl From<crate::operation::list_managed_workgroups::ListManagedWorkgroupsError> for Error {
1237 fn from(err: crate::operation::list_managed_workgroups::ListManagedWorkgroupsError) -> Self {
1238 match err {
1239 crate::operation::list_managed_workgroups::ListManagedWorkgroupsError::AccessDeniedException(inner) => {
1240 Error::AccessDeniedException(inner)
1241 }
1242 crate::operation::list_managed_workgroups::ListManagedWorkgroupsError::InternalServerException(inner) => {
1243 Error::InternalServerException(inner)
1244 }
1245 crate::operation::list_managed_workgroups::ListManagedWorkgroupsError::Unhandled(inner) => Error::Unhandled(inner),
1246 }
1247 }
1248}
1249impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_namespaces::ListNamespacesError, R>> for Error
1250where
1251 R: Send + Sync + std::fmt::Debug + 'static,
1252{
1253 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_namespaces::ListNamespacesError, R>) -> Self {
1254 match err {
1255 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1256 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1257 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1258 source: err.into(),
1259 }),
1260 }
1261 }
1262}
1263impl From<crate::operation::list_namespaces::ListNamespacesError> for Error {
1264 fn from(err: crate::operation::list_namespaces::ListNamespacesError) -> Self {
1265 match err {
1266 crate::operation::list_namespaces::ListNamespacesError::InternalServerException(inner) => Error::InternalServerException(inner),
1267 crate::operation::list_namespaces::ListNamespacesError::ValidationException(inner) => Error::ValidationException(inner),
1268 crate::operation::list_namespaces::ListNamespacesError::Unhandled(inner) => Error::Unhandled(inner),
1269 }
1270 }
1271}
1272impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recovery_points::ListRecoveryPointsError, R>> for Error
1273where
1274 R: Send + Sync + std::fmt::Debug + 'static,
1275{
1276 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recovery_points::ListRecoveryPointsError, R>) -> Self {
1277 match err {
1278 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1279 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1280 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1281 source: err.into(),
1282 }),
1283 }
1284 }
1285}
1286impl From<crate::operation::list_recovery_points::ListRecoveryPointsError> for Error {
1287 fn from(err: crate::operation::list_recovery_points::ListRecoveryPointsError) -> Self {
1288 match err {
1289 crate::operation::list_recovery_points::ListRecoveryPointsError::InternalServerException(inner) => Error::InternalServerException(inner),
1290 crate::operation::list_recovery_points::ListRecoveryPointsError::ValidationException(inner) => Error::ValidationException(inner),
1291 crate::operation::list_recovery_points::ListRecoveryPointsError::Unhandled(inner) => Error::Unhandled(inner),
1292 }
1293 }
1294}
1295impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reservation_offerings::ListReservationOfferingsError, R>>
1296 for Error
1297where
1298 R: Send + Sync + std::fmt::Debug + 'static,
1299{
1300 fn from(
1301 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reservation_offerings::ListReservationOfferingsError, R>,
1302 ) -> Self {
1303 match err {
1304 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1305 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1306 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1307 source: err.into(),
1308 }),
1309 }
1310 }
1311}
1312impl From<crate::operation::list_reservation_offerings::ListReservationOfferingsError> for Error {
1313 fn from(err: crate::operation::list_reservation_offerings::ListReservationOfferingsError) -> Self {
1314 match err {
1315 crate::operation::list_reservation_offerings::ListReservationOfferingsError::InternalServerException(inner) => {
1316 Error::InternalServerException(inner)
1317 }
1318 crate::operation::list_reservation_offerings::ListReservationOfferingsError::ThrottlingException(inner) => {
1319 Error::ThrottlingException(inner)
1320 }
1321 crate::operation::list_reservation_offerings::ListReservationOfferingsError::ValidationException(inner) => {
1322 Error::ValidationException(inner)
1323 }
1324 crate::operation::list_reservation_offerings::ListReservationOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
1325 }
1326 }
1327}
1328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reservations::ListReservationsError, R>> for Error
1329where
1330 R: Send + Sync + std::fmt::Debug + 'static,
1331{
1332 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_reservations::ListReservationsError, R>) -> Self {
1333 match err {
1334 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1335 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1336 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1337 source: err.into(),
1338 }),
1339 }
1340 }
1341}
1342impl From<crate::operation::list_reservations::ListReservationsError> for Error {
1343 fn from(err: crate::operation::list_reservations::ListReservationsError) -> Self {
1344 match err {
1345 crate::operation::list_reservations::ListReservationsError::InternalServerException(inner) => Error::InternalServerException(inner),
1346 crate::operation::list_reservations::ListReservationsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1347 crate::operation::list_reservations::ListReservationsError::ValidationException(inner) => Error::ValidationException(inner),
1348 crate::operation::list_reservations::ListReservationsError::Unhandled(inner) => Error::Unhandled(inner),
1349 }
1350 }
1351}
1352impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scheduled_actions::ListScheduledActionsError, R>> for Error
1353where
1354 R: Send + Sync + std::fmt::Debug + 'static,
1355{
1356 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_scheduled_actions::ListScheduledActionsError, R>) -> Self {
1357 match err {
1358 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1359 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1360 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1361 source: err.into(),
1362 }),
1363 }
1364 }
1365}
1366impl From<crate::operation::list_scheduled_actions::ListScheduledActionsError> for Error {
1367 fn from(err: crate::operation::list_scheduled_actions::ListScheduledActionsError) -> Self {
1368 match err {
1369 crate::operation::list_scheduled_actions::ListScheduledActionsError::InternalServerException(inner) => {
1370 Error::InternalServerException(inner)
1371 }
1372 crate::operation::list_scheduled_actions::ListScheduledActionsError::InvalidPaginationException(inner) => {
1373 Error::InvalidPaginationException(inner)
1374 }
1375 crate::operation::list_scheduled_actions::ListScheduledActionsError::ResourceNotFoundException(inner) => {
1376 Error::ResourceNotFoundException(inner)
1377 }
1378 crate::operation::list_scheduled_actions::ListScheduledActionsError::ValidationException(inner) => Error::ValidationException(inner),
1379 crate::operation::list_scheduled_actions::ListScheduledActionsError::Unhandled(inner) => Error::Unhandled(inner),
1380 }
1381 }
1382}
1383impl<R>
1384 From<
1385 ::aws_smithy_runtime_api::client::result::SdkError<
1386 crate::operation::list_snapshot_copy_configurations::ListSnapshotCopyConfigurationsError,
1387 R,
1388 >,
1389 > for Error
1390where
1391 R: Send + Sync + std::fmt::Debug + 'static,
1392{
1393 fn from(
1394 err: ::aws_smithy_runtime_api::client::result::SdkError<
1395 crate::operation::list_snapshot_copy_configurations::ListSnapshotCopyConfigurationsError,
1396 R,
1397 >,
1398 ) -> Self {
1399 match err {
1400 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1401 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1402 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1403 source: err.into(),
1404 }),
1405 }
1406 }
1407}
1408impl From<crate::operation::list_snapshot_copy_configurations::ListSnapshotCopyConfigurationsError> for Error {
1409 fn from(err: crate::operation::list_snapshot_copy_configurations::ListSnapshotCopyConfigurationsError) -> Self {
1410 match err {
1411 crate::operation::list_snapshot_copy_configurations::ListSnapshotCopyConfigurationsError::ConflictException(inner) => {
1412 Error::ConflictException(inner)
1413 }
1414 crate::operation::list_snapshot_copy_configurations::ListSnapshotCopyConfigurationsError::InternalServerException(inner) => {
1415 Error::InternalServerException(inner)
1416 }
1417 crate::operation::list_snapshot_copy_configurations::ListSnapshotCopyConfigurationsError::InvalidPaginationException(inner) => {
1418 Error::InvalidPaginationException(inner)
1419 }
1420 crate::operation::list_snapshot_copy_configurations::ListSnapshotCopyConfigurationsError::ResourceNotFoundException(inner) => {
1421 Error::ResourceNotFoundException(inner)
1422 }
1423 crate::operation::list_snapshot_copy_configurations::ListSnapshotCopyConfigurationsError::ValidationException(inner) => {
1424 Error::ValidationException(inner)
1425 }
1426 crate::operation::list_snapshot_copy_configurations::ListSnapshotCopyConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
1427 }
1428 }
1429}
1430impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots::ListSnapshotsError, R>> for Error
1431where
1432 R: Send + Sync + std::fmt::Debug + 'static,
1433{
1434 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_snapshots::ListSnapshotsError, R>) -> Self {
1435 match err {
1436 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1437 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1438 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1439 source: err.into(),
1440 }),
1441 }
1442 }
1443}
1444impl From<crate::operation::list_snapshots::ListSnapshotsError> for Error {
1445 fn from(err: crate::operation::list_snapshots::ListSnapshotsError) -> Self {
1446 match err {
1447 crate::operation::list_snapshots::ListSnapshotsError::InternalServerException(inner) => Error::InternalServerException(inner),
1448 crate::operation::list_snapshots::ListSnapshotsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1449 crate::operation::list_snapshots::ListSnapshotsError::ValidationException(inner) => Error::ValidationException(inner),
1450 crate::operation::list_snapshots::ListSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
1451 }
1452 }
1453}
1454impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_table_restore_status::ListTableRestoreStatusError, R>>
1455 for Error
1456where
1457 R: Send + Sync + std::fmt::Debug + 'static,
1458{
1459 fn from(
1460 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_table_restore_status::ListTableRestoreStatusError, R>,
1461 ) -> Self {
1462 match err {
1463 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1464 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1465 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1466 source: err.into(),
1467 }),
1468 }
1469 }
1470}
1471impl From<crate::operation::list_table_restore_status::ListTableRestoreStatusError> for Error {
1472 fn from(err: crate::operation::list_table_restore_status::ListTableRestoreStatusError) -> Self {
1473 match err {
1474 crate::operation::list_table_restore_status::ListTableRestoreStatusError::InvalidPaginationException(inner) => {
1475 Error::InvalidPaginationException(inner)
1476 }
1477 crate::operation::list_table_restore_status::ListTableRestoreStatusError::ResourceNotFoundException(inner) => {
1478 Error::ResourceNotFoundException(inner)
1479 }
1480 crate::operation::list_table_restore_status::ListTableRestoreStatusError::ValidationException(inner) => Error::ValidationException(inner),
1481 crate::operation::list_table_restore_status::ListTableRestoreStatusError::Unhandled(inner) => Error::Unhandled(inner),
1482 }
1483 }
1484}
1485impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
1486where
1487 R: Send + Sync + std::fmt::Debug + 'static,
1488{
1489 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
1490 match err {
1491 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1492 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1493 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1494 source: err.into(),
1495 }),
1496 }
1497 }
1498}
1499impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
1500 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
1501 match err {
1502 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
1503 Error::InternalServerException(inner)
1504 }
1505 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
1506 Error::ResourceNotFoundException(inner)
1507 }
1508 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1509 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
1510 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
1511 }
1512 }
1513}
1514impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tracks::ListTracksError, R>> for Error
1515where
1516 R: Send + Sync + std::fmt::Debug + 'static,
1517{
1518 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tracks::ListTracksError, R>) -> Self {
1519 match err {
1520 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1521 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1522 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1523 source: err.into(),
1524 }),
1525 }
1526 }
1527}
1528impl From<crate::operation::list_tracks::ListTracksError> for Error {
1529 fn from(err: crate::operation::list_tracks::ListTracksError) -> Self {
1530 match err {
1531 crate::operation::list_tracks::ListTracksError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1532 crate::operation::list_tracks::ListTracksError::InternalServerException(inner) => Error::InternalServerException(inner),
1533 crate::operation::list_tracks::ListTracksError::InvalidPaginationException(inner) => Error::InvalidPaginationException(inner),
1534 crate::operation::list_tracks::ListTracksError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1535 crate::operation::list_tracks::ListTracksError::ValidationException(inner) => Error::ValidationException(inner),
1536 crate::operation::list_tracks::ListTracksError::Unhandled(inner) => Error::Unhandled(inner),
1537 }
1538 }
1539}
1540impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_usage_limits::ListUsageLimitsError, R>> for Error
1541where
1542 R: Send + Sync + std::fmt::Debug + 'static,
1543{
1544 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_usage_limits::ListUsageLimitsError, R>) -> Self {
1545 match err {
1546 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1547 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1548 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1549 source: err.into(),
1550 }),
1551 }
1552 }
1553}
1554impl From<crate::operation::list_usage_limits::ListUsageLimitsError> for Error {
1555 fn from(err: crate::operation::list_usage_limits::ListUsageLimitsError) -> Self {
1556 match err {
1557 crate::operation::list_usage_limits::ListUsageLimitsError::ConflictException(inner) => Error::ConflictException(inner),
1558 crate::operation::list_usage_limits::ListUsageLimitsError::InternalServerException(inner) => Error::InternalServerException(inner),
1559 crate::operation::list_usage_limits::ListUsageLimitsError::InvalidPaginationException(inner) => Error::InvalidPaginationException(inner),
1560 crate::operation::list_usage_limits::ListUsageLimitsError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1561 crate::operation::list_usage_limits::ListUsageLimitsError::ValidationException(inner) => Error::ValidationException(inner),
1562 crate::operation::list_usage_limits::ListUsageLimitsError::Unhandled(inner) => Error::Unhandled(inner),
1563 }
1564 }
1565}
1566impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workgroups::ListWorkgroupsError, R>> for Error
1567where
1568 R: Send + Sync + std::fmt::Debug + 'static,
1569{
1570 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_workgroups::ListWorkgroupsError, R>) -> Self {
1571 match err {
1572 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1573 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1574 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1575 source: err.into(),
1576 }),
1577 }
1578 }
1579}
1580impl From<crate::operation::list_workgroups::ListWorkgroupsError> for Error {
1581 fn from(err: crate::operation::list_workgroups::ListWorkgroupsError) -> Self {
1582 match err {
1583 crate::operation::list_workgroups::ListWorkgroupsError::InternalServerException(inner) => Error::InternalServerException(inner),
1584 crate::operation::list_workgroups::ListWorkgroupsError::ValidationException(inner) => Error::ValidationException(inner),
1585 crate::operation::list_workgroups::ListWorkgroupsError::Unhandled(inner) => Error::Unhandled(inner),
1586 }
1587 }
1588}
1589impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
1590where
1591 R: Send + Sync + std::fmt::Debug + 'static,
1592{
1593 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
1594 match err {
1595 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1596 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1597 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1598 source: err.into(),
1599 }),
1600 }
1601 }
1602}
1603impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
1604 fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
1605 match err {
1606 crate::operation::put_resource_policy::PutResourcePolicyError::ConflictException(inner) => Error::ConflictException(inner),
1607 crate::operation::put_resource_policy::PutResourcePolicyError::InternalServerException(inner) => Error::InternalServerException(inner),
1608 crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundException(inner) => {
1609 Error::ResourceNotFoundException(inner)
1610 }
1611 crate::operation::put_resource_policy::PutResourcePolicyError::ServiceQuotaExceededException(inner) => {
1612 Error::ServiceQuotaExceededException(inner)
1613 }
1614 crate::operation::put_resource_policy::PutResourcePolicyError::ValidationException(inner) => Error::ValidationException(inner),
1615 crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1616 }
1617 }
1618}
1619impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_from_recovery_point::RestoreFromRecoveryPointError, R>>
1620 for Error
1621where
1622 R: Send + Sync + std::fmt::Debug + 'static,
1623{
1624 fn from(
1625 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_from_recovery_point::RestoreFromRecoveryPointError, R>,
1626 ) -> Self {
1627 match err {
1628 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1629 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1630 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1631 source: err.into(),
1632 }),
1633 }
1634 }
1635}
1636impl From<crate::operation::restore_from_recovery_point::RestoreFromRecoveryPointError> for Error {
1637 fn from(err: crate::operation::restore_from_recovery_point::RestoreFromRecoveryPointError) -> Self {
1638 match err {
1639 crate::operation::restore_from_recovery_point::RestoreFromRecoveryPointError::ConflictException(inner) => Error::ConflictException(inner),
1640 crate::operation::restore_from_recovery_point::RestoreFromRecoveryPointError::InternalServerException(inner) => {
1641 Error::InternalServerException(inner)
1642 }
1643 crate::operation::restore_from_recovery_point::RestoreFromRecoveryPointError::ResourceNotFoundException(inner) => {
1644 Error::ResourceNotFoundException(inner)
1645 }
1646 crate::operation::restore_from_recovery_point::RestoreFromRecoveryPointError::ValidationException(inner) => {
1647 Error::ValidationException(inner)
1648 }
1649 crate::operation::restore_from_recovery_point::RestoreFromRecoveryPointError::Unhandled(inner) => Error::Unhandled(inner),
1650 }
1651 }
1652}
1653impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_from_snapshot::RestoreFromSnapshotError, R>> for Error
1654where
1655 R: Send + Sync + std::fmt::Debug + 'static,
1656{
1657 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_from_snapshot::RestoreFromSnapshotError, R>) -> Self {
1658 match err {
1659 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1660 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1661 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1662 source: err.into(),
1663 }),
1664 }
1665 }
1666}
1667impl From<crate::operation::restore_from_snapshot::RestoreFromSnapshotError> for Error {
1668 fn from(err: crate::operation::restore_from_snapshot::RestoreFromSnapshotError) -> Self {
1669 match err {
1670 crate::operation::restore_from_snapshot::RestoreFromSnapshotError::ConflictException(inner) => Error::ConflictException(inner),
1671 crate::operation::restore_from_snapshot::RestoreFromSnapshotError::InternalServerException(inner) => {
1672 Error::InternalServerException(inner)
1673 }
1674 crate::operation::restore_from_snapshot::RestoreFromSnapshotError::ResourceNotFoundException(inner) => {
1675 Error::ResourceNotFoundException(inner)
1676 }
1677 crate::operation::restore_from_snapshot::RestoreFromSnapshotError::ServiceQuotaExceededException(inner) => {
1678 Error::ServiceQuotaExceededException(inner)
1679 }
1680 crate::operation::restore_from_snapshot::RestoreFromSnapshotError::ValidationException(inner) => Error::ValidationException(inner),
1681 crate::operation::restore_from_snapshot::RestoreFromSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
1682 }
1683 }
1684}
1685impl<R>
1686 From<
1687 ::aws_smithy_runtime_api::client::result::SdkError<
1688 crate::operation::restore_table_from_recovery_point::RestoreTableFromRecoveryPointError,
1689 R,
1690 >,
1691 > for Error
1692where
1693 R: Send + Sync + std::fmt::Debug + 'static,
1694{
1695 fn from(
1696 err: ::aws_smithy_runtime_api::client::result::SdkError<
1697 crate::operation::restore_table_from_recovery_point::RestoreTableFromRecoveryPointError,
1698 R,
1699 >,
1700 ) -> Self {
1701 match err {
1702 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1703 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1704 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1705 source: err.into(),
1706 }),
1707 }
1708 }
1709}
1710impl From<crate::operation::restore_table_from_recovery_point::RestoreTableFromRecoveryPointError> for Error {
1711 fn from(err: crate::operation::restore_table_from_recovery_point::RestoreTableFromRecoveryPointError) -> Self {
1712 match err {
1713 crate::operation::restore_table_from_recovery_point::RestoreTableFromRecoveryPointError::ConflictException(inner) => {
1714 Error::ConflictException(inner)
1715 }
1716 crate::operation::restore_table_from_recovery_point::RestoreTableFromRecoveryPointError::InternalServerException(inner) => {
1717 Error::InternalServerException(inner)
1718 }
1719 crate::operation::restore_table_from_recovery_point::RestoreTableFromRecoveryPointError::ResourceNotFoundException(inner) => {
1720 Error::ResourceNotFoundException(inner)
1721 }
1722 crate::operation::restore_table_from_recovery_point::RestoreTableFromRecoveryPointError::ValidationException(inner) => {
1723 Error::ValidationException(inner)
1724 }
1725 crate::operation::restore_table_from_recovery_point::RestoreTableFromRecoveryPointError::Unhandled(inner) => Error::Unhandled(inner),
1726 }
1727 }
1728}
1729impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_table_from_snapshot::RestoreTableFromSnapshotError, R>>
1730 for Error
1731where
1732 R: Send + Sync + std::fmt::Debug + 'static,
1733{
1734 fn from(
1735 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_table_from_snapshot::RestoreTableFromSnapshotError, R>,
1736 ) -> Self {
1737 match err {
1738 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1739 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1740 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1741 source: err.into(),
1742 }),
1743 }
1744 }
1745}
1746impl From<crate::operation::restore_table_from_snapshot::RestoreTableFromSnapshotError> for Error {
1747 fn from(err: crate::operation::restore_table_from_snapshot::RestoreTableFromSnapshotError) -> Self {
1748 match err {
1749 crate::operation::restore_table_from_snapshot::RestoreTableFromSnapshotError::ConflictException(inner) => Error::ConflictException(inner),
1750 crate::operation::restore_table_from_snapshot::RestoreTableFromSnapshotError::InternalServerException(inner) => {
1751 Error::InternalServerException(inner)
1752 }
1753 crate::operation::restore_table_from_snapshot::RestoreTableFromSnapshotError::ResourceNotFoundException(inner) => {
1754 Error::ResourceNotFoundException(inner)
1755 }
1756 crate::operation::restore_table_from_snapshot::RestoreTableFromSnapshotError::ValidationException(inner) => {
1757 Error::ValidationException(inner)
1758 }
1759 crate::operation::restore_table_from_snapshot::RestoreTableFromSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
1760 }
1761 }
1762}
1763impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
1764where
1765 R: Send + Sync + std::fmt::Debug + 'static,
1766{
1767 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
1768 match err {
1769 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1770 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1771 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1772 source: err.into(),
1773 }),
1774 }
1775 }
1776}
1777impl From<crate::operation::tag_resource::TagResourceError> for Error {
1778 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
1779 match err {
1780 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1781 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1782 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1783 crate::operation::tag_resource::TagResourceError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
1784 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1785 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1786 }
1787 }
1788}
1789impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
1790where
1791 R: Send + Sync + std::fmt::Debug + 'static,
1792{
1793 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
1794 match err {
1795 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1796 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1797 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1798 source: err.into(),
1799 }),
1800 }
1801 }
1802}
1803impl From<crate::operation::untag_resource::UntagResourceError> for Error {
1804 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
1805 match err {
1806 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
1807 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1808 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
1809 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
1810 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
1811 }
1812 }
1813}
1814impl<R>
1815 From<
1816 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_custom_domain_association::UpdateCustomDomainAssociationError, R>,
1817 > for Error
1818where
1819 R: Send + Sync + std::fmt::Debug + 'static,
1820{
1821 fn from(
1822 err: ::aws_smithy_runtime_api::client::result::SdkError<
1823 crate::operation::update_custom_domain_association::UpdateCustomDomainAssociationError,
1824 R,
1825 >,
1826 ) -> Self {
1827 match err {
1828 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1829 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1830 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1831 source: err.into(),
1832 }),
1833 }
1834 }
1835}
1836impl From<crate::operation::update_custom_domain_association::UpdateCustomDomainAssociationError> for Error {
1837 fn from(err: crate::operation::update_custom_domain_association::UpdateCustomDomainAssociationError) -> Self {
1838 match err {
1839 crate::operation::update_custom_domain_association::UpdateCustomDomainAssociationError::AccessDeniedException(inner) => {
1840 Error::AccessDeniedException(inner)
1841 }
1842 crate::operation::update_custom_domain_association::UpdateCustomDomainAssociationError::ConflictException(inner) => {
1843 Error::ConflictException(inner)
1844 }
1845 crate::operation::update_custom_domain_association::UpdateCustomDomainAssociationError::InternalServerException(inner) => {
1846 Error::InternalServerException(inner)
1847 }
1848 crate::operation::update_custom_domain_association::UpdateCustomDomainAssociationError::ResourceNotFoundException(inner) => {
1849 Error::ResourceNotFoundException(inner)
1850 }
1851 crate::operation::update_custom_domain_association::UpdateCustomDomainAssociationError::ThrottlingException(inner) => {
1852 Error::ThrottlingException(inner)
1853 }
1854 crate::operation::update_custom_domain_association::UpdateCustomDomainAssociationError::ValidationException(inner) => {
1855 Error::ValidationException(inner)
1856 }
1857 crate::operation::update_custom_domain_association::UpdateCustomDomainAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1858 }
1859 }
1860}
1861impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint_access::UpdateEndpointAccessError, R>> for Error
1862where
1863 R: Send + Sync + std::fmt::Debug + 'static,
1864{
1865 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_endpoint_access::UpdateEndpointAccessError, R>) -> Self {
1866 match err {
1867 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1868 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1869 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1870 source: err.into(),
1871 }),
1872 }
1873 }
1874}
1875impl From<crate::operation::update_endpoint_access::UpdateEndpointAccessError> for Error {
1876 fn from(err: crate::operation::update_endpoint_access::UpdateEndpointAccessError) -> Self {
1877 match err {
1878 crate::operation::update_endpoint_access::UpdateEndpointAccessError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
1879 crate::operation::update_endpoint_access::UpdateEndpointAccessError::ConflictException(inner) => Error::ConflictException(inner),
1880 crate::operation::update_endpoint_access::UpdateEndpointAccessError::InternalServerException(inner) => {
1881 Error::InternalServerException(inner)
1882 }
1883 crate::operation::update_endpoint_access::UpdateEndpointAccessError::ResourceNotFoundException(inner) => {
1884 Error::ResourceNotFoundException(inner)
1885 }
1886 crate::operation::update_endpoint_access::UpdateEndpointAccessError::ValidationException(inner) => Error::ValidationException(inner),
1887 crate::operation::update_endpoint_access::UpdateEndpointAccessError::Unhandled(inner) => Error::Unhandled(inner),
1888 }
1889 }
1890}
1891impl<R>
1892 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_lakehouse_configuration::UpdateLakehouseConfigurationError, R>>
1893 for Error
1894where
1895 R: Send + Sync + std::fmt::Debug + 'static,
1896{
1897 fn from(
1898 err: ::aws_smithy_runtime_api::client::result::SdkError<
1899 crate::operation::update_lakehouse_configuration::UpdateLakehouseConfigurationError,
1900 R,
1901 >,
1902 ) -> Self {
1903 match err {
1904 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1905 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1906 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1907 source: err.into(),
1908 }),
1909 }
1910 }
1911}
1912impl From<crate::operation::update_lakehouse_configuration::UpdateLakehouseConfigurationError> for Error {
1913 fn from(err: crate::operation::update_lakehouse_configuration::UpdateLakehouseConfigurationError) -> Self {
1914 match err {
1915 crate::operation::update_lakehouse_configuration::UpdateLakehouseConfigurationError::ConflictException(inner) => {
1916 Error::ConflictException(inner)
1917 }
1918 crate::operation::update_lakehouse_configuration::UpdateLakehouseConfigurationError::DryRunException(inner) => {
1919 Error::DryRunException(inner)
1920 }
1921 crate::operation::update_lakehouse_configuration::UpdateLakehouseConfigurationError::InternalServerException(inner) => {
1922 Error::InternalServerException(inner)
1923 }
1924 crate::operation::update_lakehouse_configuration::UpdateLakehouseConfigurationError::ResourceNotFoundException(inner) => {
1925 Error::ResourceNotFoundException(inner)
1926 }
1927 crate::operation::update_lakehouse_configuration::UpdateLakehouseConfigurationError::ValidationException(inner) => {
1928 Error::ValidationException(inner)
1929 }
1930 crate::operation::update_lakehouse_configuration::UpdateLakehouseConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1931 }
1932 }
1933}
1934impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_namespace::UpdateNamespaceError, R>> for Error
1935where
1936 R: Send + Sync + std::fmt::Debug + 'static,
1937{
1938 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_namespace::UpdateNamespaceError, R>) -> Self {
1939 match err {
1940 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1941 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1942 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1943 source: err.into(),
1944 }),
1945 }
1946 }
1947}
1948impl From<crate::operation::update_namespace::UpdateNamespaceError> for Error {
1949 fn from(err: crate::operation::update_namespace::UpdateNamespaceError) -> Self {
1950 match err {
1951 crate::operation::update_namespace::UpdateNamespaceError::ConflictException(inner) => Error::ConflictException(inner),
1952 crate::operation::update_namespace::UpdateNamespaceError::InternalServerException(inner) => Error::InternalServerException(inner),
1953 crate::operation::update_namespace::UpdateNamespaceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
1954 crate::operation::update_namespace::UpdateNamespaceError::ValidationException(inner) => Error::ValidationException(inner),
1955 crate::operation::update_namespace::UpdateNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
1956 }
1957 }
1958}
1959impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scheduled_action::UpdateScheduledActionError, R>> for Error
1960where
1961 R: Send + Sync + std::fmt::Debug + 'static,
1962{
1963 fn from(
1964 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_scheduled_action::UpdateScheduledActionError, R>,
1965 ) -> Self {
1966 match err {
1967 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1968 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1969 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1970 source: err.into(),
1971 }),
1972 }
1973 }
1974}
1975impl From<crate::operation::update_scheduled_action::UpdateScheduledActionError> for Error {
1976 fn from(err: crate::operation::update_scheduled_action::UpdateScheduledActionError) -> Self {
1977 match err {
1978 crate::operation::update_scheduled_action::UpdateScheduledActionError::ConflictException(inner) => Error::ConflictException(inner),
1979 crate::operation::update_scheduled_action::UpdateScheduledActionError::InternalServerException(inner) => {
1980 Error::InternalServerException(inner)
1981 }
1982 crate::operation::update_scheduled_action::UpdateScheduledActionError::ResourceNotFoundException(inner) => {
1983 Error::ResourceNotFoundException(inner)
1984 }
1985 crate::operation::update_scheduled_action::UpdateScheduledActionError::ValidationException(inner) => Error::ValidationException(inner),
1986 crate::operation::update_scheduled_action::UpdateScheduledActionError::Unhandled(inner) => Error::Unhandled(inner),
1987 }
1988 }
1989}
1990impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_snapshot::UpdateSnapshotError, R>> for Error
1991where
1992 R: Send + Sync + std::fmt::Debug + 'static,
1993{
1994 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_snapshot::UpdateSnapshotError, R>) -> Self {
1995 match err {
1996 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1997 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1998 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1999 source: err.into(),
2000 }),
2001 }
2002 }
2003}
2004impl From<crate::operation::update_snapshot::UpdateSnapshotError> for Error {
2005 fn from(err: crate::operation::update_snapshot::UpdateSnapshotError) -> Self {
2006 match err {
2007 crate::operation::update_snapshot::UpdateSnapshotError::ConflictException(inner) => Error::ConflictException(inner),
2008 crate::operation::update_snapshot::UpdateSnapshotError::InternalServerException(inner) => Error::InternalServerException(inner),
2009 crate::operation::update_snapshot::UpdateSnapshotError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2010 crate::operation::update_snapshot::UpdateSnapshotError::ValidationException(inner) => Error::ValidationException(inner),
2011 crate::operation::update_snapshot::UpdateSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
2012 }
2013 }
2014}
2015impl<R>
2016 From<
2017 ::aws_smithy_runtime_api::client::result::SdkError<
2018 crate::operation::update_snapshot_copy_configuration::UpdateSnapshotCopyConfigurationError,
2019 R,
2020 >,
2021 > for Error
2022where
2023 R: Send + Sync + std::fmt::Debug + 'static,
2024{
2025 fn from(
2026 err: ::aws_smithy_runtime_api::client::result::SdkError<
2027 crate::operation::update_snapshot_copy_configuration::UpdateSnapshotCopyConfigurationError,
2028 R,
2029 >,
2030 ) -> Self {
2031 match err {
2032 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2033 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2034 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2035 source: err.into(),
2036 }),
2037 }
2038 }
2039}
2040impl From<crate::operation::update_snapshot_copy_configuration::UpdateSnapshotCopyConfigurationError> for Error {
2041 fn from(err: crate::operation::update_snapshot_copy_configuration::UpdateSnapshotCopyConfigurationError) -> Self {
2042 match err {
2043 crate::operation::update_snapshot_copy_configuration::UpdateSnapshotCopyConfigurationError::AccessDeniedException(inner) => {
2044 Error::AccessDeniedException(inner)
2045 }
2046 crate::operation::update_snapshot_copy_configuration::UpdateSnapshotCopyConfigurationError::ConflictException(inner) => {
2047 Error::ConflictException(inner)
2048 }
2049 crate::operation::update_snapshot_copy_configuration::UpdateSnapshotCopyConfigurationError::InternalServerException(inner) => {
2050 Error::InternalServerException(inner)
2051 }
2052 crate::operation::update_snapshot_copy_configuration::UpdateSnapshotCopyConfigurationError::ResourceNotFoundException(inner) => {
2053 Error::ResourceNotFoundException(inner)
2054 }
2055 crate::operation::update_snapshot_copy_configuration::UpdateSnapshotCopyConfigurationError::ValidationException(inner) => {
2056 Error::ValidationException(inner)
2057 }
2058 crate::operation::update_snapshot_copy_configuration::UpdateSnapshotCopyConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2059 }
2060 }
2061}
2062impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_usage_limit::UpdateUsageLimitError, R>> for Error
2063where
2064 R: Send + Sync + std::fmt::Debug + 'static,
2065{
2066 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_usage_limit::UpdateUsageLimitError, R>) -> Self {
2067 match err {
2068 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2069 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2070 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2071 source: err.into(),
2072 }),
2073 }
2074 }
2075}
2076impl From<crate::operation::update_usage_limit::UpdateUsageLimitError> for Error {
2077 fn from(err: crate::operation::update_usage_limit::UpdateUsageLimitError) -> Self {
2078 match err {
2079 crate::operation::update_usage_limit::UpdateUsageLimitError::ConflictException(inner) => Error::ConflictException(inner),
2080 crate::operation::update_usage_limit::UpdateUsageLimitError::InternalServerException(inner) => Error::InternalServerException(inner),
2081 crate::operation::update_usage_limit::UpdateUsageLimitError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2082 crate::operation::update_usage_limit::UpdateUsageLimitError::ValidationException(inner) => Error::ValidationException(inner),
2083 crate::operation::update_usage_limit::UpdateUsageLimitError::Unhandled(inner) => Error::Unhandled(inner),
2084 }
2085 }
2086}
2087impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workgroup::UpdateWorkgroupError, R>> for Error
2088where
2089 R: Send + Sync + std::fmt::Debug + 'static,
2090{
2091 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_workgroup::UpdateWorkgroupError, R>) -> Self {
2092 match err {
2093 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2094 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2095 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2096 source: err.into(),
2097 }),
2098 }
2099 }
2100}
2101impl From<crate::operation::update_workgroup::UpdateWorkgroupError> for Error {
2102 fn from(err: crate::operation::update_workgroup::UpdateWorkgroupError) -> Self {
2103 match err {
2104 crate::operation::update_workgroup::UpdateWorkgroupError::ConflictException(inner) => Error::ConflictException(inner),
2105 crate::operation::update_workgroup::UpdateWorkgroupError::InsufficientCapacityException(inner) => {
2106 Error::InsufficientCapacityException(inner)
2107 }
2108 crate::operation::update_workgroup::UpdateWorkgroupError::InternalServerException(inner) => Error::InternalServerException(inner),
2109 crate::operation::update_workgroup::UpdateWorkgroupError::Ipv6CidrBlockNotFoundException(inner) => {
2110 Error::Ipv6CidrBlockNotFoundException(inner)
2111 }
2112 crate::operation::update_workgroup::UpdateWorkgroupError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
2113 crate::operation::update_workgroup::UpdateWorkgroupError::ValidationException(inner) => Error::ValidationException(inner),
2114 crate::operation::update_workgroup::UpdateWorkgroupError::Unhandled(inner) => Error::Unhandled(inner),
2115 }
2116 }
2117}
2118impl ::std::error::Error for Error {
2119 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
2120 match self {
2121 Error::AccessDeniedException(inner) => inner.source(),
2122 Error::ConflictException(inner) => inner.source(),
2123 Error::DryRunException(inner) => inner.source(),
2124 Error::InsufficientCapacityException(inner) => inner.source(),
2125 Error::InternalServerException(inner) => inner.source(),
2126 Error::InvalidPaginationException(inner) => inner.source(),
2127 Error::Ipv6CidrBlockNotFoundException(inner) => inner.source(),
2128 Error::ResourceNotFoundException(inner) => inner.source(),
2129 Error::ServiceQuotaExceededException(inner) => inner.source(),
2130 Error::ThrottlingException(inner) => inner.source(),
2131 Error::TooManyTagsException(inner) => inner.source(),
2132 Error::ValidationException(inner) => inner.source(),
2133 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
2134 }
2135 }
2136}
2137impl ::aws_types::request_id::RequestId for Error {
2138 fn request_id(&self) -> Option<&str> {
2139 match self {
2140 Self::AccessDeniedException(e) => e.request_id(),
2141 Self::ConflictException(e) => e.request_id(),
2142 Self::DryRunException(e) => e.request_id(),
2143 Self::InsufficientCapacityException(e) => e.request_id(),
2144 Self::InternalServerException(e) => e.request_id(),
2145 Self::InvalidPaginationException(e) => e.request_id(),
2146 Self::Ipv6CidrBlockNotFoundException(e) => e.request_id(),
2147 Self::ResourceNotFoundException(e) => e.request_id(),
2148 Self::ServiceQuotaExceededException(e) => e.request_id(),
2149 Self::ThrottlingException(e) => e.request_id(),
2150 Self::TooManyTagsException(e) => e.request_id(),
2151 Self::ValidationException(e) => e.request_id(),
2152 Self::Unhandled(e) => e.meta.request_id(),
2153 }
2154 }
2155}