aws_sdk_dax/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>You already have a DAX cluster with the given identifier.</p>
7    ClusterAlreadyExistsFault(crate::types::error::ClusterAlreadyExistsFault),
8    /// <p>The requested cluster ID does not refer to an existing DAX cluster.</p>
9    ClusterNotFoundFault(crate::types::error::ClusterNotFoundFault),
10    /// <p>You have attempted to exceed the maximum number of DAX clusters for your AWS account.</p>
11    ClusterQuotaForCustomerExceededFault(crate::types::error::ClusterQuotaForCustomerExceededFault),
12    /// <p>There are not enough system resources to create the cluster you requested (or to resize an already-existing cluster).</p>
13    InsufficientClusterCapacityFault(crate::types::error::InsufficientClusterCapacityFault),
14    /// <p>The Amazon Resource Name (ARN) supplied in the request is not valid.</p>
15    InvalidArnFault(crate::types::error::InvalidArnFault),
16    /// <p>The requested DAX cluster is not in the <i>available</i> state.</p>
17    InvalidClusterStateFault(crate::types::error::InvalidClusterStateFault),
18    /// <p>Two or more incompatible parameters were specified.</p>
19    InvalidParameterCombinationException(crate::types::error::InvalidParameterCombinationException),
20    /// <p>One or more parameters in a parameter group are in an invalid state.</p>
21    InvalidParameterGroupStateFault(crate::types::error::InvalidParameterGroupStateFault),
22    /// <p>The value for a parameter is invalid.</p>
23    InvalidParameterValueException(crate::types::error::InvalidParameterValueException),
24    /// <p>An invalid subnet identifier was specified.</p>
25    InvalidSubnet(crate::types::error::InvalidSubnet),
26    /// <p>The VPC network is in an invalid state.</p>
27    InvalidVpcNetworkStateFault(crate::types::error::InvalidVpcNetworkStateFault),
28    /// <p>None of the nodes in the cluster have the given node ID.</p>
29    NodeNotFoundFault(crate::types::error::NodeNotFoundFault),
30    /// <p>You have attempted to exceed the maximum number of nodes for a DAX cluster.</p>
31    NodeQuotaForClusterExceededFault(crate::types::error::NodeQuotaForClusterExceededFault),
32    /// <p>You have attempted to exceed the maximum number of nodes for your AWS account.</p>
33    NodeQuotaForCustomerExceededFault(crate::types::error::NodeQuotaForCustomerExceededFault),
34    /// <p>The specified parameter group already exists.</p>
35    ParameterGroupAlreadyExistsFault(crate::types::error::ParameterGroupAlreadyExistsFault),
36    /// <p>The specified parameter group does not exist.</p>
37    ParameterGroupNotFoundFault(crate::types::error::ParameterGroupNotFoundFault),
38    /// <p>You have attempted to exceed the maximum number of parameter groups.</p>
39    ParameterGroupQuotaExceededFault(crate::types::error::ParameterGroupQuotaExceededFault),
40    /// <p>The specified service linked role (SLR) was not found.</p>
41    ServiceLinkedRoleNotFoundFault(crate::types::error::ServiceLinkedRoleNotFoundFault),
42    /// <p>You have reached the maximum number of x509 certificates that can be created for encrypted clusters in a 30 day period. Contact AWS customer support to discuss options for continuing to create encrypted clusters.</p>
43    ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
44    /// <p>The specified subnet group already exists.</p>
45    SubnetGroupAlreadyExistsFault(crate::types::error::SubnetGroupAlreadyExistsFault),
46    /// <p>The specified subnet group is currently in use.</p>
47    SubnetGroupInUseFault(crate::types::error::SubnetGroupInUseFault),
48    /// <p>The requested subnet group name does not refer to an existing subnet group.</p>
49    SubnetGroupNotFoundFault(crate::types::error::SubnetGroupNotFoundFault),
50    /// <p>The request cannot be processed because it would exceed the allowed number of subnets in a subnet group.</p>
51    SubnetGroupQuotaExceededFault(crate::types::error::SubnetGroupQuotaExceededFault),
52    /// <p>The requested subnet is being used by another subnet group.</p>
53    SubnetInUse(crate::types::error::SubnetInUse),
54    /// <p>The request cannot be processed because it would exceed the allowed number of subnets in a subnet group.</p>
55    SubnetQuotaExceededFault(crate::types::error::SubnetQuotaExceededFault),
56    /// <p>The tag does not exist.</p>
57    TagNotFoundFault(crate::types::error::TagNotFoundFault),
58    /// <p>You have exceeded the maximum number of tags for this DAX cluster.</p>
59    TagQuotaPerResourceExceeded(crate::types::error::TagQuotaPerResourceExceeded),
60    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
61    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
62    variable wildcard pattern and check `.code()`:
63     \
64    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
65     \
66    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
67    Unhandled(crate::error::sealed_unhandled::Unhandled),
68}
69impl ::std::fmt::Display for Error {
70    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
71        match self {
72            Error::ClusterAlreadyExistsFault(inner) => inner.fmt(f),
73            Error::ClusterNotFoundFault(inner) => inner.fmt(f),
74            Error::ClusterQuotaForCustomerExceededFault(inner) => inner.fmt(f),
75            Error::InsufficientClusterCapacityFault(inner) => inner.fmt(f),
76            Error::InvalidArnFault(inner) => inner.fmt(f),
77            Error::InvalidClusterStateFault(inner) => inner.fmt(f),
78            Error::InvalidParameterCombinationException(inner) => inner.fmt(f),
79            Error::InvalidParameterGroupStateFault(inner) => inner.fmt(f),
80            Error::InvalidParameterValueException(inner) => inner.fmt(f),
81            Error::InvalidSubnet(inner) => inner.fmt(f),
82            Error::InvalidVpcNetworkStateFault(inner) => inner.fmt(f),
83            Error::NodeNotFoundFault(inner) => inner.fmt(f),
84            Error::NodeQuotaForClusterExceededFault(inner) => inner.fmt(f),
85            Error::NodeQuotaForCustomerExceededFault(inner) => inner.fmt(f),
86            Error::ParameterGroupAlreadyExistsFault(inner) => inner.fmt(f),
87            Error::ParameterGroupNotFoundFault(inner) => inner.fmt(f),
88            Error::ParameterGroupQuotaExceededFault(inner) => inner.fmt(f),
89            Error::ServiceLinkedRoleNotFoundFault(inner) => inner.fmt(f),
90            Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
91            Error::SubnetGroupAlreadyExistsFault(inner) => inner.fmt(f),
92            Error::SubnetGroupInUseFault(inner) => inner.fmt(f),
93            Error::SubnetGroupNotFoundFault(inner) => inner.fmt(f),
94            Error::SubnetGroupQuotaExceededFault(inner) => inner.fmt(f),
95            Error::SubnetInUse(inner) => inner.fmt(f),
96            Error::SubnetQuotaExceededFault(inner) => inner.fmt(f),
97            Error::TagNotFoundFault(inner) => inner.fmt(f),
98            Error::TagQuotaPerResourceExceeded(inner) => inner.fmt(f),
99            Error::Unhandled(_) => {
100                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
101                    write!(f, "unhandled error ({code})")
102                } else {
103                    f.write_str("unhandled error")
104                }
105            }
106        }
107    }
108}
109impl From<::aws_smithy_types::error::operation::BuildError> for Error {
110    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
111        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
112            source: value.into(),
113            meta: ::std::default::Default::default(),
114        })
115    }
116}
117impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
118    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
119        match self {
120            Self::ClusterAlreadyExistsFault(inner) => inner.meta(),
121            Self::ClusterNotFoundFault(inner) => inner.meta(),
122            Self::ClusterQuotaForCustomerExceededFault(inner) => inner.meta(),
123            Self::InsufficientClusterCapacityFault(inner) => inner.meta(),
124            Self::InvalidArnFault(inner) => inner.meta(),
125            Self::InvalidClusterStateFault(inner) => inner.meta(),
126            Self::InvalidParameterCombinationException(inner) => inner.meta(),
127            Self::InvalidParameterGroupStateFault(inner) => inner.meta(),
128            Self::InvalidParameterValueException(inner) => inner.meta(),
129            Self::InvalidSubnet(inner) => inner.meta(),
130            Self::InvalidVpcNetworkStateFault(inner) => inner.meta(),
131            Self::NodeNotFoundFault(inner) => inner.meta(),
132            Self::NodeQuotaForClusterExceededFault(inner) => inner.meta(),
133            Self::NodeQuotaForCustomerExceededFault(inner) => inner.meta(),
134            Self::ParameterGroupAlreadyExistsFault(inner) => inner.meta(),
135            Self::ParameterGroupNotFoundFault(inner) => inner.meta(),
136            Self::ParameterGroupQuotaExceededFault(inner) => inner.meta(),
137            Self::ServiceLinkedRoleNotFoundFault(inner) => inner.meta(),
138            Self::ServiceQuotaExceededException(inner) => inner.meta(),
139            Self::SubnetGroupAlreadyExistsFault(inner) => inner.meta(),
140            Self::SubnetGroupInUseFault(inner) => inner.meta(),
141            Self::SubnetGroupNotFoundFault(inner) => inner.meta(),
142            Self::SubnetGroupQuotaExceededFault(inner) => inner.meta(),
143            Self::SubnetInUse(inner) => inner.meta(),
144            Self::SubnetQuotaExceededFault(inner) => inner.meta(),
145            Self::TagNotFoundFault(inner) => inner.meta(),
146            Self::TagQuotaPerResourceExceeded(inner) => inner.meta(),
147            Self::Unhandled(inner) => &inner.meta,
148        }
149    }
150}
151impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>> for Error
152where
153    R: Send + Sync + std::fmt::Debug + 'static,
154{
155    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_cluster::CreateClusterError, R>) -> Self {
156        match err {
157            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
158            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
159                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
160                source: err.into(),
161            }),
162        }
163    }
164}
165impl From<crate::operation::create_cluster::CreateClusterError> for Error {
166    fn from(err: crate::operation::create_cluster::CreateClusterError) -> Self {
167        match err {
168            crate::operation::create_cluster::CreateClusterError::ClusterAlreadyExistsFault(inner) => Error::ClusterAlreadyExistsFault(inner),
169            crate::operation::create_cluster::CreateClusterError::ClusterQuotaForCustomerExceededFault(inner) => {
170                Error::ClusterQuotaForCustomerExceededFault(inner)
171            }
172            crate::operation::create_cluster::CreateClusterError::InsufficientClusterCapacityFault(inner) => {
173                Error::InsufficientClusterCapacityFault(inner)
174            }
175            crate::operation::create_cluster::CreateClusterError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
176            crate::operation::create_cluster::CreateClusterError::InvalidParameterCombinationException(inner) => {
177                Error::InvalidParameterCombinationException(inner)
178            }
179            crate::operation::create_cluster::CreateClusterError::InvalidParameterGroupStateFault(inner) => {
180                Error::InvalidParameterGroupStateFault(inner)
181            }
182            crate::operation::create_cluster::CreateClusterError::InvalidParameterValueException(inner) => {
183                Error::InvalidParameterValueException(inner)
184            }
185            crate::operation::create_cluster::CreateClusterError::InvalidVpcNetworkStateFault(inner) => Error::InvalidVpcNetworkStateFault(inner),
186            crate::operation::create_cluster::CreateClusterError::NodeQuotaForClusterExceededFault(inner) => {
187                Error::NodeQuotaForClusterExceededFault(inner)
188            }
189            crate::operation::create_cluster::CreateClusterError::NodeQuotaForCustomerExceededFault(inner) => {
190                Error::NodeQuotaForCustomerExceededFault(inner)
191            }
192            crate::operation::create_cluster::CreateClusterError::ParameterGroupNotFoundFault(inner) => Error::ParameterGroupNotFoundFault(inner),
193            crate::operation::create_cluster::CreateClusterError::ServiceLinkedRoleNotFoundFault(inner) => {
194                Error::ServiceLinkedRoleNotFoundFault(inner)
195            }
196            crate::operation::create_cluster::CreateClusterError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
197            crate::operation::create_cluster::CreateClusterError::SubnetGroupNotFoundFault(inner) => Error::SubnetGroupNotFoundFault(inner),
198            crate::operation::create_cluster::CreateClusterError::TagQuotaPerResourceExceeded(inner) => Error::TagQuotaPerResourceExceeded(inner),
199            crate::operation::create_cluster::CreateClusterError::Unhandled(inner) => Error::Unhandled(inner),
200        }
201    }
202}
203impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_parameter_group::CreateParameterGroupError, R>> for Error
204where
205    R: Send + Sync + std::fmt::Debug + 'static,
206{
207    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_parameter_group::CreateParameterGroupError, R>) -> Self {
208        match err {
209            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
210            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
211                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
212                source: err.into(),
213            }),
214        }
215    }
216}
217impl From<crate::operation::create_parameter_group::CreateParameterGroupError> for Error {
218    fn from(err: crate::operation::create_parameter_group::CreateParameterGroupError) -> Self {
219        match err {
220            crate::operation::create_parameter_group::CreateParameterGroupError::InvalidParameterCombinationException(inner) => {
221                Error::InvalidParameterCombinationException(inner)
222            }
223            crate::operation::create_parameter_group::CreateParameterGroupError::InvalidParameterGroupStateFault(inner) => {
224                Error::InvalidParameterGroupStateFault(inner)
225            }
226            crate::operation::create_parameter_group::CreateParameterGroupError::InvalidParameterValueException(inner) => {
227                Error::InvalidParameterValueException(inner)
228            }
229            crate::operation::create_parameter_group::CreateParameterGroupError::ParameterGroupAlreadyExistsFault(inner) => {
230                Error::ParameterGroupAlreadyExistsFault(inner)
231            }
232            crate::operation::create_parameter_group::CreateParameterGroupError::ParameterGroupQuotaExceededFault(inner) => {
233                Error::ParameterGroupQuotaExceededFault(inner)
234            }
235            crate::operation::create_parameter_group::CreateParameterGroupError::ServiceLinkedRoleNotFoundFault(inner) => {
236                Error::ServiceLinkedRoleNotFoundFault(inner)
237            }
238            crate::operation::create_parameter_group::CreateParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
239        }
240    }
241}
242impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet_group::CreateSubnetGroupError, R>> for Error
243where
244    R: Send + Sync + std::fmt::Debug + 'static,
245{
246    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_subnet_group::CreateSubnetGroupError, R>) -> Self {
247        match err {
248            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
249            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
250                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
251                source: err.into(),
252            }),
253        }
254    }
255}
256impl From<crate::operation::create_subnet_group::CreateSubnetGroupError> for Error {
257    fn from(err: crate::operation::create_subnet_group::CreateSubnetGroupError) -> Self {
258        match err {
259            crate::operation::create_subnet_group::CreateSubnetGroupError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
260            crate::operation::create_subnet_group::CreateSubnetGroupError::ServiceLinkedRoleNotFoundFault(inner) => {
261                Error::ServiceLinkedRoleNotFoundFault(inner)
262            }
263            crate::operation::create_subnet_group::CreateSubnetGroupError::SubnetGroupAlreadyExistsFault(inner) => {
264                Error::SubnetGroupAlreadyExistsFault(inner)
265            }
266            crate::operation::create_subnet_group::CreateSubnetGroupError::SubnetGroupQuotaExceededFault(inner) => {
267                Error::SubnetGroupQuotaExceededFault(inner)
268            }
269            crate::operation::create_subnet_group::CreateSubnetGroupError::SubnetQuotaExceededFault(inner) => Error::SubnetQuotaExceededFault(inner),
270            crate::operation::create_subnet_group::CreateSubnetGroupError::Unhandled(inner) => Error::Unhandled(inner),
271        }
272    }
273}
274impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::decrease_replication_factor::DecreaseReplicationFactorError, R>>
275    for Error
276where
277    R: Send + Sync + std::fmt::Debug + 'static,
278{
279    fn from(
280        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::decrease_replication_factor::DecreaseReplicationFactorError, R>,
281    ) -> Self {
282        match err {
283            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
284            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
285                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
286                source: err.into(),
287            }),
288        }
289    }
290}
291impl From<crate::operation::decrease_replication_factor::DecreaseReplicationFactorError> for Error {
292    fn from(err: crate::operation::decrease_replication_factor::DecreaseReplicationFactorError) -> Self {
293        match err {
294            crate::operation::decrease_replication_factor::DecreaseReplicationFactorError::ClusterNotFoundFault(inner) => {
295                Error::ClusterNotFoundFault(inner)
296            }
297            crate::operation::decrease_replication_factor::DecreaseReplicationFactorError::InvalidClusterStateFault(inner) => {
298                Error::InvalidClusterStateFault(inner)
299            }
300            crate::operation::decrease_replication_factor::DecreaseReplicationFactorError::InvalidParameterCombinationException(inner) => {
301                Error::InvalidParameterCombinationException(inner)
302            }
303            crate::operation::decrease_replication_factor::DecreaseReplicationFactorError::InvalidParameterValueException(inner) => {
304                Error::InvalidParameterValueException(inner)
305            }
306            crate::operation::decrease_replication_factor::DecreaseReplicationFactorError::NodeNotFoundFault(inner) => {
307                Error::NodeNotFoundFault(inner)
308            }
309            crate::operation::decrease_replication_factor::DecreaseReplicationFactorError::ServiceLinkedRoleNotFoundFault(inner) => {
310                Error::ServiceLinkedRoleNotFoundFault(inner)
311            }
312            crate::operation::decrease_replication_factor::DecreaseReplicationFactorError::Unhandled(inner) => Error::Unhandled(inner),
313        }
314    }
315}
316impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>> for Error
317where
318    R: Send + Sync + std::fmt::Debug + 'static,
319{
320    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_cluster::DeleteClusterError, R>) -> Self {
321        match err {
322            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
323            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
324                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
325                source: err.into(),
326            }),
327        }
328    }
329}
330impl From<crate::operation::delete_cluster::DeleteClusterError> for Error {
331    fn from(err: crate::operation::delete_cluster::DeleteClusterError) -> Self {
332        match err {
333            crate::operation::delete_cluster::DeleteClusterError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
334            crate::operation::delete_cluster::DeleteClusterError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
335            crate::operation::delete_cluster::DeleteClusterError::InvalidParameterCombinationException(inner) => {
336                Error::InvalidParameterCombinationException(inner)
337            }
338            crate::operation::delete_cluster::DeleteClusterError::InvalidParameterValueException(inner) => {
339                Error::InvalidParameterValueException(inner)
340            }
341            crate::operation::delete_cluster::DeleteClusterError::ServiceLinkedRoleNotFoundFault(inner) => {
342                Error::ServiceLinkedRoleNotFoundFault(inner)
343            }
344            crate::operation::delete_cluster::DeleteClusterError::Unhandled(inner) => Error::Unhandled(inner),
345        }
346    }
347}
348impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_parameter_group::DeleteParameterGroupError, R>> for Error
349where
350    R: Send + Sync + std::fmt::Debug + 'static,
351{
352    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_parameter_group::DeleteParameterGroupError, R>) -> Self {
353        match err {
354            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
355            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
356                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
357                source: err.into(),
358            }),
359        }
360    }
361}
362impl From<crate::operation::delete_parameter_group::DeleteParameterGroupError> for Error {
363    fn from(err: crate::operation::delete_parameter_group::DeleteParameterGroupError) -> Self {
364        match err {
365            crate::operation::delete_parameter_group::DeleteParameterGroupError::InvalidParameterCombinationException(inner) => {
366                Error::InvalidParameterCombinationException(inner)
367            }
368            crate::operation::delete_parameter_group::DeleteParameterGroupError::InvalidParameterGroupStateFault(inner) => {
369                Error::InvalidParameterGroupStateFault(inner)
370            }
371            crate::operation::delete_parameter_group::DeleteParameterGroupError::InvalidParameterValueException(inner) => {
372                Error::InvalidParameterValueException(inner)
373            }
374            crate::operation::delete_parameter_group::DeleteParameterGroupError::ParameterGroupNotFoundFault(inner) => {
375                Error::ParameterGroupNotFoundFault(inner)
376            }
377            crate::operation::delete_parameter_group::DeleteParameterGroupError::ServiceLinkedRoleNotFoundFault(inner) => {
378                Error::ServiceLinkedRoleNotFoundFault(inner)
379            }
380            crate::operation::delete_parameter_group::DeleteParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
381        }
382    }
383}
384impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet_group::DeleteSubnetGroupError, R>> for Error
385where
386    R: Send + Sync + std::fmt::Debug + 'static,
387{
388    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_subnet_group::DeleteSubnetGroupError, R>) -> Self {
389        match err {
390            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
391            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
392                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
393                source: err.into(),
394            }),
395        }
396    }
397}
398impl From<crate::operation::delete_subnet_group::DeleteSubnetGroupError> for Error {
399    fn from(err: crate::operation::delete_subnet_group::DeleteSubnetGroupError) -> Self {
400        match err {
401            crate::operation::delete_subnet_group::DeleteSubnetGroupError::ServiceLinkedRoleNotFoundFault(inner) => {
402                Error::ServiceLinkedRoleNotFoundFault(inner)
403            }
404            crate::operation::delete_subnet_group::DeleteSubnetGroupError::SubnetGroupInUseFault(inner) => Error::SubnetGroupInUseFault(inner),
405            crate::operation::delete_subnet_group::DeleteSubnetGroupError::SubnetGroupNotFoundFault(inner) => Error::SubnetGroupNotFoundFault(inner),
406            crate::operation::delete_subnet_group::DeleteSubnetGroupError::Unhandled(inner) => Error::Unhandled(inner),
407        }
408    }
409}
410impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_clusters::DescribeClustersError, R>> for Error
411where
412    R: Send + Sync + std::fmt::Debug + 'static,
413{
414    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_clusters::DescribeClustersError, R>) -> Self {
415        match err {
416            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
417            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
418                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
419                source: err.into(),
420            }),
421        }
422    }
423}
424impl From<crate::operation::describe_clusters::DescribeClustersError> for Error {
425    fn from(err: crate::operation::describe_clusters::DescribeClustersError) -> Self {
426        match err {
427            crate::operation::describe_clusters::DescribeClustersError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
428            crate::operation::describe_clusters::DescribeClustersError::InvalidParameterCombinationException(inner) => {
429                Error::InvalidParameterCombinationException(inner)
430            }
431            crate::operation::describe_clusters::DescribeClustersError::InvalidParameterValueException(inner) => {
432                Error::InvalidParameterValueException(inner)
433            }
434            crate::operation::describe_clusters::DescribeClustersError::ServiceLinkedRoleNotFoundFault(inner) => {
435                Error::ServiceLinkedRoleNotFoundFault(inner)
436            }
437            crate::operation::describe_clusters::DescribeClustersError::Unhandled(inner) => Error::Unhandled(inner),
438        }
439    }
440}
441impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_default_parameters::DescribeDefaultParametersError, R>>
442    for Error
443where
444    R: Send + Sync + std::fmt::Debug + 'static,
445{
446    fn from(
447        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_default_parameters::DescribeDefaultParametersError, R>,
448    ) -> Self {
449        match err {
450            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
451            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
452                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
453                source: err.into(),
454            }),
455        }
456    }
457}
458impl From<crate::operation::describe_default_parameters::DescribeDefaultParametersError> for Error {
459    fn from(err: crate::operation::describe_default_parameters::DescribeDefaultParametersError) -> Self {
460        match err {
461            crate::operation::describe_default_parameters::DescribeDefaultParametersError::InvalidParameterCombinationException(inner) => {
462                Error::InvalidParameterCombinationException(inner)
463            }
464            crate::operation::describe_default_parameters::DescribeDefaultParametersError::InvalidParameterValueException(inner) => {
465                Error::InvalidParameterValueException(inner)
466            }
467            crate::operation::describe_default_parameters::DescribeDefaultParametersError::ServiceLinkedRoleNotFoundFault(inner) => {
468                Error::ServiceLinkedRoleNotFoundFault(inner)
469            }
470            crate::operation::describe_default_parameters::DescribeDefaultParametersError::Unhandled(inner) => Error::Unhandled(inner),
471        }
472    }
473}
474impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_events::DescribeEventsError, R>> for Error
475where
476    R: Send + Sync + std::fmt::Debug + 'static,
477{
478    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_events::DescribeEventsError, R>) -> Self {
479        match err {
480            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
481            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
482                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
483                source: err.into(),
484            }),
485        }
486    }
487}
488impl From<crate::operation::describe_events::DescribeEventsError> for Error {
489    fn from(err: crate::operation::describe_events::DescribeEventsError) -> Self {
490        match err {
491            crate::operation::describe_events::DescribeEventsError::InvalidParameterCombinationException(inner) => {
492                Error::InvalidParameterCombinationException(inner)
493            }
494            crate::operation::describe_events::DescribeEventsError::InvalidParameterValueException(inner) => {
495                Error::InvalidParameterValueException(inner)
496            }
497            crate::operation::describe_events::DescribeEventsError::ServiceLinkedRoleNotFoundFault(inner) => {
498                Error::ServiceLinkedRoleNotFoundFault(inner)
499            }
500            crate::operation::describe_events::DescribeEventsError::Unhandled(inner) => Error::Unhandled(inner),
501        }
502    }
503}
504impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_parameter_groups::DescribeParameterGroupsError, R>>
505    for Error
506where
507    R: Send + Sync + std::fmt::Debug + 'static,
508{
509    fn from(
510        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_parameter_groups::DescribeParameterGroupsError, R>,
511    ) -> Self {
512        match err {
513            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
514            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
515                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
516                source: err.into(),
517            }),
518        }
519    }
520}
521impl From<crate::operation::describe_parameter_groups::DescribeParameterGroupsError> for Error {
522    fn from(err: crate::operation::describe_parameter_groups::DescribeParameterGroupsError) -> Self {
523        match err {
524            crate::operation::describe_parameter_groups::DescribeParameterGroupsError::InvalidParameterCombinationException(inner) => {
525                Error::InvalidParameterCombinationException(inner)
526            }
527            crate::operation::describe_parameter_groups::DescribeParameterGroupsError::InvalidParameterValueException(inner) => {
528                Error::InvalidParameterValueException(inner)
529            }
530            crate::operation::describe_parameter_groups::DescribeParameterGroupsError::ParameterGroupNotFoundFault(inner) => {
531                Error::ParameterGroupNotFoundFault(inner)
532            }
533            crate::operation::describe_parameter_groups::DescribeParameterGroupsError::ServiceLinkedRoleNotFoundFault(inner) => {
534                Error::ServiceLinkedRoleNotFoundFault(inner)
535            }
536            crate::operation::describe_parameter_groups::DescribeParameterGroupsError::Unhandled(inner) => Error::Unhandled(inner),
537        }
538    }
539}
540impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_parameters::DescribeParametersError, R>> for Error
541where
542    R: Send + Sync + std::fmt::Debug + 'static,
543{
544    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_parameters::DescribeParametersError, R>) -> Self {
545        match err {
546            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
547            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
548                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
549                source: err.into(),
550            }),
551        }
552    }
553}
554impl From<crate::operation::describe_parameters::DescribeParametersError> for Error {
555    fn from(err: crate::operation::describe_parameters::DescribeParametersError) -> Self {
556        match err {
557            crate::operation::describe_parameters::DescribeParametersError::InvalidParameterCombinationException(inner) => {
558                Error::InvalidParameterCombinationException(inner)
559            }
560            crate::operation::describe_parameters::DescribeParametersError::InvalidParameterValueException(inner) => {
561                Error::InvalidParameterValueException(inner)
562            }
563            crate::operation::describe_parameters::DescribeParametersError::ParameterGroupNotFoundFault(inner) => {
564                Error::ParameterGroupNotFoundFault(inner)
565            }
566            crate::operation::describe_parameters::DescribeParametersError::ServiceLinkedRoleNotFoundFault(inner) => {
567                Error::ServiceLinkedRoleNotFoundFault(inner)
568            }
569            crate::operation::describe_parameters::DescribeParametersError::Unhandled(inner) => Error::Unhandled(inner),
570        }
571    }
572}
573impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnet_groups::DescribeSubnetGroupsError, R>> for Error
574where
575    R: Send + Sync + std::fmt::Debug + 'static,
576{
577    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_subnet_groups::DescribeSubnetGroupsError, R>) -> Self {
578        match err {
579            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
580            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
581                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
582                source: err.into(),
583            }),
584        }
585    }
586}
587impl From<crate::operation::describe_subnet_groups::DescribeSubnetGroupsError> for Error {
588    fn from(err: crate::operation::describe_subnet_groups::DescribeSubnetGroupsError) -> Self {
589        match err {
590            crate::operation::describe_subnet_groups::DescribeSubnetGroupsError::ServiceLinkedRoleNotFoundFault(inner) => {
591                Error::ServiceLinkedRoleNotFoundFault(inner)
592            }
593            crate::operation::describe_subnet_groups::DescribeSubnetGroupsError::SubnetGroupNotFoundFault(inner) => {
594                Error::SubnetGroupNotFoundFault(inner)
595            }
596            crate::operation::describe_subnet_groups::DescribeSubnetGroupsError::Unhandled(inner) => Error::Unhandled(inner),
597        }
598    }
599}
600impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::increase_replication_factor::IncreaseReplicationFactorError, R>>
601    for Error
602where
603    R: Send + Sync + std::fmt::Debug + 'static,
604{
605    fn from(
606        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::increase_replication_factor::IncreaseReplicationFactorError, R>,
607    ) -> Self {
608        match err {
609            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
610            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
611                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
612                source: err.into(),
613            }),
614        }
615    }
616}
617impl From<crate::operation::increase_replication_factor::IncreaseReplicationFactorError> for Error {
618    fn from(err: crate::operation::increase_replication_factor::IncreaseReplicationFactorError) -> Self {
619        match err {
620            crate::operation::increase_replication_factor::IncreaseReplicationFactorError::ClusterNotFoundFault(inner) => {
621                Error::ClusterNotFoundFault(inner)
622            }
623            crate::operation::increase_replication_factor::IncreaseReplicationFactorError::InsufficientClusterCapacityFault(inner) => {
624                Error::InsufficientClusterCapacityFault(inner)
625            }
626            crate::operation::increase_replication_factor::IncreaseReplicationFactorError::InvalidClusterStateFault(inner) => {
627                Error::InvalidClusterStateFault(inner)
628            }
629            crate::operation::increase_replication_factor::IncreaseReplicationFactorError::InvalidParameterCombinationException(inner) => {
630                Error::InvalidParameterCombinationException(inner)
631            }
632            crate::operation::increase_replication_factor::IncreaseReplicationFactorError::InvalidParameterValueException(inner) => {
633                Error::InvalidParameterValueException(inner)
634            }
635            crate::operation::increase_replication_factor::IncreaseReplicationFactorError::InvalidVpcNetworkStateFault(inner) => {
636                Error::InvalidVpcNetworkStateFault(inner)
637            }
638            crate::operation::increase_replication_factor::IncreaseReplicationFactorError::NodeQuotaForClusterExceededFault(inner) => {
639                Error::NodeQuotaForClusterExceededFault(inner)
640            }
641            crate::operation::increase_replication_factor::IncreaseReplicationFactorError::NodeQuotaForCustomerExceededFault(inner) => {
642                Error::NodeQuotaForCustomerExceededFault(inner)
643            }
644            crate::operation::increase_replication_factor::IncreaseReplicationFactorError::ServiceLinkedRoleNotFoundFault(inner) => {
645                Error::ServiceLinkedRoleNotFoundFault(inner)
646            }
647            crate::operation::increase_replication_factor::IncreaseReplicationFactorError::Unhandled(inner) => Error::Unhandled(inner),
648        }
649    }
650}
651impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>> for Error
652where
653    R: Send + Sync + std::fmt::Debug + 'static,
654{
655    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags::ListTagsError, R>) -> Self {
656        match err {
657            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
658            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
659                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
660                source: err.into(),
661            }),
662        }
663    }
664}
665impl From<crate::operation::list_tags::ListTagsError> for Error {
666    fn from(err: crate::operation::list_tags::ListTagsError) -> Self {
667        match err {
668            crate::operation::list_tags::ListTagsError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
669            crate::operation::list_tags::ListTagsError::InvalidArnFault(inner) => Error::InvalidArnFault(inner),
670            crate::operation::list_tags::ListTagsError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
671            crate::operation::list_tags::ListTagsError::InvalidParameterCombinationException(inner) => {
672                Error::InvalidParameterCombinationException(inner)
673            }
674            crate::operation::list_tags::ListTagsError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
675            crate::operation::list_tags::ListTagsError::ServiceLinkedRoleNotFoundFault(inner) => Error::ServiceLinkedRoleNotFoundFault(inner),
676            crate::operation::list_tags::ListTagsError::Unhandled(inner) => Error::Unhandled(inner),
677        }
678    }
679}
680impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_node::RebootNodeError, R>> for Error
681where
682    R: Send + Sync + std::fmt::Debug + 'static,
683{
684    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::reboot_node::RebootNodeError, R>) -> Self {
685        match err {
686            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
687            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
688                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
689                source: err.into(),
690            }),
691        }
692    }
693}
694impl From<crate::operation::reboot_node::RebootNodeError> for Error {
695    fn from(err: crate::operation::reboot_node::RebootNodeError) -> Self {
696        match err {
697            crate::operation::reboot_node::RebootNodeError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
698            crate::operation::reboot_node::RebootNodeError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
699            crate::operation::reboot_node::RebootNodeError::InvalidParameterCombinationException(inner) => {
700                Error::InvalidParameterCombinationException(inner)
701            }
702            crate::operation::reboot_node::RebootNodeError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
703            crate::operation::reboot_node::RebootNodeError::NodeNotFoundFault(inner) => Error::NodeNotFoundFault(inner),
704            crate::operation::reboot_node::RebootNodeError::ServiceLinkedRoleNotFoundFault(inner) => Error::ServiceLinkedRoleNotFoundFault(inner),
705            crate::operation::reboot_node::RebootNodeError::Unhandled(inner) => Error::Unhandled(inner),
706        }
707    }
708}
709impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
710where
711    R: Send + Sync + std::fmt::Debug + 'static,
712{
713    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
714        match err {
715            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
716            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
717                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
718                source: err.into(),
719            }),
720        }
721    }
722}
723impl From<crate::operation::tag_resource::TagResourceError> for Error {
724    fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
725        match err {
726            crate::operation::tag_resource::TagResourceError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
727            crate::operation::tag_resource::TagResourceError::InvalidArnFault(inner) => Error::InvalidArnFault(inner),
728            crate::operation::tag_resource::TagResourceError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
729            crate::operation::tag_resource::TagResourceError::InvalidParameterCombinationException(inner) => {
730                Error::InvalidParameterCombinationException(inner)
731            }
732            crate::operation::tag_resource::TagResourceError::InvalidParameterValueException(inner) => Error::InvalidParameterValueException(inner),
733            crate::operation::tag_resource::TagResourceError::ServiceLinkedRoleNotFoundFault(inner) => Error::ServiceLinkedRoleNotFoundFault(inner),
734            crate::operation::tag_resource::TagResourceError::TagQuotaPerResourceExceeded(inner) => Error::TagQuotaPerResourceExceeded(inner),
735            crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
736        }
737    }
738}
739impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
740where
741    R: Send + Sync + std::fmt::Debug + 'static,
742{
743    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
744        match err {
745            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
746            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
747                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
748                source: err.into(),
749            }),
750        }
751    }
752}
753impl From<crate::operation::untag_resource::UntagResourceError> for Error {
754    fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
755        match err {
756            crate::operation::untag_resource::UntagResourceError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
757            crate::operation::untag_resource::UntagResourceError::InvalidArnFault(inner) => Error::InvalidArnFault(inner),
758            crate::operation::untag_resource::UntagResourceError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
759            crate::operation::untag_resource::UntagResourceError::InvalidParameterCombinationException(inner) => {
760                Error::InvalidParameterCombinationException(inner)
761            }
762            crate::operation::untag_resource::UntagResourceError::InvalidParameterValueException(inner) => {
763                Error::InvalidParameterValueException(inner)
764            }
765            crate::operation::untag_resource::UntagResourceError::ServiceLinkedRoleNotFoundFault(inner) => {
766                Error::ServiceLinkedRoleNotFoundFault(inner)
767            }
768            crate::operation::untag_resource::UntagResourceError::TagNotFoundFault(inner) => Error::TagNotFoundFault(inner),
769            crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
770        }
771    }
772}
773impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>> for Error
774where
775    R: Send + Sync + std::fmt::Debug + 'static,
776{
777    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_cluster::UpdateClusterError, R>) -> Self {
778        match err {
779            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
780            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
781                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
782                source: err.into(),
783            }),
784        }
785    }
786}
787impl From<crate::operation::update_cluster::UpdateClusterError> for Error {
788    fn from(err: crate::operation::update_cluster::UpdateClusterError) -> Self {
789        match err {
790            crate::operation::update_cluster::UpdateClusterError::ClusterNotFoundFault(inner) => Error::ClusterNotFoundFault(inner),
791            crate::operation::update_cluster::UpdateClusterError::InvalidClusterStateFault(inner) => Error::InvalidClusterStateFault(inner),
792            crate::operation::update_cluster::UpdateClusterError::InvalidParameterCombinationException(inner) => {
793                Error::InvalidParameterCombinationException(inner)
794            }
795            crate::operation::update_cluster::UpdateClusterError::InvalidParameterGroupStateFault(inner) => {
796                Error::InvalidParameterGroupStateFault(inner)
797            }
798            crate::operation::update_cluster::UpdateClusterError::InvalidParameterValueException(inner) => {
799                Error::InvalidParameterValueException(inner)
800            }
801            crate::operation::update_cluster::UpdateClusterError::ParameterGroupNotFoundFault(inner) => Error::ParameterGroupNotFoundFault(inner),
802            crate::operation::update_cluster::UpdateClusterError::ServiceLinkedRoleNotFoundFault(inner) => {
803                Error::ServiceLinkedRoleNotFoundFault(inner)
804            }
805            crate::operation::update_cluster::UpdateClusterError::Unhandled(inner) => Error::Unhandled(inner),
806        }
807    }
808}
809impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_parameter_group::UpdateParameterGroupError, R>> for Error
810where
811    R: Send + Sync + std::fmt::Debug + 'static,
812{
813    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_parameter_group::UpdateParameterGroupError, R>) -> Self {
814        match err {
815            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
816            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
817                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
818                source: err.into(),
819            }),
820        }
821    }
822}
823impl From<crate::operation::update_parameter_group::UpdateParameterGroupError> for Error {
824    fn from(err: crate::operation::update_parameter_group::UpdateParameterGroupError) -> Self {
825        match err {
826            crate::operation::update_parameter_group::UpdateParameterGroupError::InvalidParameterCombinationException(inner) => {
827                Error::InvalidParameterCombinationException(inner)
828            }
829            crate::operation::update_parameter_group::UpdateParameterGroupError::InvalidParameterGroupStateFault(inner) => {
830                Error::InvalidParameterGroupStateFault(inner)
831            }
832            crate::operation::update_parameter_group::UpdateParameterGroupError::InvalidParameterValueException(inner) => {
833                Error::InvalidParameterValueException(inner)
834            }
835            crate::operation::update_parameter_group::UpdateParameterGroupError::ParameterGroupNotFoundFault(inner) => {
836                Error::ParameterGroupNotFoundFault(inner)
837            }
838            crate::operation::update_parameter_group::UpdateParameterGroupError::ServiceLinkedRoleNotFoundFault(inner) => {
839                Error::ServiceLinkedRoleNotFoundFault(inner)
840            }
841            crate::operation::update_parameter_group::UpdateParameterGroupError::Unhandled(inner) => Error::Unhandled(inner),
842        }
843    }
844}
845impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subnet_group::UpdateSubnetGroupError, R>> for Error
846where
847    R: Send + Sync + std::fmt::Debug + 'static,
848{
849    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_subnet_group::UpdateSubnetGroupError, R>) -> Self {
850        match err {
851            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
852            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
853                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
854                source: err.into(),
855            }),
856        }
857    }
858}
859impl From<crate::operation::update_subnet_group::UpdateSubnetGroupError> for Error {
860    fn from(err: crate::operation::update_subnet_group::UpdateSubnetGroupError) -> Self {
861        match err {
862            crate::operation::update_subnet_group::UpdateSubnetGroupError::InvalidSubnet(inner) => Error::InvalidSubnet(inner),
863            crate::operation::update_subnet_group::UpdateSubnetGroupError::ServiceLinkedRoleNotFoundFault(inner) => {
864                Error::ServiceLinkedRoleNotFoundFault(inner)
865            }
866            crate::operation::update_subnet_group::UpdateSubnetGroupError::SubnetGroupNotFoundFault(inner) => Error::SubnetGroupNotFoundFault(inner),
867            crate::operation::update_subnet_group::UpdateSubnetGroupError::SubnetInUse(inner) => Error::SubnetInUse(inner),
868            crate::operation::update_subnet_group::UpdateSubnetGroupError::SubnetQuotaExceededFault(inner) => Error::SubnetQuotaExceededFault(inner),
869            crate::operation::update_subnet_group::UpdateSubnetGroupError::Unhandled(inner) => Error::Unhandled(inner),
870        }
871    }
872}
873impl ::std::error::Error for Error {
874    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
875        match self {
876            Error::ClusterAlreadyExistsFault(inner) => inner.source(),
877            Error::ClusterNotFoundFault(inner) => inner.source(),
878            Error::ClusterQuotaForCustomerExceededFault(inner) => inner.source(),
879            Error::InsufficientClusterCapacityFault(inner) => inner.source(),
880            Error::InvalidArnFault(inner) => inner.source(),
881            Error::InvalidClusterStateFault(inner) => inner.source(),
882            Error::InvalidParameterCombinationException(inner) => inner.source(),
883            Error::InvalidParameterGroupStateFault(inner) => inner.source(),
884            Error::InvalidParameterValueException(inner) => inner.source(),
885            Error::InvalidSubnet(inner) => inner.source(),
886            Error::InvalidVpcNetworkStateFault(inner) => inner.source(),
887            Error::NodeNotFoundFault(inner) => inner.source(),
888            Error::NodeQuotaForClusterExceededFault(inner) => inner.source(),
889            Error::NodeQuotaForCustomerExceededFault(inner) => inner.source(),
890            Error::ParameterGroupAlreadyExistsFault(inner) => inner.source(),
891            Error::ParameterGroupNotFoundFault(inner) => inner.source(),
892            Error::ParameterGroupQuotaExceededFault(inner) => inner.source(),
893            Error::ServiceLinkedRoleNotFoundFault(inner) => inner.source(),
894            Error::ServiceQuotaExceededException(inner) => inner.source(),
895            Error::SubnetGroupAlreadyExistsFault(inner) => inner.source(),
896            Error::SubnetGroupInUseFault(inner) => inner.source(),
897            Error::SubnetGroupNotFoundFault(inner) => inner.source(),
898            Error::SubnetGroupQuotaExceededFault(inner) => inner.source(),
899            Error::SubnetInUse(inner) => inner.source(),
900            Error::SubnetQuotaExceededFault(inner) => inner.source(),
901            Error::TagNotFoundFault(inner) => inner.source(),
902            Error::TagQuotaPerResourceExceeded(inner) => inner.source(),
903            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
904        }
905    }
906}
907impl ::aws_types::request_id::RequestId for Error {
908    fn request_id(&self) -> Option<&str> {
909        match self {
910            Self::ClusterAlreadyExistsFault(e) => e.request_id(),
911            Self::ClusterNotFoundFault(e) => e.request_id(),
912            Self::ClusterQuotaForCustomerExceededFault(e) => e.request_id(),
913            Self::InsufficientClusterCapacityFault(e) => e.request_id(),
914            Self::InvalidArnFault(e) => e.request_id(),
915            Self::InvalidClusterStateFault(e) => e.request_id(),
916            Self::InvalidParameterCombinationException(e) => e.request_id(),
917            Self::InvalidParameterGroupStateFault(e) => e.request_id(),
918            Self::InvalidParameterValueException(e) => e.request_id(),
919            Self::InvalidSubnet(e) => e.request_id(),
920            Self::InvalidVpcNetworkStateFault(e) => e.request_id(),
921            Self::NodeNotFoundFault(e) => e.request_id(),
922            Self::NodeQuotaForClusterExceededFault(e) => e.request_id(),
923            Self::NodeQuotaForCustomerExceededFault(e) => e.request_id(),
924            Self::ParameterGroupAlreadyExistsFault(e) => e.request_id(),
925            Self::ParameterGroupNotFoundFault(e) => e.request_id(),
926            Self::ParameterGroupQuotaExceededFault(e) => e.request_id(),
927            Self::ServiceLinkedRoleNotFoundFault(e) => e.request_id(),
928            Self::ServiceQuotaExceededException(e) => e.request_id(),
929            Self::SubnetGroupAlreadyExistsFault(e) => e.request_id(),
930            Self::SubnetGroupInUseFault(e) => e.request_id(),
931            Self::SubnetGroupNotFoundFault(e) => e.request_id(),
932            Self::SubnetGroupQuotaExceededFault(e) => e.request_id(),
933            Self::SubnetInUse(e) => e.request_id(),
934            Self::SubnetQuotaExceededFault(e) => e.request_id(),
935            Self::TagNotFoundFault(e) => e.request_id(),
936            Self::TagQuotaPerResourceExceeded(e) => e.request_id(),
937            Self::Unhandled(e) => e.meta.request_id(),
938        }
939    }
940}