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