1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessToClusterDeniedFault(crate::types::error::AccessToClusterDeniedFault),
8 AccessToSnapshotDeniedFault(crate::types::error::AccessToSnapshotDeniedFault),
10 AuthenticationProfileAlreadyExistsFault(crate::types::error::AuthenticationProfileAlreadyExistsFault),
12 AuthenticationProfileNotFoundFault(crate::types::error::AuthenticationProfileNotFoundFault),
14 AuthenticationProfileQuotaExceededFault(crate::types::error::AuthenticationProfileQuotaExceededFault),
16 AuthorizationAlreadyExistsFault(crate::types::error::AuthorizationAlreadyExistsFault),
18 AuthorizationNotFoundFault(crate::types::error::AuthorizationNotFoundFault),
20 AuthorizationQuotaExceededFault(crate::types::error::AuthorizationQuotaExceededFault),
22 BatchDeleteRequestSizeExceededFault(crate::types::error::BatchDeleteRequestSizeExceededFault),
24 BatchModifyClusterSnapshotsLimitExceededFault(crate::types::error::BatchModifyClusterSnapshotsLimitExceededFault),
26 BucketNotFoundFault(crate::types::error::BucketNotFoundFault),
28 ClusterAlreadyExistsFault(crate::types::error::ClusterAlreadyExistsFault),
30 ClusterNotFoundFault(crate::types::error::ClusterNotFoundFault),
32 ClusterOnLatestRevisionFault(crate::types::error::ClusterOnLatestRevisionFault),
34 ClusterParameterGroupAlreadyExistsFault(crate::types::error::ClusterParameterGroupAlreadyExistsFault),
36 ClusterParameterGroupNotFoundFault(crate::types::error::ClusterParameterGroupNotFoundFault),
38 ClusterParameterGroupQuotaExceededFault(crate::types::error::ClusterParameterGroupQuotaExceededFault),
40 ClusterQuotaExceededFault(crate::types::error::ClusterQuotaExceededFault),
42 ClusterSecurityGroupAlreadyExistsFault(crate::types::error::ClusterSecurityGroupAlreadyExistsFault),
44 ClusterSecurityGroupNotFoundFault(crate::types::error::ClusterSecurityGroupNotFoundFault),
46 ClusterSecurityGroupQuotaExceededFault(crate::types::error::ClusterSecurityGroupQuotaExceededFault),
48 ClusterSnapshotAlreadyExistsFault(crate::types::error::ClusterSnapshotAlreadyExistsFault),
50 ClusterSnapshotNotFoundFault(crate::types::error::ClusterSnapshotNotFoundFault),
52 ClusterSnapshotQuotaExceededFault(crate::types::error::ClusterSnapshotQuotaExceededFault),
54 ClusterSubnetGroupAlreadyExistsFault(crate::types::error::ClusterSubnetGroupAlreadyExistsFault),
56 ClusterSubnetGroupNotFoundFault(crate::types::error::ClusterSubnetGroupNotFoundFault),
58 ClusterSubnetGroupQuotaExceededFault(crate::types::error::ClusterSubnetGroupQuotaExceededFault),
60 ClusterSubnetQuotaExceededFault(crate::types::error::ClusterSubnetQuotaExceededFault),
62 ConflictPolicyUpdateFault(crate::types::error::ConflictPolicyUpdateFault),
64 CopyToRegionDisabledFault(crate::types::error::CopyToRegionDisabledFault),
66 CustomCnameAssociationFault(crate::types::error::CustomCnameAssociationFault),
68 CustomDomainAssociationNotFoundFault(crate::types::error::CustomDomainAssociationNotFoundFault),
70 DependentServiceAccessDeniedFault(crate::types::error::DependentServiceAccessDeniedFault),
72 DependentServiceRequestThrottlingFault(crate::types::error::DependentServiceRequestThrottlingFault),
74 DependentServiceUnavailableFault(crate::types::error::DependentServiceUnavailableFault),
76 EndpointAlreadyExistsFault(crate::types::error::EndpointAlreadyExistsFault),
78 EndpointAuthorizationAlreadyExistsFault(crate::types::error::EndpointAuthorizationAlreadyExistsFault),
80 EndpointAuthorizationNotFoundFault(crate::types::error::EndpointAuthorizationNotFoundFault),
82 EndpointAuthorizationsPerClusterLimitExceededFault(crate::types::error::EndpointAuthorizationsPerClusterLimitExceededFault),
84 EndpointNotFoundFault(crate::types::error::EndpointNotFoundFault),
86 EndpointsPerAuthorizationLimitExceededFault(crate::types::error::EndpointsPerAuthorizationLimitExceededFault),
88 EndpointsPerClusterLimitExceededFault(crate::types::error::EndpointsPerClusterLimitExceededFault),
90 EventSubscriptionQuotaExceededFault(crate::types::error::EventSubscriptionQuotaExceededFault),
92 HsmClientCertificateAlreadyExistsFault(crate::types::error::HsmClientCertificateAlreadyExistsFault),
94 HsmClientCertificateNotFoundFault(crate::types::error::HsmClientCertificateNotFoundFault),
96 HsmClientCertificateQuotaExceededFault(crate::types::error::HsmClientCertificateQuotaExceededFault),
98 HsmConfigurationAlreadyExistsFault(crate::types::error::HsmConfigurationAlreadyExistsFault),
100 HsmConfigurationNotFoundFault(crate::types::error::HsmConfigurationNotFoundFault),
102 HsmConfigurationQuotaExceededFault(crate::types::error::HsmConfigurationQuotaExceededFault),
104 InProgressTableRestoreQuotaExceededFault(crate::types::error::InProgressTableRestoreQuotaExceededFault),
106 IncompatibleOrderableOptions(crate::types::error::IncompatibleOrderableOptions),
108 InsufficientClusterCapacityFault(crate::types::error::InsufficientClusterCapacityFault),
110 InsufficientS3BucketPolicyFault(crate::types::error::InsufficientS3BucketPolicyFault),
112 IntegrationAlreadyExistsFault(crate::types::error::IntegrationAlreadyExistsFault),
114 IntegrationConflictOperationFault(crate::types::error::IntegrationConflictOperationFault),
116 IntegrationConflictStateFault(crate::types::error::IntegrationConflictStateFault),
118 IntegrationNotFoundFault(crate::types::error::IntegrationNotFoundFault),
120 IntegrationQuotaExceededFault(crate::types::error::IntegrationQuotaExceededFault),
122 IntegrationSourceNotFoundFault(crate::types::error::IntegrationSourceNotFoundFault),
124 IntegrationTargetNotFoundFault(crate::types::error::IntegrationTargetNotFoundFault),
126 InvalidAuthenticationProfileRequestFault(crate::types::error::InvalidAuthenticationProfileRequestFault),
128 InvalidAuthorizationStateFault(crate::types::error::InvalidAuthorizationStateFault),
130 InvalidClusterParameterGroupStateFault(crate::types::error::InvalidClusterParameterGroupStateFault),
132 InvalidClusterSecurityGroupStateFault(crate::types::error::InvalidClusterSecurityGroupStateFault),
134 InvalidClusterSnapshotScheduleStateFault(crate::types::error::InvalidClusterSnapshotScheduleStateFault),
136 InvalidClusterSnapshotStateFault(crate::types::error::InvalidClusterSnapshotStateFault),
138 InvalidClusterStateFault(crate::types::error::InvalidClusterStateFault),
140 InvalidClusterSubnetGroupStateFault(crate::types::error::InvalidClusterSubnetGroupStateFault),
142 InvalidClusterSubnetStateFault(crate::types::error::InvalidClusterSubnetStateFault),
144 InvalidClusterTrackFault(crate::types::error::InvalidClusterTrackFault),
146 InvalidDataShareFault(crate::types::error::InvalidDataShareFault),
148 InvalidElasticIpFault(crate::types::error::InvalidElasticIpFault),
150 InvalidEndpointStateFault(crate::types::error::InvalidEndpointStateFault),
152 InvalidHsmClientCertificateStateFault(crate::types::error::InvalidHsmClientCertificateStateFault),
154 InvalidHsmConfigurationStateFault(crate::types::error::InvalidHsmConfigurationStateFault),
156 InvalidNamespaceFault(crate::types::error::InvalidNamespaceFault),
158 InvalidPolicyFault(crate::types::error::InvalidPolicyFault),
160 InvalidReservedNodeStateFault(crate::types::error::InvalidReservedNodeStateFault),
162 InvalidRestoreFault(crate::types::error::InvalidRestoreFault),
164 InvalidRetentionPeriodFault(crate::types::error::InvalidRetentionPeriodFault),
167 InvalidS3BucketNameFault(crate::types::error::InvalidS3BucketNameFault),
169 InvalidS3KeyPrefixFault(crate::types::error::InvalidS3KeyPrefixFault),
171 InvalidScheduleFault(crate::types::error::InvalidScheduleFault),
173 InvalidScheduledActionFault(crate::types::error::InvalidScheduledActionFault),
175 InvalidSnapshotCopyGrantStateFault(crate::types::error::InvalidSnapshotCopyGrantStateFault),
177 InvalidSubnet(crate::types::error::InvalidSubnet),
179 InvalidSubscriptionStateFault(crate::types::error::InvalidSubscriptionStateFault),
181 InvalidTableRestoreArgumentFault(crate::types::error::InvalidTableRestoreArgumentFault),
183 InvalidTagFault(crate::types::error::InvalidTagFault),
185 InvalidUsageLimitFault(crate::types::error::InvalidUsageLimitFault),
187 InvalidVpcNetworkStateFault(crate::types::error::InvalidVpcNetworkStateFault),
189 Ipv6CidrBlockNotFoundFault(crate::types::error::Ipv6CidrBlockNotFoundFault),
191 LimitExceededFault(crate::types::error::LimitExceededFault),
193 NumberOfNodesPerClusterLimitExceededFault(crate::types::error::NumberOfNodesPerClusterLimitExceededFault),
195 NumberOfNodesQuotaExceededFault(crate::types::error::NumberOfNodesQuotaExceededFault),
197 PartnerNotFoundFault(crate::types::error::PartnerNotFoundFault),
199 RedshiftIdcApplicationAlreadyExistsFault(crate::types::error::RedshiftIdcApplicationAlreadyExistsFault),
201 RedshiftIdcApplicationNotExistsFault(crate::types::error::RedshiftIdcApplicationNotExistsFault),
203 RedshiftIdcApplicationQuotaExceededFault(crate::types::error::RedshiftIdcApplicationQuotaExceededFault),
205 RedshiftInvalidParameterFault(crate::types::error::RedshiftInvalidParameterFault),
207 ReservedNodeAlreadyExistsFault(crate::types::error::ReservedNodeAlreadyExistsFault),
209 ReservedNodeAlreadyMigratedFault(crate::types::error::ReservedNodeAlreadyMigratedFault),
211 ReservedNodeExchangeNotFoundFault(crate::types::error::ReservedNodeExchangeNotFoundFault),
213 ReservedNodeNotFoundFault(crate::types::error::ReservedNodeNotFoundFault),
215 ReservedNodeOfferingNotFoundFault(crate::types::error::ReservedNodeOfferingNotFoundFault),
217 ReservedNodeQuotaExceededFault(crate::types::error::ReservedNodeQuotaExceededFault),
219 ResizeNotFoundFault(crate::types::error::ResizeNotFoundFault),
221 ResourceNotFoundFault(crate::types::error::ResourceNotFoundFault),
223 SnsInvalidTopicFault(crate::types::error::SnsInvalidTopicFault),
225 SnsNoAuthorizationFault(crate::types::error::SnsNoAuthorizationFault),
227 SnsTopicArnNotFoundFault(crate::types::error::SnsTopicArnNotFoundFault),
229 ScheduleDefinitionTypeUnsupportedFault(crate::types::error::ScheduleDefinitionTypeUnsupportedFault),
231 ScheduledActionAlreadyExistsFault(crate::types::error::ScheduledActionAlreadyExistsFault),
233 ScheduledActionNotFoundFault(crate::types::error::ScheduledActionNotFoundFault),
235 ScheduledActionQuotaExceededFault(crate::types::error::ScheduledActionQuotaExceededFault),
237 ScheduledActionTypeUnsupportedFault(crate::types::error::ScheduledActionTypeUnsupportedFault),
239 SnapshotCopyAlreadyDisabledFault(crate::types::error::SnapshotCopyAlreadyDisabledFault),
241 SnapshotCopyAlreadyEnabledFault(crate::types::error::SnapshotCopyAlreadyEnabledFault),
243 SnapshotCopyDisabledFault(crate::types::error::SnapshotCopyDisabledFault),
245 SnapshotCopyGrantAlreadyExistsFault(crate::types::error::SnapshotCopyGrantAlreadyExistsFault),
247 SnapshotCopyGrantNotFoundFault(crate::types::error::SnapshotCopyGrantNotFoundFault),
249 SnapshotCopyGrantQuotaExceededFault(crate::types::error::SnapshotCopyGrantQuotaExceededFault),
251 SnapshotScheduleAlreadyExistsFault(crate::types::error::SnapshotScheduleAlreadyExistsFault),
253 SnapshotScheduleNotFoundFault(crate::types::error::SnapshotScheduleNotFoundFault),
255 SnapshotScheduleQuotaExceededFault(crate::types::error::SnapshotScheduleQuotaExceededFault),
257 SnapshotScheduleUpdateInProgressFault(crate::types::error::SnapshotScheduleUpdateInProgressFault),
259 SourceNotFoundFault(crate::types::error::SourceNotFoundFault),
261 SubnetAlreadyInUse(crate::types::error::SubnetAlreadyInUse),
263 SubscriptionAlreadyExistFault(crate::types::error::SubscriptionAlreadyExistFault),
265 SubscriptionCategoryNotFoundFault(crate::types::error::SubscriptionCategoryNotFoundFault),
267 SubscriptionEventIdNotFoundFault(crate::types::error::SubscriptionEventIdNotFoundFault),
269 SubscriptionNotFoundFault(crate::types::error::SubscriptionNotFoundFault),
271 SubscriptionSeverityNotFoundFault(crate::types::error::SubscriptionSeverityNotFoundFault),
273 TableLimitExceededFault(crate::types::error::TableLimitExceededFault),
275 TableRestoreNotFoundFault(crate::types::error::TableRestoreNotFoundFault),
277 TagLimitExceededFault(crate::types::error::TagLimitExceededFault),
279 UnauthorizedOperation(crate::types::error::UnauthorizedOperation),
281 UnauthorizedPartnerIntegrationFault(crate::types::error::UnauthorizedPartnerIntegrationFault),
283 UnknownSnapshotCopyRegionFault(crate::types::error::UnknownSnapshotCopyRegionFault),
285 UnsupportedOperationFault(crate::types::error::UnsupportedOperationFault),
287 UnsupportedOptionFault(crate::types::error::UnsupportedOptionFault),
289 UsageLimitAlreadyExistsFault(crate::types::error::UsageLimitAlreadyExistsFault),
291 UsageLimitNotFoundFault(crate::types::error::UsageLimitNotFoundFault),
293 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
295 variable wildcard pattern and check `.code()`:
296 \
297 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
298 \
299 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
300 Unhandled(crate::error::sealed_unhandled::Unhandled),
301}
302impl ::std::fmt::Display for Error {
303 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
304 match self {
305 Error::AccessToClusterDeniedFault(inner) => inner.fmt(f),
306 Error::AccessToSnapshotDeniedFault(inner) => inner.fmt(f),
307 Error::AuthenticationProfileAlreadyExistsFault(inner) => inner.fmt(f),
308 Error::AuthenticationProfileNotFoundFault(inner) => inner.fmt(f),
309 Error::AuthenticationProfileQuotaExceededFault(inner) => inner.fmt(f),
310 Error::AuthorizationAlreadyExistsFault(inner) => inner.fmt(f),
311 Error::AuthorizationNotFoundFault(inner) => inner.fmt(f),
312 Error::AuthorizationQuotaExceededFault(inner) => inner.fmt(f),
313 Error::BatchDeleteRequestSizeExceededFault(inner) => inner.fmt(f),
314 Error::BatchModifyClusterSnapshotsLimitExceededFault(inner) => inner.fmt(f),
315 Error::BucketNotFoundFault(inner) => inner.fmt(f),
316 Error::ClusterAlreadyExistsFault(inner) => inner.fmt(f),
317 Error::ClusterNotFoundFault(inner) => inner.fmt(f),
318 Error::ClusterOnLatestRevisionFault(inner) => inner.fmt(f),
319 Error::ClusterParameterGroupAlreadyExistsFault(inner) => inner.fmt(f),
320 Error::ClusterParameterGroupNotFoundFault(inner) => inner.fmt(f),
321 Error::ClusterParameterGroupQuotaExceededFault(inner) => inner.fmt(f),
322 Error::ClusterQuotaExceededFault(inner) => inner.fmt(f),
323 Error::ClusterSecurityGroupAlreadyExistsFault(inner) => inner.fmt(f),
324 Error::ClusterSecurityGroupNotFoundFault(inner) => inner.fmt(f),
325 Error::ClusterSecurityGroupQuotaExceededFault(inner) => inner.fmt(f),
326 Error::ClusterSnapshotAlreadyExistsFault(inner) => inner.fmt(f),
327 Error::ClusterSnapshotNotFoundFault(inner) => inner.fmt(f),
328 Error::ClusterSnapshotQuotaExceededFault(inner) => inner.fmt(f),
329 Error::ClusterSubnetGroupAlreadyExistsFault(inner) => inner.fmt(f),
330 Error::ClusterSubnetGroupNotFoundFault(inner) => inner.fmt(f),
331 Error::ClusterSubnetGroupQuotaExceededFault(inner) => inner.fmt(f),
332 Error::ClusterSubnetQuotaExceededFault(inner) => inner.fmt(f),
333 Error::ConflictPolicyUpdateFault(inner) => inner.fmt(f),
334 Error::CopyToRegionDisabledFault(inner) => inner.fmt(f),
335 Error::CustomCnameAssociationFault(inner) => inner.fmt(f),
336 Error::CustomDomainAssociationNotFoundFault(inner) => inner.fmt(f),
337 Error::DependentServiceAccessDeniedFault(inner) => inner.fmt(f),
338 Error::DependentServiceRequestThrottlingFault(inner) => inner.fmt(f),
339 Error::DependentServiceUnavailableFault(inner) => inner.fmt(f),
340 Error::EndpointAlreadyExistsFault(inner) => inner.fmt(f),
341 Error::EndpointAuthorizationAlreadyExistsFault(inner) => inner.fmt(f),
342 Error::EndpointAuthorizationNotFoundFault(inner) => inner.fmt(f),
343 Error::EndpointAuthorizationsPerClusterLimitExceededFault(inner) => inner.fmt(f),
344 Error::EndpointNotFoundFault(inner) => inner.fmt(f),
345 Error::EndpointsPerAuthorizationLimitExceededFault(inner) => inner.fmt(f),
346 Error::EndpointsPerClusterLimitExceededFault(inner) => inner.fmt(f),
347 Error::EventSubscriptionQuotaExceededFault(inner) => inner.fmt(f),
348 Error::HsmClientCertificateAlreadyExistsFault(inner) => inner.fmt(f),
349 Error::HsmClientCertificateNotFoundFault(inner) => inner.fmt(f),
350 Error::HsmClientCertificateQuotaExceededFault(inner) => inner.fmt(f),
351 Error::HsmConfigurationAlreadyExistsFault(inner) => inner.fmt(f),
352 Error::HsmConfigurationNotFoundFault(inner) => inner.fmt(f),
353 Error::HsmConfigurationQuotaExceededFault(inner) => inner.fmt(f),
354 Error::InProgressTableRestoreQuotaExceededFault(inner) => inner.fmt(f),
355 Error::IncompatibleOrderableOptions(inner) => inner.fmt(f),
356 Error::InsufficientClusterCapacityFault(inner) => inner.fmt(f),
357 Error::InsufficientS3BucketPolicyFault(inner) => inner.fmt(f),
358 Error::IntegrationAlreadyExistsFault(inner) => inner.fmt(f),
359 Error::IntegrationConflictOperationFault(inner) => inner.fmt(f),
360 Error::IntegrationConflictStateFault(inner) => inner.fmt(f),
361 Error::IntegrationNotFoundFault(inner) => inner.fmt(f),
362 Error::IntegrationQuotaExceededFault(inner) => inner.fmt(f),
363 Error::IntegrationSourceNotFoundFault(inner) => inner.fmt(f),
364 Error::IntegrationTargetNotFoundFault(inner) => inner.fmt(f),
365 Error::InvalidAuthenticationProfileRequestFault(inner) => inner.fmt(f),
366 Error::InvalidAuthorizationStateFault(inner) => inner.fmt(f),
367 Error::InvalidClusterParameterGroupStateFault(inner) => inner.fmt(f),
368 Error::InvalidClusterSecurityGroupStateFault(inner) => inner.fmt(f),
369 Error::InvalidClusterSnapshotScheduleStateFault(inner) => inner.fmt(f),
370 Error::InvalidClusterSnapshotStateFault(inner) => inner.fmt(f),
371 Error::InvalidClusterStateFault(inner) => inner.fmt(f),
372 Error::InvalidClusterSubnetGroupStateFault(inner) => inner.fmt(f),
373 Error::InvalidClusterSubnetStateFault(inner) => inner.fmt(f),
374 Error::InvalidClusterTrackFault(inner) => inner.fmt(f),
375 Error::InvalidDataShareFault(inner) => inner.fmt(f),
376 Error::InvalidElasticIpFault(inner) => inner.fmt(f),
377 Error::InvalidEndpointStateFault(inner) => inner.fmt(f),
378 Error::InvalidHsmClientCertificateStateFault(inner) => inner.fmt(f),
379 Error::InvalidHsmConfigurationStateFault(inner) => inner.fmt(f),
380 Error::InvalidNamespaceFault(inner) => inner.fmt(f),
381 Error::InvalidPolicyFault(inner) => inner.fmt(f),
382 Error::InvalidReservedNodeStateFault(inner) => inner.fmt(f),
383 Error::InvalidRestoreFault(inner) => inner.fmt(f),
384 Error::InvalidRetentionPeriodFault(inner) => inner.fmt(f),
385 Error::InvalidS3BucketNameFault(inner) => inner.fmt(f),
386 Error::InvalidS3KeyPrefixFault(inner) => inner.fmt(f),
387 Error::InvalidScheduleFault(inner) => inner.fmt(f),
388 Error::InvalidScheduledActionFault(inner) => inner.fmt(f),
389 Error::InvalidSnapshotCopyGrantStateFault(inner) => inner.fmt(f),
390 Error::InvalidSubnet(inner) => inner.fmt(f),
391 Error::InvalidSubscriptionStateFault(inner) => inner.fmt(f),
392 Error::InvalidTableRestoreArgumentFault(inner) => inner.fmt(f),
393 Error::InvalidTagFault(inner) => inner.fmt(f),
394 Error::InvalidUsageLimitFault(inner) => inner.fmt(f),
395 Error::InvalidVpcNetworkStateFault(inner) => inner.fmt(f),
396 Error::Ipv6CidrBlockNotFoundFault(inner) => inner.fmt(f),
397 Error::LimitExceededFault(inner) => inner.fmt(f),
398 Error::NumberOfNodesPerClusterLimitExceededFault(inner) => inner.fmt(f),
399 Error::NumberOfNodesQuotaExceededFault(inner) => inner.fmt(f),
400 Error::PartnerNotFoundFault(inner) => inner.fmt(f),
401 Error::RedshiftIdcApplicationAlreadyExistsFault(inner) => inner.fmt(f),
402 Error::RedshiftIdcApplicationNotExistsFault(inner) => inner.fmt(f),
403 Error::RedshiftIdcApplicationQuotaExceededFault(inner) => inner.fmt(f),
404 Error::RedshiftInvalidParameterFault(inner) => inner.fmt(f),
405 Error::ReservedNodeAlreadyExistsFault(inner) => inner.fmt(f),
406 Error::ReservedNodeAlreadyMigratedFault(inner) => inner.fmt(f),
407 Error::ReservedNodeExchangeNotFoundFault(inner) => inner.fmt(f),
408 Error::ReservedNodeNotFoundFault(inner) => inner.fmt(f),
409 Error::ReservedNodeOfferingNotFoundFault(inner) => inner.fmt(f),
410 Error::ReservedNodeQuotaExceededFault(inner) => inner.fmt(f),
411 Error::ResizeNotFoundFault(inner) => inner.fmt(f),
412 Error::ResourceNotFoundFault(inner) => inner.fmt(f),
413 Error::SnsInvalidTopicFault(inner) => inner.fmt(f),
414 Error::SnsNoAuthorizationFault(inner) => inner.fmt(f),
415 Error::SnsTopicArnNotFoundFault(inner) => inner.fmt(f),
416 Error::ScheduleDefinitionTypeUnsupportedFault(inner) => inner.fmt(f),
417 Error::ScheduledActionAlreadyExistsFault(inner) => inner.fmt(f),
418 Error::ScheduledActionNotFoundFault(inner) => inner.fmt(f),
419 Error::ScheduledActionQuotaExceededFault(inner) => inner.fmt(f),
420 Error::ScheduledActionTypeUnsupportedFault(inner) => inner.fmt(f),
421 Error::SnapshotCopyAlreadyDisabledFault(inner) => inner.fmt(f),
422 Error::SnapshotCopyAlreadyEnabledFault(inner) => inner.fmt(f),
423 Error::SnapshotCopyDisabledFault(inner) => inner.fmt(f),
424 Error::SnapshotCopyGrantAlreadyExistsFault(inner) => inner.fmt(f),
425 Error::SnapshotCopyGrantNotFoundFault(inner) => inner.fmt(f),
426 Error::SnapshotCopyGrantQuotaExceededFault(inner) => inner.fmt(f),
427 Error::SnapshotScheduleAlreadyExistsFault(inner) => inner.fmt(f),
428 Error::SnapshotScheduleNotFoundFault(inner) => inner.fmt(f),
429 Error::SnapshotScheduleQuotaExceededFault(inner) => inner.fmt(f),
430 Error::SnapshotScheduleUpdateInProgressFault(inner) => inner.fmt(f),
431 Error::SourceNotFoundFault(inner) => inner.fmt(f),
432 Error::SubnetAlreadyInUse(inner) => inner.fmt(f),
433 Error::SubscriptionAlreadyExistFault(inner) => inner.fmt(f),
434 Error::SubscriptionCategoryNotFoundFault(inner) => inner.fmt(f),
435 Error::SubscriptionEventIdNotFoundFault(inner) => inner.fmt(f),
436 Error::SubscriptionNotFoundFault(inner) => inner.fmt(f),
437 Error::SubscriptionSeverityNotFoundFault(inner) => inner.fmt(f),
438 Error::TableLimitExceededFault(inner) => inner.fmt(f),
439 Error::TableRestoreNotFoundFault(inner) => inner.fmt(f),
440 Error::TagLimitExceededFault(inner) => inner.fmt(f),
441 Error::UnauthorizedOperation(inner) => inner.fmt(f),
442 Error::UnauthorizedPartnerIntegrationFault(inner) => inner.fmt(f),
443 Error::UnknownSnapshotCopyRegionFault(inner) => inner.fmt(f),
444 Error::UnsupportedOperationFault(inner) => inner.fmt(f),
445 Error::UnsupportedOptionFault(inner) => inner.fmt(f),
446 Error::UsageLimitAlreadyExistsFault(inner) => inner.fmt(f),
447 Error::UsageLimitNotFoundFault(inner) => inner.fmt(f),
448 Error::Unhandled(_) => {
449 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
450 write!(f, "unhandled error ({code})")
451 } else {
452 f.write_str("unhandled error")
453 }
454 }
455 }
456 }
457}
458impl From<::aws_smithy_types::error::operation::BuildError> for Error {
459 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
460 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
461 source: value.into(),
462 meta: ::std::default::Default::default(),
463 })
464 }
465}
466impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
467 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
468 match self {
469 Self::AccessToClusterDeniedFault(inner) => inner.meta(),
470 Self::AccessToSnapshotDeniedFault(inner) => inner.meta(),
471 Self::AuthenticationProfileAlreadyExistsFault(inner) => inner.meta(),
472 Self::AuthenticationProfileNotFoundFault(inner) => inner.meta(),
473 Self::AuthenticationProfileQuotaExceededFault(inner) => inner.meta(),
474 Self::AuthorizationAlreadyExistsFault(inner) => inner.meta(),
475 Self::AuthorizationNotFoundFault(inner) => inner.meta(),
476 Self::AuthorizationQuotaExceededFault(inner) => inner.meta(),
477 Self::BatchDeleteRequestSizeExceededFault(inner) => inner.meta(),
478 Self::BatchModifyClusterSnapshotsLimitExceededFault(inner) => inner.meta(),
479 Self::BucketNotFoundFault(inner) => inner.meta(),
480 Self::ClusterAlreadyExistsFault(inner) => inner.meta(),
481 Self::ClusterNotFoundFault(inner) => inner.meta(),
482 Self::ClusterOnLatestRevisionFault(inner) => inner.meta(),
483 Self::ClusterParameterGroupAlreadyExistsFault(inner) => inner.meta(),
484 Self::ClusterParameterGroupNotFoundFault(inner) => inner.meta(),
485 Self::ClusterParameterGroupQuotaExceededFault(inner) => inner.meta(),
486 Self::ClusterQuotaExceededFault(inner) => inner.meta(),
487 Self::ClusterSecurityGroupAlreadyExistsFault(inner) => inner.meta(),
488 Self::ClusterSecurityGroupNotFoundFault(inner) => inner.meta(),
489 Self::ClusterSecurityGroupQuotaExceededFault(inner) => inner.meta(),
490 Self::ClusterSnapshotAlreadyExistsFault(inner) => inner.meta(),
491 Self::ClusterSnapshotNotFoundFault(inner) => inner.meta(),
492 Self::ClusterSnapshotQuotaExceededFault(inner) => inner.meta(),
493 Self::ClusterSubnetGroupAlreadyExistsFault(inner) => inner.meta(),
494 Self::ClusterSubnetGroupNotFoundFault(inner) => inner.meta(),
495 Self::ClusterSubnetGroupQuotaExceededFault(inner) => inner.meta(),
496 Self::ClusterSubnetQuotaExceededFault(inner) => inner.meta(),
497 Self::ConflictPolicyUpdateFault(inner) => inner.meta(),
498 Self::CopyToRegionDisabledFault(inner) => inner.meta(),
499 Self::CustomCnameAssociationFault(inner) => inner.meta(),
500 Self::CustomDomainAssociationNotFoundFault(inner) => inner.meta(),
501 Self::DependentServiceAccessDeniedFault(inner) => inner.meta(),
502 Self::DependentServiceRequestThrottlingFault(inner) => inner.meta(),
503 Self::DependentServiceUnavailableFault(inner) => inner.meta(),
504 Self::EndpointAlreadyExistsFault(inner) => inner.meta(),
505 Self::EndpointAuthorizationAlreadyExistsFault(inner) => inner.meta(),
506 Self::EndpointAuthorizationNotFoundFault(inner) => inner.meta(),
507 Self::EndpointAuthorizationsPerClusterLimitExceededFault(inner) => inner.meta(),
508 Self::EndpointNotFoundFault(inner) => inner.meta(),
509 Self::EndpointsPerAuthorizationLimitExceededFault(inner) => inner.meta(),
510 Self::EndpointsPerClusterLimitExceededFault(inner) => inner.meta(),
511 Self::EventSubscriptionQuotaExceededFault(inner) => inner.meta(),
512 Self::HsmClientCertificateAlreadyExistsFault(inner) => inner.meta(),
513 Self::HsmClientCertificateNotFoundFault(inner) => inner.meta(),
514 Self::HsmClientCertificateQuotaExceededFault(inner) => inner.meta(),
515 Self::HsmConfigurationAlreadyExistsFault(inner) => inner.meta(),
516 Self::HsmConfigurationNotFoundFault(inner) => inner.meta(),
517 Self::HsmConfigurationQuotaExceededFault(inner) => inner.meta(),
518 Self::InProgressTableRestoreQuotaExceededFault(inner) => inner.meta(),
519 Self::IncompatibleOrderableOptions(inner) => inner.meta(),
520 Self::InsufficientClusterCapacityFault(inner) => inner.meta(),
521 Self::InsufficientS3BucketPolicyFault(inner) => inner.meta(),
522 Self::IntegrationAlreadyExistsFault(inner) => inner.meta(),
523 Self::IntegrationConflictOperationFault(inner) => inner.meta(),
524 Self::IntegrationConflictStateFault(inner) => inner.meta(),
525 Self::IntegrationNotFoundFault(inner) => inner.meta(),
526 Self::IntegrationQuotaExceededFault(inner) => inner.meta(),
527 Self::IntegrationSourceNotFoundFault(inner) => inner.meta(),
528 Self::IntegrationTargetNotFoundFault(inner) => inner.meta(),
529 Self::InvalidAuthenticationProfileRequestFault(inner) => inner.meta(),
530 Self::InvalidAuthorizationStateFault(inner) => inner.meta(),
531 Self::InvalidClusterParameterGroupStateFault(inner) => inner.meta(),
532 Self::InvalidClusterSecurityGroupStateFault(inner) => inner.meta(),
533 Self::InvalidClusterSnapshotScheduleStateFault(inner) => inner.meta(),
534 Self::InvalidClusterSnapshotStateFault(inner) => inner.meta(),
535 Self::InvalidClusterStateFault(inner) => inner.meta(),
536 Self::InvalidClusterSubnetGroupStateFault(inner) => inner.meta(),
537 Self::InvalidClusterSubnetStateFault(inner) => inner.meta(),
538 Self::InvalidClusterTrackFault(inner) => inner.meta(),
539 Self::InvalidDataShareFault(inner) => inner.meta(),
540 Self::InvalidElasticIpFault(inner) => inner.meta(),
541 Self::InvalidEndpointStateFault(inner) => inner.meta(),
542 Self::InvalidHsmClientCertificateStateFault(inner) => inner.meta(),
543 Self::InvalidHsmConfigurationStateFault(inner) => inner.meta(),
544 Self::InvalidNamespaceFault(inner) => inner.meta(),
545 Self::InvalidPolicyFault(inner) => inner.meta(),
546 Self::InvalidReservedNodeStateFault(inner) => inner.meta(),
547 Self::InvalidRestoreFault(inner) => inner.meta(),
548 Self::InvalidRetentionPeriodFault(inner) => inner.meta(),
549 Self::InvalidS3BucketNameFault(inner) => inner.meta(),
550 Self::InvalidS3KeyPrefixFault(inner) => inner.meta(),
551 Self::InvalidScheduleFault(inner) => inner.meta(),
552 Self::InvalidScheduledActionFault(inner) => inner.meta(),
553 Self::InvalidSnapshotCopyGrantStateFault(inner) => inner.meta(),
554 Self::InvalidSubnet(inner) => inner.meta(),
555 Self::InvalidSubscriptionStateFault(inner) => inner.meta(),
556 Self::InvalidTableRestoreArgumentFault(inner) => inner.meta(),
557 Self::InvalidTagFault(inner) => inner.meta(),
558 Self::InvalidUsageLimitFault(inner) => inner.meta(),
559 Self::InvalidVpcNetworkStateFault(inner) => inner.meta(),
560 Self::Ipv6CidrBlockNotFoundFault(inner) => inner.meta(),
561 Self::LimitExceededFault(inner) => inner.meta(),
562 Self::NumberOfNodesPerClusterLimitExceededFault(inner) => inner.meta(),
563 Self::NumberOfNodesQuotaExceededFault(inner) => inner.meta(),
564 Self::PartnerNotFoundFault(inner) => inner.meta(),
565 Self::RedshiftIdcApplicationAlreadyExistsFault(inner) => inner.meta(),
566 Self::RedshiftIdcApplicationNotExistsFault(inner) => inner.meta(),
567 Self::RedshiftIdcApplicationQuotaExceededFault(inner) => inner.meta(),
568 Self::RedshiftInvalidParameterFault(inner) => inner.meta(),
569 Self::ReservedNodeAlreadyExistsFault(inner) => inner.meta(),
570 Self::ReservedNodeAlreadyMigratedFault(inner) => inner.meta(),
571 Self::ReservedNodeExchangeNotFoundFault(inner) => inner.meta(),
572 Self::ReservedNodeNotFoundFault(inner) => inner.meta(),
573 Self::ReservedNodeOfferingNotFoundFault(inner) => inner.meta(),
574 Self::ReservedNodeQuotaExceededFault(inner) => inner.meta(),
575 Self::ResizeNotFoundFault(inner) => inner.meta(),
576 Self::ResourceNotFoundFault(inner) => inner.meta(),
577 Self::SnsInvalidTopicFault(inner) => inner.meta(),
578 Self::SnsNoAuthorizationFault(inner) => inner.meta(),
579 Self::SnsTopicArnNotFoundFault(inner) => inner.meta(),
580 Self::ScheduleDefinitionTypeUnsupportedFault(inner) => inner.meta(),
581 Self::ScheduledActionAlreadyExistsFault(inner) => inner.meta(),
582 Self::ScheduledActionNotFoundFault(inner) => inner.meta(),
583 Self::ScheduledActionQuotaExceededFault(inner) => inner.meta(),
584 Self::ScheduledActionTypeUnsupportedFault(inner) => inner.meta(),
585 Self::SnapshotCopyAlreadyDisabledFault(inner) => inner.meta(),
586 Self::SnapshotCopyAlreadyEnabledFault(inner) => inner.meta(),
587 Self::SnapshotCopyDisabledFault(inner) => inner.meta(),
588 Self::SnapshotCopyGrantAlreadyExistsFault(inner) => inner.meta(),
589 Self::SnapshotCopyGrantNotFoundFault(inner) => inner.meta(),
590 Self::SnapshotCopyGrantQuotaExceededFault(inner) => inner.meta(),
591 Self::SnapshotScheduleAlreadyExistsFault(inner) => inner.meta(),
592 Self::SnapshotScheduleNotFoundFault(inner) => inner.meta(),
593 Self::SnapshotScheduleQuotaExceededFault(inner) => inner.meta(),
594 Self::SnapshotScheduleUpdateInProgressFault(inner) => inner.meta(),
595 Self::SourceNotFoundFault(inner) => inner.meta(),
596 Self::SubnetAlreadyInUse(inner) => inner.meta(),
597 Self::SubscriptionAlreadyExistFault(inner) => inner.meta(),
598 Self::SubscriptionCategoryNotFoundFault(inner) => inner.meta(),
599 Self::SubscriptionEventIdNotFoundFault(inner) => inner.meta(),
600 Self::SubscriptionNotFoundFault(inner) => inner.meta(),
601 Self::SubscriptionSeverityNotFoundFault(inner) => inner.meta(),
602 Self::TableLimitExceededFault(inner) => inner.meta(),
603 Self::TableRestoreNotFoundFault(inner) => inner.meta(),
604 Self::TagLimitExceededFault(inner) => inner.meta(),
605 Self::UnauthorizedOperation(inner) => inner.meta(),
606 Self::UnauthorizedPartnerIntegrationFault(inner) => inner.meta(),
607 Self::UnknownSnapshotCopyRegionFault(inner) => inner.meta(),
608 Self::UnsupportedOperationFault(inner) => inner.meta(),
609 Self::UnsupportedOptionFault(inner) => inner.meta(),
610 Self::UsageLimitAlreadyExistsFault(inner) => inner.meta(),
611 Self::UsageLimitNotFoundFault(inner) => inner.meta(),
612 Self::Unhandled(inner) => &inner.meta,
613 }
614 }
615}
616impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_reserved_node_exchange::AcceptReservedNodeExchangeError, R>>
617 for Error
618where
619 R: Send + Sync + std::fmt::Debug + 'static,
620{
621 fn from(
622 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::accept_reserved_node_exchange::AcceptReservedNodeExchangeError, R>,
623 ) -> Self {
624 match err {
625 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
626 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
627 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
628 source: err.into(),
629 }),
630 }
631 }
632}
633impl From<crate::operation::accept_reserved_node_exchange::AcceptReservedNodeExchangeError> for Error {
634 fn from(err: crate::operation::accept_reserved_node_exchange::AcceptReservedNodeExchangeError) -> Self {
635 match err {
636 crate::operation::accept_reserved_node_exchange::AcceptReservedNodeExchangeError::DependentServiceUnavailableFault(inner) => {
637 Error::DependentServiceUnavailableFault(inner)
638 }
639 crate::operation::accept_reserved_node_exchange::AcceptReservedNodeExchangeError::InvalidReservedNodeStateFault(inner) => {
640 Error::InvalidReservedNodeStateFault(inner)
641 }
642 crate::operation::accept_reserved_node_exchange::AcceptReservedNodeExchangeError::ReservedNodeAlreadyExistsFault(inner) => {
643 Error::ReservedNodeAlreadyExistsFault(inner)
644 }
645 crate::operation::accept_reserved_node_exchange::AcceptReservedNodeExchangeError::ReservedNodeAlreadyMigratedFault(inner) => {
646 Error::ReservedNodeAlreadyMigratedFault(inner)
647 }
648 crate::operation::accept_reserved_node_exchange::AcceptReservedNodeExchangeError::ReservedNodeNotFoundFault(inner) => {
649 Error::ReservedNodeNotFoundFault(inner)
650 }
651 crate::operation::accept_reserved_node_exchange::AcceptReservedNodeExchangeError::ReservedNodeOfferingNotFoundFault(inner) => {
652 Error::ReservedNodeOfferingNotFoundFault(inner)
653 }
654 crate::operation::accept_reserved_node_exchange::AcceptReservedNodeExchangeError::UnsupportedOperationFault(inner) => {
655 Error::UnsupportedOperationFault(inner)
656 }
657 crate::operation::accept_reserved_node_exchange::AcceptReservedNodeExchangeError::Unhandled(inner) => Error::Unhandled(inner),
658 }
659 }
660}
661impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_partner::AddPartnerError, R>> for Error
662where
663 R: Send + Sync + std::fmt::Debug + 'static,
664{
665 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_partner::AddPartnerError, R>) -> Self {
666 match err {
667 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
668 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
669 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
670 source: err.into(),
671 }),
672 }
673 }
674}
675impl From<crate::operation::add_partner::AddPartnerError> for Error {
676 fn from(err: crate::operation::add_partner::AddPartnerError) -> Self {
677 match err {
678 crate::operation::add_partner::AddPartnerError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
679 crate::operation::add_partner::AddPartnerError::PartnerNotFoundFault(inner) => Error::PartnerNotFoundFault(inner),
680 crate::operation::add_partner::AddPartnerError::UnauthorizedPartnerIntegrationFault(inner) => {
681 Error::UnauthorizedPartnerIntegrationFault(inner)
682 }
683 crate::operation::add_partner::AddPartnerError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
684 crate::operation::add_partner::AddPartnerError::Unhandled(inner) => Error::Unhandled(inner),
685 }
686 }
687}
688impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_data_share_consumer::AssociateDataShareConsumerError, R>>
689 for Error
690where
691 R: Send + Sync + std::fmt::Debug + 'static,
692{
693 fn from(
694 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::associate_data_share_consumer::AssociateDataShareConsumerError, R>,
695 ) -> Self {
696 match err {
697 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
698 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
699 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
700 source: err.into(),
701 }),
702 }
703 }
704}
705impl From<crate::operation::associate_data_share_consumer::AssociateDataShareConsumerError> for Error {
706 fn from(err: crate::operation::associate_data_share_consumer::AssociateDataShareConsumerError) -> Self {
707 match err {
708 crate::operation::associate_data_share_consumer::AssociateDataShareConsumerError::InvalidDataShareFault(inner) => {
709 Error::InvalidDataShareFault(inner)
710 }
711 crate::operation::associate_data_share_consumer::AssociateDataShareConsumerError::InvalidNamespaceFault(inner) => {
712 Error::InvalidNamespaceFault(inner)
713 }
714 crate::operation::associate_data_share_consumer::AssociateDataShareConsumerError::Unhandled(inner) => Error::Unhandled(inner),
715 }
716 }
717}
718impl<R>
719 From<
720 ::aws_smithy_runtime_api::client::result::SdkError<
721 crate::operation::authorize_cluster_security_group_ingress::AuthorizeClusterSecurityGroupIngressError,
722 R,
723 >,
724 > for Error
725where
726 R: Send + Sync + std::fmt::Debug + 'static,
727{
728 fn from(
729 err: ::aws_smithy_runtime_api::client::result::SdkError<
730 crate::operation::authorize_cluster_security_group_ingress::AuthorizeClusterSecurityGroupIngressError,
731 R,
732 >,
733 ) -> Self {
734 match err {
735 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
736 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
737 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
738 source: err.into(),
739 }),
740 }
741 }
742}
743impl From<crate::operation::authorize_cluster_security_group_ingress::AuthorizeClusterSecurityGroupIngressError> for Error {
744 fn from(err: crate::operation::authorize_cluster_security_group_ingress::AuthorizeClusterSecurityGroupIngressError) -> Self {
745 match err {
746 crate::operation::authorize_cluster_security_group_ingress::AuthorizeClusterSecurityGroupIngressError::AuthorizationAlreadyExistsFault(inner) => Error::AuthorizationAlreadyExistsFault(inner),
747 crate::operation::authorize_cluster_security_group_ingress::AuthorizeClusterSecurityGroupIngressError::AuthorizationQuotaExceededFault(inner) => Error::AuthorizationQuotaExceededFault(inner),
748 crate::operation::authorize_cluster_security_group_ingress::AuthorizeClusterSecurityGroupIngressError::ClusterSecurityGroupNotFoundFault(inner) => Error::ClusterSecurityGroupNotFoundFault(inner),
749 crate::operation::authorize_cluster_security_group_ingress::AuthorizeClusterSecurityGroupIngressError::InvalidClusterSecurityGroupStateFault(inner) => Error::InvalidClusterSecurityGroupStateFault(inner),
750 crate::operation::authorize_cluster_security_group_ingress::AuthorizeClusterSecurityGroupIngressError::Unhandled(inner) => Error::Unhandled(inner),
751 }
752 }
753}
754impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_data_share::AuthorizeDataShareError, R>> for Error
755where
756 R: Send + Sync + std::fmt::Debug + 'static,
757{
758 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_data_share::AuthorizeDataShareError, R>) -> 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::authorize_data_share::AuthorizeDataShareError> for Error {
769 fn from(err: crate::operation::authorize_data_share::AuthorizeDataShareError) -> Self {
770 match err {
771 crate::operation::authorize_data_share::AuthorizeDataShareError::InvalidDataShareFault(inner) => Error::InvalidDataShareFault(inner),
772 crate::operation::authorize_data_share::AuthorizeDataShareError::Unhandled(inner) => Error::Unhandled(inner),
773 }
774 }
775}
776impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_endpoint_access::AuthorizeEndpointAccessError, R>>
777 for Error
778where
779 R: Send + Sync + std::fmt::Debug + 'static,
780{
781 fn from(
782 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_endpoint_access::AuthorizeEndpointAccessError, R>,
783 ) -> Self {
784 match err {
785 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
786 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
787 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
788 source: err.into(),
789 }),
790 }
791 }
792}
793impl From<crate::operation::authorize_endpoint_access::AuthorizeEndpointAccessError> for Error {
794 fn from(err: crate::operation::authorize_endpoint_access::AuthorizeEndpointAccessError) -> Self {
795 match err {
796 crate::operation::authorize_endpoint_access::AuthorizeEndpointAccessError::ClusterNotFoundFault(inner) => {
797 Error::ClusterNotFoundFault(inner)
798 }
799 crate::operation::authorize_endpoint_access::AuthorizeEndpointAccessError::EndpointAuthorizationAlreadyExistsFault(inner) => {
800 Error::EndpointAuthorizationAlreadyExistsFault(inner)
801 }
802 crate::operation::authorize_endpoint_access::AuthorizeEndpointAccessError::EndpointAuthorizationsPerClusterLimitExceededFault(inner) => {
803 Error::EndpointAuthorizationsPerClusterLimitExceededFault(inner)
804 }
805 crate::operation::authorize_endpoint_access::AuthorizeEndpointAccessError::InvalidAuthorizationStateFault(inner) => {
806 Error::InvalidAuthorizationStateFault(inner)
807 }
808 crate::operation::authorize_endpoint_access::AuthorizeEndpointAccessError::InvalidClusterStateFault(inner) => {
809 Error::InvalidClusterStateFault(inner)
810 }
811 crate::operation::authorize_endpoint_access::AuthorizeEndpointAccessError::UnsupportedOperationFault(inner) => {
812 Error::UnsupportedOperationFault(inner)
813 }
814 crate::operation::authorize_endpoint_access::AuthorizeEndpointAccessError::Unhandled(inner) => Error::Unhandled(inner),
815 }
816 }
817}
818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessError, R>>
819 for Error
820where
821 R: Send + Sync + std::fmt::Debug + 'static,
822{
823 fn from(
824 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessError, R>,
825 ) -> Self {
826 match err {
827 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
828 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
829 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
830 source: err.into(),
831 }),
832 }
833 }
834}
835impl From<crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessError> for Error {
836 fn from(err: crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessError) -> Self {
837 match err {
838 crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessError::AuthorizationAlreadyExistsFault(inner) => {
839 Error::AuthorizationAlreadyExistsFault(inner)
840 }
841 crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessError::AuthorizationQuotaExceededFault(inner) => {
842 Error::AuthorizationQuotaExceededFault(inner)
843 }
844 crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessError::ClusterSnapshotNotFoundFault(inner) => {
845 Error::ClusterSnapshotNotFoundFault(inner)
846 }
847 crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessError::DependentServiceRequestThrottlingFault(inner) => {
848 Error::DependentServiceRequestThrottlingFault(inner)
849 }
850 crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessError::InvalidClusterSnapshotStateFault(inner) => {
851 Error::InvalidClusterSnapshotStateFault(inner)
852 }
853 crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
854 crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessError::UnsupportedOperationFault(inner) => {
855 Error::UnsupportedOperationFault(inner)
856 }
857 crate::operation::authorize_snapshot_access::AuthorizeSnapshotAccessError::Unhandled(inner) => Error::Unhandled(inner),
858 }
859 }
860}
861impl<R>
862 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_delete_cluster_snapshots::BatchDeleteClusterSnapshotsError, R>>
863 for Error
864where
865 R: Send + Sync + std::fmt::Debug + 'static,
866{
867 fn from(
868 err: ::aws_smithy_runtime_api::client::result::SdkError<
869 crate::operation::batch_delete_cluster_snapshots::BatchDeleteClusterSnapshotsError,
870 R,
871 >,
872 ) -> Self {
873 match err {
874 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
875 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
876 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
877 source: err.into(),
878 }),
879 }
880 }
881}
882impl From<crate::operation::batch_delete_cluster_snapshots::BatchDeleteClusterSnapshotsError> for Error {
883 fn from(err: crate::operation::batch_delete_cluster_snapshots::BatchDeleteClusterSnapshotsError) -> Self {
884 match err {
885 crate::operation::batch_delete_cluster_snapshots::BatchDeleteClusterSnapshotsError::BatchDeleteRequestSizeExceededFault(inner) => {
886 Error::BatchDeleteRequestSizeExceededFault(inner)
887 }
888 crate::operation::batch_delete_cluster_snapshots::BatchDeleteClusterSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
889 }
890 }
891}
892impl<R>
893 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::batch_modify_cluster_snapshots::BatchModifyClusterSnapshotsError, R>>
894 for Error
895where
896 R: Send + Sync + std::fmt::Debug + 'static,
897{
898 fn from(
899 err: ::aws_smithy_runtime_api::client::result::SdkError<
900 crate::operation::batch_modify_cluster_snapshots::BatchModifyClusterSnapshotsError,
901 R,
902 >,
903 ) -> Self {
904 match err {
905 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
906 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
907 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
908 source: err.into(),
909 }),
910 }
911 }
912}
913impl From<crate::operation::batch_modify_cluster_snapshots::BatchModifyClusterSnapshotsError> for Error {
914 fn from(err: crate::operation::batch_modify_cluster_snapshots::BatchModifyClusterSnapshotsError) -> Self {
915 match err {
916 crate::operation::batch_modify_cluster_snapshots::BatchModifyClusterSnapshotsError::BatchModifyClusterSnapshotsLimitExceededFault(
917 inner,
918 ) => Error::BatchModifyClusterSnapshotsLimitExceededFault(inner),
919 crate::operation::batch_modify_cluster_snapshots::BatchModifyClusterSnapshotsError::InvalidRetentionPeriodFault(inner) => {
920 Error::InvalidRetentionPeriodFault(inner)
921 }
922 crate::operation::batch_modify_cluster_snapshots::BatchModifyClusterSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
923 }
924 }
925}
926impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_resize::CancelResizeError, R>> for Error
927where
928 R: Send + Sync + std::fmt::Debug + 'static,
929{
930 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::cancel_resize::CancelResizeError, R>) -> Self {
931 match err {
932 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
933 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
934 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
935 source: err.into(),
936 }),
937 }
938 }
939}
940impl From<crate::operation::cancel_resize::CancelResizeError> for Error {
941 fn from(err: crate::operation::cancel_resize::CancelResizeError) -> Self {
942 match err {
943 crate::operation::cancel_resize::CancelResizeError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
944 crate::operation::cancel_resize::CancelResizeError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
945 crate::operation::cancel_resize::CancelResizeError::ResizeNotFoundFault(inner) => Error::ResizeNotFoundFault(inner),
946 crate::operation::cancel_resize::CancelResizeError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
947 crate::operation::cancel_resize::CancelResizeError::Unhandled(inner) => Error::Unhandled(inner),
948 }
949 }
950}
951impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_cluster_snapshot::CopyClusterSnapshotError, R>> for Error
952where
953 R: Send + Sync + std::fmt::Debug + 'static,
954{
955 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::copy_cluster_snapshot::CopyClusterSnapshotError, R>) -> Self {
956 match err {
957 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
958 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
959 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
960 source: err.into(),
961 }),
962 }
963 }
964}
965impl From<crate::operation::copy_cluster_snapshot::CopyClusterSnapshotError> for Error {
966 fn from(err: crate::operation::copy_cluster_snapshot::CopyClusterSnapshotError) -> Self {
967 match err {
968 crate::operation::copy_cluster_snapshot::CopyClusterSnapshotError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
969 crate::operation::copy_cluster_snapshot::CopyClusterSnapshotError::ClusterSnapshotAlreadyExistsFault(inner) => {
970 Error::ClusterSnapshotAlreadyExistsFault(inner)
971 }
972 crate::operation::copy_cluster_snapshot::CopyClusterSnapshotError::ClusterSnapshotNotFoundFault(inner) => {
973 Error::ClusterSnapshotNotFoundFault(inner)
974 }
975 crate::operation::copy_cluster_snapshot::CopyClusterSnapshotError::ClusterSnapshotQuotaExceededFault(inner) => {
976 Error::ClusterSnapshotQuotaExceededFault(inner)
977 }
978 crate::operation::copy_cluster_snapshot::CopyClusterSnapshotError::InvalidClusterSnapshotStateFault(inner) => {
979 Error::InvalidClusterSnapshotStateFault(inner)
980 }
981 crate::operation::copy_cluster_snapshot::CopyClusterSnapshotError::InvalidRetentionPeriodFault(inner) => {
982 Error::InvalidRetentionPeriodFault(inner)
983 }
984 crate::operation::copy_cluster_snapshot::CopyClusterSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
985 }
986 }
987}
988impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_authentication_profile::CreateAuthenticationProfileError, R>>
989 for Error
990where
991 R: Send + Sync + std::fmt::Debug + 'static,
992{
993 fn from(
994 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_authentication_profile::CreateAuthenticationProfileError, R>,
995 ) -> Self {
996 match err {
997 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
998 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
999 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1000 source: err.into(),
1001 }),
1002 }
1003 }
1004}
1005impl From<crate::operation::create_authentication_profile::CreateAuthenticationProfileError> for Error {
1006 fn from(err: crate::operation::create_authentication_profile::CreateAuthenticationProfileError) -> Self {
1007 match err {
1008 crate::operation::create_authentication_profile::CreateAuthenticationProfileError::AuthenticationProfileAlreadyExistsFault(inner) => {
1009 Error::AuthenticationProfileAlreadyExistsFault(inner)
1010 }
1011 crate::operation::create_authentication_profile::CreateAuthenticationProfileError::AuthenticationProfileQuotaExceededFault(inner) => {
1012 Error::AuthenticationProfileQuotaExceededFault(inner)
1013 }
1014 crate::operation::create_authentication_profile::CreateAuthenticationProfileError::InvalidAuthenticationProfileRequestFault(inner) => {
1015 Error::InvalidAuthenticationProfileRequestFault(inner)
1016 }
1017 crate::operation::create_authentication_profile::CreateAuthenticationProfileError::Unhandled(inner) => Error::Unhandled(inner),
1018 }
1019 }
1020}
1021impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>> for Error
1022where
1023 R: Send + Sync + std::fmt::Debug + 'static,
1024{
1025 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>) -> Self {
1026 match err {
1027 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1028 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1029 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1030 source: err.into(),
1031 }),
1032 }
1033 }
1034}
1035impl From<crate::operation::create_cluster::CreateClusterError> for Error {
1036 fn from(err: crate::operation::create_cluster::CreateClusterError) -> Self {
1037 match err {
1038 crate::operation::create_cluster::CreateClusterError::ClusterAlreadyExistsFault(inner) => Error::ClusterAlreadyExistsFault(inner),
1039 crate::operation::create_cluster::CreateClusterError::ClusterParameterGroupNotFoundFault(inner) => {
1040 Error::ClusterParameterGroupNotFoundFault(inner)
1041 }
1042 crate::operation::create_cluster::CreateClusterError::ClusterQuotaExceededFault(inner) => Error::ClusterQuotaExceededFault(inner),
1043 crate::operation::create_cluster::CreateClusterError::ClusterSecurityGroupNotFoundFault(inner) => {
1044 Error::ClusterSecurityGroupNotFoundFault(inner)
1045 }
1046 crate::operation::create_cluster::CreateClusterError::ClusterSubnetGroupNotFoundFault(inner) => {
1047 Error::ClusterSubnetGroupNotFoundFault(inner)
1048 }
1049 crate::operation::create_cluster::CreateClusterError::DependentServiceAccessDeniedFault(inner) => {
1050 Error::DependentServiceAccessDeniedFault(inner)
1051 }
1052 crate::operation::create_cluster::CreateClusterError::DependentServiceRequestThrottlingFault(inner) => {
1053 Error::DependentServiceRequestThrottlingFault(inner)
1054 }
1055 crate::operation::create_cluster::CreateClusterError::DependentServiceUnavailableFault(inner) => {
1056 Error::DependentServiceUnavailableFault(inner)
1057 }
1058 crate::operation::create_cluster::CreateClusterError::HsmClientCertificateNotFoundFault(inner) => {
1059 Error::HsmClientCertificateNotFoundFault(inner)
1060 }
1061 crate::operation::create_cluster::CreateClusterError::HsmConfigurationNotFoundFault(inner) => Error::HsmConfigurationNotFoundFault(inner),
1062 crate::operation::create_cluster::CreateClusterError::InsufficientClusterCapacityFault(inner) => {
1063 Error::InsufficientClusterCapacityFault(inner)
1064 }
1065 crate::operation::create_cluster::CreateClusterError::InvalidClusterSubnetGroupStateFault(inner) => {
1066 Error::InvalidClusterSubnetGroupStateFault(inner)
1067 }
1068 crate::operation::create_cluster::CreateClusterError::InvalidClusterTrackFault(inner) => Error::InvalidClusterTrackFault(inner),
1069 crate::operation::create_cluster::CreateClusterError::InvalidElasticIpFault(inner) => Error::InvalidElasticIpFault(inner),
1070 crate::operation::create_cluster::CreateClusterError::InvalidRetentionPeriodFault(inner) => Error::InvalidRetentionPeriodFault(inner),
1071 crate::operation::create_cluster::CreateClusterError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
1072 crate::operation::create_cluster::CreateClusterError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
1073 crate::operation::create_cluster::CreateClusterError::InvalidVpcNetworkStateFault(inner) => Error::InvalidVpcNetworkStateFault(inner),
1074 crate::operation::create_cluster::CreateClusterError::Ipv6CidrBlockNotFoundFault(inner) => Error::Ipv6CidrBlockNotFoundFault(inner),
1075 crate::operation::create_cluster::CreateClusterError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1076 crate::operation::create_cluster::CreateClusterError::NumberOfNodesPerClusterLimitExceededFault(inner) => {
1077 Error::NumberOfNodesPerClusterLimitExceededFault(inner)
1078 }
1079 crate::operation::create_cluster::CreateClusterError::NumberOfNodesQuotaExceededFault(inner) => {
1080 Error::NumberOfNodesQuotaExceededFault(inner)
1081 }
1082 crate::operation::create_cluster::CreateClusterError::RedshiftIdcApplicationNotExistsFault(inner) => {
1083 Error::RedshiftIdcApplicationNotExistsFault(inner)
1084 }
1085 crate::operation::create_cluster::CreateClusterError::SnapshotScheduleNotFoundFault(inner) => Error::SnapshotScheduleNotFoundFault(inner),
1086 crate::operation::create_cluster::CreateClusterError::TagLimitExceededFault(inner) => Error::TagLimitExceededFault(inner),
1087 crate::operation::create_cluster::CreateClusterError::UnauthorizedOperation(inner) => Error::UnauthorizedOperation(inner),
1088 crate::operation::create_cluster::CreateClusterError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
1089 crate::operation::create_cluster::CreateClusterError::Unhandled(inner) => Error::Unhandled(inner),
1090 }
1091 }
1092}
1093impl<R>
1094 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster_parameter_group::CreateClusterParameterGroupError, R>>
1095 for Error
1096where
1097 R: Send + Sync + std::fmt::Debug + 'static,
1098{
1099 fn from(
1100 err: ::aws_smithy_runtime_api::client::result::SdkError<
1101 crate::operation::create_cluster_parameter_group::CreateClusterParameterGroupError,
1102 R,
1103 >,
1104 ) -> Self {
1105 match err {
1106 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1107 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1108 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1109 source: err.into(),
1110 }),
1111 }
1112 }
1113}
1114impl From<crate::operation::create_cluster_parameter_group::CreateClusterParameterGroupError> for Error {
1115 fn from(err: crate::operation::create_cluster_parameter_group::CreateClusterParameterGroupError) -> Self {
1116 match err {
1117 crate::operation::create_cluster_parameter_group::CreateClusterParameterGroupError::ClusterParameterGroupAlreadyExistsFault(inner) => {
1118 Error::ClusterParameterGroupAlreadyExistsFault(inner)
1119 }
1120 crate::operation::create_cluster_parameter_group::CreateClusterParameterGroupError::ClusterParameterGroupQuotaExceededFault(inner) => {
1121 Error::ClusterParameterGroupQuotaExceededFault(inner)
1122 }
1123 crate::operation::create_cluster_parameter_group::CreateClusterParameterGroupError::InvalidTagFault(inner) => {
1124 Error::InvalidTagFault(inner)
1125 }
1126 crate::operation::create_cluster_parameter_group::CreateClusterParameterGroupError::TagLimitExceededFault(inner) => {
1127 Error::TagLimitExceededFault(inner)
1128 }
1129 crate::operation::create_cluster_parameter_group::CreateClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
1130 }
1131 }
1132}
1133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster_security_group::CreateClusterSecurityGroupError, R>>
1134 for Error
1135where
1136 R: Send + Sync + std::fmt::Debug + 'static,
1137{
1138 fn from(
1139 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster_security_group::CreateClusterSecurityGroupError, R>,
1140 ) -> Self {
1141 match err {
1142 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1143 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1144 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1145 source: err.into(),
1146 }),
1147 }
1148 }
1149}
1150impl From<crate::operation::create_cluster_security_group::CreateClusterSecurityGroupError> for Error {
1151 fn from(err: crate::operation::create_cluster_security_group::CreateClusterSecurityGroupError) -> Self {
1152 match err {
1153 crate::operation::create_cluster_security_group::CreateClusterSecurityGroupError::ClusterSecurityGroupAlreadyExistsFault(inner) => {
1154 Error::ClusterSecurityGroupAlreadyExistsFault(inner)
1155 }
1156 crate::operation::create_cluster_security_group::CreateClusterSecurityGroupError::ClusterSecurityGroupQuotaExceededFault(inner) => {
1157 Error::ClusterSecurityGroupQuotaExceededFault(inner)
1158 }
1159 crate::operation::create_cluster_security_group::CreateClusterSecurityGroupError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
1160 crate::operation::create_cluster_security_group::CreateClusterSecurityGroupError::TagLimitExceededFault(inner) => {
1161 Error::TagLimitExceededFault(inner)
1162 }
1163 crate::operation::create_cluster_security_group::CreateClusterSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
1164 }
1165 }
1166}
1167impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster_snapshot::CreateClusterSnapshotError, R>> for Error
1168where
1169 R: Send + Sync + std::fmt::Debug + 'static,
1170{
1171 fn from(
1172 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster_snapshot::CreateClusterSnapshotError, R>,
1173 ) -> Self {
1174 match err {
1175 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1176 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1177 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1178 source: err.into(),
1179 }),
1180 }
1181 }
1182}
1183impl From<crate::operation::create_cluster_snapshot::CreateClusterSnapshotError> for Error {
1184 fn from(err: crate::operation::create_cluster_snapshot::CreateClusterSnapshotError) -> Self {
1185 match err {
1186 crate::operation::create_cluster_snapshot::CreateClusterSnapshotError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
1187 crate::operation::create_cluster_snapshot::CreateClusterSnapshotError::ClusterSnapshotAlreadyExistsFault(inner) => {
1188 Error::ClusterSnapshotAlreadyExistsFault(inner)
1189 }
1190 crate::operation::create_cluster_snapshot::CreateClusterSnapshotError::ClusterSnapshotQuotaExceededFault(inner) => {
1191 Error::ClusterSnapshotQuotaExceededFault(inner)
1192 }
1193 crate::operation::create_cluster_snapshot::CreateClusterSnapshotError::InvalidClusterStateFault(inner) => {
1194 Error::InvalidClusterStateFault(inner)
1195 }
1196 crate::operation::create_cluster_snapshot::CreateClusterSnapshotError::InvalidRetentionPeriodFault(inner) => {
1197 Error::InvalidRetentionPeriodFault(inner)
1198 }
1199 crate::operation::create_cluster_snapshot::CreateClusterSnapshotError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
1200 crate::operation::create_cluster_snapshot::CreateClusterSnapshotError::TagLimitExceededFault(inner) => {
1201 Error::TagLimitExceededFault(inner)
1202 }
1203 crate::operation::create_cluster_snapshot::CreateClusterSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
1204 }
1205 }
1206}
1207impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError, R>>
1208 for Error
1209where
1210 R: Send + Sync + std::fmt::Debug + 'static,
1211{
1212 fn from(
1213 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError, R>,
1214 ) -> Self {
1215 match err {
1216 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1217 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1218 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1219 source: err.into(),
1220 }),
1221 }
1222 }
1223}
1224impl From<crate::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError> for Error {
1225 fn from(err: crate::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError) -> Self {
1226 match err {
1227 crate::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError::ClusterSubnetGroupAlreadyExistsFault(inner) => {
1228 Error::ClusterSubnetGroupAlreadyExistsFault(inner)
1229 }
1230 crate::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError::ClusterSubnetGroupQuotaExceededFault(inner) => {
1231 Error::ClusterSubnetGroupQuotaExceededFault(inner)
1232 }
1233 crate::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError::ClusterSubnetQuotaExceededFault(inner) => {
1234 Error::ClusterSubnetQuotaExceededFault(inner)
1235 }
1236 crate::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError::DependentServiceRequestThrottlingFault(inner) => {
1237 Error::DependentServiceRequestThrottlingFault(inner)
1238 }
1239 crate::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
1240 crate::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
1241 crate::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError::TagLimitExceededFault(inner) => {
1242 Error::TagLimitExceededFault(inner)
1243 }
1244 crate::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError::UnauthorizedOperation(inner) => {
1245 Error::UnauthorizedOperation(inner)
1246 }
1247 crate::operation::create_cluster_subnet_group::CreateClusterSubnetGroupError::Unhandled(inner) => Error::Unhandled(inner),
1248 }
1249 }
1250}
1251impl<R>
1252 From<
1253 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError, R>,
1254 > for Error
1255where
1256 R: Send + Sync + std::fmt::Debug + 'static,
1257{
1258 fn from(
1259 err: ::aws_smithy_runtime_api::client::result::SdkError<
1260 crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError,
1261 R,
1262 >,
1263 ) -> Self {
1264 match err {
1265 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1266 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1267 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1268 source: err.into(),
1269 }),
1270 }
1271 }
1272}
1273impl From<crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError> for Error {
1274 fn from(err: crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError) -> Self {
1275 match err {
1276 crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError::ClusterNotFoundFault(inner) => {
1277 Error::ClusterNotFoundFault(inner)
1278 }
1279 crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError::CustomCnameAssociationFault(inner) => {
1280 Error::CustomCnameAssociationFault(inner)
1281 }
1282 crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError::UnsupportedOperationFault(inner) => {
1283 Error::UnsupportedOperationFault(inner)
1284 }
1285 crate::operation::create_custom_domain_association::CreateCustomDomainAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1286 }
1287 }
1288}
1289impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_access::CreateEndpointAccessError, R>> for Error
1290where
1291 R: Send + Sync + std::fmt::Debug + 'static,
1292{
1293 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_endpoint_access::CreateEndpointAccessError, R>) -> Self {
1294 match err {
1295 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1296 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1297 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1298 source: err.into(),
1299 }),
1300 }
1301 }
1302}
1303impl From<crate::operation::create_endpoint_access::CreateEndpointAccessError> for Error {
1304 fn from(err: crate::operation::create_endpoint_access::CreateEndpointAccessError) -> Self {
1305 match err {
1306 crate::operation::create_endpoint_access::CreateEndpointAccessError::AccessToClusterDeniedFault(inner) => {
1307 Error::AccessToClusterDeniedFault(inner)
1308 }
1309 crate::operation::create_endpoint_access::CreateEndpointAccessError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
1310 crate::operation::create_endpoint_access::CreateEndpointAccessError::ClusterSubnetGroupNotFoundFault(inner) => {
1311 Error::ClusterSubnetGroupNotFoundFault(inner)
1312 }
1313 crate::operation::create_endpoint_access::CreateEndpointAccessError::EndpointAlreadyExistsFault(inner) => {
1314 Error::EndpointAlreadyExistsFault(inner)
1315 }
1316 crate::operation::create_endpoint_access::CreateEndpointAccessError::EndpointsPerAuthorizationLimitExceededFault(inner) => {
1317 Error::EndpointsPerAuthorizationLimitExceededFault(inner)
1318 }
1319 crate::operation::create_endpoint_access::CreateEndpointAccessError::EndpointsPerClusterLimitExceededFault(inner) => {
1320 Error::EndpointsPerClusterLimitExceededFault(inner)
1321 }
1322 crate::operation::create_endpoint_access::CreateEndpointAccessError::InvalidClusterSecurityGroupStateFault(inner) => {
1323 Error::InvalidClusterSecurityGroupStateFault(inner)
1324 }
1325 crate::operation::create_endpoint_access::CreateEndpointAccessError::InvalidClusterStateFault(inner) => {
1326 Error::InvalidClusterStateFault(inner)
1327 }
1328 crate::operation::create_endpoint_access::CreateEndpointAccessError::UnauthorizedOperation(inner) => Error::UnauthorizedOperation(inner),
1329 crate::operation::create_endpoint_access::CreateEndpointAccessError::UnsupportedOperationFault(inner) => {
1330 Error::UnsupportedOperationFault(inner)
1331 }
1332 crate::operation::create_endpoint_access::CreateEndpointAccessError::Unhandled(inner) => Error::Unhandled(inner),
1333 }
1334 }
1335}
1336impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_subscription::CreateEventSubscriptionError, R>>
1337 for Error
1338where
1339 R: Send + Sync + std::fmt::Debug + 'static,
1340{
1341 fn from(
1342 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_event_subscription::CreateEventSubscriptionError, R>,
1343 ) -> Self {
1344 match err {
1345 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1346 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1347 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1348 source: err.into(),
1349 }),
1350 }
1351 }
1352}
1353impl From<crate::operation::create_event_subscription::CreateEventSubscriptionError> for Error {
1354 fn from(err: crate::operation::create_event_subscription::CreateEventSubscriptionError) -> Self {
1355 match err {
1356 crate::operation::create_event_subscription::CreateEventSubscriptionError::EventSubscriptionQuotaExceededFault(inner) => {
1357 Error::EventSubscriptionQuotaExceededFault(inner)
1358 }
1359 crate::operation::create_event_subscription::CreateEventSubscriptionError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
1360 crate::operation::create_event_subscription::CreateEventSubscriptionError::SnsInvalidTopicFault(inner) => {
1361 Error::SnsInvalidTopicFault(inner)
1362 }
1363 crate::operation::create_event_subscription::CreateEventSubscriptionError::SnsNoAuthorizationFault(inner) => {
1364 Error::SnsNoAuthorizationFault(inner)
1365 }
1366 crate::operation::create_event_subscription::CreateEventSubscriptionError::SnsTopicArnNotFoundFault(inner) => {
1367 Error::SnsTopicArnNotFoundFault(inner)
1368 }
1369 crate::operation::create_event_subscription::CreateEventSubscriptionError::SourceNotFoundFault(inner) => {
1370 Error::SourceNotFoundFault(inner)
1371 }
1372 crate::operation::create_event_subscription::CreateEventSubscriptionError::SubscriptionAlreadyExistFault(inner) => {
1373 Error::SubscriptionAlreadyExistFault(inner)
1374 }
1375 crate::operation::create_event_subscription::CreateEventSubscriptionError::SubscriptionCategoryNotFoundFault(inner) => {
1376 Error::SubscriptionCategoryNotFoundFault(inner)
1377 }
1378 crate::operation::create_event_subscription::CreateEventSubscriptionError::SubscriptionEventIdNotFoundFault(inner) => {
1379 Error::SubscriptionEventIdNotFoundFault(inner)
1380 }
1381 crate::operation::create_event_subscription::CreateEventSubscriptionError::SubscriptionSeverityNotFoundFault(inner) => {
1382 Error::SubscriptionSeverityNotFoundFault(inner)
1383 }
1384 crate::operation::create_event_subscription::CreateEventSubscriptionError::TagLimitExceededFault(inner) => {
1385 Error::TagLimitExceededFault(inner)
1386 }
1387 crate::operation::create_event_subscription::CreateEventSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
1388 }
1389 }
1390}
1391impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hsm_client_certificate::CreateHsmClientCertificateError, R>>
1392 for Error
1393where
1394 R: Send + Sync + std::fmt::Debug + 'static,
1395{
1396 fn from(
1397 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hsm_client_certificate::CreateHsmClientCertificateError, R>,
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::create_hsm_client_certificate::CreateHsmClientCertificateError> for Error {
1409 fn from(err: crate::operation::create_hsm_client_certificate::CreateHsmClientCertificateError) -> Self {
1410 match err {
1411 crate::operation::create_hsm_client_certificate::CreateHsmClientCertificateError::HsmClientCertificateAlreadyExistsFault(inner) => {
1412 Error::HsmClientCertificateAlreadyExistsFault(inner)
1413 }
1414 crate::operation::create_hsm_client_certificate::CreateHsmClientCertificateError::HsmClientCertificateQuotaExceededFault(inner) => {
1415 Error::HsmClientCertificateQuotaExceededFault(inner)
1416 }
1417 crate::operation::create_hsm_client_certificate::CreateHsmClientCertificateError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
1418 crate::operation::create_hsm_client_certificate::CreateHsmClientCertificateError::TagLimitExceededFault(inner) => {
1419 Error::TagLimitExceededFault(inner)
1420 }
1421 crate::operation::create_hsm_client_certificate::CreateHsmClientCertificateError::Unhandled(inner) => Error::Unhandled(inner),
1422 }
1423 }
1424}
1425impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hsm_configuration::CreateHsmConfigurationError, R>> for Error
1426where
1427 R: Send + Sync + std::fmt::Debug + 'static,
1428{
1429 fn from(
1430 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_hsm_configuration::CreateHsmConfigurationError, R>,
1431 ) -> Self {
1432 match err {
1433 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1434 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1435 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1436 source: err.into(),
1437 }),
1438 }
1439 }
1440}
1441impl From<crate::operation::create_hsm_configuration::CreateHsmConfigurationError> for Error {
1442 fn from(err: crate::operation::create_hsm_configuration::CreateHsmConfigurationError) -> Self {
1443 match err {
1444 crate::operation::create_hsm_configuration::CreateHsmConfigurationError::HsmConfigurationAlreadyExistsFault(inner) => {
1445 Error::HsmConfigurationAlreadyExistsFault(inner)
1446 }
1447 crate::operation::create_hsm_configuration::CreateHsmConfigurationError::HsmConfigurationQuotaExceededFault(inner) => {
1448 Error::HsmConfigurationQuotaExceededFault(inner)
1449 }
1450 crate::operation::create_hsm_configuration::CreateHsmConfigurationError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
1451 crate::operation::create_hsm_configuration::CreateHsmConfigurationError::TagLimitExceededFault(inner) => {
1452 Error::TagLimitExceededFault(inner)
1453 }
1454 crate::operation::create_hsm_configuration::CreateHsmConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
1455 }
1456 }
1457}
1458impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_integration::CreateIntegrationError, R>> for Error
1459where
1460 R: Send + Sync + std::fmt::Debug + 'static,
1461{
1462 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_integration::CreateIntegrationError, R>) -> Self {
1463 match err {
1464 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1465 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1466 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1467 source: err.into(),
1468 }),
1469 }
1470 }
1471}
1472impl From<crate::operation::create_integration::CreateIntegrationError> for Error {
1473 fn from(err: crate::operation::create_integration::CreateIntegrationError) -> Self {
1474 match err {
1475 crate::operation::create_integration::CreateIntegrationError::IntegrationAlreadyExistsFault(inner) => {
1476 Error::IntegrationAlreadyExistsFault(inner)
1477 }
1478 crate::operation::create_integration::CreateIntegrationError::IntegrationConflictOperationFault(inner) => {
1479 Error::IntegrationConflictOperationFault(inner)
1480 }
1481 crate::operation::create_integration::CreateIntegrationError::IntegrationQuotaExceededFault(inner) => {
1482 Error::IntegrationQuotaExceededFault(inner)
1483 }
1484 crate::operation::create_integration::CreateIntegrationError::IntegrationSourceNotFoundFault(inner) => {
1485 Error::IntegrationSourceNotFoundFault(inner)
1486 }
1487 crate::operation::create_integration::CreateIntegrationError::IntegrationTargetNotFoundFault(inner) => {
1488 Error::IntegrationTargetNotFoundFault(inner)
1489 }
1490 crate::operation::create_integration::CreateIntegrationError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
1491 crate::operation::create_integration::CreateIntegrationError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
1492 crate::operation::create_integration::CreateIntegrationError::TagLimitExceededFault(inner) => Error::TagLimitExceededFault(inner),
1493 crate::operation::create_integration::CreateIntegrationError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
1494 crate::operation::create_integration::CreateIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
1495 }
1496 }
1497}
1498impl<R>
1499 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_redshift_idc_application::CreateRedshiftIdcApplicationError, R>>
1500 for Error
1501where
1502 R: Send + Sync + std::fmt::Debug + 'static,
1503{
1504 fn from(
1505 err: ::aws_smithy_runtime_api::client::result::SdkError<
1506 crate::operation::create_redshift_idc_application::CreateRedshiftIdcApplicationError,
1507 R,
1508 >,
1509 ) -> Self {
1510 match err {
1511 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1512 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1513 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1514 source: err.into(),
1515 }),
1516 }
1517 }
1518}
1519impl From<crate::operation::create_redshift_idc_application::CreateRedshiftIdcApplicationError> for Error {
1520 fn from(err: crate::operation::create_redshift_idc_application::CreateRedshiftIdcApplicationError) -> Self {
1521 match err {
1522 crate::operation::create_redshift_idc_application::CreateRedshiftIdcApplicationError::DependentServiceAccessDeniedFault(inner) => {
1523 Error::DependentServiceAccessDeniedFault(inner)
1524 }
1525 crate::operation::create_redshift_idc_application::CreateRedshiftIdcApplicationError::DependentServiceUnavailableFault(inner) => {
1526 Error::DependentServiceUnavailableFault(inner)
1527 }
1528 crate::operation::create_redshift_idc_application::CreateRedshiftIdcApplicationError::InvalidTagFault(inner) => {
1529 Error::InvalidTagFault(inner)
1530 }
1531 crate::operation::create_redshift_idc_application::CreateRedshiftIdcApplicationError::RedshiftIdcApplicationAlreadyExistsFault(inner) => {
1532 Error::RedshiftIdcApplicationAlreadyExistsFault(inner)
1533 }
1534 crate::operation::create_redshift_idc_application::CreateRedshiftIdcApplicationError::RedshiftIdcApplicationQuotaExceededFault(inner) => {
1535 Error::RedshiftIdcApplicationQuotaExceededFault(inner)
1536 }
1537 crate::operation::create_redshift_idc_application::CreateRedshiftIdcApplicationError::TagLimitExceededFault(inner) => {
1538 Error::TagLimitExceededFault(inner)
1539 }
1540 crate::operation::create_redshift_idc_application::CreateRedshiftIdcApplicationError::UnsupportedOperationFault(inner) => {
1541 Error::UnsupportedOperationFault(inner)
1542 }
1543 crate::operation::create_redshift_idc_application::CreateRedshiftIdcApplicationError::Unhandled(inner) => Error::Unhandled(inner),
1544 }
1545 }
1546}
1547impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scheduled_action::CreateScheduledActionError, R>> for Error
1548where
1549 R: Send + Sync + std::fmt::Debug + 'static,
1550{
1551 fn from(
1552 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_scheduled_action::CreateScheduledActionError, R>,
1553 ) -> Self {
1554 match err {
1555 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1556 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1557 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1558 source: err.into(),
1559 }),
1560 }
1561 }
1562}
1563impl From<crate::operation::create_scheduled_action::CreateScheduledActionError> for Error {
1564 fn from(err: crate::operation::create_scheduled_action::CreateScheduledActionError) -> Self {
1565 match err {
1566 crate::operation::create_scheduled_action::CreateScheduledActionError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
1567 crate::operation::create_scheduled_action::CreateScheduledActionError::InvalidScheduledActionFault(inner) => {
1568 Error::InvalidScheduledActionFault(inner)
1569 }
1570 crate::operation::create_scheduled_action::CreateScheduledActionError::InvalidScheduleFault(inner) => Error::InvalidScheduleFault(inner),
1571 crate::operation::create_scheduled_action::CreateScheduledActionError::ScheduledActionAlreadyExistsFault(inner) => {
1572 Error::ScheduledActionAlreadyExistsFault(inner)
1573 }
1574 crate::operation::create_scheduled_action::CreateScheduledActionError::ScheduledActionQuotaExceededFault(inner) => {
1575 Error::ScheduledActionQuotaExceededFault(inner)
1576 }
1577 crate::operation::create_scheduled_action::CreateScheduledActionError::ScheduledActionTypeUnsupportedFault(inner) => {
1578 Error::ScheduledActionTypeUnsupportedFault(inner)
1579 }
1580 crate::operation::create_scheduled_action::CreateScheduledActionError::UnauthorizedOperation(inner) => {
1581 Error::UnauthorizedOperation(inner)
1582 }
1583 crate::operation::create_scheduled_action::CreateScheduledActionError::UnsupportedOperationFault(inner) => {
1584 Error::UnsupportedOperationFault(inner)
1585 }
1586 crate::operation::create_scheduled_action::CreateScheduledActionError::Unhandled(inner) => Error::Unhandled(inner),
1587 }
1588 }
1589}
1590impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot_copy_grant::CreateSnapshotCopyGrantError, R>>
1591 for Error
1592where
1593 R: Send + Sync + std::fmt::Debug + 'static,
1594{
1595 fn from(
1596 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot_copy_grant::CreateSnapshotCopyGrantError, R>,
1597 ) -> Self {
1598 match err {
1599 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1600 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1601 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1602 source: err.into(),
1603 }),
1604 }
1605 }
1606}
1607impl From<crate::operation::create_snapshot_copy_grant::CreateSnapshotCopyGrantError> for Error {
1608 fn from(err: crate::operation::create_snapshot_copy_grant::CreateSnapshotCopyGrantError) -> Self {
1609 match err {
1610 crate::operation::create_snapshot_copy_grant::CreateSnapshotCopyGrantError::DependentServiceRequestThrottlingFault(inner) => {
1611 Error::DependentServiceRequestThrottlingFault(inner)
1612 }
1613 crate::operation::create_snapshot_copy_grant::CreateSnapshotCopyGrantError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
1614 crate::operation::create_snapshot_copy_grant::CreateSnapshotCopyGrantError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1615 crate::operation::create_snapshot_copy_grant::CreateSnapshotCopyGrantError::SnapshotCopyGrantAlreadyExistsFault(inner) => {
1616 Error::SnapshotCopyGrantAlreadyExistsFault(inner)
1617 }
1618 crate::operation::create_snapshot_copy_grant::CreateSnapshotCopyGrantError::SnapshotCopyGrantQuotaExceededFault(inner) => {
1619 Error::SnapshotCopyGrantQuotaExceededFault(inner)
1620 }
1621 crate::operation::create_snapshot_copy_grant::CreateSnapshotCopyGrantError::TagLimitExceededFault(inner) => {
1622 Error::TagLimitExceededFault(inner)
1623 }
1624 crate::operation::create_snapshot_copy_grant::CreateSnapshotCopyGrantError::Unhandled(inner) => Error::Unhandled(inner),
1625 }
1626 }
1627}
1628impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot_schedule::CreateSnapshotScheduleError, R>> for Error
1629where
1630 R: Send + Sync + std::fmt::Debug + 'static,
1631{
1632 fn from(
1633 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_snapshot_schedule::CreateSnapshotScheduleError, R>,
1634 ) -> Self {
1635 match err {
1636 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1637 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1638 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1639 source: err.into(),
1640 }),
1641 }
1642 }
1643}
1644impl From<crate::operation::create_snapshot_schedule::CreateSnapshotScheduleError> for Error {
1645 fn from(err: crate::operation::create_snapshot_schedule::CreateSnapshotScheduleError) -> Self {
1646 match err {
1647 crate::operation::create_snapshot_schedule::CreateSnapshotScheduleError::InvalidScheduleFault(inner) => {
1648 Error::InvalidScheduleFault(inner)
1649 }
1650 crate::operation::create_snapshot_schedule::CreateSnapshotScheduleError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
1651 crate::operation::create_snapshot_schedule::CreateSnapshotScheduleError::ScheduleDefinitionTypeUnsupportedFault(inner) => {
1652 Error::ScheduleDefinitionTypeUnsupportedFault(inner)
1653 }
1654 crate::operation::create_snapshot_schedule::CreateSnapshotScheduleError::SnapshotScheduleAlreadyExistsFault(inner) => {
1655 Error::SnapshotScheduleAlreadyExistsFault(inner)
1656 }
1657 crate::operation::create_snapshot_schedule::CreateSnapshotScheduleError::SnapshotScheduleQuotaExceededFault(inner) => {
1658 Error::SnapshotScheduleQuotaExceededFault(inner)
1659 }
1660 crate::operation::create_snapshot_schedule::CreateSnapshotScheduleError::TagLimitExceededFault(inner) => {
1661 Error::TagLimitExceededFault(inner)
1662 }
1663 crate::operation::create_snapshot_schedule::CreateSnapshotScheduleError::Unhandled(inner) => Error::Unhandled(inner),
1664 }
1665 }
1666}
1667impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>> for Error
1668where
1669 R: Send + Sync + std::fmt::Debug + 'static,
1670{
1671 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_tags::CreateTagsError, R>) -> Self {
1672 match err {
1673 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1674 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1675 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1676 source: err.into(),
1677 }),
1678 }
1679 }
1680}
1681impl From<crate::operation::create_tags::CreateTagsError> for Error {
1682 fn from(err: crate::operation::create_tags::CreateTagsError) -> Self {
1683 match err {
1684 crate::operation::create_tags::CreateTagsError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
1685 crate::operation::create_tags::CreateTagsError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
1686 crate::operation::create_tags::CreateTagsError::ResourceNotFoundFault(inner) => Error::ResourceNotFoundFault(inner),
1687 crate::operation::create_tags::CreateTagsError::TagLimitExceededFault(inner) => Error::TagLimitExceededFault(inner),
1688 crate::operation::create_tags::CreateTagsError::Unhandled(inner) => Error::Unhandled(inner),
1689 }
1690 }
1691}
1692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_usage_limit::CreateUsageLimitError, R>> for Error
1693where
1694 R: Send + Sync + std::fmt::Debug + 'static,
1695{
1696 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_usage_limit::CreateUsageLimitError, R>) -> Self {
1697 match err {
1698 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1699 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1700 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1701 source: err.into(),
1702 }),
1703 }
1704 }
1705}
1706impl From<crate::operation::create_usage_limit::CreateUsageLimitError> for Error {
1707 fn from(err: crate::operation::create_usage_limit::CreateUsageLimitError) -> Self {
1708 match err {
1709 crate::operation::create_usage_limit::CreateUsageLimitError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
1710 crate::operation::create_usage_limit::CreateUsageLimitError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
1711 crate::operation::create_usage_limit::CreateUsageLimitError::InvalidUsageLimitFault(inner) => Error::InvalidUsageLimitFault(inner),
1712 crate::operation::create_usage_limit::CreateUsageLimitError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
1713 crate::operation::create_usage_limit::CreateUsageLimitError::TagLimitExceededFault(inner) => Error::TagLimitExceededFault(inner),
1714 crate::operation::create_usage_limit::CreateUsageLimitError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
1715 crate::operation::create_usage_limit::CreateUsageLimitError::UsageLimitAlreadyExistsFault(inner) => {
1716 Error::UsageLimitAlreadyExistsFault(inner)
1717 }
1718 crate::operation::create_usage_limit::CreateUsageLimitError::Unhandled(inner) => Error::Unhandled(inner),
1719 }
1720 }
1721}
1722impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deauthorize_data_share::DeauthorizeDataShareError, R>> for Error
1723where
1724 R: Send + Sync + std::fmt::Debug + 'static,
1725{
1726 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deauthorize_data_share::DeauthorizeDataShareError, R>) -> Self {
1727 match err {
1728 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1729 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1730 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1731 source: err.into(),
1732 }),
1733 }
1734 }
1735}
1736impl From<crate::operation::deauthorize_data_share::DeauthorizeDataShareError> for Error {
1737 fn from(err: crate::operation::deauthorize_data_share::DeauthorizeDataShareError) -> Self {
1738 match err {
1739 crate::operation::deauthorize_data_share::DeauthorizeDataShareError::InvalidDataShareFault(inner) => Error::InvalidDataShareFault(inner),
1740 crate::operation::deauthorize_data_share::DeauthorizeDataShareError::Unhandled(inner) => Error::Unhandled(inner),
1741 }
1742 }
1743}
1744impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_authentication_profile::DeleteAuthenticationProfileError, R>>
1745 for Error
1746where
1747 R: Send + Sync + std::fmt::Debug + 'static,
1748{
1749 fn from(
1750 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_authentication_profile::DeleteAuthenticationProfileError, R>,
1751 ) -> Self {
1752 match err {
1753 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1754 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1755 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1756 source: err.into(),
1757 }),
1758 }
1759 }
1760}
1761impl From<crate::operation::delete_authentication_profile::DeleteAuthenticationProfileError> for Error {
1762 fn from(err: crate::operation::delete_authentication_profile::DeleteAuthenticationProfileError) -> Self {
1763 match err {
1764 crate::operation::delete_authentication_profile::DeleteAuthenticationProfileError::AuthenticationProfileNotFoundFault(inner) => {
1765 Error::AuthenticationProfileNotFoundFault(inner)
1766 }
1767 crate::operation::delete_authentication_profile::DeleteAuthenticationProfileError::InvalidAuthenticationProfileRequestFault(inner) => {
1768 Error::InvalidAuthenticationProfileRequestFault(inner)
1769 }
1770 crate::operation::delete_authentication_profile::DeleteAuthenticationProfileError::Unhandled(inner) => Error::Unhandled(inner),
1771 }
1772 }
1773}
1774impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>> for Error
1775where
1776 R: Send + Sync + std::fmt::Debug + 'static,
1777{
1778 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>) -> Self {
1779 match err {
1780 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1781 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1782 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1783 source: err.into(),
1784 }),
1785 }
1786 }
1787}
1788impl From<crate::operation::delete_cluster::DeleteClusterError> for Error {
1789 fn from(err: crate::operation::delete_cluster::DeleteClusterError) -> Self {
1790 match err {
1791 crate::operation::delete_cluster::DeleteClusterError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
1792 crate::operation::delete_cluster::DeleteClusterError::ClusterSnapshotAlreadyExistsFault(inner) => {
1793 Error::ClusterSnapshotAlreadyExistsFault(inner)
1794 }
1795 crate::operation::delete_cluster::DeleteClusterError::ClusterSnapshotQuotaExceededFault(inner) => {
1796 Error::ClusterSnapshotQuotaExceededFault(inner)
1797 }
1798 crate::operation::delete_cluster::DeleteClusterError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
1799 crate::operation::delete_cluster::DeleteClusterError::InvalidRetentionPeriodFault(inner) => Error::InvalidRetentionPeriodFault(inner),
1800 crate::operation::delete_cluster::DeleteClusterError::Unhandled(inner) => Error::Unhandled(inner),
1801 }
1802 }
1803}
1804impl<R>
1805 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster_parameter_group::DeleteClusterParameterGroupError, R>>
1806 for Error
1807where
1808 R: Send + Sync + std::fmt::Debug + 'static,
1809{
1810 fn from(
1811 err: ::aws_smithy_runtime_api::client::result::SdkError<
1812 crate::operation::delete_cluster_parameter_group::DeleteClusterParameterGroupError,
1813 R,
1814 >,
1815 ) -> Self {
1816 match err {
1817 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1818 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1819 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1820 source: err.into(),
1821 }),
1822 }
1823 }
1824}
1825impl From<crate::operation::delete_cluster_parameter_group::DeleteClusterParameterGroupError> for Error {
1826 fn from(err: crate::operation::delete_cluster_parameter_group::DeleteClusterParameterGroupError) -> Self {
1827 match err {
1828 crate::operation::delete_cluster_parameter_group::DeleteClusterParameterGroupError::ClusterParameterGroupNotFoundFault(inner) => {
1829 Error::ClusterParameterGroupNotFoundFault(inner)
1830 }
1831 crate::operation::delete_cluster_parameter_group::DeleteClusterParameterGroupError::InvalidClusterParameterGroupStateFault(inner) => {
1832 Error::InvalidClusterParameterGroupStateFault(inner)
1833 }
1834 crate::operation::delete_cluster_parameter_group::DeleteClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
1835 }
1836 }
1837}
1838impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster_security_group::DeleteClusterSecurityGroupError, R>>
1839 for Error
1840where
1841 R: Send + Sync + std::fmt::Debug + 'static,
1842{
1843 fn from(
1844 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster_security_group::DeleteClusterSecurityGroupError, R>,
1845 ) -> Self {
1846 match err {
1847 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1848 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1849 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1850 source: err.into(),
1851 }),
1852 }
1853 }
1854}
1855impl From<crate::operation::delete_cluster_security_group::DeleteClusterSecurityGroupError> for Error {
1856 fn from(err: crate::operation::delete_cluster_security_group::DeleteClusterSecurityGroupError) -> Self {
1857 match err {
1858 crate::operation::delete_cluster_security_group::DeleteClusterSecurityGroupError::ClusterSecurityGroupNotFoundFault(inner) => {
1859 Error::ClusterSecurityGroupNotFoundFault(inner)
1860 }
1861 crate::operation::delete_cluster_security_group::DeleteClusterSecurityGroupError::InvalidClusterSecurityGroupStateFault(inner) => {
1862 Error::InvalidClusterSecurityGroupStateFault(inner)
1863 }
1864 crate::operation::delete_cluster_security_group::DeleteClusterSecurityGroupError::Unhandled(inner) => Error::Unhandled(inner),
1865 }
1866 }
1867}
1868impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster_snapshot::DeleteClusterSnapshotError, R>> for Error
1869where
1870 R: Send + Sync + std::fmt::Debug + 'static,
1871{
1872 fn from(
1873 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster_snapshot::DeleteClusterSnapshotError, R>,
1874 ) -> Self {
1875 match err {
1876 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1877 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1878 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1879 source: err.into(),
1880 }),
1881 }
1882 }
1883}
1884impl From<crate::operation::delete_cluster_snapshot::DeleteClusterSnapshotError> for Error {
1885 fn from(err: crate::operation::delete_cluster_snapshot::DeleteClusterSnapshotError) -> Self {
1886 match err {
1887 crate::operation::delete_cluster_snapshot::DeleteClusterSnapshotError::ClusterSnapshotNotFoundFault(inner) => {
1888 Error::ClusterSnapshotNotFoundFault(inner)
1889 }
1890 crate::operation::delete_cluster_snapshot::DeleteClusterSnapshotError::InvalidClusterSnapshotStateFault(inner) => {
1891 Error::InvalidClusterSnapshotStateFault(inner)
1892 }
1893 crate::operation::delete_cluster_snapshot::DeleteClusterSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
1894 }
1895 }
1896}
1897impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster_subnet_group::DeleteClusterSubnetGroupError, R>>
1898 for Error
1899where
1900 R: Send + Sync + std::fmt::Debug + 'static,
1901{
1902 fn from(
1903 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster_subnet_group::DeleteClusterSubnetGroupError, R>,
1904 ) -> Self {
1905 match err {
1906 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1907 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1908 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1909 source: err.into(),
1910 }),
1911 }
1912 }
1913}
1914impl From<crate::operation::delete_cluster_subnet_group::DeleteClusterSubnetGroupError> for Error {
1915 fn from(err: crate::operation::delete_cluster_subnet_group::DeleteClusterSubnetGroupError) -> Self {
1916 match err {
1917 crate::operation::delete_cluster_subnet_group::DeleteClusterSubnetGroupError::ClusterSubnetGroupNotFoundFault(inner) => {
1918 Error::ClusterSubnetGroupNotFoundFault(inner)
1919 }
1920 crate::operation::delete_cluster_subnet_group::DeleteClusterSubnetGroupError::InvalidClusterSubnetGroupStateFault(inner) => {
1921 Error::InvalidClusterSubnetGroupStateFault(inner)
1922 }
1923 crate::operation::delete_cluster_subnet_group::DeleteClusterSubnetGroupError::InvalidClusterSubnetStateFault(inner) => {
1924 Error::InvalidClusterSubnetStateFault(inner)
1925 }
1926 crate::operation::delete_cluster_subnet_group::DeleteClusterSubnetGroupError::Unhandled(inner) => Error::Unhandled(inner),
1927 }
1928 }
1929}
1930impl<R>
1931 From<
1932 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError, R>,
1933 > for Error
1934where
1935 R: Send + Sync + std::fmt::Debug + 'static,
1936{
1937 fn from(
1938 err: ::aws_smithy_runtime_api::client::result::SdkError<
1939 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError,
1940 R,
1941 >,
1942 ) -> Self {
1943 match err {
1944 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1945 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1946 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1947 source: err.into(),
1948 }),
1949 }
1950 }
1951}
1952impl From<crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError> for Error {
1953 fn from(err: crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError) -> Self {
1954 match err {
1955 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError::ClusterNotFoundFault(inner) => {
1956 Error::ClusterNotFoundFault(inner)
1957 }
1958 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError::CustomCnameAssociationFault(inner) => {
1959 Error::CustomCnameAssociationFault(inner)
1960 }
1961 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError::CustomDomainAssociationNotFoundFault(inner) => {
1962 Error::CustomDomainAssociationNotFoundFault(inner)
1963 }
1964 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError::UnsupportedOperationFault(inner) => {
1965 Error::UnsupportedOperationFault(inner)
1966 }
1967 crate::operation::delete_custom_domain_association::DeleteCustomDomainAssociationError::Unhandled(inner) => Error::Unhandled(inner),
1968 }
1969 }
1970}
1971impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_access::DeleteEndpointAccessError, R>> for Error
1972where
1973 R: Send + Sync + std::fmt::Debug + 'static,
1974{
1975 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_endpoint_access::DeleteEndpointAccessError, R>) -> Self {
1976 match err {
1977 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1978 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1979 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1980 source: err.into(),
1981 }),
1982 }
1983 }
1984}
1985impl From<crate::operation::delete_endpoint_access::DeleteEndpointAccessError> for Error {
1986 fn from(err: crate::operation::delete_endpoint_access::DeleteEndpointAccessError) -> Self {
1987 match err {
1988 crate::operation::delete_endpoint_access::DeleteEndpointAccessError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
1989 crate::operation::delete_endpoint_access::DeleteEndpointAccessError::EndpointNotFoundFault(inner) => Error::EndpointNotFoundFault(inner),
1990 crate::operation::delete_endpoint_access::DeleteEndpointAccessError::InvalidClusterSecurityGroupStateFault(inner) => {
1991 Error::InvalidClusterSecurityGroupStateFault(inner)
1992 }
1993 crate::operation::delete_endpoint_access::DeleteEndpointAccessError::InvalidClusterStateFault(inner) => {
1994 Error::InvalidClusterStateFault(inner)
1995 }
1996 crate::operation::delete_endpoint_access::DeleteEndpointAccessError::InvalidEndpointStateFault(inner) => {
1997 Error::InvalidEndpointStateFault(inner)
1998 }
1999 crate::operation::delete_endpoint_access::DeleteEndpointAccessError::Unhandled(inner) => Error::Unhandled(inner),
2000 }
2001 }
2002}
2003impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_subscription::DeleteEventSubscriptionError, R>>
2004 for Error
2005where
2006 R: Send + Sync + std::fmt::Debug + 'static,
2007{
2008 fn from(
2009 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_event_subscription::DeleteEventSubscriptionError, R>,
2010 ) -> Self {
2011 match err {
2012 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2013 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2014 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2015 source: err.into(),
2016 }),
2017 }
2018 }
2019}
2020impl From<crate::operation::delete_event_subscription::DeleteEventSubscriptionError> for Error {
2021 fn from(err: crate::operation::delete_event_subscription::DeleteEventSubscriptionError) -> Self {
2022 match err {
2023 crate::operation::delete_event_subscription::DeleteEventSubscriptionError::InvalidSubscriptionStateFault(inner) => {
2024 Error::InvalidSubscriptionStateFault(inner)
2025 }
2026 crate::operation::delete_event_subscription::DeleteEventSubscriptionError::SubscriptionNotFoundFault(inner) => {
2027 Error::SubscriptionNotFoundFault(inner)
2028 }
2029 crate::operation::delete_event_subscription::DeleteEventSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
2030 }
2031 }
2032}
2033impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hsm_client_certificate::DeleteHsmClientCertificateError, R>>
2034 for Error
2035where
2036 R: Send + Sync + std::fmt::Debug + 'static,
2037{
2038 fn from(
2039 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hsm_client_certificate::DeleteHsmClientCertificateError, R>,
2040 ) -> Self {
2041 match err {
2042 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2043 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2044 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2045 source: err.into(),
2046 }),
2047 }
2048 }
2049}
2050impl From<crate::operation::delete_hsm_client_certificate::DeleteHsmClientCertificateError> for Error {
2051 fn from(err: crate::operation::delete_hsm_client_certificate::DeleteHsmClientCertificateError) -> Self {
2052 match err {
2053 crate::operation::delete_hsm_client_certificate::DeleteHsmClientCertificateError::HsmClientCertificateNotFoundFault(inner) => {
2054 Error::HsmClientCertificateNotFoundFault(inner)
2055 }
2056 crate::operation::delete_hsm_client_certificate::DeleteHsmClientCertificateError::InvalidHsmClientCertificateStateFault(inner) => {
2057 Error::InvalidHsmClientCertificateStateFault(inner)
2058 }
2059 crate::operation::delete_hsm_client_certificate::DeleteHsmClientCertificateError::Unhandled(inner) => Error::Unhandled(inner),
2060 }
2061 }
2062}
2063impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hsm_configuration::DeleteHsmConfigurationError, R>> for Error
2064where
2065 R: Send + Sync + std::fmt::Debug + 'static,
2066{
2067 fn from(
2068 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_hsm_configuration::DeleteHsmConfigurationError, R>,
2069 ) -> Self {
2070 match err {
2071 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2072 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2073 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2074 source: err.into(),
2075 }),
2076 }
2077 }
2078}
2079impl From<crate::operation::delete_hsm_configuration::DeleteHsmConfigurationError> for Error {
2080 fn from(err: crate::operation::delete_hsm_configuration::DeleteHsmConfigurationError) -> Self {
2081 match err {
2082 crate::operation::delete_hsm_configuration::DeleteHsmConfigurationError::HsmConfigurationNotFoundFault(inner) => {
2083 Error::HsmConfigurationNotFoundFault(inner)
2084 }
2085 crate::operation::delete_hsm_configuration::DeleteHsmConfigurationError::InvalidHsmConfigurationStateFault(inner) => {
2086 Error::InvalidHsmConfigurationStateFault(inner)
2087 }
2088 crate::operation::delete_hsm_configuration::DeleteHsmConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
2089 }
2090 }
2091}
2092impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>> for Error
2093where
2094 R: Send + Sync + std::fmt::Debug + 'static,
2095{
2096 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_integration::DeleteIntegrationError, R>) -> Self {
2097 match err {
2098 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2099 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2100 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2101 source: err.into(),
2102 }),
2103 }
2104 }
2105}
2106impl From<crate::operation::delete_integration::DeleteIntegrationError> for Error {
2107 fn from(err: crate::operation::delete_integration::DeleteIntegrationError) -> Self {
2108 match err {
2109 crate::operation::delete_integration::DeleteIntegrationError::IntegrationConflictOperationFault(inner) => {
2110 Error::IntegrationConflictOperationFault(inner)
2111 }
2112 crate::operation::delete_integration::DeleteIntegrationError::IntegrationConflictStateFault(inner) => {
2113 Error::IntegrationConflictStateFault(inner)
2114 }
2115 crate::operation::delete_integration::DeleteIntegrationError::IntegrationNotFoundFault(inner) => Error::IntegrationNotFoundFault(inner),
2116 crate::operation::delete_integration::DeleteIntegrationError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
2117 crate::operation::delete_integration::DeleteIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
2118 }
2119 }
2120}
2121impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner::DeletePartnerError, R>> for Error
2122where
2123 R: Send + Sync + std::fmt::Debug + 'static,
2124{
2125 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_partner::DeletePartnerError, R>) -> Self {
2126 match err {
2127 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2128 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2129 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2130 source: err.into(),
2131 }),
2132 }
2133 }
2134}
2135impl From<crate::operation::delete_partner::DeletePartnerError> for Error {
2136 fn from(err: crate::operation::delete_partner::DeletePartnerError) -> Self {
2137 match err {
2138 crate::operation::delete_partner::DeletePartnerError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
2139 crate::operation::delete_partner::DeletePartnerError::PartnerNotFoundFault(inner) => Error::PartnerNotFoundFault(inner),
2140 crate::operation::delete_partner::DeletePartnerError::UnauthorizedPartnerIntegrationFault(inner) => {
2141 Error::UnauthorizedPartnerIntegrationFault(inner)
2142 }
2143 crate::operation::delete_partner::DeletePartnerError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
2144 crate::operation::delete_partner::DeletePartnerError::Unhandled(inner) => Error::Unhandled(inner),
2145 }
2146 }
2147}
2148impl<R>
2149 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_redshift_idc_application::DeleteRedshiftIdcApplicationError, R>>
2150 for Error
2151where
2152 R: Send + Sync + std::fmt::Debug + 'static,
2153{
2154 fn from(
2155 err: ::aws_smithy_runtime_api::client::result::SdkError<
2156 crate::operation::delete_redshift_idc_application::DeleteRedshiftIdcApplicationError,
2157 R,
2158 >,
2159 ) -> Self {
2160 match err {
2161 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2162 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2163 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2164 source: err.into(),
2165 }),
2166 }
2167 }
2168}
2169impl From<crate::operation::delete_redshift_idc_application::DeleteRedshiftIdcApplicationError> for Error {
2170 fn from(err: crate::operation::delete_redshift_idc_application::DeleteRedshiftIdcApplicationError) -> Self {
2171 match err {
2172 crate::operation::delete_redshift_idc_application::DeleteRedshiftIdcApplicationError::DependentServiceAccessDeniedFault(inner) => {
2173 Error::DependentServiceAccessDeniedFault(inner)
2174 }
2175 crate::operation::delete_redshift_idc_application::DeleteRedshiftIdcApplicationError::DependentServiceUnavailableFault(inner) => {
2176 Error::DependentServiceUnavailableFault(inner)
2177 }
2178 crate::operation::delete_redshift_idc_application::DeleteRedshiftIdcApplicationError::RedshiftIdcApplicationNotExistsFault(inner) => {
2179 Error::RedshiftIdcApplicationNotExistsFault(inner)
2180 }
2181 crate::operation::delete_redshift_idc_application::DeleteRedshiftIdcApplicationError::UnsupportedOperationFault(inner) => {
2182 Error::UnsupportedOperationFault(inner)
2183 }
2184 crate::operation::delete_redshift_idc_application::DeleteRedshiftIdcApplicationError::Unhandled(inner) => Error::Unhandled(inner),
2185 }
2186 }
2187}
2188impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>> for Error
2189where
2190 R: Send + Sync + std::fmt::Debug + 'static,
2191{
2192 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_resource_policy::DeleteResourcePolicyError, R>) -> Self {
2193 match err {
2194 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2195 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2196 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2197 source: err.into(),
2198 }),
2199 }
2200 }
2201}
2202impl From<crate::operation::delete_resource_policy::DeleteResourcePolicyError> for Error {
2203 fn from(err: crate::operation::delete_resource_policy::DeleteResourcePolicyError) -> Self {
2204 match err {
2205 crate::operation::delete_resource_policy::DeleteResourcePolicyError::ResourceNotFoundFault(inner) => Error::ResourceNotFoundFault(inner),
2206 crate::operation::delete_resource_policy::DeleteResourcePolicyError::UnsupportedOperationFault(inner) => {
2207 Error::UnsupportedOperationFault(inner)
2208 }
2209 crate::operation::delete_resource_policy::DeleteResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
2210 }
2211 }
2212}
2213impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scheduled_action::DeleteScheduledActionError, R>> for Error
2214where
2215 R: Send + Sync + std::fmt::Debug + 'static,
2216{
2217 fn from(
2218 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_scheduled_action::DeleteScheduledActionError, R>,
2219 ) -> Self {
2220 match err {
2221 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2222 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2223 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2224 source: err.into(),
2225 }),
2226 }
2227 }
2228}
2229impl From<crate::operation::delete_scheduled_action::DeleteScheduledActionError> for Error {
2230 fn from(err: crate::operation::delete_scheduled_action::DeleteScheduledActionError) -> Self {
2231 match err {
2232 crate::operation::delete_scheduled_action::DeleteScheduledActionError::ScheduledActionNotFoundFault(inner) => {
2233 Error::ScheduledActionNotFoundFault(inner)
2234 }
2235 crate::operation::delete_scheduled_action::DeleteScheduledActionError::UnauthorizedOperation(inner) => {
2236 Error::UnauthorizedOperation(inner)
2237 }
2238 crate::operation::delete_scheduled_action::DeleteScheduledActionError::Unhandled(inner) => Error::Unhandled(inner),
2239 }
2240 }
2241}
2242impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot_copy_grant::DeleteSnapshotCopyGrantError, R>>
2243 for Error
2244where
2245 R: Send + Sync + std::fmt::Debug + 'static,
2246{
2247 fn from(
2248 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot_copy_grant::DeleteSnapshotCopyGrantError, R>,
2249 ) -> Self {
2250 match err {
2251 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2252 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2253 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2254 source: err.into(),
2255 }),
2256 }
2257 }
2258}
2259impl From<crate::operation::delete_snapshot_copy_grant::DeleteSnapshotCopyGrantError> for Error {
2260 fn from(err: crate::operation::delete_snapshot_copy_grant::DeleteSnapshotCopyGrantError) -> Self {
2261 match err {
2262 crate::operation::delete_snapshot_copy_grant::DeleteSnapshotCopyGrantError::InvalidSnapshotCopyGrantStateFault(inner) => {
2263 Error::InvalidSnapshotCopyGrantStateFault(inner)
2264 }
2265 crate::operation::delete_snapshot_copy_grant::DeleteSnapshotCopyGrantError::SnapshotCopyGrantNotFoundFault(inner) => {
2266 Error::SnapshotCopyGrantNotFoundFault(inner)
2267 }
2268 crate::operation::delete_snapshot_copy_grant::DeleteSnapshotCopyGrantError::Unhandled(inner) => Error::Unhandled(inner),
2269 }
2270 }
2271}
2272impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot_schedule::DeleteSnapshotScheduleError, R>> for Error
2273where
2274 R: Send + Sync + std::fmt::Debug + 'static,
2275{
2276 fn from(
2277 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_snapshot_schedule::DeleteSnapshotScheduleError, R>,
2278 ) -> Self {
2279 match err {
2280 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2281 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2282 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2283 source: err.into(),
2284 }),
2285 }
2286 }
2287}
2288impl From<crate::operation::delete_snapshot_schedule::DeleteSnapshotScheduleError> for Error {
2289 fn from(err: crate::operation::delete_snapshot_schedule::DeleteSnapshotScheduleError) -> Self {
2290 match err {
2291 crate::operation::delete_snapshot_schedule::DeleteSnapshotScheduleError::InvalidClusterSnapshotScheduleStateFault(inner) => {
2292 Error::InvalidClusterSnapshotScheduleStateFault(inner)
2293 }
2294 crate::operation::delete_snapshot_schedule::DeleteSnapshotScheduleError::SnapshotScheduleNotFoundFault(inner) => {
2295 Error::SnapshotScheduleNotFoundFault(inner)
2296 }
2297 crate::operation::delete_snapshot_schedule::DeleteSnapshotScheduleError::Unhandled(inner) => Error::Unhandled(inner),
2298 }
2299 }
2300}
2301impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>> for Error
2302where
2303 R: Send + Sync + std::fmt::Debug + 'static,
2304{
2305 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_tags::DeleteTagsError, R>) -> Self {
2306 match err {
2307 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2308 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2309 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2310 source: err.into(),
2311 }),
2312 }
2313 }
2314}
2315impl From<crate::operation::delete_tags::DeleteTagsError> for Error {
2316 fn from(err: crate::operation::delete_tags::DeleteTagsError) -> Self {
2317 match err {
2318 crate::operation::delete_tags::DeleteTagsError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
2319 crate::operation::delete_tags::DeleteTagsError::ResourceNotFoundFault(inner) => Error::ResourceNotFoundFault(inner),
2320 crate::operation::delete_tags::DeleteTagsError::Unhandled(inner) => Error::Unhandled(inner),
2321 }
2322 }
2323}
2324impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_usage_limit::DeleteUsageLimitError, R>> for Error
2325where
2326 R: Send + Sync + std::fmt::Debug + 'static,
2327{
2328 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_usage_limit::DeleteUsageLimitError, R>) -> Self {
2329 match err {
2330 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2331 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2332 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2333 source: err.into(),
2334 }),
2335 }
2336 }
2337}
2338impl From<crate::operation::delete_usage_limit::DeleteUsageLimitError> for Error {
2339 fn from(err: crate::operation::delete_usage_limit::DeleteUsageLimitError) -> Self {
2340 match err {
2341 crate::operation::delete_usage_limit::DeleteUsageLimitError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
2342 crate::operation::delete_usage_limit::DeleteUsageLimitError::UsageLimitNotFoundFault(inner) => Error::UsageLimitNotFoundFault(inner),
2343 crate::operation::delete_usage_limit::DeleteUsageLimitError::Unhandled(inner) => Error::Unhandled(inner),
2344 }
2345 }
2346}
2347impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_namespace::DeregisterNamespaceError, R>> for Error
2348where
2349 R: Send + Sync + std::fmt::Debug + 'static,
2350{
2351 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_namespace::DeregisterNamespaceError, R>) -> Self {
2352 match err {
2353 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2354 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2355 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2356 source: err.into(),
2357 }),
2358 }
2359 }
2360}
2361impl From<crate::operation::deregister_namespace::DeregisterNamespaceError> for Error {
2362 fn from(err: crate::operation::deregister_namespace::DeregisterNamespaceError) -> Self {
2363 match err {
2364 crate::operation::deregister_namespace::DeregisterNamespaceError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
2365 crate::operation::deregister_namespace::DeregisterNamespaceError::InvalidClusterStateFault(inner) => {
2366 Error::InvalidClusterStateFault(inner)
2367 }
2368 crate::operation::deregister_namespace::DeregisterNamespaceError::InvalidNamespaceFault(inner) => Error::InvalidNamespaceFault(inner),
2369 crate::operation::deregister_namespace::DeregisterNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
2370 }
2371 }
2372}
2373impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>>
2374 for Error
2375where
2376 R: Send + Sync + std::fmt::Debug + 'static,
2377{
2378 fn from(
2379 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_attributes::DescribeAccountAttributesError, R>,
2380 ) -> Self {
2381 match err {
2382 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2383 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2384 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2385 source: err.into(),
2386 }),
2387 }
2388 }
2389}
2390impl From<crate::operation::describe_account_attributes::DescribeAccountAttributesError> for Error {
2391 fn from(err: crate::operation::describe_account_attributes::DescribeAccountAttributesError) -> Self {
2392 match err {
2393 crate::operation::describe_account_attributes::DescribeAccountAttributesError::Unhandled(inner) => Error::Unhandled(inner),
2394 }
2395 }
2396}
2397impl<R>
2398 From<
2399 ::aws_smithy_runtime_api::client::result::SdkError<
2400 crate::operation::describe_authentication_profiles::DescribeAuthenticationProfilesError,
2401 R,
2402 >,
2403 > for Error
2404where
2405 R: Send + Sync + std::fmt::Debug + 'static,
2406{
2407 fn from(
2408 err: ::aws_smithy_runtime_api::client::result::SdkError<
2409 crate::operation::describe_authentication_profiles::DescribeAuthenticationProfilesError,
2410 R,
2411 >,
2412 ) -> Self {
2413 match err {
2414 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2415 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2416 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2417 source: err.into(),
2418 }),
2419 }
2420 }
2421}
2422impl From<crate::operation::describe_authentication_profiles::DescribeAuthenticationProfilesError> for Error {
2423 fn from(err: crate::operation::describe_authentication_profiles::DescribeAuthenticationProfilesError) -> Self {
2424 match err {
2425 crate::operation::describe_authentication_profiles::DescribeAuthenticationProfilesError::AuthenticationProfileNotFoundFault(inner) => {
2426 Error::AuthenticationProfileNotFoundFault(inner)
2427 }
2428 crate::operation::describe_authentication_profiles::DescribeAuthenticationProfilesError::InvalidAuthenticationProfileRequestFault(
2429 inner,
2430 ) => Error::InvalidAuthenticationProfileRequestFault(inner),
2431 crate::operation::describe_authentication_profiles::DescribeAuthenticationProfilesError::Unhandled(inner) => Error::Unhandled(inner),
2432 }
2433 }
2434}
2435impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_db_revisions::DescribeClusterDbRevisionsError, R>>
2436 for Error
2437where
2438 R: Send + Sync + std::fmt::Debug + 'static,
2439{
2440 fn from(
2441 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_db_revisions::DescribeClusterDbRevisionsError, R>,
2442 ) -> Self {
2443 match err {
2444 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2445 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2446 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2447 source: err.into(),
2448 }),
2449 }
2450 }
2451}
2452impl From<crate::operation::describe_cluster_db_revisions::DescribeClusterDbRevisionsError> for Error {
2453 fn from(err: crate::operation::describe_cluster_db_revisions::DescribeClusterDbRevisionsError) -> Self {
2454 match err {
2455 crate::operation::describe_cluster_db_revisions::DescribeClusterDbRevisionsError::ClusterNotFoundFault(inner) => {
2456 Error::ClusterNotFoundFault(inner)
2457 }
2458 crate::operation::describe_cluster_db_revisions::DescribeClusterDbRevisionsError::InvalidClusterStateFault(inner) => {
2459 Error::InvalidClusterStateFault(inner)
2460 }
2461 crate::operation::describe_cluster_db_revisions::DescribeClusterDbRevisionsError::Unhandled(inner) => Error::Unhandled(inner),
2462 }
2463 }
2464}
2465impl<R>
2466 From<
2467 ::aws_smithy_runtime_api::client::result::SdkError<
2468 crate::operation::describe_cluster_parameter_groups::DescribeClusterParameterGroupsError,
2469 R,
2470 >,
2471 > for Error
2472where
2473 R: Send + Sync + std::fmt::Debug + 'static,
2474{
2475 fn from(
2476 err: ::aws_smithy_runtime_api::client::result::SdkError<
2477 crate::operation::describe_cluster_parameter_groups::DescribeClusterParameterGroupsError,
2478 R,
2479 >,
2480 ) -> Self {
2481 match err {
2482 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2483 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2484 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2485 source: err.into(),
2486 }),
2487 }
2488 }
2489}
2490impl From<crate::operation::describe_cluster_parameter_groups::DescribeClusterParameterGroupsError> for Error {
2491 fn from(err: crate::operation::describe_cluster_parameter_groups::DescribeClusterParameterGroupsError) -> Self {
2492 match err {
2493 crate::operation::describe_cluster_parameter_groups::DescribeClusterParameterGroupsError::ClusterParameterGroupNotFoundFault(inner) => {
2494 Error::ClusterParameterGroupNotFoundFault(inner)
2495 }
2496 crate::operation::describe_cluster_parameter_groups::DescribeClusterParameterGroupsError::InvalidTagFault(inner) => {
2497 Error::InvalidTagFault(inner)
2498 }
2499 crate::operation::describe_cluster_parameter_groups::DescribeClusterParameterGroupsError::Unhandled(inner) => Error::Unhandled(inner),
2500 }
2501 }
2502}
2503impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_parameters::DescribeClusterParametersError, R>>
2504 for Error
2505where
2506 R: Send + Sync + std::fmt::Debug + 'static,
2507{
2508 fn from(
2509 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_parameters::DescribeClusterParametersError, R>,
2510 ) -> Self {
2511 match err {
2512 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2513 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2514 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2515 source: err.into(),
2516 }),
2517 }
2518 }
2519}
2520impl From<crate::operation::describe_cluster_parameters::DescribeClusterParametersError> for Error {
2521 fn from(err: crate::operation::describe_cluster_parameters::DescribeClusterParametersError) -> Self {
2522 match err {
2523 crate::operation::describe_cluster_parameters::DescribeClusterParametersError::ClusterParameterGroupNotFoundFault(inner) => {
2524 Error::ClusterParameterGroupNotFoundFault(inner)
2525 }
2526 crate::operation::describe_cluster_parameters::DescribeClusterParametersError::Unhandled(inner) => Error::Unhandled(inner),
2527 }
2528 }
2529}
2530impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_clusters::DescribeClustersError, R>> for Error
2531where
2532 R: Send + Sync + std::fmt::Debug + 'static,
2533{
2534 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_clusters::DescribeClustersError, R>) -> Self {
2535 match err {
2536 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2537 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2538 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2539 source: err.into(),
2540 }),
2541 }
2542 }
2543}
2544impl From<crate::operation::describe_clusters::DescribeClustersError> for Error {
2545 fn from(err: crate::operation::describe_clusters::DescribeClustersError) -> Self {
2546 match err {
2547 crate::operation::describe_clusters::DescribeClustersError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
2548 crate::operation::describe_clusters::DescribeClustersError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
2549 crate::operation::describe_clusters::DescribeClustersError::Unhandled(inner) => Error::Unhandled(inner),
2550 }
2551 }
2552}
2553impl<R>
2554 From<
2555 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_security_groups::DescribeClusterSecurityGroupsError, R>,
2556 > for Error
2557where
2558 R: Send + Sync + std::fmt::Debug + 'static,
2559{
2560 fn from(
2561 err: ::aws_smithy_runtime_api::client::result::SdkError<
2562 crate::operation::describe_cluster_security_groups::DescribeClusterSecurityGroupsError,
2563 R,
2564 >,
2565 ) -> Self {
2566 match err {
2567 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2568 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2569 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2570 source: err.into(),
2571 }),
2572 }
2573 }
2574}
2575impl From<crate::operation::describe_cluster_security_groups::DescribeClusterSecurityGroupsError> for Error {
2576 fn from(err: crate::operation::describe_cluster_security_groups::DescribeClusterSecurityGroupsError) -> Self {
2577 match err {
2578 crate::operation::describe_cluster_security_groups::DescribeClusterSecurityGroupsError::ClusterSecurityGroupNotFoundFault(inner) => {
2579 Error::ClusterSecurityGroupNotFoundFault(inner)
2580 }
2581 crate::operation::describe_cluster_security_groups::DescribeClusterSecurityGroupsError::InvalidTagFault(inner) => {
2582 Error::InvalidTagFault(inner)
2583 }
2584 crate::operation::describe_cluster_security_groups::DescribeClusterSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
2585 }
2586 }
2587}
2588impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_snapshots::DescribeClusterSnapshotsError, R>>
2589 for Error
2590where
2591 R: Send + Sync + std::fmt::Debug + 'static,
2592{
2593 fn from(
2594 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_snapshots::DescribeClusterSnapshotsError, R>,
2595 ) -> Self {
2596 match err {
2597 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2598 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2599 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2600 source: err.into(),
2601 }),
2602 }
2603 }
2604}
2605impl From<crate::operation::describe_cluster_snapshots::DescribeClusterSnapshotsError> for Error {
2606 fn from(err: crate::operation::describe_cluster_snapshots::DescribeClusterSnapshotsError) -> Self {
2607 match err {
2608 crate::operation::describe_cluster_snapshots::DescribeClusterSnapshotsError::ClusterNotFoundFault(inner) => {
2609 Error::ClusterNotFoundFault(inner)
2610 }
2611 crate::operation::describe_cluster_snapshots::DescribeClusterSnapshotsError::ClusterSnapshotNotFoundFault(inner) => {
2612 Error::ClusterSnapshotNotFoundFault(inner)
2613 }
2614 crate::operation::describe_cluster_snapshots::DescribeClusterSnapshotsError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
2615 crate::operation::describe_cluster_snapshots::DescribeClusterSnapshotsError::UnsupportedOperationFault(inner) => {
2616 Error::UnsupportedOperationFault(inner)
2617 }
2618 crate::operation::describe_cluster_snapshots::DescribeClusterSnapshotsError::Unhandled(inner) => Error::Unhandled(inner),
2619 }
2620 }
2621}
2622impl<R>
2623 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_subnet_groups::DescribeClusterSubnetGroupsError, R>>
2624 for Error
2625where
2626 R: Send + Sync + std::fmt::Debug + 'static,
2627{
2628 fn from(
2629 err: ::aws_smithy_runtime_api::client::result::SdkError<
2630 crate::operation::describe_cluster_subnet_groups::DescribeClusterSubnetGroupsError,
2631 R,
2632 >,
2633 ) -> Self {
2634 match err {
2635 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2636 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2637 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2638 source: err.into(),
2639 }),
2640 }
2641 }
2642}
2643impl From<crate::operation::describe_cluster_subnet_groups::DescribeClusterSubnetGroupsError> for Error {
2644 fn from(err: crate::operation::describe_cluster_subnet_groups::DescribeClusterSubnetGroupsError) -> Self {
2645 match err {
2646 crate::operation::describe_cluster_subnet_groups::DescribeClusterSubnetGroupsError::ClusterSubnetGroupNotFoundFault(inner) => {
2647 Error::ClusterSubnetGroupNotFoundFault(inner)
2648 }
2649 crate::operation::describe_cluster_subnet_groups::DescribeClusterSubnetGroupsError::InvalidTagFault(inner) => {
2650 Error::InvalidTagFault(inner)
2651 }
2652 crate::operation::describe_cluster_subnet_groups::DescribeClusterSubnetGroupsError::Unhandled(inner) => Error::Unhandled(inner),
2653 }
2654 }
2655}
2656impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_tracks::DescribeClusterTracksError, R>> for Error
2657where
2658 R: Send + Sync + std::fmt::Debug + 'static,
2659{
2660 fn from(
2661 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_tracks::DescribeClusterTracksError, R>,
2662 ) -> Self {
2663 match err {
2664 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2665 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2666 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2667 source: err.into(),
2668 }),
2669 }
2670 }
2671}
2672impl From<crate::operation::describe_cluster_tracks::DescribeClusterTracksError> for Error {
2673 fn from(err: crate::operation::describe_cluster_tracks::DescribeClusterTracksError) -> Self {
2674 match err {
2675 crate::operation::describe_cluster_tracks::DescribeClusterTracksError::InvalidClusterTrackFault(inner) => {
2676 Error::InvalidClusterTrackFault(inner)
2677 }
2678 crate::operation::describe_cluster_tracks::DescribeClusterTracksError::UnauthorizedOperation(inner) => {
2679 Error::UnauthorizedOperation(inner)
2680 }
2681 crate::operation::describe_cluster_tracks::DescribeClusterTracksError::Unhandled(inner) => Error::Unhandled(inner),
2682 }
2683 }
2684}
2685impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_versions::DescribeClusterVersionsError, R>>
2686 for Error
2687where
2688 R: Send + Sync + std::fmt::Debug + 'static,
2689{
2690 fn from(
2691 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_cluster_versions::DescribeClusterVersionsError, R>,
2692 ) -> Self {
2693 match err {
2694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2697 source: err.into(),
2698 }),
2699 }
2700 }
2701}
2702impl From<crate::operation::describe_cluster_versions::DescribeClusterVersionsError> for Error {
2703 fn from(err: crate::operation::describe_cluster_versions::DescribeClusterVersionsError) -> Self {
2704 match err {
2705 crate::operation::describe_cluster_versions::DescribeClusterVersionsError::Unhandled(inner) => Error::Unhandled(inner),
2706 }
2707 }
2708}
2709impl<R>
2710 From<
2711 ::aws_smithy_runtime_api::client::result::SdkError<
2712 crate::operation::describe_custom_domain_associations::DescribeCustomDomainAssociationsError,
2713 R,
2714 >,
2715 > for Error
2716where
2717 R: Send + Sync + std::fmt::Debug + 'static,
2718{
2719 fn from(
2720 err: ::aws_smithy_runtime_api::client::result::SdkError<
2721 crate::operation::describe_custom_domain_associations::DescribeCustomDomainAssociationsError,
2722 R,
2723 >,
2724 ) -> Self {
2725 match err {
2726 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2727 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2728 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2729 source: err.into(),
2730 }),
2731 }
2732 }
2733}
2734impl From<crate::operation::describe_custom_domain_associations::DescribeCustomDomainAssociationsError> for Error {
2735 fn from(err: crate::operation::describe_custom_domain_associations::DescribeCustomDomainAssociationsError) -> Self {
2736 match err {
2737 crate::operation::describe_custom_domain_associations::DescribeCustomDomainAssociationsError::CustomDomainAssociationNotFoundFault(
2738 inner,
2739 ) => Error::CustomDomainAssociationNotFoundFault(inner),
2740 crate::operation::describe_custom_domain_associations::DescribeCustomDomainAssociationsError::UnsupportedOperationFault(inner) => {
2741 Error::UnsupportedOperationFault(inner)
2742 }
2743 crate::operation::describe_custom_domain_associations::DescribeCustomDomainAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
2744 }
2745 }
2746}
2747impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_data_shares::DescribeDataSharesError, R>> for Error
2748where
2749 R: Send + Sync + std::fmt::Debug + 'static,
2750{
2751 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_data_shares::DescribeDataSharesError, R>) -> Self {
2752 match err {
2753 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2754 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2755 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2756 source: err.into(),
2757 }),
2758 }
2759 }
2760}
2761impl From<crate::operation::describe_data_shares::DescribeDataSharesError> for Error {
2762 fn from(err: crate::operation::describe_data_shares::DescribeDataSharesError) -> Self {
2763 match err {
2764 crate::operation::describe_data_shares::DescribeDataSharesError::InvalidDataShareFault(inner) => Error::InvalidDataShareFault(inner),
2765 crate::operation::describe_data_shares::DescribeDataSharesError::Unhandled(inner) => Error::Unhandled(inner),
2766 }
2767 }
2768}
2769impl<R>
2770 From<
2771 ::aws_smithy_runtime_api::client::result::SdkError<
2772 crate::operation::describe_data_shares_for_consumer::DescribeDataSharesForConsumerError,
2773 R,
2774 >,
2775 > for Error
2776where
2777 R: Send + Sync + std::fmt::Debug + 'static,
2778{
2779 fn from(
2780 err: ::aws_smithy_runtime_api::client::result::SdkError<
2781 crate::operation::describe_data_shares_for_consumer::DescribeDataSharesForConsumerError,
2782 R,
2783 >,
2784 ) -> Self {
2785 match err {
2786 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2787 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2788 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2789 source: err.into(),
2790 }),
2791 }
2792 }
2793}
2794impl From<crate::operation::describe_data_shares_for_consumer::DescribeDataSharesForConsumerError> for Error {
2795 fn from(err: crate::operation::describe_data_shares_for_consumer::DescribeDataSharesForConsumerError) -> Self {
2796 match err {
2797 crate::operation::describe_data_shares_for_consumer::DescribeDataSharesForConsumerError::InvalidNamespaceFault(inner) => {
2798 Error::InvalidNamespaceFault(inner)
2799 }
2800 crate::operation::describe_data_shares_for_consumer::DescribeDataSharesForConsumerError::Unhandled(inner) => Error::Unhandled(inner),
2801 }
2802 }
2803}
2804impl<R>
2805 From<
2806 ::aws_smithy_runtime_api::client::result::SdkError<
2807 crate::operation::describe_data_shares_for_producer::DescribeDataSharesForProducerError,
2808 R,
2809 >,
2810 > for Error
2811where
2812 R: Send + Sync + std::fmt::Debug + 'static,
2813{
2814 fn from(
2815 err: ::aws_smithy_runtime_api::client::result::SdkError<
2816 crate::operation::describe_data_shares_for_producer::DescribeDataSharesForProducerError,
2817 R,
2818 >,
2819 ) -> Self {
2820 match err {
2821 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2822 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2823 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2824 source: err.into(),
2825 }),
2826 }
2827 }
2828}
2829impl From<crate::operation::describe_data_shares_for_producer::DescribeDataSharesForProducerError> for Error {
2830 fn from(err: crate::operation::describe_data_shares_for_producer::DescribeDataSharesForProducerError) -> Self {
2831 match err {
2832 crate::operation::describe_data_shares_for_producer::DescribeDataSharesForProducerError::InvalidNamespaceFault(inner) => {
2833 Error::InvalidNamespaceFault(inner)
2834 }
2835 crate::operation::describe_data_shares_for_producer::DescribeDataSharesForProducerError::Unhandled(inner) => Error::Unhandled(inner),
2836 }
2837 }
2838}
2839impl<R>
2840 From<
2841 ::aws_smithy_runtime_api::client::result::SdkError<
2842 crate::operation::describe_default_cluster_parameters::DescribeDefaultClusterParametersError,
2843 R,
2844 >,
2845 > for Error
2846where
2847 R: Send + Sync + std::fmt::Debug + 'static,
2848{
2849 fn from(
2850 err: ::aws_smithy_runtime_api::client::result::SdkError<
2851 crate::operation::describe_default_cluster_parameters::DescribeDefaultClusterParametersError,
2852 R,
2853 >,
2854 ) -> Self {
2855 match err {
2856 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2857 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2858 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2859 source: err.into(),
2860 }),
2861 }
2862 }
2863}
2864impl From<crate::operation::describe_default_cluster_parameters::DescribeDefaultClusterParametersError> for Error {
2865 fn from(err: crate::operation::describe_default_cluster_parameters::DescribeDefaultClusterParametersError) -> Self {
2866 match err {
2867 crate::operation::describe_default_cluster_parameters::DescribeDefaultClusterParametersError::Unhandled(inner) => Error::Unhandled(inner),
2868 }
2869 }
2870}
2871impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_access::DescribeEndpointAccessError, R>> for Error
2872where
2873 R: Send + Sync + std::fmt::Debug + 'static,
2874{
2875 fn from(
2876 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_access::DescribeEndpointAccessError, R>,
2877 ) -> Self {
2878 match err {
2879 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2880 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2881 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2882 source: err.into(),
2883 }),
2884 }
2885 }
2886}
2887impl From<crate::operation::describe_endpoint_access::DescribeEndpointAccessError> for Error {
2888 fn from(err: crate::operation::describe_endpoint_access::DescribeEndpointAccessError) -> Self {
2889 match err {
2890 crate::operation::describe_endpoint_access::DescribeEndpointAccessError::ClusterNotFoundFault(inner) => {
2891 Error::ClusterNotFoundFault(inner)
2892 }
2893 crate::operation::describe_endpoint_access::DescribeEndpointAccessError::EndpointNotFoundFault(inner) => {
2894 Error::EndpointNotFoundFault(inner)
2895 }
2896 crate::operation::describe_endpoint_access::DescribeEndpointAccessError::InvalidClusterStateFault(inner) => {
2897 Error::InvalidClusterStateFault(inner)
2898 }
2899 crate::operation::describe_endpoint_access::DescribeEndpointAccessError::Unhandled(inner) => Error::Unhandled(inner),
2900 }
2901 }
2902}
2903impl<R>
2904 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_endpoint_authorization::DescribeEndpointAuthorizationError, R>>
2905 for Error
2906where
2907 R: Send + Sync + std::fmt::Debug + 'static,
2908{
2909 fn from(
2910 err: ::aws_smithy_runtime_api::client::result::SdkError<
2911 crate::operation::describe_endpoint_authorization::DescribeEndpointAuthorizationError,
2912 R,
2913 >,
2914 ) -> Self {
2915 match err {
2916 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2917 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2918 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2919 source: err.into(),
2920 }),
2921 }
2922 }
2923}
2924impl From<crate::operation::describe_endpoint_authorization::DescribeEndpointAuthorizationError> for Error {
2925 fn from(err: crate::operation::describe_endpoint_authorization::DescribeEndpointAuthorizationError) -> Self {
2926 match err {
2927 crate::operation::describe_endpoint_authorization::DescribeEndpointAuthorizationError::ClusterNotFoundFault(inner) => {
2928 Error::ClusterNotFoundFault(inner)
2929 }
2930 crate::operation::describe_endpoint_authorization::DescribeEndpointAuthorizationError::UnsupportedOperationFault(inner) => {
2931 Error::UnsupportedOperationFault(inner)
2932 }
2933 crate::operation::describe_endpoint_authorization::DescribeEndpointAuthorizationError::Unhandled(inner) => Error::Unhandled(inner),
2934 }
2935 }
2936}
2937impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_categories::DescribeEventCategoriesError, R>>
2938 for Error
2939where
2940 R: Send + Sync + std::fmt::Debug + 'static,
2941{
2942 fn from(
2943 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_categories::DescribeEventCategoriesError, R>,
2944 ) -> Self {
2945 match err {
2946 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2947 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2948 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2949 source: err.into(),
2950 }),
2951 }
2952 }
2953}
2954impl From<crate::operation::describe_event_categories::DescribeEventCategoriesError> for Error {
2955 fn from(err: crate::operation::describe_event_categories::DescribeEventCategoriesError) -> Self {
2956 match err {
2957 crate::operation::describe_event_categories::DescribeEventCategoriesError::Unhandled(inner) => Error::Unhandled(inner),
2958 }
2959 }
2960}
2961impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_events::DescribeEventsError, R>> for Error
2962where
2963 R: Send + Sync + std::fmt::Debug + 'static,
2964{
2965 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_events::DescribeEventsError, R>) -> Self {
2966 match err {
2967 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2968 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2969 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2970 source: err.into(),
2971 }),
2972 }
2973 }
2974}
2975impl From<crate::operation::describe_events::DescribeEventsError> for Error {
2976 fn from(err: crate::operation::describe_events::DescribeEventsError) -> Self {
2977 match err {
2978 crate::operation::describe_events::DescribeEventsError::Unhandled(inner) => Error::Unhandled(inner),
2979 }
2980 }
2981}
2982impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError, R>>
2983 for Error
2984where
2985 R: Send + Sync + std::fmt::Debug + 'static,
2986{
2987 fn from(
2988 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError, R>,
2989 ) -> Self {
2990 match err {
2991 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
2992 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
2993 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
2994 source: err.into(),
2995 }),
2996 }
2997 }
2998}
2999impl From<crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError> for Error {
3000 fn from(err: crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError) -> Self {
3001 match err {
3002 crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
3003 crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError::SubscriptionNotFoundFault(inner) => {
3004 Error::SubscriptionNotFoundFault(inner)
3005 }
3006 crate::operation::describe_event_subscriptions::DescribeEventSubscriptionsError::Unhandled(inner) => Error::Unhandled(inner),
3007 }
3008 }
3009}
3010impl<R>
3011 From<
3012 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hsm_client_certificates::DescribeHsmClientCertificatesError, R>,
3013 > for Error
3014where
3015 R: Send + Sync + std::fmt::Debug + 'static,
3016{
3017 fn from(
3018 err: ::aws_smithy_runtime_api::client::result::SdkError<
3019 crate::operation::describe_hsm_client_certificates::DescribeHsmClientCertificatesError,
3020 R,
3021 >,
3022 ) -> Self {
3023 match err {
3024 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3025 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3026 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3027 source: err.into(),
3028 }),
3029 }
3030 }
3031}
3032impl From<crate::operation::describe_hsm_client_certificates::DescribeHsmClientCertificatesError> for Error {
3033 fn from(err: crate::operation::describe_hsm_client_certificates::DescribeHsmClientCertificatesError) -> Self {
3034 match err {
3035 crate::operation::describe_hsm_client_certificates::DescribeHsmClientCertificatesError::HsmClientCertificateNotFoundFault(inner) => {
3036 Error::HsmClientCertificateNotFoundFault(inner)
3037 }
3038 crate::operation::describe_hsm_client_certificates::DescribeHsmClientCertificatesError::InvalidTagFault(inner) => {
3039 Error::InvalidTagFault(inner)
3040 }
3041 crate::operation::describe_hsm_client_certificates::DescribeHsmClientCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
3042 }
3043 }
3044}
3045impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hsm_configurations::DescribeHsmConfigurationsError, R>>
3046 for Error
3047where
3048 R: Send + Sync + std::fmt::Debug + 'static,
3049{
3050 fn from(
3051 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_hsm_configurations::DescribeHsmConfigurationsError, R>,
3052 ) -> Self {
3053 match err {
3054 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3055 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3056 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3057 source: err.into(),
3058 }),
3059 }
3060 }
3061}
3062impl From<crate::operation::describe_hsm_configurations::DescribeHsmConfigurationsError> for Error {
3063 fn from(err: crate::operation::describe_hsm_configurations::DescribeHsmConfigurationsError) -> Self {
3064 match err {
3065 crate::operation::describe_hsm_configurations::DescribeHsmConfigurationsError::HsmConfigurationNotFoundFault(inner) => {
3066 Error::HsmConfigurationNotFoundFault(inner)
3067 }
3068 crate::operation::describe_hsm_configurations::DescribeHsmConfigurationsError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
3069 crate::operation::describe_hsm_configurations::DescribeHsmConfigurationsError::Unhandled(inner) => Error::Unhandled(inner),
3070 }
3071 }
3072}
3073impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inbound_integrations::DescribeInboundIntegrationsError, R>>
3074 for Error
3075where
3076 R: Send + Sync + std::fmt::Debug + 'static,
3077{
3078 fn from(
3079 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_inbound_integrations::DescribeInboundIntegrationsError, R>,
3080 ) -> Self {
3081 match err {
3082 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3083 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3084 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3085 source: err.into(),
3086 }),
3087 }
3088 }
3089}
3090impl From<crate::operation::describe_inbound_integrations::DescribeInboundIntegrationsError> for Error {
3091 fn from(err: crate::operation::describe_inbound_integrations::DescribeInboundIntegrationsError) -> Self {
3092 match err {
3093 crate::operation::describe_inbound_integrations::DescribeInboundIntegrationsError::IntegrationNotFoundFault(inner) => {
3094 Error::IntegrationNotFoundFault(inner)
3095 }
3096 crate::operation::describe_inbound_integrations::DescribeInboundIntegrationsError::InvalidNamespaceFault(inner) => {
3097 Error::InvalidNamespaceFault(inner)
3098 }
3099 crate::operation::describe_inbound_integrations::DescribeInboundIntegrationsError::UnsupportedOperationFault(inner) => {
3100 Error::UnsupportedOperationFault(inner)
3101 }
3102 crate::operation::describe_inbound_integrations::DescribeInboundIntegrationsError::Unhandled(inner) => Error::Unhandled(inner),
3103 }
3104 }
3105}
3106impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_integrations::DescribeIntegrationsError, R>> for Error
3107where
3108 R: Send + Sync + std::fmt::Debug + 'static,
3109{
3110 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_integrations::DescribeIntegrationsError, R>) -> Self {
3111 match err {
3112 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3113 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3114 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3115 source: err.into(),
3116 }),
3117 }
3118 }
3119}
3120impl From<crate::operation::describe_integrations::DescribeIntegrationsError> for Error {
3121 fn from(err: crate::operation::describe_integrations::DescribeIntegrationsError) -> Self {
3122 match err {
3123 crate::operation::describe_integrations::DescribeIntegrationsError::IntegrationNotFoundFault(inner) => {
3124 Error::IntegrationNotFoundFault(inner)
3125 }
3126 crate::operation::describe_integrations::DescribeIntegrationsError::UnsupportedOperationFault(inner) => {
3127 Error::UnsupportedOperationFault(inner)
3128 }
3129 crate::operation::describe_integrations::DescribeIntegrationsError::Unhandled(inner) => Error::Unhandled(inner),
3130 }
3131 }
3132}
3133impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_logging_status::DescribeLoggingStatusError, R>> for Error
3134where
3135 R: Send + Sync + std::fmt::Debug + 'static,
3136{
3137 fn from(
3138 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_logging_status::DescribeLoggingStatusError, R>,
3139 ) -> Self {
3140 match err {
3141 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3142 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3143 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3144 source: err.into(),
3145 }),
3146 }
3147 }
3148}
3149impl From<crate::operation::describe_logging_status::DescribeLoggingStatusError> for Error {
3150 fn from(err: crate::operation::describe_logging_status::DescribeLoggingStatusError) -> Self {
3151 match err {
3152 crate::operation::describe_logging_status::DescribeLoggingStatusError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
3153 crate::operation::describe_logging_status::DescribeLoggingStatusError::UnsupportedOperationFault(inner) => {
3154 Error::UnsupportedOperationFault(inner)
3155 }
3156 crate::operation::describe_logging_status::DescribeLoggingStatusError::Unhandled(inner) => Error::Unhandled(inner),
3157 }
3158 }
3159}
3160impl<R>
3161 From<
3162 ::aws_smithy_runtime_api::client::result::SdkError<
3163 crate::operation::describe_node_configuration_options::DescribeNodeConfigurationOptionsError,
3164 R,
3165 >,
3166 > for Error
3167where
3168 R: Send + Sync + std::fmt::Debug + 'static,
3169{
3170 fn from(
3171 err: ::aws_smithy_runtime_api::client::result::SdkError<
3172 crate::operation::describe_node_configuration_options::DescribeNodeConfigurationOptionsError,
3173 R,
3174 >,
3175 ) -> Self {
3176 match err {
3177 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3178 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3179 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3180 source: err.into(),
3181 }),
3182 }
3183 }
3184}
3185impl From<crate::operation::describe_node_configuration_options::DescribeNodeConfigurationOptionsError> for Error {
3186 fn from(err: crate::operation::describe_node_configuration_options::DescribeNodeConfigurationOptionsError) -> Self {
3187 match err {
3188 crate::operation::describe_node_configuration_options::DescribeNodeConfigurationOptionsError::AccessToSnapshotDeniedFault(inner) => {
3189 Error::AccessToSnapshotDeniedFault(inner)
3190 }
3191 crate::operation::describe_node_configuration_options::DescribeNodeConfigurationOptionsError::ClusterNotFoundFault(inner) => {
3192 Error::ClusterNotFoundFault(inner)
3193 }
3194 crate::operation::describe_node_configuration_options::DescribeNodeConfigurationOptionsError::ClusterSnapshotNotFoundFault(inner) => {
3195 Error::ClusterSnapshotNotFoundFault(inner)
3196 }
3197 crate::operation::describe_node_configuration_options::DescribeNodeConfigurationOptionsError::InvalidClusterSnapshotStateFault(inner) => {
3198 Error::InvalidClusterSnapshotStateFault(inner)
3199 }
3200 crate::operation::describe_node_configuration_options::DescribeNodeConfigurationOptionsError::UnsupportedOperationFault(inner) => {
3201 Error::UnsupportedOperationFault(inner)
3202 }
3203 crate::operation::describe_node_configuration_options::DescribeNodeConfigurationOptionsError::Unhandled(inner) => Error::Unhandled(inner),
3204 }
3205 }
3206}
3207impl<R>
3208 From<
3209 ::aws_smithy_runtime_api::client::result::SdkError<
3210 crate::operation::describe_orderable_cluster_options::DescribeOrderableClusterOptionsError,
3211 R,
3212 >,
3213 > for Error
3214where
3215 R: Send + Sync + std::fmt::Debug + 'static,
3216{
3217 fn from(
3218 err: ::aws_smithy_runtime_api::client::result::SdkError<
3219 crate::operation::describe_orderable_cluster_options::DescribeOrderableClusterOptionsError,
3220 R,
3221 >,
3222 ) -> Self {
3223 match err {
3224 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3225 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3226 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3227 source: err.into(),
3228 }),
3229 }
3230 }
3231}
3232impl From<crate::operation::describe_orderable_cluster_options::DescribeOrderableClusterOptionsError> for Error {
3233 fn from(err: crate::operation::describe_orderable_cluster_options::DescribeOrderableClusterOptionsError) -> Self {
3234 match err {
3235 crate::operation::describe_orderable_cluster_options::DescribeOrderableClusterOptionsError::Unhandled(inner) => Error::Unhandled(inner),
3236 }
3237 }
3238}
3239impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partners::DescribePartnersError, R>> for Error
3240where
3241 R: Send + Sync + std::fmt::Debug + 'static,
3242{
3243 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_partners::DescribePartnersError, R>) -> Self {
3244 match err {
3245 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3246 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3247 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3248 source: err.into(),
3249 }),
3250 }
3251 }
3252}
3253impl From<crate::operation::describe_partners::DescribePartnersError> for Error {
3254 fn from(err: crate::operation::describe_partners::DescribePartnersError) -> Self {
3255 match err {
3256 crate::operation::describe_partners::DescribePartnersError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
3257 crate::operation::describe_partners::DescribePartnersError::UnauthorizedPartnerIntegrationFault(inner) => {
3258 Error::UnauthorizedPartnerIntegrationFault(inner)
3259 }
3260 crate::operation::describe_partners::DescribePartnersError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
3261 crate::operation::describe_partners::DescribePartnersError::Unhandled(inner) => Error::Unhandled(inner),
3262 }
3263 }
3264}
3265impl<R>
3266 From<
3267 ::aws_smithy_runtime_api::client::result::SdkError<
3268 crate::operation::describe_redshift_idc_applications::DescribeRedshiftIdcApplicationsError,
3269 R,
3270 >,
3271 > for Error
3272where
3273 R: Send + Sync + std::fmt::Debug + 'static,
3274{
3275 fn from(
3276 err: ::aws_smithy_runtime_api::client::result::SdkError<
3277 crate::operation::describe_redshift_idc_applications::DescribeRedshiftIdcApplicationsError,
3278 R,
3279 >,
3280 ) -> Self {
3281 match err {
3282 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3283 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3284 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3285 source: err.into(),
3286 }),
3287 }
3288 }
3289}
3290impl From<crate::operation::describe_redshift_idc_applications::DescribeRedshiftIdcApplicationsError> for Error {
3291 fn from(err: crate::operation::describe_redshift_idc_applications::DescribeRedshiftIdcApplicationsError) -> Self {
3292 match err {
3293 crate::operation::describe_redshift_idc_applications::DescribeRedshiftIdcApplicationsError::DependentServiceAccessDeniedFault(inner) => {
3294 Error::DependentServiceAccessDeniedFault(inner)
3295 }
3296 crate::operation::describe_redshift_idc_applications::DescribeRedshiftIdcApplicationsError::DependentServiceUnavailableFault(inner) => {
3297 Error::DependentServiceUnavailableFault(inner)
3298 }
3299 crate::operation::describe_redshift_idc_applications::DescribeRedshiftIdcApplicationsError::RedshiftIdcApplicationNotExistsFault(
3300 inner,
3301 ) => Error::RedshiftIdcApplicationNotExistsFault(inner),
3302 crate::operation::describe_redshift_idc_applications::DescribeRedshiftIdcApplicationsError::UnsupportedOperationFault(inner) => {
3303 Error::UnsupportedOperationFault(inner)
3304 }
3305 crate::operation::describe_redshift_idc_applications::DescribeRedshiftIdcApplicationsError::Unhandled(inner) => Error::Unhandled(inner),
3306 }
3307 }
3308}
3309impl<R>
3310 From<
3311 ::aws_smithy_runtime_api::client::result::SdkError<
3312 crate::operation::describe_reserved_node_exchange_status::DescribeReservedNodeExchangeStatusError,
3313 R,
3314 >,
3315 > for Error
3316where
3317 R: Send + Sync + std::fmt::Debug + 'static,
3318{
3319 fn from(
3320 err: ::aws_smithy_runtime_api::client::result::SdkError<
3321 crate::operation::describe_reserved_node_exchange_status::DescribeReservedNodeExchangeStatusError,
3322 R,
3323 >,
3324 ) -> Self {
3325 match err {
3326 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3327 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3328 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3329 source: err.into(),
3330 }),
3331 }
3332 }
3333}
3334impl From<crate::operation::describe_reserved_node_exchange_status::DescribeReservedNodeExchangeStatusError> for Error {
3335 fn from(err: crate::operation::describe_reserved_node_exchange_status::DescribeReservedNodeExchangeStatusError) -> Self {
3336 match err {
3337 crate::operation::describe_reserved_node_exchange_status::DescribeReservedNodeExchangeStatusError::ReservedNodeExchangeNotFoundFault(
3338 inner,
3339 ) => Error::ReservedNodeExchangeNotFoundFault(inner),
3340 crate::operation::describe_reserved_node_exchange_status::DescribeReservedNodeExchangeStatusError::ReservedNodeNotFoundFault(inner) => {
3341 Error::ReservedNodeNotFoundFault(inner)
3342 }
3343 crate::operation::describe_reserved_node_exchange_status::DescribeReservedNodeExchangeStatusError::UnsupportedOperationFault(inner) => {
3344 Error::UnsupportedOperationFault(inner)
3345 }
3346 crate::operation::describe_reserved_node_exchange_status::DescribeReservedNodeExchangeStatusError::Unhandled(inner) => {
3347 Error::Unhandled(inner)
3348 }
3349 }
3350 }
3351}
3352impl<R>
3353 From<
3354 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_node_offerings::DescribeReservedNodeOfferingsError, R>,
3355 > for Error
3356where
3357 R: Send + Sync + std::fmt::Debug + 'static,
3358{
3359 fn from(
3360 err: ::aws_smithy_runtime_api::client::result::SdkError<
3361 crate::operation::describe_reserved_node_offerings::DescribeReservedNodeOfferingsError,
3362 R,
3363 >,
3364 ) -> Self {
3365 match err {
3366 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3367 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3368 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3369 source: err.into(),
3370 }),
3371 }
3372 }
3373}
3374impl From<crate::operation::describe_reserved_node_offerings::DescribeReservedNodeOfferingsError> for Error {
3375 fn from(err: crate::operation::describe_reserved_node_offerings::DescribeReservedNodeOfferingsError) -> Self {
3376 match err {
3377 crate::operation::describe_reserved_node_offerings::DescribeReservedNodeOfferingsError::DependentServiceUnavailableFault(inner) => {
3378 Error::DependentServiceUnavailableFault(inner)
3379 }
3380 crate::operation::describe_reserved_node_offerings::DescribeReservedNodeOfferingsError::ReservedNodeOfferingNotFoundFault(inner) => {
3381 Error::ReservedNodeOfferingNotFoundFault(inner)
3382 }
3383 crate::operation::describe_reserved_node_offerings::DescribeReservedNodeOfferingsError::UnsupportedOperationFault(inner) => {
3384 Error::UnsupportedOperationFault(inner)
3385 }
3386 crate::operation::describe_reserved_node_offerings::DescribeReservedNodeOfferingsError::Unhandled(inner) => Error::Unhandled(inner),
3387 }
3388 }
3389}
3390impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_nodes::DescribeReservedNodesError, R>> for Error
3391where
3392 R: Send + Sync + std::fmt::Debug + 'static,
3393{
3394 fn from(
3395 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_reserved_nodes::DescribeReservedNodesError, R>,
3396 ) -> Self {
3397 match err {
3398 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3399 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3400 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3401 source: err.into(),
3402 }),
3403 }
3404 }
3405}
3406impl From<crate::operation::describe_reserved_nodes::DescribeReservedNodesError> for Error {
3407 fn from(err: crate::operation::describe_reserved_nodes::DescribeReservedNodesError) -> Self {
3408 match err {
3409 crate::operation::describe_reserved_nodes::DescribeReservedNodesError::DependentServiceUnavailableFault(inner) => {
3410 Error::DependentServiceUnavailableFault(inner)
3411 }
3412 crate::operation::describe_reserved_nodes::DescribeReservedNodesError::ReservedNodeNotFoundFault(inner) => {
3413 Error::ReservedNodeNotFoundFault(inner)
3414 }
3415 crate::operation::describe_reserved_nodes::DescribeReservedNodesError::Unhandled(inner) => Error::Unhandled(inner),
3416 }
3417 }
3418}
3419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resize::DescribeResizeError, R>> for Error
3420where
3421 R: Send + Sync + std::fmt::Debug + 'static,
3422{
3423 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_resize::DescribeResizeError, R>) -> Self {
3424 match err {
3425 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3426 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3427 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3428 source: err.into(),
3429 }),
3430 }
3431 }
3432}
3433impl From<crate::operation::describe_resize::DescribeResizeError> for Error {
3434 fn from(err: crate::operation::describe_resize::DescribeResizeError) -> Self {
3435 match err {
3436 crate::operation::describe_resize::DescribeResizeError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
3437 crate::operation::describe_resize::DescribeResizeError::ResizeNotFoundFault(inner) => Error::ResizeNotFoundFault(inner),
3438 crate::operation::describe_resize::DescribeResizeError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
3439 crate::operation::describe_resize::DescribeResizeError::Unhandled(inner) => Error::Unhandled(inner),
3440 }
3441 }
3442}
3443impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_actions::DescribeScheduledActionsError, R>>
3444 for Error
3445where
3446 R: Send + Sync + std::fmt::Debug + 'static,
3447{
3448 fn from(
3449 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_scheduled_actions::DescribeScheduledActionsError, R>,
3450 ) -> Self {
3451 match err {
3452 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3453 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3454 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3455 source: err.into(),
3456 }),
3457 }
3458 }
3459}
3460impl From<crate::operation::describe_scheduled_actions::DescribeScheduledActionsError> for Error {
3461 fn from(err: crate::operation::describe_scheduled_actions::DescribeScheduledActionsError) -> Self {
3462 match err {
3463 crate::operation::describe_scheduled_actions::DescribeScheduledActionsError::ScheduledActionNotFoundFault(inner) => {
3464 Error::ScheduledActionNotFoundFault(inner)
3465 }
3466 crate::operation::describe_scheduled_actions::DescribeScheduledActionsError::UnauthorizedOperation(inner) => {
3467 Error::UnauthorizedOperation(inner)
3468 }
3469 crate::operation::describe_scheduled_actions::DescribeScheduledActionsError::Unhandled(inner) => Error::Unhandled(inner),
3470 }
3471 }
3472}
3473impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_copy_grants::DescribeSnapshotCopyGrantsError, R>>
3474 for Error
3475where
3476 R: Send + Sync + std::fmt::Debug + 'static,
3477{
3478 fn from(
3479 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_copy_grants::DescribeSnapshotCopyGrantsError, R>,
3480 ) -> Self {
3481 match err {
3482 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3483 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3484 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3485 source: err.into(),
3486 }),
3487 }
3488 }
3489}
3490impl From<crate::operation::describe_snapshot_copy_grants::DescribeSnapshotCopyGrantsError> for Error {
3491 fn from(err: crate::operation::describe_snapshot_copy_grants::DescribeSnapshotCopyGrantsError) -> Self {
3492 match err {
3493 crate::operation::describe_snapshot_copy_grants::DescribeSnapshotCopyGrantsError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
3494 crate::operation::describe_snapshot_copy_grants::DescribeSnapshotCopyGrantsError::SnapshotCopyGrantNotFoundFault(inner) => {
3495 Error::SnapshotCopyGrantNotFoundFault(inner)
3496 }
3497 crate::operation::describe_snapshot_copy_grants::DescribeSnapshotCopyGrantsError::Unhandled(inner) => Error::Unhandled(inner),
3498 }
3499 }
3500}
3501impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_schedules::DescribeSnapshotSchedulesError, R>>
3502 for Error
3503where
3504 R: Send + Sync + std::fmt::Debug + 'static,
3505{
3506 fn from(
3507 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_snapshot_schedules::DescribeSnapshotSchedulesError, R>,
3508 ) -> Self {
3509 match err {
3510 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3511 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3512 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3513 source: err.into(),
3514 }),
3515 }
3516 }
3517}
3518impl From<crate::operation::describe_snapshot_schedules::DescribeSnapshotSchedulesError> for Error {
3519 fn from(err: crate::operation::describe_snapshot_schedules::DescribeSnapshotSchedulesError) -> Self {
3520 match err {
3521 crate::operation::describe_snapshot_schedules::DescribeSnapshotSchedulesError::Unhandled(inner) => Error::Unhandled(inner),
3522 }
3523 }
3524}
3525impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_storage::DescribeStorageError, R>> for Error
3526where
3527 R: Send + Sync + std::fmt::Debug + 'static,
3528{
3529 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_storage::DescribeStorageError, R>) -> Self {
3530 match err {
3531 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3532 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3533 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3534 source: err.into(),
3535 }),
3536 }
3537 }
3538}
3539impl From<crate::operation::describe_storage::DescribeStorageError> for Error {
3540 fn from(err: crate::operation::describe_storage::DescribeStorageError) -> Self {
3541 match err {
3542 crate::operation::describe_storage::DescribeStorageError::Unhandled(inner) => Error::Unhandled(inner),
3543 }
3544 }
3545}
3546impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_table_restore_status::DescribeTableRestoreStatusError, R>>
3547 for Error
3548where
3549 R: Send + Sync + std::fmt::Debug + 'static,
3550{
3551 fn from(
3552 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_table_restore_status::DescribeTableRestoreStatusError, R>,
3553 ) -> Self {
3554 match err {
3555 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3556 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3557 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3558 source: err.into(),
3559 }),
3560 }
3561 }
3562}
3563impl From<crate::operation::describe_table_restore_status::DescribeTableRestoreStatusError> for Error {
3564 fn from(err: crate::operation::describe_table_restore_status::DescribeTableRestoreStatusError) -> Self {
3565 match err {
3566 crate::operation::describe_table_restore_status::DescribeTableRestoreStatusError::ClusterNotFoundFault(inner) => {
3567 Error::ClusterNotFoundFault(inner)
3568 }
3569 crate::operation::describe_table_restore_status::DescribeTableRestoreStatusError::TableRestoreNotFoundFault(inner) => {
3570 Error::TableRestoreNotFoundFault(inner)
3571 }
3572 crate::operation::describe_table_restore_status::DescribeTableRestoreStatusError::Unhandled(inner) => Error::Unhandled(inner),
3573 }
3574 }
3575}
3576impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
3577where
3578 R: Send + Sync + std::fmt::Debug + 'static,
3579{
3580 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
3581 match err {
3582 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3583 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3584 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3585 source: err.into(),
3586 }),
3587 }
3588 }
3589}
3590impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
3591 fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
3592 match err {
3593 crate::operation::describe_tags::DescribeTagsError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
3594 crate::operation::describe_tags::DescribeTagsError::ResourceNotFoundFault(inner) => Error::ResourceNotFoundFault(inner),
3595 crate::operation::describe_tags::DescribeTagsError::Unhandled(inner) => Error::Unhandled(inner),
3596 }
3597 }
3598}
3599impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_usage_limits::DescribeUsageLimitsError, R>> for Error
3600where
3601 R: Send + Sync + std::fmt::Debug + 'static,
3602{
3603 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_usage_limits::DescribeUsageLimitsError, R>) -> Self {
3604 match err {
3605 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3606 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3607 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3608 source: err.into(),
3609 }),
3610 }
3611 }
3612}
3613impl From<crate::operation::describe_usage_limits::DescribeUsageLimitsError> for Error {
3614 fn from(err: crate::operation::describe_usage_limits::DescribeUsageLimitsError) -> Self {
3615 match err {
3616 crate::operation::describe_usage_limits::DescribeUsageLimitsError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
3617 crate::operation::describe_usage_limits::DescribeUsageLimitsError::UnsupportedOperationFault(inner) => {
3618 Error::UnsupportedOperationFault(inner)
3619 }
3620 crate::operation::describe_usage_limits::DescribeUsageLimitsError::Unhandled(inner) => Error::Unhandled(inner),
3621 }
3622 }
3623}
3624impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_logging::DisableLoggingError, R>> for Error
3625where
3626 R: Send + Sync + std::fmt::Debug + 'static,
3627{
3628 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_logging::DisableLoggingError, R>) -> Self {
3629 match err {
3630 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3631 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3632 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3633 source: err.into(),
3634 }),
3635 }
3636 }
3637}
3638impl From<crate::operation::disable_logging::DisableLoggingError> for Error {
3639 fn from(err: crate::operation::disable_logging::DisableLoggingError) -> Self {
3640 match err {
3641 crate::operation::disable_logging::DisableLoggingError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
3642 crate::operation::disable_logging::DisableLoggingError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
3643 crate::operation::disable_logging::DisableLoggingError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
3644 crate::operation::disable_logging::DisableLoggingError::Unhandled(inner) => Error::Unhandled(inner),
3645 }
3646 }
3647}
3648impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_snapshot_copy::DisableSnapshotCopyError, R>> for Error
3649where
3650 R: Send + Sync + std::fmt::Debug + 'static,
3651{
3652 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disable_snapshot_copy::DisableSnapshotCopyError, R>) -> Self {
3653 match err {
3654 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3655 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3656 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3657 source: err.into(),
3658 }),
3659 }
3660 }
3661}
3662impl From<crate::operation::disable_snapshot_copy::DisableSnapshotCopyError> for Error {
3663 fn from(err: crate::operation::disable_snapshot_copy::DisableSnapshotCopyError) -> Self {
3664 match err {
3665 crate::operation::disable_snapshot_copy::DisableSnapshotCopyError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
3666 crate::operation::disable_snapshot_copy::DisableSnapshotCopyError::InvalidClusterStateFault(inner) => {
3667 Error::InvalidClusterStateFault(inner)
3668 }
3669 crate::operation::disable_snapshot_copy::DisableSnapshotCopyError::SnapshotCopyAlreadyDisabledFault(inner) => {
3670 Error::SnapshotCopyAlreadyDisabledFault(inner)
3671 }
3672 crate::operation::disable_snapshot_copy::DisableSnapshotCopyError::UnauthorizedOperation(inner) => Error::UnauthorizedOperation(inner),
3673 crate::operation::disable_snapshot_copy::DisableSnapshotCopyError::UnsupportedOperationFault(inner) => {
3674 Error::UnsupportedOperationFault(inner)
3675 }
3676 crate::operation::disable_snapshot_copy::DisableSnapshotCopyError::Unhandled(inner) => Error::Unhandled(inner),
3677 }
3678 }
3679}
3680impl<R>
3681 From<
3682 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerError, R>,
3683 > for Error
3684where
3685 R: Send + Sync + std::fmt::Debug + 'static,
3686{
3687 fn from(
3688 err: ::aws_smithy_runtime_api::client::result::SdkError<
3689 crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerError,
3690 R,
3691 >,
3692 ) -> Self {
3693 match err {
3694 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3695 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3696 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3697 source: err.into(),
3698 }),
3699 }
3700 }
3701}
3702impl From<crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerError> for Error {
3703 fn from(err: crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerError) -> Self {
3704 match err {
3705 crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerError::InvalidDataShareFault(inner) => {
3706 Error::InvalidDataShareFault(inner)
3707 }
3708 crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerError::InvalidNamespaceFault(inner) => {
3709 Error::InvalidNamespaceFault(inner)
3710 }
3711 crate::operation::disassociate_data_share_consumer::DisassociateDataShareConsumerError::Unhandled(inner) => Error::Unhandled(inner),
3712 }
3713 }
3714}
3715impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_logging::EnableLoggingError, R>> for Error
3716where
3717 R: Send + Sync + std::fmt::Debug + 'static,
3718{
3719 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_logging::EnableLoggingError, R>) -> Self {
3720 match err {
3721 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3722 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3723 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3724 source: err.into(),
3725 }),
3726 }
3727 }
3728}
3729impl From<crate::operation::enable_logging::EnableLoggingError> for Error {
3730 fn from(err: crate::operation::enable_logging::EnableLoggingError) -> Self {
3731 match err {
3732 crate::operation::enable_logging::EnableLoggingError::BucketNotFoundFault(inner) => Error::BucketNotFoundFault(inner),
3733 crate::operation::enable_logging::EnableLoggingError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
3734 crate::operation::enable_logging::EnableLoggingError::InsufficientS3BucketPolicyFault(inner) => {
3735 Error::InsufficientS3BucketPolicyFault(inner)
3736 }
3737 crate::operation::enable_logging::EnableLoggingError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
3738 crate::operation::enable_logging::EnableLoggingError::InvalidS3BucketNameFault(inner) => Error::InvalidS3BucketNameFault(inner),
3739 crate::operation::enable_logging::EnableLoggingError::InvalidS3KeyPrefixFault(inner) => Error::InvalidS3KeyPrefixFault(inner),
3740 crate::operation::enable_logging::EnableLoggingError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
3741 crate::operation::enable_logging::EnableLoggingError::Unhandled(inner) => Error::Unhandled(inner),
3742 }
3743 }
3744}
3745impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_snapshot_copy::EnableSnapshotCopyError, R>> for Error
3746where
3747 R: Send + Sync + std::fmt::Debug + 'static,
3748{
3749 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::enable_snapshot_copy::EnableSnapshotCopyError, R>) -> Self {
3750 match err {
3751 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3752 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3753 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3754 source: err.into(),
3755 }),
3756 }
3757 }
3758}
3759impl From<crate::operation::enable_snapshot_copy::EnableSnapshotCopyError> for Error {
3760 fn from(err: crate::operation::enable_snapshot_copy::EnableSnapshotCopyError) -> Self {
3761 match err {
3762 crate::operation::enable_snapshot_copy::EnableSnapshotCopyError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
3763 crate::operation::enable_snapshot_copy::EnableSnapshotCopyError::CopyToRegionDisabledFault(inner) => {
3764 Error::CopyToRegionDisabledFault(inner)
3765 }
3766 crate::operation::enable_snapshot_copy::EnableSnapshotCopyError::DependentServiceRequestThrottlingFault(inner) => {
3767 Error::DependentServiceRequestThrottlingFault(inner)
3768 }
3769 crate::operation::enable_snapshot_copy::EnableSnapshotCopyError::IncompatibleOrderableOptions(inner) => {
3770 Error::IncompatibleOrderableOptions(inner)
3771 }
3772 crate::operation::enable_snapshot_copy::EnableSnapshotCopyError::InvalidClusterStateFault(inner) => {
3773 Error::InvalidClusterStateFault(inner)
3774 }
3775 crate::operation::enable_snapshot_copy::EnableSnapshotCopyError::InvalidRetentionPeriodFault(inner) => {
3776 Error::InvalidRetentionPeriodFault(inner)
3777 }
3778 crate::operation::enable_snapshot_copy::EnableSnapshotCopyError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
3779 crate::operation::enable_snapshot_copy::EnableSnapshotCopyError::SnapshotCopyAlreadyEnabledFault(inner) => {
3780 Error::SnapshotCopyAlreadyEnabledFault(inner)
3781 }
3782 crate::operation::enable_snapshot_copy::EnableSnapshotCopyError::SnapshotCopyGrantNotFoundFault(inner) => {
3783 Error::SnapshotCopyGrantNotFoundFault(inner)
3784 }
3785 crate::operation::enable_snapshot_copy::EnableSnapshotCopyError::UnauthorizedOperation(inner) => Error::UnauthorizedOperation(inner),
3786 crate::operation::enable_snapshot_copy::EnableSnapshotCopyError::UnknownSnapshotCopyRegionFault(inner) => {
3787 Error::UnknownSnapshotCopyRegionFault(inner)
3788 }
3789 crate::operation::enable_snapshot_copy::EnableSnapshotCopyError::Unhandled(inner) => Error::Unhandled(inner),
3790 }
3791 }
3792}
3793impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::failover_primary_compute::FailoverPrimaryComputeError, R>> for Error
3794where
3795 R: Send + Sync + std::fmt::Debug + 'static,
3796{
3797 fn from(
3798 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::failover_primary_compute::FailoverPrimaryComputeError, R>,
3799 ) -> Self {
3800 match err {
3801 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3802 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3803 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3804 source: err.into(),
3805 }),
3806 }
3807 }
3808}
3809impl From<crate::operation::failover_primary_compute::FailoverPrimaryComputeError> for Error {
3810 fn from(err: crate::operation::failover_primary_compute::FailoverPrimaryComputeError) -> Self {
3811 match err {
3812 crate::operation::failover_primary_compute::FailoverPrimaryComputeError::ClusterNotFoundFault(inner) => {
3813 Error::ClusterNotFoundFault(inner)
3814 }
3815 crate::operation::failover_primary_compute::FailoverPrimaryComputeError::InvalidClusterStateFault(inner) => {
3816 Error::InvalidClusterStateFault(inner)
3817 }
3818 crate::operation::failover_primary_compute::FailoverPrimaryComputeError::UnauthorizedOperation(inner) => {
3819 Error::UnauthorizedOperation(inner)
3820 }
3821 crate::operation::failover_primary_compute::FailoverPrimaryComputeError::UnsupportedOperationFault(inner) => {
3822 Error::UnsupportedOperationFault(inner)
3823 }
3824 crate::operation::failover_primary_compute::FailoverPrimaryComputeError::Unhandled(inner) => Error::Unhandled(inner),
3825 }
3826 }
3827}
3828impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cluster_credentials::GetClusterCredentialsError, R>> for Error
3829where
3830 R: Send + Sync + std::fmt::Debug + 'static,
3831{
3832 fn from(
3833 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cluster_credentials::GetClusterCredentialsError, R>,
3834 ) -> Self {
3835 match err {
3836 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3837 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3838 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3839 source: err.into(),
3840 }),
3841 }
3842 }
3843}
3844impl From<crate::operation::get_cluster_credentials::GetClusterCredentialsError> for Error {
3845 fn from(err: crate::operation::get_cluster_credentials::GetClusterCredentialsError) -> Self {
3846 match err {
3847 crate::operation::get_cluster_credentials::GetClusterCredentialsError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
3848 crate::operation::get_cluster_credentials::GetClusterCredentialsError::UnsupportedOperationFault(inner) => {
3849 Error::UnsupportedOperationFault(inner)
3850 }
3851 crate::operation::get_cluster_credentials::GetClusterCredentialsError::Unhandled(inner) => Error::Unhandled(inner),
3852 }
3853 }
3854}
3855impl<R>
3856 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_cluster_credentials_with_iam::GetClusterCredentialsWithIAMError, R>>
3857 for Error
3858where
3859 R: Send + Sync + std::fmt::Debug + 'static,
3860{
3861 fn from(
3862 err: ::aws_smithy_runtime_api::client::result::SdkError<
3863 crate::operation::get_cluster_credentials_with_iam::GetClusterCredentialsWithIAMError,
3864 R,
3865 >,
3866 ) -> Self {
3867 match err {
3868 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3869 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3870 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3871 source: err.into(),
3872 }),
3873 }
3874 }
3875}
3876impl From<crate::operation::get_cluster_credentials_with_iam::GetClusterCredentialsWithIAMError> for Error {
3877 fn from(err: crate::operation::get_cluster_credentials_with_iam::GetClusterCredentialsWithIAMError) -> Self {
3878 match err {
3879 crate::operation::get_cluster_credentials_with_iam::GetClusterCredentialsWithIAMError::ClusterNotFoundFault(inner) => {
3880 Error::ClusterNotFoundFault(inner)
3881 }
3882 crate::operation::get_cluster_credentials_with_iam::GetClusterCredentialsWithIAMError::UnsupportedOperationFault(inner) => {
3883 Error::UnsupportedOperationFault(inner)
3884 }
3885 crate::operation::get_cluster_credentials_with_iam::GetClusterCredentialsWithIAMError::Unhandled(inner) => Error::Unhandled(inner),
3886 }
3887 }
3888}
3889impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError, R>>
3890 for Error
3891where
3892 R: Send + Sync + std::fmt::Debug + 'static,
3893{
3894 fn from(
3895 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError, R>,
3896 ) -> Self {
3897 match err {
3898 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3899 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3900 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3901 source: err.into(),
3902 }),
3903 }
3904 }
3905}
3906impl From<crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError> for Error {
3907 fn from(err: crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError) -> Self {
3908 match err {
3909 crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError::ClusterNotFoundFault(inner) => {
3910 Error::ClusterNotFoundFault(inner)
3911 }
3912 crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError::InvalidClusterStateFault(inner) => {
3913 Error::InvalidClusterStateFault(inner)
3914 }
3915 crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError::RedshiftInvalidParameterFault(inner) => {
3916 Error::RedshiftInvalidParameterFault(inner)
3917 }
3918 crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError::UnsupportedOperationFault(inner) => {
3919 Error::UnsupportedOperationFault(inner)
3920 }
3921 crate::operation::get_identity_center_auth_token::GetIdentityCenterAuthTokenError::Unhandled(inner) => Error::Unhandled(inner),
3922 }
3923 }
3924}
3925impl<R>
3926 From<
3927 ::aws_smithy_runtime_api::client::result::SdkError<
3928 crate::operation::get_reserved_node_exchange_configuration_options::GetReservedNodeExchangeConfigurationOptionsError,
3929 R,
3930 >,
3931 > for Error
3932where
3933 R: Send + Sync + std::fmt::Debug + 'static,
3934{
3935 fn from(
3936 err: ::aws_smithy_runtime_api::client::result::SdkError<
3937 crate::operation::get_reserved_node_exchange_configuration_options::GetReservedNodeExchangeConfigurationOptionsError,
3938 R,
3939 >,
3940 ) -> Self {
3941 match err {
3942 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3943 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3944 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3945 source: err.into(),
3946 }),
3947 }
3948 }
3949}
3950impl From<crate::operation::get_reserved_node_exchange_configuration_options::GetReservedNodeExchangeConfigurationOptionsError> for Error {
3951 fn from(err: crate::operation::get_reserved_node_exchange_configuration_options::GetReservedNodeExchangeConfigurationOptionsError) -> Self {
3952 match err {
3953 crate::operation::get_reserved_node_exchange_configuration_options::GetReservedNodeExchangeConfigurationOptionsError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
3954 crate::operation::get_reserved_node_exchange_configuration_options::GetReservedNodeExchangeConfigurationOptionsError::ClusterSnapshotNotFoundFault(inner) => Error::ClusterSnapshotNotFoundFault(inner),
3955 crate::operation::get_reserved_node_exchange_configuration_options::GetReservedNodeExchangeConfigurationOptionsError::DependentServiceUnavailableFault(inner) => Error::DependentServiceUnavailableFault(inner),
3956 crate::operation::get_reserved_node_exchange_configuration_options::GetReservedNodeExchangeConfigurationOptionsError::InvalidReservedNodeStateFault(inner) => Error::InvalidReservedNodeStateFault(inner),
3957 crate::operation::get_reserved_node_exchange_configuration_options::GetReservedNodeExchangeConfigurationOptionsError::ReservedNodeAlreadyMigratedFault(inner) => Error::ReservedNodeAlreadyMigratedFault(inner),
3958 crate::operation::get_reserved_node_exchange_configuration_options::GetReservedNodeExchangeConfigurationOptionsError::ReservedNodeNotFoundFault(inner) => Error::ReservedNodeNotFoundFault(inner),
3959 crate::operation::get_reserved_node_exchange_configuration_options::GetReservedNodeExchangeConfigurationOptionsError::ReservedNodeOfferingNotFoundFault(inner) => Error::ReservedNodeOfferingNotFoundFault(inner),
3960 crate::operation::get_reserved_node_exchange_configuration_options::GetReservedNodeExchangeConfigurationOptionsError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
3961 crate::operation::get_reserved_node_exchange_configuration_options::GetReservedNodeExchangeConfigurationOptionsError::Unhandled(inner) => Error::Unhandled(inner),
3962 }
3963 }
3964}
3965impl<R>
3966 From<
3967 ::aws_smithy_runtime_api::client::result::SdkError<
3968 crate::operation::get_reserved_node_exchange_offerings::GetReservedNodeExchangeOfferingsError,
3969 R,
3970 >,
3971 > for Error
3972where
3973 R: Send + Sync + std::fmt::Debug + 'static,
3974{
3975 fn from(
3976 err: ::aws_smithy_runtime_api::client::result::SdkError<
3977 crate::operation::get_reserved_node_exchange_offerings::GetReservedNodeExchangeOfferingsError,
3978 R,
3979 >,
3980 ) -> Self {
3981 match err {
3982 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
3983 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
3984 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
3985 source: err.into(),
3986 }),
3987 }
3988 }
3989}
3990impl From<crate::operation::get_reserved_node_exchange_offerings::GetReservedNodeExchangeOfferingsError> for Error {
3991 fn from(err: crate::operation::get_reserved_node_exchange_offerings::GetReservedNodeExchangeOfferingsError) -> Self {
3992 match err {
3993 crate::operation::get_reserved_node_exchange_offerings::GetReservedNodeExchangeOfferingsError::DependentServiceUnavailableFault(
3994 inner,
3995 ) => Error::DependentServiceUnavailableFault(inner),
3996 crate::operation::get_reserved_node_exchange_offerings::GetReservedNodeExchangeOfferingsError::InvalidReservedNodeStateFault(inner) => {
3997 Error::InvalidReservedNodeStateFault(inner)
3998 }
3999 crate::operation::get_reserved_node_exchange_offerings::GetReservedNodeExchangeOfferingsError::ReservedNodeAlreadyMigratedFault(
4000 inner,
4001 ) => Error::ReservedNodeAlreadyMigratedFault(inner),
4002 crate::operation::get_reserved_node_exchange_offerings::GetReservedNodeExchangeOfferingsError::ReservedNodeNotFoundFault(inner) => {
4003 Error::ReservedNodeNotFoundFault(inner)
4004 }
4005 crate::operation::get_reserved_node_exchange_offerings::GetReservedNodeExchangeOfferingsError::ReservedNodeOfferingNotFoundFault(
4006 inner,
4007 ) => Error::ReservedNodeOfferingNotFoundFault(inner),
4008 crate::operation::get_reserved_node_exchange_offerings::GetReservedNodeExchangeOfferingsError::UnsupportedOperationFault(inner) => {
4009 Error::UnsupportedOperationFault(inner)
4010 }
4011 crate::operation::get_reserved_node_exchange_offerings::GetReservedNodeExchangeOfferingsError::Unhandled(inner) => {
4012 Error::Unhandled(inner)
4013 }
4014 }
4015 }
4016}
4017impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
4018where
4019 R: Send + Sync + std::fmt::Debug + 'static,
4020{
4021 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
4022 match err {
4023 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4024 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4025 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4026 source: err.into(),
4027 }),
4028 }
4029 }
4030}
4031impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
4032 fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
4033 match err {
4034 crate::operation::get_resource_policy::GetResourcePolicyError::InvalidPolicyFault(inner) => Error::InvalidPolicyFault(inner),
4035 crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundFault(inner) => Error::ResourceNotFoundFault(inner),
4036 crate::operation::get_resource_policy::GetResourcePolicyError::UnsupportedOperationFault(inner) => {
4037 Error::UnsupportedOperationFault(inner)
4038 }
4039 crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
4040 }
4041 }
4042}
4043impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendations::ListRecommendationsError, R>> for Error
4044where
4045 R: Send + Sync + std::fmt::Debug + 'static,
4046{
4047 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_recommendations::ListRecommendationsError, R>) -> Self {
4048 match err {
4049 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4050 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4051 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4052 source: err.into(),
4053 }),
4054 }
4055 }
4056}
4057impl From<crate::operation::list_recommendations::ListRecommendationsError> for Error {
4058 fn from(err: crate::operation::list_recommendations::ListRecommendationsError) -> Self {
4059 match err {
4060 crate::operation::list_recommendations::ListRecommendationsError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
4061 crate::operation::list_recommendations::ListRecommendationsError::UnsupportedOperationFault(inner) => {
4062 Error::UnsupportedOperationFault(inner)
4063 }
4064 crate::operation::list_recommendations::ListRecommendationsError::Unhandled(inner) => Error::Unhandled(inner),
4065 }
4066 }
4067}
4068impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_aqua_configuration::ModifyAquaConfigurationError, R>>
4069 for Error
4070where
4071 R: Send + Sync + std::fmt::Debug + 'static,
4072{
4073 fn from(
4074 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_aqua_configuration::ModifyAquaConfigurationError, R>,
4075 ) -> Self {
4076 match err {
4077 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4078 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4079 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4080 source: err.into(),
4081 }),
4082 }
4083 }
4084}
4085impl From<crate::operation::modify_aqua_configuration::ModifyAquaConfigurationError> for Error {
4086 fn from(err: crate::operation::modify_aqua_configuration::ModifyAquaConfigurationError) -> Self {
4087 match err {
4088 crate::operation::modify_aqua_configuration::ModifyAquaConfigurationError::ClusterNotFoundFault(inner) => {
4089 Error::ClusterNotFoundFault(inner)
4090 }
4091 crate::operation::modify_aqua_configuration::ModifyAquaConfigurationError::InvalidClusterStateFault(inner) => {
4092 Error::InvalidClusterStateFault(inner)
4093 }
4094 crate::operation::modify_aqua_configuration::ModifyAquaConfigurationError::UnsupportedOperationFault(inner) => {
4095 Error::UnsupportedOperationFault(inner)
4096 }
4097 crate::operation::modify_aqua_configuration::ModifyAquaConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
4098 }
4099 }
4100}
4101impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_authentication_profile::ModifyAuthenticationProfileError, R>>
4102 for Error
4103where
4104 R: Send + Sync + std::fmt::Debug + 'static,
4105{
4106 fn from(
4107 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_authentication_profile::ModifyAuthenticationProfileError, R>,
4108 ) -> Self {
4109 match err {
4110 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4111 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4112 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4113 source: err.into(),
4114 }),
4115 }
4116 }
4117}
4118impl From<crate::operation::modify_authentication_profile::ModifyAuthenticationProfileError> for Error {
4119 fn from(err: crate::operation::modify_authentication_profile::ModifyAuthenticationProfileError) -> Self {
4120 match err {
4121 crate::operation::modify_authentication_profile::ModifyAuthenticationProfileError::AuthenticationProfileNotFoundFault(inner) => {
4122 Error::AuthenticationProfileNotFoundFault(inner)
4123 }
4124 crate::operation::modify_authentication_profile::ModifyAuthenticationProfileError::AuthenticationProfileQuotaExceededFault(inner) => {
4125 Error::AuthenticationProfileQuotaExceededFault(inner)
4126 }
4127 crate::operation::modify_authentication_profile::ModifyAuthenticationProfileError::InvalidAuthenticationProfileRequestFault(inner) => {
4128 Error::InvalidAuthenticationProfileRequestFault(inner)
4129 }
4130 crate::operation::modify_authentication_profile::ModifyAuthenticationProfileError::Unhandled(inner) => Error::Unhandled(inner),
4131 }
4132 }
4133}
4134impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster::ModifyClusterError, R>> for Error
4135where
4136 R: Send + Sync + std::fmt::Debug + 'static,
4137{
4138 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster::ModifyClusterError, R>) -> Self {
4139 match err {
4140 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4141 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4142 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4143 source: err.into(),
4144 }),
4145 }
4146 }
4147}
4148impl From<crate::operation::modify_cluster::ModifyClusterError> for Error {
4149 fn from(err: crate::operation::modify_cluster::ModifyClusterError) -> Self {
4150 match err {
4151 crate::operation::modify_cluster::ModifyClusterError::ClusterAlreadyExistsFault(inner) => Error::ClusterAlreadyExistsFault(inner),
4152 crate::operation::modify_cluster::ModifyClusterError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
4153 crate::operation::modify_cluster::ModifyClusterError::ClusterParameterGroupNotFoundFault(inner) => {
4154 Error::ClusterParameterGroupNotFoundFault(inner)
4155 }
4156 crate::operation::modify_cluster::ModifyClusterError::ClusterSecurityGroupNotFoundFault(inner) => {
4157 Error::ClusterSecurityGroupNotFoundFault(inner)
4158 }
4159 crate::operation::modify_cluster::ModifyClusterError::CustomCnameAssociationFault(inner) => Error::CustomCnameAssociationFault(inner),
4160 crate::operation::modify_cluster::ModifyClusterError::DependentServiceRequestThrottlingFault(inner) => {
4161 Error::DependentServiceRequestThrottlingFault(inner)
4162 }
4163 crate::operation::modify_cluster::ModifyClusterError::HsmClientCertificateNotFoundFault(inner) => {
4164 Error::HsmClientCertificateNotFoundFault(inner)
4165 }
4166 crate::operation::modify_cluster::ModifyClusterError::HsmConfigurationNotFoundFault(inner) => Error::HsmConfigurationNotFoundFault(inner),
4167 crate::operation::modify_cluster::ModifyClusterError::InsufficientClusterCapacityFault(inner) => {
4168 Error::InsufficientClusterCapacityFault(inner)
4169 }
4170 crate::operation::modify_cluster::ModifyClusterError::InvalidClusterSecurityGroupStateFault(inner) => {
4171 Error::InvalidClusterSecurityGroupStateFault(inner)
4172 }
4173 crate::operation::modify_cluster::ModifyClusterError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
4174 crate::operation::modify_cluster::ModifyClusterError::InvalidClusterTrackFault(inner) => Error::InvalidClusterTrackFault(inner),
4175 crate::operation::modify_cluster::ModifyClusterError::InvalidElasticIpFault(inner) => Error::InvalidElasticIpFault(inner),
4176 crate::operation::modify_cluster::ModifyClusterError::InvalidRetentionPeriodFault(inner) => Error::InvalidRetentionPeriodFault(inner),
4177 crate::operation::modify_cluster::ModifyClusterError::Ipv6CidrBlockNotFoundFault(inner) => Error::Ipv6CidrBlockNotFoundFault(inner),
4178 crate::operation::modify_cluster::ModifyClusterError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
4179 crate::operation::modify_cluster::ModifyClusterError::NumberOfNodesPerClusterLimitExceededFault(inner) => {
4180 Error::NumberOfNodesPerClusterLimitExceededFault(inner)
4181 }
4182 crate::operation::modify_cluster::ModifyClusterError::NumberOfNodesQuotaExceededFault(inner) => {
4183 Error::NumberOfNodesQuotaExceededFault(inner)
4184 }
4185 crate::operation::modify_cluster::ModifyClusterError::TableLimitExceededFault(inner) => Error::TableLimitExceededFault(inner),
4186 crate::operation::modify_cluster::ModifyClusterError::UnauthorizedOperation(inner) => Error::UnauthorizedOperation(inner),
4187 crate::operation::modify_cluster::ModifyClusterError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
4188 crate::operation::modify_cluster::ModifyClusterError::UnsupportedOptionFault(inner) => Error::UnsupportedOptionFault(inner),
4189 crate::operation::modify_cluster::ModifyClusterError::Unhandled(inner) => Error::Unhandled(inner),
4190 }
4191 }
4192}
4193impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster_db_revision::ModifyClusterDbRevisionError, R>>
4194 for Error
4195where
4196 R: Send + Sync + std::fmt::Debug + 'static,
4197{
4198 fn from(
4199 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster_db_revision::ModifyClusterDbRevisionError, R>,
4200 ) -> Self {
4201 match err {
4202 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4203 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4204 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4205 source: err.into(),
4206 }),
4207 }
4208 }
4209}
4210impl From<crate::operation::modify_cluster_db_revision::ModifyClusterDbRevisionError> for Error {
4211 fn from(err: crate::operation::modify_cluster_db_revision::ModifyClusterDbRevisionError) -> Self {
4212 match err {
4213 crate::operation::modify_cluster_db_revision::ModifyClusterDbRevisionError::ClusterNotFoundFault(inner) => {
4214 Error::ClusterNotFoundFault(inner)
4215 }
4216 crate::operation::modify_cluster_db_revision::ModifyClusterDbRevisionError::ClusterOnLatestRevisionFault(inner) => {
4217 Error::ClusterOnLatestRevisionFault(inner)
4218 }
4219 crate::operation::modify_cluster_db_revision::ModifyClusterDbRevisionError::InvalidClusterStateFault(inner) => {
4220 Error::InvalidClusterStateFault(inner)
4221 }
4222 crate::operation::modify_cluster_db_revision::ModifyClusterDbRevisionError::UnsupportedOperationFault(inner) => {
4223 Error::UnsupportedOperationFault(inner)
4224 }
4225 crate::operation::modify_cluster_db_revision::ModifyClusterDbRevisionError::Unhandled(inner) => Error::Unhandled(inner),
4226 }
4227 }
4228}
4229impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster_iam_roles::ModifyClusterIamRolesError, R>> for Error
4230where
4231 R: Send + Sync + std::fmt::Debug + 'static,
4232{
4233 fn from(
4234 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster_iam_roles::ModifyClusterIamRolesError, R>,
4235 ) -> Self {
4236 match err {
4237 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4238 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4239 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4240 source: err.into(),
4241 }),
4242 }
4243 }
4244}
4245impl From<crate::operation::modify_cluster_iam_roles::ModifyClusterIamRolesError> for Error {
4246 fn from(err: crate::operation::modify_cluster_iam_roles::ModifyClusterIamRolesError) -> Self {
4247 match err {
4248 crate::operation::modify_cluster_iam_roles::ModifyClusterIamRolesError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
4249 crate::operation::modify_cluster_iam_roles::ModifyClusterIamRolesError::InvalidClusterStateFault(inner) => {
4250 Error::InvalidClusterStateFault(inner)
4251 }
4252 crate::operation::modify_cluster_iam_roles::ModifyClusterIamRolesError::Unhandled(inner) => Error::Unhandled(inner),
4253 }
4254 }
4255}
4256impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster_maintenance::ModifyClusterMaintenanceError, R>>
4257 for Error
4258where
4259 R: Send + Sync + std::fmt::Debug + 'static,
4260{
4261 fn from(
4262 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster_maintenance::ModifyClusterMaintenanceError, R>,
4263 ) -> Self {
4264 match err {
4265 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4266 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4267 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4268 source: err.into(),
4269 }),
4270 }
4271 }
4272}
4273impl From<crate::operation::modify_cluster_maintenance::ModifyClusterMaintenanceError> for Error {
4274 fn from(err: crate::operation::modify_cluster_maintenance::ModifyClusterMaintenanceError) -> Self {
4275 match err {
4276 crate::operation::modify_cluster_maintenance::ModifyClusterMaintenanceError::ClusterNotFoundFault(inner) => {
4277 Error::ClusterNotFoundFault(inner)
4278 }
4279 crate::operation::modify_cluster_maintenance::ModifyClusterMaintenanceError::InvalidClusterStateFault(inner) => {
4280 Error::InvalidClusterStateFault(inner)
4281 }
4282 crate::operation::modify_cluster_maintenance::ModifyClusterMaintenanceError::Unhandled(inner) => Error::Unhandled(inner),
4283 }
4284 }
4285}
4286impl<R>
4287 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster_parameter_group::ModifyClusterParameterGroupError, R>>
4288 for Error
4289where
4290 R: Send + Sync + std::fmt::Debug + 'static,
4291{
4292 fn from(
4293 err: ::aws_smithy_runtime_api::client::result::SdkError<
4294 crate::operation::modify_cluster_parameter_group::ModifyClusterParameterGroupError,
4295 R,
4296 >,
4297 ) -> Self {
4298 match err {
4299 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4300 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4301 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4302 source: err.into(),
4303 }),
4304 }
4305 }
4306}
4307impl From<crate::operation::modify_cluster_parameter_group::ModifyClusterParameterGroupError> for Error {
4308 fn from(err: crate::operation::modify_cluster_parameter_group::ModifyClusterParameterGroupError) -> Self {
4309 match err {
4310 crate::operation::modify_cluster_parameter_group::ModifyClusterParameterGroupError::ClusterParameterGroupNotFoundFault(inner) => {
4311 Error::ClusterParameterGroupNotFoundFault(inner)
4312 }
4313 crate::operation::modify_cluster_parameter_group::ModifyClusterParameterGroupError::InvalidClusterParameterGroupStateFault(inner) => {
4314 Error::InvalidClusterParameterGroupStateFault(inner)
4315 }
4316 crate::operation::modify_cluster_parameter_group::ModifyClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
4317 }
4318 }
4319}
4320impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotError, R>> for Error
4321where
4322 R: Send + Sync + std::fmt::Debug + 'static,
4323{
4324 fn from(
4325 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotError, R>,
4326 ) -> Self {
4327 match err {
4328 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4329 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4330 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4331 source: err.into(),
4332 }),
4333 }
4334 }
4335}
4336impl From<crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotError> for Error {
4337 fn from(err: crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotError) -> Self {
4338 match err {
4339 crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotError::ClusterSnapshotNotFoundFault(inner) => {
4340 Error::ClusterSnapshotNotFoundFault(inner)
4341 }
4342 crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotError::InvalidClusterSnapshotStateFault(inner) => {
4343 Error::InvalidClusterSnapshotStateFault(inner)
4344 }
4345 crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotError::InvalidRetentionPeriodFault(inner) => {
4346 Error::InvalidRetentionPeriodFault(inner)
4347 }
4348 crate::operation::modify_cluster_snapshot::ModifyClusterSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
4349 }
4350 }
4351}
4352impl<R>
4353 From<
4354 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster_snapshot_schedule::ModifyClusterSnapshotScheduleError, R>,
4355 > for Error
4356where
4357 R: Send + Sync + std::fmt::Debug + 'static,
4358{
4359 fn from(
4360 err: ::aws_smithy_runtime_api::client::result::SdkError<
4361 crate::operation::modify_cluster_snapshot_schedule::ModifyClusterSnapshotScheduleError,
4362 R,
4363 >,
4364 ) -> Self {
4365 match err {
4366 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4367 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4368 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4369 source: err.into(),
4370 }),
4371 }
4372 }
4373}
4374impl From<crate::operation::modify_cluster_snapshot_schedule::ModifyClusterSnapshotScheduleError> for Error {
4375 fn from(err: crate::operation::modify_cluster_snapshot_schedule::ModifyClusterSnapshotScheduleError) -> Self {
4376 match err {
4377 crate::operation::modify_cluster_snapshot_schedule::ModifyClusterSnapshotScheduleError::ClusterNotFoundFault(inner) => {
4378 Error::ClusterNotFoundFault(inner)
4379 }
4380 crate::operation::modify_cluster_snapshot_schedule::ModifyClusterSnapshotScheduleError::InvalidClusterSnapshotScheduleStateFault(
4381 inner,
4382 ) => Error::InvalidClusterSnapshotScheduleStateFault(inner),
4383 crate::operation::modify_cluster_snapshot_schedule::ModifyClusterSnapshotScheduleError::SnapshotScheduleNotFoundFault(inner) => {
4384 Error::SnapshotScheduleNotFoundFault(inner)
4385 }
4386 crate::operation::modify_cluster_snapshot_schedule::ModifyClusterSnapshotScheduleError::Unhandled(inner) => Error::Unhandled(inner),
4387 }
4388 }
4389}
4390impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster_subnet_group::ModifyClusterSubnetGroupError, R>>
4391 for Error
4392where
4393 R: Send + Sync + std::fmt::Debug + 'static,
4394{
4395 fn from(
4396 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_cluster_subnet_group::ModifyClusterSubnetGroupError, R>,
4397 ) -> Self {
4398 match err {
4399 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4400 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4401 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4402 source: err.into(),
4403 }),
4404 }
4405 }
4406}
4407impl From<crate::operation::modify_cluster_subnet_group::ModifyClusterSubnetGroupError> for Error {
4408 fn from(err: crate::operation::modify_cluster_subnet_group::ModifyClusterSubnetGroupError) -> Self {
4409 match err {
4410 crate::operation::modify_cluster_subnet_group::ModifyClusterSubnetGroupError::ClusterSubnetGroupNotFoundFault(inner) => {
4411 Error::ClusterSubnetGroupNotFoundFault(inner)
4412 }
4413 crate::operation::modify_cluster_subnet_group::ModifyClusterSubnetGroupError::ClusterSubnetQuotaExceededFault(inner) => {
4414 Error::ClusterSubnetQuotaExceededFault(inner)
4415 }
4416 crate::operation::modify_cluster_subnet_group::ModifyClusterSubnetGroupError::DependentServiceRequestThrottlingFault(inner) => {
4417 Error::DependentServiceRequestThrottlingFault(inner)
4418 }
4419 crate::operation::modify_cluster_subnet_group::ModifyClusterSubnetGroupError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
4420 crate::operation::modify_cluster_subnet_group::ModifyClusterSubnetGroupError::SubnetAlreadyInUse(inner) => {
4421 Error::SubnetAlreadyInUse(inner)
4422 }
4423 crate::operation::modify_cluster_subnet_group::ModifyClusterSubnetGroupError::UnauthorizedOperation(inner) => {
4424 Error::UnauthorizedOperation(inner)
4425 }
4426 crate::operation::modify_cluster_subnet_group::ModifyClusterSubnetGroupError::Unhandled(inner) => Error::Unhandled(inner),
4427 }
4428 }
4429}
4430impl<R>
4431 From<
4432 ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_custom_domain_association::ModifyCustomDomainAssociationError, R>,
4433 > for Error
4434where
4435 R: Send + Sync + std::fmt::Debug + 'static,
4436{
4437 fn from(
4438 err: ::aws_smithy_runtime_api::client::result::SdkError<
4439 crate::operation::modify_custom_domain_association::ModifyCustomDomainAssociationError,
4440 R,
4441 >,
4442 ) -> Self {
4443 match err {
4444 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4445 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4446 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4447 source: err.into(),
4448 }),
4449 }
4450 }
4451}
4452impl From<crate::operation::modify_custom_domain_association::ModifyCustomDomainAssociationError> for Error {
4453 fn from(err: crate::operation::modify_custom_domain_association::ModifyCustomDomainAssociationError) -> Self {
4454 match err {
4455 crate::operation::modify_custom_domain_association::ModifyCustomDomainAssociationError::ClusterNotFoundFault(inner) => {
4456 Error::ClusterNotFoundFault(inner)
4457 }
4458 crate::operation::modify_custom_domain_association::ModifyCustomDomainAssociationError::CustomCnameAssociationFault(inner) => {
4459 Error::CustomCnameAssociationFault(inner)
4460 }
4461 crate::operation::modify_custom_domain_association::ModifyCustomDomainAssociationError::CustomDomainAssociationNotFoundFault(inner) => {
4462 Error::CustomDomainAssociationNotFoundFault(inner)
4463 }
4464 crate::operation::modify_custom_domain_association::ModifyCustomDomainAssociationError::UnsupportedOperationFault(inner) => {
4465 Error::UnsupportedOperationFault(inner)
4466 }
4467 crate::operation::modify_custom_domain_association::ModifyCustomDomainAssociationError::Unhandled(inner) => Error::Unhandled(inner),
4468 }
4469 }
4470}
4471impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_endpoint_access::ModifyEndpointAccessError, R>> for Error
4472where
4473 R: Send + Sync + std::fmt::Debug + 'static,
4474{
4475 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_endpoint_access::ModifyEndpointAccessError, R>) -> Self {
4476 match err {
4477 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4478 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4479 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4480 source: err.into(),
4481 }),
4482 }
4483 }
4484}
4485impl From<crate::operation::modify_endpoint_access::ModifyEndpointAccessError> for Error {
4486 fn from(err: crate::operation::modify_endpoint_access::ModifyEndpointAccessError) -> Self {
4487 match err {
4488 crate::operation::modify_endpoint_access::ModifyEndpointAccessError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
4489 crate::operation::modify_endpoint_access::ModifyEndpointAccessError::EndpointNotFoundFault(inner) => Error::EndpointNotFoundFault(inner),
4490 crate::operation::modify_endpoint_access::ModifyEndpointAccessError::InvalidClusterSecurityGroupStateFault(inner) => {
4491 Error::InvalidClusterSecurityGroupStateFault(inner)
4492 }
4493 crate::operation::modify_endpoint_access::ModifyEndpointAccessError::InvalidClusterStateFault(inner) => {
4494 Error::InvalidClusterStateFault(inner)
4495 }
4496 crate::operation::modify_endpoint_access::ModifyEndpointAccessError::InvalidEndpointStateFault(inner) => {
4497 Error::InvalidEndpointStateFault(inner)
4498 }
4499 crate::operation::modify_endpoint_access::ModifyEndpointAccessError::UnauthorizedOperation(inner) => Error::UnauthorizedOperation(inner),
4500 crate::operation::modify_endpoint_access::ModifyEndpointAccessError::Unhandled(inner) => Error::Unhandled(inner),
4501 }
4502 }
4503}
4504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_event_subscription::ModifyEventSubscriptionError, R>>
4505 for Error
4506where
4507 R: Send + Sync + std::fmt::Debug + 'static,
4508{
4509 fn from(
4510 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_event_subscription::ModifyEventSubscriptionError, R>,
4511 ) -> Self {
4512 match err {
4513 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4514 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4515 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4516 source: err.into(),
4517 }),
4518 }
4519 }
4520}
4521impl From<crate::operation::modify_event_subscription::ModifyEventSubscriptionError> for Error {
4522 fn from(err: crate::operation::modify_event_subscription::ModifyEventSubscriptionError) -> Self {
4523 match err {
4524 crate::operation::modify_event_subscription::ModifyEventSubscriptionError::InvalidSubscriptionStateFault(inner) => {
4525 Error::InvalidSubscriptionStateFault(inner)
4526 }
4527 crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SnsInvalidTopicFault(inner) => {
4528 Error::SnsInvalidTopicFault(inner)
4529 }
4530 crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SnsNoAuthorizationFault(inner) => {
4531 Error::SnsNoAuthorizationFault(inner)
4532 }
4533 crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SnsTopicArnNotFoundFault(inner) => {
4534 Error::SnsTopicArnNotFoundFault(inner)
4535 }
4536 crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SourceNotFoundFault(inner) => {
4537 Error::SourceNotFoundFault(inner)
4538 }
4539 crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SubscriptionCategoryNotFoundFault(inner) => {
4540 Error::SubscriptionCategoryNotFoundFault(inner)
4541 }
4542 crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SubscriptionEventIdNotFoundFault(inner) => {
4543 Error::SubscriptionEventIdNotFoundFault(inner)
4544 }
4545 crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SubscriptionNotFoundFault(inner) => {
4546 Error::SubscriptionNotFoundFault(inner)
4547 }
4548 crate::operation::modify_event_subscription::ModifyEventSubscriptionError::SubscriptionSeverityNotFoundFault(inner) => {
4549 Error::SubscriptionSeverityNotFoundFault(inner)
4550 }
4551 crate::operation::modify_event_subscription::ModifyEventSubscriptionError::Unhandled(inner) => Error::Unhandled(inner),
4552 }
4553 }
4554}
4555impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_integration::ModifyIntegrationError, R>> for Error
4556where
4557 R: Send + Sync + std::fmt::Debug + 'static,
4558{
4559 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_integration::ModifyIntegrationError, R>) -> Self {
4560 match err {
4561 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4562 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4563 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4564 source: err.into(),
4565 }),
4566 }
4567 }
4568}
4569impl From<crate::operation::modify_integration::ModifyIntegrationError> for Error {
4570 fn from(err: crate::operation::modify_integration::ModifyIntegrationError) -> Self {
4571 match err {
4572 crate::operation::modify_integration::ModifyIntegrationError::IntegrationAlreadyExistsFault(inner) => {
4573 Error::IntegrationAlreadyExistsFault(inner)
4574 }
4575 crate::operation::modify_integration::ModifyIntegrationError::IntegrationConflictOperationFault(inner) => {
4576 Error::IntegrationConflictOperationFault(inner)
4577 }
4578 crate::operation::modify_integration::ModifyIntegrationError::IntegrationConflictStateFault(inner) => {
4579 Error::IntegrationConflictStateFault(inner)
4580 }
4581 crate::operation::modify_integration::ModifyIntegrationError::IntegrationNotFoundFault(inner) => Error::IntegrationNotFoundFault(inner),
4582 crate::operation::modify_integration::ModifyIntegrationError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
4583 crate::operation::modify_integration::ModifyIntegrationError::Unhandled(inner) => Error::Unhandled(inner),
4584 }
4585 }
4586}
4587impl<R>
4588 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_lakehouse_configuration::ModifyLakehouseConfigurationError, R>>
4589 for Error
4590where
4591 R: Send + Sync + std::fmt::Debug + 'static,
4592{
4593 fn from(
4594 err: ::aws_smithy_runtime_api::client::result::SdkError<
4595 crate::operation::modify_lakehouse_configuration::ModifyLakehouseConfigurationError,
4596 R,
4597 >,
4598 ) -> Self {
4599 match err {
4600 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4601 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4602 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4603 source: err.into(),
4604 }),
4605 }
4606 }
4607}
4608impl From<crate::operation::modify_lakehouse_configuration::ModifyLakehouseConfigurationError> for Error {
4609 fn from(err: crate::operation::modify_lakehouse_configuration::ModifyLakehouseConfigurationError) -> Self {
4610 match err {
4611 crate::operation::modify_lakehouse_configuration::ModifyLakehouseConfigurationError::ClusterNotFoundFault(inner) => {
4612 Error::ClusterNotFoundFault(inner)
4613 }
4614 crate::operation::modify_lakehouse_configuration::ModifyLakehouseConfigurationError::DependentServiceAccessDeniedFault(inner) => {
4615 Error::DependentServiceAccessDeniedFault(inner)
4616 }
4617 crate::operation::modify_lakehouse_configuration::ModifyLakehouseConfigurationError::DependentServiceUnavailableFault(inner) => {
4618 Error::DependentServiceUnavailableFault(inner)
4619 }
4620 crate::operation::modify_lakehouse_configuration::ModifyLakehouseConfigurationError::InvalidClusterStateFault(inner) => {
4621 Error::InvalidClusterStateFault(inner)
4622 }
4623 crate::operation::modify_lakehouse_configuration::ModifyLakehouseConfigurationError::RedshiftIdcApplicationNotExistsFault(inner) => {
4624 Error::RedshiftIdcApplicationNotExistsFault(inner)
4625 }
4626 crate::operation::modify_lakehouse_configuration::ModifyLakehouseConfigurationError::UnauthorizedOperation(inner) => {
4627 Error::UnauthorizedOperation(inner)
4628 }
4629 crate::operation::modify_lakehouse_configuration::ModifyLakehouseConfigurationError::UnsupportedOperationFault(inner) => {
4630 Error::UnsupportedOperationFault(inner)
4631 }
4632 crate::operation::modify_lakehouse_configuration::ModifyLakehouseConfigurationError::Unhandled(inner) => Error::Unhandled(inner),
4633 }
4634 }
4635}
4636impl<R>
4637 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_redshift_idc_application::ModifyRedshiftIdcApplicationError, R>>
4638 for Error
4639where
4640 R: Send + Sync + std::fmt::Debug + 'static,
4641{
4642 fn from(
4643 err: ::aws_smithy_runtime_api::client::result::SdkError<
4644 crate::operation::modify_redshift_idc_application::ModifyRedshiftIdcApplicationError,
4645 R,
4646 >,
4647 ) -> Self {
4648 match err {
4649 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4650 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4651 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4652 source: err.into(),
4653 }),
4654 }
4655 }
4656}
4657impl From<crate::operation::modify_redshift_idc_application::ModifyRedshiftIdcApplicationError> for Error {
4658 fn from(err: crate::operation::modify_redshift_idc_application::ModifyRedshiftIdcApplicationError) -> Self {
4659 match err {
4660 crate::operation::modify_redshift_idc_application::ModifyRedshiftIdcApplicationError::DependentServiceAccessDeniedFault(inner) => {
4661 Error::DependentServiceAccessDeniedFault(inner)
4662 }
4663 crate::operation::modify_redshift_idc_application::ModifyRedshiftIdcApplicationError::DependentServiceUnavailableFault(inner) => {
4664 Error::DependentServiceUnavailableFault(inner)
4665 }
4666 crate::operation::modify_redshift_idc_application::ModifyRedshiftIdcApplicationError::RedshiftIdcApplicationNotExistsFault(inner) => {
4667 Error::RedshiftIdcApplicationNotExistsFault(inner)
4668 }
4669 crate::operation::modify_redshift_idc_application::ModifyRedshiftIdcApplicationError::UnsupportedOperationFault(inner) => {
4670 Error::UnsupportedOperationFault(inner)
4671 }
4672 crate::operation::modify_redshift_idc_application::ModifyRedshiftIdcApplicationError::Unhandled(inner) => Error::Unhandled(inner),
4673 }
4674 }
4675}
4676impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_scheduled_action::ModifyScheduledActionError, R>> for Error
4677where
4678 R: Send + Sync + std::fmt::Debug + 'static,
4679{
4680 fn from(
4681 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_scheduled_action::ModifyScheduledActionError, R>,
4682 ) -> Self {
4683 match err {
4684 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4685 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4686 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4687 source: err.into(),
4688 }),
4689 }
4690 }
4691}
4692impl From<crate::operation::modify_scheduled_action::ModifyScheduledActionError> for Error {
4693 fn from(err: crate::operation::modify_scheduled_action::ModifyScheduledActionError) -> Self {
4694 match err {
4695 crate::operation::modify_scheduled_action::ModifyScheduledActionError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
4696 crate::operation::modify_scheduled_action::ModifyScheduledActionError::InvalidScheduledActionFault(inner) => {
4697 Error::InvalidScheduledActionFault(inner)
4698 }
4699 crate::operation::modify_scheduled_action::ModifyScheduledActionError::InvalidScheduleFault(inner) => Error::InvalidScheduleFault(inner),
4700 crate::operation::modify_scheduled_action::ModifyScheduledActionError::ScheduledActionNotFoundFault(inner) => {
4701 Error::ScheduledActionNotFoundFault(inner)
4702 }
4703 crate::operation::modify_scheduled_action::ModifyScheduledActionError::ScheduledActionTypeUnsupportedFault(inner) => {
4704 Error::ScheduledActionTypeUnsupportedFault(inner)
4705 }
4706 crate::operation::modify_scheduled_action::ModifyScheduledActionError::UnauthorizedOperation(inner) => {
4707 Error::UnauthorizedOperation(inner)
4708 }
4709 crate::operation::modify_scheduled_action::ModifyScheduledActionError::UnsupportedOperationFault(inner) => {
4710 Error::UnsupportedOperationFault(inner)
4711 }
4712 crate::operation::modify_scheduled_action::ModifyScheduledActionError::Unhandled(inner) => Error::Unhandled(inner),
4713 }
4714 }
4715}
4716impl<R>
4717 From<
4718 ::aws_smithy_runtime_api::client::result::SdkError<
4719 crate::operation::modify_snapshot_copy_retention_period::ModifySnapshotCopyRetentionPeriodError,
4720 R,
4721 >,
4722 > for Error
4723where
4724 R: Send + Sync + std::fmt::Debug + 'static,
4725{
4726 fn from(
4727 err: ::aws_smithy_runtime_api::client::result::SdkError<
4728 crate::operation::modify_snapshot_copy_retention_period::ModifySnapshotCopyRetentionPeriodError,
4729 R,
4730 >,
4731 ) -> Self {
4732 match err {
4733 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4734 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4735 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4736 source: err.into(),
4737 }),
4738 }
4739 }
4740}
4741impl From<crate::operation::modify_snapshot_copy_retention_period::ModifySnapshotCopyRetentionPeriodError> for Error {
4742 fn from(err: crate::operation::modify_snapshot_copy_retention_period::ModifySnapshotCopyRetentionPeriodError) -> Self {
4743 match err {
4744 crate::operation::modify_snapshot_copy_retention_period::ModifySnapshotCopyRetentionPeriodError::ClusterNotFoundFault(inner) => {
4745 Error::ClusterNotFoundFault(inner)
4746 }
4747 crate::operation::modify_snapshot_copy_retention_period::ModifySnapshotCopyRetentionPeriodError::InvalidClusterStateFault(inner) => {
4748 Error::InvalidClusterStateFault(inner)
4749 }
4750 crate::operation::modify_snapshot_copy_retention_period::ModifySnapshotCopyRetentionPeriodError::InvalidRetentionPeriodFault(inner) => {
4751 Error::InvalidRetentionPeriodFault(inner)
4752 }
4753 crate::operation::modify_snapshot_copy_retention_period::ModifySnapshotCopyRetentionPeriodError::SnapshotCopyDisabledFault(inner) => {
4754 Error::SnapshotCopyDisabledFault(inner)
4755 }
4756 crate::operation::modify_snapshot_copy_retention_period::ModifySnapshotCopyRetentionPeriodError::UnauthorizedOperation(inner) => {
4757 Error::UnauthorizedOperation(inner)
4758 }
4759 crate::operation::modify_snapshot_copy_retention_period::ModifySnapshotCopyRetentionPeriodError::Unhandled(inner) => {
4760 Error::Unhandled(inner)
4761 }
4762 }
4763 }
4764}
4765impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_schedule::ModifySnapshotScheduleError, R>> for Error
4766where
4767 R: Send + Sync + std::fmt::Debug + 'static,
4768{
4769 fn from(
4770 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_snapshot_schedule::ModifySnapshotScheduleError, R>,
4771 ) -> Self {
4772 match err {
4773 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4774 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4775 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4776 source: err.into(),
4777 }),
4778 }
4779 }
4780}
4781impl From<crate::operation::modify_snapshot_schedule::ModifySnapshotScheduleError> for Error {
4782 fn from(err: crate::operation::modify_snapshot_schedule::ModifySnapshotScheduleError) -> Self {
4783 match err {
4784 crate::operation::modify_snapshot_schedule::ModifySnapshotScheduleError::InvalidScheduleFault(inner) => {
4785 Error::InvalidScheduleFault(inner)
4786 }
4787 crate::operation::modify_snapshot_schedule::ModifySnapshotScheduleError::SnapshotScheduleNotFoundFault(inner) => {
4788 Error::SnapshotScheduleNotFoundFault(inner)
4789 }
4790 crate::operation::modify_snapshot_schedule::ModifySnapshotScheduleError::SnapshotScheduleUpdateInProgressFault(inner) => {
4791 Error::SnapshotScheduleUpdateInProgressFault(inner)
4792 }
4793 crate::operation::modify_snapshot_schedule::ModifySnapshotScheduleError::Unhandled(inner) => Error::Unhandled(inner),
4794 }
4795 }
4796}
4797impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_usage_limit::ModifyUsageLimitError, R>> for Error
4798where
4799 R: Send + Sync + std::fmt::Debug + 'static,
4800{
4801 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_usage_limit::ModifyUsageLimitError, R>) -> Self {
4802 match err {
4803 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4804 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4805 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4806 source: err.into(),
4807 }),
4808 }
4809 }
4810}
4811impl From<crate::operation::modify_usage_limit::ModifyUsageLimitError> for Error {
4812 fn from(err: crate::operation::modify_usage_limit::ModifyUsageLimitError) -> Self {
4813 match err {
4814 crate::operation::modify_usage_limit::ModifyUsageLimitError::InvalidUsageLimitFault(inner) => Error::InvalidUsageLimitFault(inner),
4815 crate::operation::modify_usage_limit::ModifyUsageLimitError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
4816 crate::operation::modify_usage_limit::ModifyUsageLimitError::UsageLimitNotFoundFault(inner) => Error::UsageLimitNotFoundFault(inner),
4817 crate::operation::modify_usage_limit::ModifyUsageLimitError::Unhandled(inner) => Error::Unhandled(inner),
4818 }
4819 }
4820}
4821impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::pause_cluster::PauseClusterError, R>> for Error
4822where
4823 R: Send + Sync + std::fmt::Debug + 'static,
4824{
4825 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::pause_cluster::PauseClusterError, R>) -> Self {
4826 match err {
4827 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4828 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4829 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4830 source: err.into(),
4831 }),
4832 }
4833 }
4834}
4835impl From<crate::operation::pause_cluster::PauseClusterError> for Error {
4836 fn from(err: crate::operation::pause_cluster::PauseClusterError) -> Self {
4837 match err {
4838 crate::operation::pause_cluster::PauseClusterError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
4839 crate::operation::pause_cluster::PauseClusterError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
4840 crate::operation::pause_cluster::PauseClusterError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
4841 crate::operation::pause_cluster::PauseClusterError::Unhandled(inner) => Error::Unhandled(inner),
4842 }
4843 }
4844}
4845impl<R>
4846 From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::purchase_reserved_node_offering::PurchaseReservedNodeOfferingError, R>>
4847 for Error
4848where
4849 R: Send + Sync + std::fmt::Debug + 'static,
4850{
4851 fn from(
4852 err: ::aws_smithy_runtime_api::client::result::SdkError<
4853 crate::operation::purchase_reserved_node_offering::PurchaseReservedNodeOfferingError,
4854 R,
4855 >,
4856 ) -> Self {
4857 match err {
4858 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4859 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4860 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4861 source: err.into(),
4862 }),
4863 }
4864 }
4865}
4866impl From<crate::operation::purchase_reserved_node_offering::PurchaseReservedNodeOfferingError> for Error {
4867 fn from(err: crate::operation::purchase_reserved_node_offering::PurchaseReservedNodeOfferingError) -> Self {
4868 match err {
4869 crate::operation::purchase_reserved_node_offering::PurchaseReservedNodeOfferingError::ReservedNodeAlreadyExistsFault(inner) => {
4870 Error::ReservedNodeAlreadyExistsFault(inner)
4871 }
4872 crate::operation::purchase_reserved_node_offering::PurchaseReservedNodeOfferingError::ReservedNodeOfferingNotFoundFault(inner) => {
4873 Error::ReservedNodeOfferingNotFoundFault(inner)
4874 }
4875 crate::operation::purchase_reserved_node_offering::PurchaseReservedNodeOfferingError::ReservedNodeQuotaExceededFault(inner) => {
4876 Error::ReservedNodeQuotaExceededFault(inner)
4877 }
4878 crate::operation::purchase_reserved_node_offering::PurchaseReservedNodeOfferingError::UnsupportedOperationFault(inner) => {
4879 Error::UnsupportedOperationFault(inner)
4880 }
4881 crate::operation::purchase_reserved_node_offering::PurchaseReservedNodeOfferingError::Unhandled(inner) => Error::Unhandled(inner),
4882 }
4883 }
4884}
4885impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>> for Error
4886where
4887 R: Send + Sync + std::fmt::Debug + 'static,
4888{
4889 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_resource_policy::PutResourcePolicyError, R>) -> Self {
4890 match err {
4891 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4892 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4893 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4894 source: err.into(),
4895 }),
4896 }
4897 }
4898}
4899impl From<crate::operation::put_resource_policy::PutResourcePolicyError> for Error {
4900 fn from(err: crate::operation::put_resource_policy::PutResourcePolicyError) -> Self {
4901 match err {
4902 crate::operation::put_resource_policy::PutResourcePolicyError::ConflictPolicyUpdateFault(inner) => {
4903 Error::ConflictPolicyUpdateFault(inner)
4904 }
4905 crate::operation::put_resource_policy::PutResourcePolicyError::InvalidPolicyFault(inner) => Error::InvalidPolicyFault(inner),
4906 crate::operation::put_resource_policy::PutResourcePolicyError::ResourceNotFoundFault(inner) => Error::ResourceNotFoundFault(inner),
4907 crate::operation::put_resource_policy::PutResourcePolicyError::UnsupportedOperationFault(inner) => {
4908 Error::UnsupportedOperationFault(inner)
4909 }
4910 crate::operation::put_resource_policy::PutResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
4911 }
4912 }
4913}
4914impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_cluster::RebootClusterError, R>> for Error
4915where
4916 R: Send + Sync + std::fmt::Debug + 'static,
4917{
4918 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_cluster::RebootClusterError, R>) -> Self {
4919 match err {
4920 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4921 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4922 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4923 source: err.into(),
4924 }),
4925 }
4926 }
4927}
4928impl From<crate::operation::reboot_cluster::RebootClusterError> for Error {
4929 fn from(err: crate::operation::reboot_cluster::RebootClusterError) -> Self {
4930 match err {
4931 crate::operation::reboot_cluster::RebootClusterError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
4932 crate::operation::reboot_cluster::RebootClusterError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
4933 crate::operation::reboot_cluster::RebootClusterError::Unhandled(inner) => Error::Unhandled(inner),
4934 }
4935 }
4936}
4937impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_namespace::RegisterNamespaceError, R>> for Error
4938where
4939 R: Send + Sync + std::fmt::Debug + 'static,
4940{
4941 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_namespace::RegisterNamespaceError, R>) -> Self {
4942 match err {
4943 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4944 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4945 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4946 source: err.into(),
4947 }),
4948 }
4949 }
4950}
4951impl From<crate::operation::register_namespace::RegisterNamespaceError> for Error {
4952 fn from(err: crate::operation::register_namespace::RegisterNamespaceError) -> Self {
4953 match err {
4954 crate::operation::register_namespace::RegisterNamespaceError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
4955 crate::operation::register_namespace::RegisterNamespaceError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
4956 crate::operation::register_namespace::RegisterNamespaceError::InvalidNamespaceFault(inner) => Error::InvalidNamespaceFault(inner),
4957 crate::operation::register_namespace::RegisterNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
4958 }
4959 }
4960}
4961impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_data_share::RejectDataShareError, R>> for Error
4962where
4963 R: Send + Sync + std::fmt::Debug + 'static,
4964{
4965 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reject_data_share::RejectDataShareError, R>) -> Self {
4966 match err {
4967 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4968 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4969 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4970 source: err.into(),
4971 }),
4972 }
4973 }
4974}
4975impl From<crate::operation::reject_data_share::RejectDataShareError> for Error {
4976 fn from(err: crate::operation::reject_data_share::RejectDataShareError) -> Self {
4977 match err {
4978 crate::operation::reject_data_share::RejectDataShareError::InvalidDataShareFault(inner) => Error::InvalidDataShareFault(inner),
4979 crate::operation::reject_data_share::RejectDataShareError::Unhandled(inner) => Error::Unhandled(inner),
4980 }
4981 }
4982}
4983impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_cluster_parameter_group::ResetClusterParameterGroupError, R>>
4984 for Error
4985where
4986 R: Send + Sync + std::fmt::Debug + 'static,
4987{
4988 fn from(
4989 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reset_cluster_parameter_group::ResetClusterParameterGroupError, R>,
4990 ) -> Self {
4991 match err {
4992 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
4993 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
4994 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
4995 source: err.into(),
4996 }),
4997 }
4998 }
4999}
5000impl From<crate::operation::reset_cluster_parameter_group::ResetClusterParameterGroupError> for Error {
5001 fn from(err: crate::operation::reset_cluster_parameter_group::ResetClusterParameterGroupError) -> Self {
5002 match err {
5003 crate::operation::reset_cluster_parameter_group::ResetClusterParameterGroupError::ClusterParameterGroupNotFoundFault(inner) => {
5004 Error::ClusterParameterGroupNotFoundFault(inner)
5005 }
5006 crate::operation::reset_cluster_parameter_group::ResetClusterParameterGroupError::InvalidClusterParameterGroupStateFault(inner) => {
5007 Error::InvalidClusterParameterGroupStateFault(inner)
5008 }
5009 crate::operation::reset_cluster_parameter_group::ResetClusterParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
5010 }
5011 }
5012}
5013impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resize_cluster::ResizeClusterError, R>> for Error
5014where
5015 R: Send + Sync + std::fmt::Debug + 'static,
5016{
5017 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resize_cluster::ResizeClusterError, R>) -> Self {
5018 match err {
5019 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5020 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5021 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5022 source: err.into(),
5023 }),
5024 }
5025 }
5026}
5027impl From<crate::operation::resize_cluster::ResizeClusterError> for Error {
5028 fn from(err: crate::operation::resize_cluster::ResizeClusterError) -> Self {
5029 match err {
5030 crate::operation::resize_cluster::ResizeClusterError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
5031 crate::operation::resize_cluster::ResizeClusterError::DependentServiceUnavailableFault(inner) => {
5032 Error::DependentServiceUnavailableFault(inner)
5033 }
5034 crate::operation::resize_cluster::ResizeClusterError::InsufficientClusterCapacityFault(inner) => {
5035 Error::InsufficientClusterCapacityFault(inner)
5036 }
5037 crate::operation::resize_cluster::ResizeClusterError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
5038 crate::operation::resize_cluster::ResizeClusterError::InvalidReservedNodeStateFault(inner) => Error::InvalidReservedNodeStateFault(inner),
5039 crate::operation::resize_cluster::ResizeClusterError::LimitExceededFault(inner) => Error::LimitExceededFault(inner),
5040 crate::operation::resize_cluster::ResizeClusterError::NumberOfNodesPerClusterLimitExceededFault(inner) => {
5041 Error::NumberOfNodesPerClusterLimitExceededFault(inner)
5042 }
5043 crate::operation::resize_cluster::ResizeClusterError::NumberOfNodesQuotaExceededFault(inner) => {
5044 Error::NumberOfNodesQuotaExceededFault(inner)
5045 }
5046 crate::operation::resize_cluster::ResizeClusterError::ReservedNodeAlreadyExistsFault(inner) => {
5047 Error::ReservedNodeAlreadyExistsFault(inner)
5048 }
5049 crate::operation::resize_cluster::ResizeClusterError::ReservedNodeAlreadyMigratedFault(inner) => {
5050 Error::ReservedNodeAlreadyMigratedFault(inner)
5051 }
5052 crate::operation::resize_cluster::ResizeClusterError::ReservedNodeNotFoundFault(inner) => Error::ReservedNodeNotFoundFault(inner),
5053 crate::operation::resize_cluster::ResizeClusterError::ReservedNodeOfferingNotFoundFault(inner) => {
5054 Error::ReservedNodeOfferingNotFoundFault(inner)
5055 }
5056 crate::operation::resize_cluster::ResizeClusterError::UnauthorizedOperation(inner) => Error::UnauthorizedOperation(inner),
5057 crate::operation::resize_cluster::ResizeClusterError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
5058 crate::operation::resize_cluster::ResizeClusterError::UnsupportedOptionFault(inner) => Error::UnsupportedOptionFault(inner),
5059 crate::operation::resize_cluster::ResizeClusterError::Unhandled(inner) => Error::Unhandled(inner),
5060 }
5061 }
5062}
5063impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError, R>>
5064 for Error
5065where
5066 R: Send + Sync + std::fmt::Debug + 'static,
5067{
5068 fn from(
5069 err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError, R>,
5070 ) -> Self {
5071 match err {
5072 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5073 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5074 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5075 source: err.into(),
5076 }),
5077 }
5078 }
5079}
5080impl From<crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError> for Error {
5081 fn from(err: crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError) -> Self {
5082 match err {
5083 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::AccessToSnapshotDeniedFault(inner) => {
5084 Error::AccessToSnapshotDeniedFault(inner)
5085 }
5086 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::ClusterAlreadyExistsFault(inner) => {
5087 Error::ClusterAlreadyExistsFault(inner)
5088 }
5089 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::ClusterParameterGroupNotFoundFault(inner) => {
5090 Error::ClusterParameterGroupNotFoundFault(inner)
5091 }
5092 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::ClusterQuotaExceededFault(inner) => {
5093 Error::ClusterQuotaExceededFault(inner)
5094 }
5095 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::ClusterSecurityGroupNotFoundFault(inner) => {
5096 Error::ClusterSecurityGroupNotFoundFault(inner)
5097 }
5098 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::ClusterSnapshotNotFoundFault(inner) => {
5099 Error::ClusterSnapshotNotFoundFault(inner)
5100 }
5101 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::ClusterSubnetGroupNotFoundFault(inner) => {
5102 Error::ClusterSubnetGroupNotFoundFault(inner)
5103 }
5104 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::DependentServiceAccessDeniedFault(inner) => {
5105 Error::DependentServiceAccessDeniedFault(inner)
5106 }
5107 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::DependentServiceRequestThrottlingFault(inner) => {
5108 Error::DependentServiceRequestThrottlingFault(inner)
5109 }
5110 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::DependentServiceUnavailableFault(inner) => {
5111 Error::DependentServiceUnavailableFault(inner)
5112 }
5113 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::HsmClientCertificateNotFoundFault(inner) => {
5114 Error::HsmClientCertificateNotFoundFault(inner)
5115 }
5116 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::HsmConfigurationNotFoundFault(inner) => {
5117 Error::HsmConfigurationNotFoundFault(inner)
5118 }
5119 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::InsufficientClusterCapacityFault(inner) => {
5120 Error::InsufficientClusterCapacityFault(inner)
5121 }
5122 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::InvalidClusterSnapshotStateFault(inner) => {
5123 Error::InvalidClusterSnapshotStateFault(inner)
5124 }
5125 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::InvalidClusterSubnetGroupStateFault(inner) => {
5126 Error::InvalidClusterSubnetGroupStateFault(inner)
5127 }
5128 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::InvalidClusterTrackFault(inner) => {
5129 Error::InvalidClusterTrackFault(inner)
5130 }
5131 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::InvalidElasticIpFault(inner) => {
5132 Error::InvalidElasticIpFault(inner)
5133 }
5134 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::InvalidReservedNodeStateFault(inner) => {
5135 Error::InvalidReservedNodeStateFault(inner)
5136 }
5137 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::InvalidRestoreFault(inner) => {
5138 Error::InvalidRestoreFault(inner)
5139 }
5140 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
5141 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::InvalidTagFault(inner) => Error::InvalidTagFault(inner),
5142 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::InvalidVpcNetworkStateFault(inner) => {
5143 Error::InvalidVpcNetworkStateFault(inner)
5144 }
5145 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::Ipv6CidrBlockNotFoundFault(inner) => {
5146 Error::Ipv6CidrBlockNotFoundFault(inner)
5147 }
5148 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::LimitExceededFault(inner) => {
5149 Error::LimitExceededFault(inner)
5150 }
5151 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::NumberOfNodesPerClusterLimitExceededFault(inner) => {
5152 Error::NumberOfNodesPerClusterLimitExceededFault(inner)
5153 }
5154 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::NumberOfNodesQuotaExceededFault(inner) => {
5155 Error::NumberOfNodesQuotaExceededFault(inner)
5156 }
5157 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::RedshiftIdcApplicationNotExistsFault(inner) => {
5158 Error::RedshiftIdcApplicationNotExistsFault(inner)
5159 }
5160 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::ReservedNodeAlreadyExistsFault(inner) => {
5161 Error::ReservedNodeAlreadyExistsFault(inner)
5162 }
5163 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::ReservedNodeAlreadyMigratedFault(inner) => {
5164 Error::ReservedNodeAlreadyMigratedFault(inner)
5165 }
5166 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::ReservedNodeNotFoundFault(inner) => {
5167 Error::ReservedNodeNotFoundFault(inner)
5168 }
5169 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::ReservedNodeOfferingNotFoundFault(inner) => {
5170 Error::ReservedNodeOfferingNotFoundFault(inner)
5171 }
5172 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::SnapshotScheduleNotFoundFault(inner) => {
5173 Error::SnapshotScheduleNotFoundFault(inner)
5174 }
5175 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::TagLimitExceededFault(inner) => {
5176 Error::TagLimitExceededFault(inner)
5177 }
5178 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::UnauthorizedOperation(inner) => {
5179 Error::UnauthorizedOperation(inner)
5180 }
5181 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::UnsupportedOperationFault(inner) => {
5182 Error::UnsupportedOperationFault(inner)
5183 }
5184 crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
5185 }
5186 }
5187}
5188impl<R>
5189 From<
5190 ::aws_smithy_runtime_api::client::result::SdkError<
5191 crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotError,
5192 R,
5193 >,
5194 > for Error
5195where
5196 R: Send + Sync + std::fmt::Debug + 'static,
5197{
5198 fn from(
5199 err: ::aws_smithy_runtime_api::client::result::SdkError<
5200 crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotError,
5201 R,
5202 >,
5203 ) -> Self {
5204 match err {
5205 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5206 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5207 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5208 source: err.into(),
5209 }),
5210 }
5211 }
5212}
5213impl From<crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotError> for Error {
5214 fn from(err: crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotError) -> Self {
5215 match err {
5216 crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotError::ClusterNotFoundFault(inner) => {
5217 Error::ClusterNotFoundFault(inner)
5218 }
5219 crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotError::ClusterSnapshotNotFoundFault(inner) => {
5220 Error::ClusterSnapshotNotFoundFault(inner)
5221 }
5222 crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotError::InProgressTableRestoreQuotaExceededFault(
5223 inner,
5224 ) => Error::InProgressTableRestoreQuotaExceededFault(inner),
5225 crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotError::InvalidClusterSnapshotStateFault(inner) => {
5226 Error::InvalidClusterSnapshotStateFault(inner)
5227 }
5228 crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotError::InvalidClusterStateFault(inner) => {
5229 Error::InvalidClusterStateFault(inner)
5230 }
5231 crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotError::InvalidTableRestoreArgumentFault(inner) => {
5232 Error::InvalidTableRestoreArgumentFault(inner)
5233 }
5234 crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotError::UnsupportedOperationFault(inner) => {
5235 Error::UnsupportedOperationFault(inner)
5236 }
5237 crate::operation::restore_table_from_cluster_snapshot::RestoreTableFromClusterSnapshotError::Unhandled(inner) => Error::Unhandled(inner),
5238 }
5239 }
5240}
5241impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_cluster::ResumeClusterError, R>> for Error
5242where
5243 R: Send + Sync + std::fmt::Debug + 'static,
5244{
5245 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::resume_cluster::ResumeClusterError, R>) -> Self {
5246 match err {
5247 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5248 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5249 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5250 source: err.into(),
5251 }),
5252 }
5253 }
5254}
5255impl From<crate::operation::resume_cluster::ResumeClusterError> for Error {
5256 fn from(err: crate::operation::resume_cluster::ResumeClusterError) -> Self {
5257 match err {
5258 crate::operation::resume_cluster::ResumeClusterError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
5259 crate::operation::resume_cluster::ResumeClusterError::InsufficientClusterCapacityFault(inner) => {
5260 Error::InsufficientClusterCapacityFault(inner)
5261 }
5262 crate::operation::resume_cluster::ResumeClusterError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
5263 crate::operation::resume_cluster::ResumeClusterError::UnsupportedOperationFault(inner) => Error::UnsupportedOperationFault(inner),
5264 crate::operation::resume_cluster::ResumeClusterError::Unhandled(inner) => Error::Unhandled(inner),
5265 }
5266 }
5267}
5268impl<R>
5269 From<
5270 ::aws_smithy_runtime_api::client::result::SdkError<
5271 crate::operation::revoke_cluster_security_group_ingress::RevokeClusterSecurityGroupIngressError,
5272 R,
5273 >,
5274 > for Error
5275where
5276 R: Send + Sync + std::fmt::Debug + 'static,
5277{
5278 fn from(
5279 err: ::aws_smithy_runtime_api::client::result::SdkError<
5280 crate::operation::revoke_cluster_security_group_ingress::RevokeClusterSecurityGroupIngressError,
5281 R,
5282 >,
5283 ) -> Self {
5284 match err {
5285 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5286 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5287 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5288 source: err.into(),
5289 }),
5290 }
5291 }
5292}
5293impl From<crate::operation::revoke_cluster_security_group_ingress::RevokeClusterSecurityGroupIngressError> for Error {
5294 fn from(err: crate::operation::revoke_cluster_security_group_ingress::RevokeClusterSecurityGroupIngressError) -> Self {
5295 match err {
5296 crate::operation::revoke_cluster_security_group_ingress::RevokeClusterSecurityGroupIngressError::AuthorizationNotFoundFault(inner) => Error::AuthorizationNotFoundFault(inner),
5297 crate::operation::revoke_cluster_security_group_ingress::RevokeClusterSecurityGroupIngressError::ClusterSecurityGroupNotFoundFault(inner) => Error::ClusterSecurityGroupNotFoundFault(inner),
5298 crate::operation::revoke_cluster_security_group_ingress::RevokeClusterSecurityGroupIngressError::InvalidClusterSecurityGroupStateFault(inner) => Error::InvalidClusterSecurityGroupStateFault(inner),
5299 crate::operation::revoke_cluster_security_group_ingress::RevokeClusterSecurityGroupIngressError::Unhandled(inner) => Error::Unhandled(inner),
5300 }
5301 }
5302}
5303impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_endpoint_access::RevokeEndpointAccessError, R>> for Error
5304where
5305 R: Send + Sync + std::fmt::Debug + 'static,
5306{
5307 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_endpoint_access::RevokeEndpointAccessError, R>) -> Self {
5308 match err {
5309 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5310 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5311 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5312 source: err.into(),
5313 }),
5314 }
5315 }
5316}
5317impl From<crate::operation::revoke_endpoint_access::RevokeEndpointAccessError> for Error {
5318 fn from(err: crate::operation::revoke_endpoint_access::RevokeEndpointAccessError) -> Self {
5319 match err {
5320 crate::operation::revoke_endpoint_access::RevokeEndpointAccessError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
5321 crate::operation::revoke_endpoint_access::RevokeEndpointAccessError::EndpointAuthorizationNotFoundFault(inner) => {
5322 Error::EndpointAuthorizationNotFoundFault(inner)
5323 }
5324 crate::operation::revoke_endpoint_access::RevokeEndpointAccessError::EndpointNotFoundFault(inner) => Error::EndpointNotFoundFault(inner),
5325 crate::operation::revoke_endpoint_access::RevokeEndpointAccessError::InvalidAuthorizationStateFault(inner) => {
5326 Error::InvalidAuthorizationStateFault(inner)
5327 }
5328 crate::operation::revoke_endpoint_access::RevokeEndpointAccessError::InvalidClusterSecurityGroupStateFault(inner) => {
5329 Error::InvalidClusterSecurityGroupStateFault(inner)
5330 }
5331 crate::operation::revoke_endpoint_access::RevokeEndpointAccessError::InvalidClusterStateFault(inner) => {
5332 Error::InvalidClusterStateFault(inner)
5333 }
5334 crate::operation::revoke_endpoint_access::RevokeEndpointAccessError::InvalidEndpointStateFault(inner) => {
5335 Error::InvalidEndpointStateFault(inner)
5336 }
5337 crate::operation::revoke_endpoint_access::RevokeEndpointAccessError::Unhandled(inner) => Error::Unhandled(inner),
5338 }
5339 }
5340}
5341impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_snapshot_access::RevokeSnapshotAccessError, R>> for Error
5342where
5343 R: Send + Sync + std::fmt::Debug + 'static,
5344{
5345 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::revoke_snapshot_access::RevokeSnapshotAccessError, R>) -> Self {
5346 match err {
5347 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5348 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5349 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5350 source: err.into(),
5351 }),
5352 }
5353 }
5354}
5355impl From<crate::operation::revoke_snapshot_access::RevokeSnapshotAccessError> for Error {
5356 fn from(err: crate::operation::revoke_snapshot_access::RevokeSnapshotAccessError) -> Self {
5357 match err {
5358 crate::operation::revoke_snapshot_access::RevokeSnapshotAccessError::AccessToSnapshotDeniedFault(inner) => {
5359 Error::AccessToSnapshotDeniedFault(inner)
5360 }
5361 crate::operation::revoke_snapshot_access::RevokeSnapshotAccessError::AuthorizationNotFoundFault(inner) => {
5362 Error::AuthorizationNotFoundFault(inner)
5363 }
5364 crate::operation::revoke_snapshot_access::RevokeSnapshotAccessError::ClusterSnapshotNotFoundFault(inner) => {
5365 Error::ClusterSnapshotNotFoundFault(inner)
5366 }
5367 crate::operation::revoke_snapshot_access::RevokeSnapshotAccessError::UnsupportedOperationFault(inner) => {
5368 Error::UnsupportedOperationFault(inner)
5369 }
5370 crate::operation::revoke_snapshot_access::RevokeSnapshotAccessError::Unhandled(inner) => Error::Unhandled(inner),
5371 }
5372 }
5373}
5374impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rotate_encryption_key::RotateEncryptionKeyError, R>> for Error
5375where
5376 R: Send + Sync + std::fmt::Debug + 'static,
5377{
5378 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::rotate_encryption_key::RotateEncryptionKeyError, R>) -> Self {
5379 match err {
5380 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5381 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5382 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5383 source: err.into(),
5384 }),
5385 }
5386 }
5387}
5388impl From<crate::operation::rotate_encryption_key::RotateEncryptionKeyError> for Error {
5389 fn from(err: crate::operation::rotate_encryption_key::RotateEncryptionKeyError) -> Self {
5390 match err {
5391 crate::operation::rotate_encryption_key::RotateEncryptionKeyError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
5392 crate::operation::rotate_encryption_key::RotateEncryptionKeyError::DependentServiceRequestThrottlingFault(inner) => {
5393 Error::DependentServiceRequestThrottlingFault(inner)
5394 }
5395 crate::operation::rotate_encryption_key::RotateEncryptionKeyError::InvalidClusterStateFault(inner) => {
5396 Error::InvalidClusterStateFault(inner)
5397 }
5398 crate::operation::rotate_encryption_key::RotateEncryptionKeyError::UnsupportedOperationFault(inner) => {
5399 Error::UnsupportedOperationFault(inner)
5400 }
5401 crate::operation::rotate_encryption_key::RotateEncryptionKeyError::Unhandled(inner) => Error::Unhandled(inner),
5402 }
5403 }
5404}
5405impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_status::UpdatePartnerStatusError, R>> for Error
5406where
5407 R: Send + Sync + std::fmt::Debug + 'static,
5408{
5409 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_partner_status::UpdatePartnerStatusError, R>) -> Self {
5410 match err {
5411 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
5412 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5413 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
5414 source: err.into(),
5415 }),
5416 }
5417 }
5418}
5419impl From<crate::operation::update_partner_status::UpdatePartnerStatusError> for Error {
5420 fn from(err: crate::operation::update_partner_status::UpdatePartnerStatusError) -> Self {
5421 match err {
5422 crate::operation::update_partner_status::UpdatePartnerStatusError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
5423 crate::operation::update_partner_status::UpdatePartnerStatusError::PartnerNotFoundFault(inner) => Error::PartnerNotFoundFault(inner),
5424 crate::operation::update_partner_status::UpdatePartnerStatusError::UnauthorizedPartnerIntegrationFault(inner) => {
5425 Error::UnauthorizedPartnerIntegrationFault(inner)
5426 }
5427 crate::operation::update_partner_status::UpdatePartnerStatusError::UnsupportedOperationFault(inner) => {
5428 Error::UnsupportedOperationFault(inner)
5429 }
5430 crate::operation::update_partner_status::UpdatePartnerStatusError::Unhandled(inner) => Error::Unhandled(inner),
5431 }
5432 }
5433}
5434impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
5435where
5436 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
5437 E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
5438{
5439 fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
5440 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
5441 meta: ::std::default::Default::default(),
5442 source: err.into(),
5443 })
5444 }
5445}
5446impl ::std::error::Error for Error {
5447 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
5448 match self {
5449 Error::AccessToClusterDeniedFault(inner) => inner.source(),
5450 Error::AccessToSnapshotDeniedFault(inner) => inner.source(),
5451 Error::AuthenticationProfileAlreadyExistsFault(inner) => inner.source(),
5452 Error::AuthenticationProfileNotFoundFault(inner) => inner.source(),
5453 Error::AuthenticationProfileQuotaExceededFault(inner) => inner.source(),
5454 Error::AuthorizationAlreadyExistsFault(inner) => inner.source(),
5455 Error::AuthorizationNotFoundFault(inner) => inner.source(),
5456 Error::AuthorizationQuotaExceededFault(inner) => inner.source(),
5457 Error::BatchDeleteRequestSizeExceededFault(inner) => inner.source(),
5458 Error::BatchModifyClusterSnapshotsLimitExceededFault(inner) => inner.source(),
5459 Error::BucketNotFoundFault(inner) => inner.source(),
5460 Error::ClusterAlreadyExistsFault(inner) => inner.source(),
5461 Error::ClusterNotFoundFault(inner) => inner.source(),
5462 Error::ClusterOnLatestRevisionFault(inner) => inner.source(),
5463 Error::ClusterParameterGroupAlreadyExistsFault(inner) => inner.source(),
5464 Error::ClusterParameterGroupNotFoundFault(inner) => inner.source(),
5465 Error::ClusterParameterGroupQuotaExceededFault(inner) => inner.source(),
5466 Error::ClusterQuotaExceededFault(inner) => inner.source(),
5467 Error::ClusterSecurityGroupAlreadyExistsFault(inner) => inner.source(),
5468 Error::ClusterSecurityGroupNotFoundFault(inner) => inner.source(),
5469 Error::ClusterSecurityGroupQuotaExceededFault(inner) => inner.source(),
5470 Error::ClusterSnapshotAlreadyExistsFault(inner) => inner.source(),
5471 Error::ClusterSnapshotNotFoundFault(inner) => inner.source(),
5472 Error::ClusterSnapshotQuotaExceededFault(inner) => inner.source(),
5473 Error::ClusterSubnetGroupAlreadyExistsFault(inner) => inner.source(),
5474 Error::ClusterSubnetGroupNotFoundFault(inner) => inner.source(),
5475 Error::ClusterSubnetGroupQuotaExceededFault(inner) => inner.source(),
5476 Error::ClusterSubnetQuotaExceededFault(inner) => inner.source(),
5477 Error::ConflictPolicyUpdateFault(inner) => inner.source(),
5478 Error::CopyToRegionDisabledFault(inner) => inner.source(),
5479 Error::CustomCnameAssociationFault(inner) => inner.source(),
5480 Error::CustomDomainAssociationNotFoundFault(inner) => inner.source(),
5481 Error::DependentServiceAccessDeniedFault(inner) => inner.source(),
5482 Error::DependentServiceRequestThrottlingFault(inner) => inner.source(),
5483 Error::DependentServiceUnavailableFault(inner) => inner.source(),
5484 Error::EndpointAlreadyExistsFault(inner) => inner.source(),
5485 Error::EndpointAuthorizationAlreadyExistsFault(inner) => inner.source(),
5486 Error::EndpointAuthorizationNotFoundFault(inner) => inner.source(),
5487 Error::EndpointAuthorizationsPerClusterLimitExceededFault(inner) => inner.source(),
5488 Error::EndpointNotFoundFault(inner) => inner.source(),
5489 Error::EndpointsPerAuthorizationLimitExceededFault(inner) => inner.source(),
5490 Error::EndpointsPerClusterLimitExceededFault(inner) => inner.source(),
5491 Error::EventSubscriptionQuotaExceededFault(inner) => inner.source(),
5492 Error::HsmClientCertificateAlreadyExistsFault(inner) => inner.source(),
5493 Error::HsmClientCertificateNotFoundFault(inner) => inner.source(),
5494 Error::HsmClientCertificateQuotaExceededFault(inner) => inner.source(),
5495 Error::HsmConfigurationAlreadyExistsFault(inner) => inner.source(),
5496 Error::HsmConfigurationNotFoundFault(inner) => inner.source(),
5497 Error::HsmConfigurationQuotaExceededFault(inner) => inner.source(),
5498 Error::InProgressTableRestoreQuotaExceededFault(inner) => inner.source(),
5499 Error::IncompatibleOrderableOptions(inner) => inner.source(),
5500 Error::InsufficientClusterCapacityFault(inner) => inner.source(),
5501 Error::InsufficientS3BucketPolicyFault(inner) => inner.source(),
5502 Error::IntegrationAlreadyExistsFault(inner) => inner.source(),
5503 Error::IntegrationConflictOperationFault(inner) => inner.source(),
5504 Error::IntegrationConflictStateFault(inner) => inner.source(),
5505 Error::IntegrationNotFoundFault(inner) => inner.source(),
5506 Error::IntegrationQuotaExceededFault(inner) => inner.source(),
5507 Error::IntegrationSourceNotFoundFault(inner) => inner.source(),
5508 Error::IntegrationTargetNotFoundFault(inner) => inner.source(),
5509 Error::InvalidAuthenticationProfileRequestFault(inner) => inner.source(),
5510 Error::InvalidAuthorizationStateFault(inner) => inner.source(),
5511 Error::InvalidClusterParameterGroupStateFault(inner) => inner.source(),
5512 Error::InvalidClusterSecurityGroupStateFault(inner) => inner.source(),
5513 Error::InvalidClusterSnapshotScheduleStateFault(inner) => inner.source(),
5514 Error::InvalidClusterSnapshotStateFault(inner) => inner.source(),
5515 Error::InvalidClusterStateFault(inner) => inner.source(),
5516 Error::InvalidClusterSubnetGroupStateFault(inner) => inner.source(),
5517 Error::InvalidClusterSubnetStateFault(inner) => inner.source(),
5518 Error::InvalidClusterTrackFault(inner) => inner.source(),
5519 Error::InvalidDataShareFault(inner) => inner.source(),
5520 Error::InvalidElasticIpFault(inner) => inner.source(),
5521 Error::InvalidEndpointStateFault(inner) => inner.source(),
5522 Error::InvalidHsmClientCertificateStateFault(inner) => inner.source(),
5523 Error::InvalidHsmConfigurationStateFault(inner) => inner.source(),
5524 Error::InvalidNamespaceFault(inner) => inner.source(),
5525 Error::InvalidPolicyFault(inner) => inner.source(),
5526 Error::InvalidReservedNodeStateFault(inner) => inner.source(),
5527 Error::InvalidRestoreFault(inner) => inner.source(),
5528 Error::InvalidRetentionPeriodFault(inner) => inner.source(),
5529 Error::InvalidS3BucketNameFault(inner) => inner.source(),
5530 Error::InvalidS3KeyPrefixFault(inner) => inner.source(),
5531 Error::InvalidScheduleFault(inner) => inner.source(),
5532 Error::InvalidScheduledActionFault(inner) => inner.source(),
5533 Error::InvalidSnapshotCopyGrantStateFault(inner) => inner.source(),
5534 Error::InvalidSubnet(inner) => inner.source(),
5535 Error::InvalidSubscriptionStateFault(inner) => inner.source(),
5536 Error::InvalidTableRestoreArgumentFault(inner) => inner.source(),
5537 Error::InvalidTagFault(inner) => inner.source(),
5538 Error::InvalidUsageLimitFault(inner) => inner.source(),
5539 Error::InvalidVpcNetworkStateFault(inner) => inner.source(),
5540 Error::Ipv6CidrBlockNotFoundFault(inner) => inner.source(),
5541 Error::LimitExceededFault(inner) => inner.source(),
5542 Error::NumberOfNodesPerClusterLimitExceededFault(inner) => inner.source(),
5543 Error::NumberOfNodesQuotaExceededFault(inner) => inner.source(),
5544 Error::PartnerNotFoundFault(inner) => inner.source(),
5545 Error::RedshiftIdcApplicationAlreadyExistsFault(inner) => inner.source(),
5546 Error::RedshiftIdcApplicationNotExistsFault(inner) => inner.source(),
5547 Error::RedshiftIdcApplicationQuotaExceededFault(inner) => inner.source(),
5548 Error::RedshiftInvalidParameterFault(inner) => inner.source(),
5549 Error::ReservedNodeAlreadyExistsFault(inner) => inner.source(),
5550 Error::ReservedNodeAlreadyMigratedFault(inner) => inner.source(),
5551 Error::ReservedNodeExchangeNotFoundFault(inner) => inner.source(),
5552 Error::ReservedNodeNotFoundFault(inner) => inner.source(),
5553 Error::ReservedNodeOfferingNotFoundFault(inner) => inner.source(),
5554 Error::ReservedNodeQuotaExceededFault(inner) => inner.source(),
5555 Error::ResizeNotFoundFault(inner) => inner.source(),
5556 Error::ResourceNotFoundFault(inner) => inner.source(),
5557 Error::SnsInvalidTopicFault(inner) => inner.source(),
5558 Error::SnsNoAuthorizationFault(inner) => inner.source(),
5559 Error::SnsTopicArnNotFoundFault(inner) => inner.source(),
5560 Error::ScheduleDefinitionTypeUnsupportedFault(inner) => inner.source(),
5561 Error::ScheduledActionAlreadyExistsFault(inner) => inner.source(),
5562 Error::ScheduledActionNotFoundFault(inner) => inner.source(),
5563 Error::ScheduledActionQuotaExceededFault(inner) => inner.source(),
5564 Error::ScheduledActionTypeUnsupportedFault(inner) => inner.source(),
5565 Error::SnapshotCopyAlreadyDisabledFault(inner) => inner.source(),
5566 Error::SnapshotCopyAlreadyEnabledFault(inner) => inner.source(),
5567 Error::SnapshotCopyDisabledFault(inner) => inner.source(),
5568 Error::SnapshotCopyGrantAlreadyExistsFault(inner) => inner.source(),
5569 Error::SnapshotCopyGrantNotFoundFault(inner) => inner.source(),
5570 Error::SnapshotCopyGrantQuotaExceededFault(inner) => inner.source(),
5571 Error::SnapshotScheduleAlreadyExistsFault(inner) => inner.source(),
5572 Error::SnapshotScheduleNotFoundFault(inner) => inner.source(),
5573 Error::SnapshotScheduleQuotaExceededFault(inner) => inner.source(),
5574 Error::SnapshotScheduleUpdateInProgressFault(inner) => inner.source(),
5575 Error::SourceNotFoundFault(inner) => inner.source(),
5576 Error::SubnetAlreadyInUse(inner) => inner.source(),
5577 Error::SubscriptionAlreadyExistFault(inner) => inner.source(),
5578 Error::SubscriptionCategoryNotFoundFault(inner) => inner.source(),
5579 Error::SubscriptionEventIdNotFoundFault(inner) => inner.source(),
5580 Error::SubscriptionNotFoundFault(inner) => inner.source(),
5581 Error::SubscriptionSeverityNotFoundFault(inner) => inner.source(),
5582 Error::TableLimitExceededFault(inner) => inner.source(),
5583 Error::TableRestoreNotFoundFault(inner) => inner.source(),
5584 Error::TagLimitExceededFault(inner) => inner.source(),
5585 Error::UnauthorizedOperation(inner) => inner.source(),
5586 Error::UnauthorizedPartnerIntegrationFault(inner) => inner.source(),
5587 Error::UnknownSnapshotCopyRegionFault(inner) => inner.source(),
5588 Error::UnsupportedOperationFault(inner) => inner.source(),
5589 Error::UnsupportedOptionFault(inner) => inner.source(),
5590 Error::UsageLimitAlreadyExistsFault(inner) => inner.source(),
5591 Error::UsageLimitNotFoundFault(inner) => inner.source(),
5592 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
5593 }
5594 }
5595}
5596impl ::aws_types::request_id::RequestId for Error {
5597 fn request_id(&self) -> Option<&str> {
5598 match self {
5599 Self::AccessToClusterDeniedFault(e) => e.request_id(),
5600 Self::AccessToSnapshotDeniedFault(e) => e.request_id(),
5601 Self::AuthenticationProfileAlreadyExistsFault(e) => e.request_id(),
5602 Self::AuthenticationProfileNotFoundFault(e) => e.request_id(),
5603 Self::AuthenticationProfileQuotaExceededFault(e) => e.request_id(),
5604 Self::AuthorizationAlreadyExistsFault(e) => e.request_id(),
5605 Self::AuthorizationNotFoundFault(e) => e.request_id(),
5606 Self::AuthorizationQuotaExceededFault(e) => e.request_id(),
5607 Self::BatchDeleteRequestSizeExceededFault(e) => e.request_id(),
5608 Self::BatchModifyClusterSnapshotsLimitExceededFault(e) => e.request_id(),
5609 Self::BucketNotFoundFault(e) => e.request_id(),
5610 Self::ClusterAlreadyExistsFault(e) => e.request_id(),
5611 Self::ClusterNotFoundFault(e) => e.request_id(),
5612 Self::ClusterOnLatestRevisionFault(e) => e.request_id(),
5613 Self::ClusterParameterGroupAlreadyExistsFault(e) => e.request_id(),
5614 Self::ClusterParameterGroupNotFoundFault(e) => e.request_id(),
5615 Self::ClusterParameterGroupQuotaExceededFault(e) => e.request_id(),
5616 Self::ClusterQuotaExceededFault(e) => e.request_id(),
5617 Self::ClusterSecurityGroupAlreadyExistsFault(e) => e.request_id(),
5618 Self::ClusterSecurityGroupNotFoundFault(e) => e.request_id(),
5619 Self::ClusterSecurityGroupQuotaExceededFault(e) => e.request_id(),
5620 Self::ClusterSnapshotAlreadyExistsFault(e) => e.request_id(),
5621 Self::ClusterSnapshotNotFoundFault(e) => e.request_id(),
5622 Self::ClusterSnapshotQuotaExceededFault(e) => e.request_id(),
5623 Self::ClusterSubnetGroupAlreadyExistsFault(e) => e.request_id(),
5624 Self::ClusterSubnetGroupNotFoundFault(e) => e.request_id(),
5625 Self::ClusterSubnetGroupQuotaExceededFault(e) => e.request_id(),
5626 Self::ClusterSubnetQuotaExceededFault(e) => e.request_id(),
5627 Self::ConflictPolicyUpdateFault(e) => e.request_id(),
5628 Self::CopyToRegionDisabledFault(e) => e.request_id(),
5629 Self::CustomCnameAssociationFault(e) => e.request_id(),
5630 Self::CustomDomainAssociationNotFoundFault(e) => e.request_id(),
5631 Self::DependentServiceAccessDeniedFault(e) => e.request_id(),
5632 Self::DependentServiceRequestThrottlingFault(e) => e.request_id(),
5633 Self::DependentServiceUnavailableFault(e) => e.request_id(),
5634 Self::EndpointAlreadyExistsFault(e) => e.request_id(),
5635 Self::EndpointAuthorizationAlreadyExistsFault(e) => e.request_id(),
5636 Self::EndpointAuthorizationNotFoundFault(e) => e.request_id(),
5637 Self::EndpointAuthorizationsPerClusterLimitExceededFault(e) => e.request_id(),
5638 Self::EndpointNotFoundFault(e) => e.request_id(),
5639 Self::EndpointsPerAuthorizationLimitExceededFault(e) => e.request_id(),
5640 Self::EndpointsPerClusterLimitExceededFault(e) => e.request_id(),
5641 Self::EventSubscriptionQuotaExceededFault(e) => e.request_id(),
5642 Self::HsmClientCertificateAlreadyExistsFault(e) => e.request_id(),
5643 Self::HsmClientCertificateNotFoundFault(e) => e.request_id(),
5644 Self::HsmClientCertificateQuotaExceededFault(e) => e.request_id(),
5645 Self::HsmConfigurationAlreadyExistsFault(e) => e.request_id(),
5646 Self::HsmConfigurationNotFoundFault(e) => e.request_id(),
5647 Self::HsmConfigurationQuotaExceededFault(e) => e.request_id(),
5648 Self::InProgressTableRestoreQuotaExceededFault(e) => e.request_id(),
5649 Self::IncompatibleOrderableOptions(e) => e.request_id(),
5650 Self::InsufficientClusterCapacityFault(e) => e.request_id(),
5651 Self::InsufficientS3BucketPolicyFault(e) => e.request_id(),
5652 Self::IntegrationAlreadyExistsFault(e) => e.request_id(),
5653 Self::IntegrationConflictOperationFault(e) => e.request_id(),
5654 Self::IntegrationConflictStateFault(e) => e.request_id(),
5655 Self::IntegrationNotFoundFault(e) => e.request_id(),
5656 Self::IntegrationQuotaExceededFault(e) => e.request_id(),
5657 Self::IntegrationSourceNotFoundFault(e) => e.request_id(),
5658 Self::IntegrationTargetNotFoundFault(e) => e.request_id(),
5659 Self::InvalidAuthenticationProfileRequestFault(e) => e.request_id(),
5660 Self::InvalidAuthorizationStateFault(e) => e.request_id(),
5661 Self::InvalidClusterParameterGroupStateFault(e) => e.request_id(),
5662 Self::InvalidClusterSecurityGroupStateFault(e) => e.request_id(),
5663 Self::InvalidClusterSnapshotScheduleStateFault(e) => e.request_id(),
5664 Self::InvalidClusterSnapshotStateFault(e) => e.request_id(),
5665 Self::InvalidClusterStateFault(e) => e.request_id(),
5666 Self::InvalidClusterSubnetGroupStateFault(e) => e.request_id(),
5667 Self::InvalidClusterSubnetStateFault(e) => e.request_id(),
5668 Self::InvalidClusterTrackFault(e) => e.request_id(),
5669 Self::InvalidDataShareFault(e) => e.request_id(),
5670 Self::InvalidElasticIpFault(e) => e.request_id(),
5671 Self::InvalidEndpointStateFault(e) => e.request_id(),
5672 Self::InvalidHsmClientCertificateStateFault(e) => e.request_id(),
5673 Self::InvalidHsmConfigurationStateFault(e) => e.request_id(),
5674 Self::InvalidNamespaceFault(e) => e.request_id(),
5675 Self::InvalidPolicyFault(e) => e.request_id(),
5676 Self::InvalidReservedNodeStateFault(e) => e.request_id(),
5677 Self::InvalidRestoreFault(e) => e.request_id(),
5678 Self::InvalidRetentionPeriodFault(e) => e.request_id(),
5679 Self::InvalidS3BucketNameFault(e) => e.request_id(),
5680 Self::InvalidS3KeyPrefixFault(e) => e.request_id(),
5681 Self::InvalidScheduleFault(e) => e.request_id(),
5682 Self::InvalidScheduledActionFault(e) => e.request_id(),
5683 Self::InvalidSnapshotCopyGrantStateFault(e) => e.request_id(),
5684 Self::InvalidSubnet(e) => e.request_id(),
5685 Self::InvalidSubscriptionStateFault(e) => e.request_id(),
5686 Self::InvalidTableRestoreArgumentFault(e) => e.request_id(),
5687 Self::InvalidTagFault(e) => e.request_id(),
5688 Self::InvalidUsageLimitFault(e) => e.request_id(),
5689 Self::InvalidVpcNetworkStateFault(e) => e.request_id(),
5690 Self::Ipv6CidrBlockNotFoundFault(e) => e.request_id(),
5691 Self::LimitExceededFault(e) => e.request_id(),
5692 Self::NumberOfNodesPerClusterLimitExceededFault(e) => e.request_id(),
5693 Self::NumberOfNodesQuotaExceededFault(e) => e.request_id(),
5694 Self::PartnerNotFoundFault(e) => e.request_id(),
5695 Self::RedshiftIdcApplicationAlreadyExistsFault(e) => e.request_id(),
5696 Self::RedshiftIdcApplicationNotExistsFault(e) => e.request_id(),
5697 Self::RedshiftIdcApplicationQuotaExceededFault(e) => e.request_id(),
5698 Self::RedshiftInvalidParameterFault(e) => e.request_id(),
5699 Self::ReservedNodeAlreadyExistsFault(e) => e.request_id(),
5700 Self::ReservedNodeAlreadyMigratedFault(e) => e.request_id(),
5701 Self::ReservedNodeExchangeNotFoundFault(e) => e.request_id(),
5702 Self::ReservedNodeNotFoundFault(e) => e.request_id(),
5703 Self::ReservedNodeOfferingNotFoundFault(e) => e.request_id(),
5704 Self::ReservedNodeQuotaExceededFault(e) => e.request_id(),
5705 Self::ResizeNotFoundFault(e) => e.request_id(),
5706 Self::ResourceNotFoundFault(e) => e.request_id(),
5707 Self::SnsInvalidTopicFault(e) => e.request_id(),
5708 Self::SnsNoAuthorizationFault(e) => e.request_id(),
5709 Self::SnsTopicArnNotFoundFault(e) => e.request_id(),
5710 Self::ScheduleDefinitionTypeUnsupportedFault(e) => e.request_id(),
5711 Self::ScheduledActionAlreadyExistsFault(e) => e.request_id(),
5712 Self::ScheduledActionNotFoundFault(e) => e.request_id(),
5713 Self::ScheduledActionQuotaExceededFault(e) => e.request_id(),
5714 Self::ScheduledActionTypeUnsupportedFault(e) => e.request_id(),
5715 Self::SnapshotCopyAlreadyDisabledFault(e) => e.request_id(),
5716 Self::SnapshotCopyAlreadyEnabledFault(e) => e.request_id(),
5717 Self::SnapshotCopyDisabledFault(e) => e.request_id(),
5718 Self::SnapshotCopyGrantAlreadyExistsFault(e) => e.request_id(),
5719 Self::SnapshotCopyGrantNotFoundFault(e) => e.request_id(),
5720 Self::SnapshotCopyGrantQuotaExceededFault(e) => e.request_id(),
5721 Self::SnapshotScheduleAlreadyExistsFault(e) => e.request_id(),
5722 Self::SnapshotScheduleNotFoundFault(e) => e.request_id(),
5723 Self::SnapshotScheduleQuotaExceededFault(e) => e.request_id(),
5724 Self::SnapshotScheduleUpdateInProgressFault(e) => e.request_id(),
5725 Self::SourceNotFoundFault(e) => e.request_id(),
5726 Self::SubnetAlreadyInUse(e) => e.request_id(),
5727 Self::SubscriptionAlreadyExistFault(e) => e.request_id(),
5728 Self::SubscriptionCategoryNotFoundFault(e) => e.request_id(),
5729 Self::SubscriptionEventIdNotFoundFault(e) => e.request_id(),
5730 Self::SubscriptionNotFoundFault(e) => e.request_id(),
5731 Self::SubscriptionSeverityNotFoundFault(e) => e.request_id(),
5732 Self::TableLimitExceededFault(e) => e.request_id(),
5733 Self::TableRestoreNotFoundFault(e) => e.request_id(),
5734 Self::TagLimitExceededFault(e) => e.request_id(),
5735 Self::UnauthorizedOperation(e) => e.request_id(),
5736 Self::UnauthorizedPartnerIntegrationFault(e) => e.request_id(),
5737 Self::UnknownSnapshotCopyRegionFault(e) => e.request_id(),
5738 Self::UnsupportedOperationFault(e) => e.request_id(),
5739 Self::UnsupportedOptionFault(e) => e.request_id(),
5740 Self::UsageLimitAlreadyExistsFault(e) => e.request_id(),
5741 Self::UsageLimitNotFoundFault(e) => e.request_id(),
5742 Self::Unhandled(e) => e.meta.request_id(),
5743 }
5744 }
5745}