aws_sdk_redshift/operation/
restore_from_cluster_snapshot.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `RestoreFromClusterSnapshot`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct RestoreFromClusterSnapshot;
6impl RestoreFromClusterSnapshot {
7    /// Creates a new `RestoreFromClusterSnapshot`
8    pub fn new() -> Self {
9        Self
10    }
11    pub(crate) async fn orchestrate(
12        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
13        input: crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotInput,
14    ) -> ::std::result::Result<
15        crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotOutput,
16        ::aws_smithy_runtime_api::client::result::SdkError<
17            crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError,
18            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
19        >,
20    > {
21        let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
22            ::aws_smithy_runtime_api::client::interceptors::context::Error,
23            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
24        >| {
25            err.map_service_error(|err| {
26                err.downcast::<crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError>()
27                    .expect("correct error type")
28            })
29        };
30        let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
31            .await
32            .map_err(map_err)?;
33        let output = context.finalize().map_err(map_err)?;
34        ::std::result::Result::Ok(
35            output
36                .downcast::<crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotOutput>()
37                .expect("correct output type"),
38        )
39    }
40
41    pub(crate) async fn orchestrate_with_stop_point(
42        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
43        input: crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotInput,
44        stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
45    ) -> ::std::result::Result<
46        ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
47        ::aws_smithy_runtime_api::client::result::SdkError<
48            ::aws_smithy_runtime_api::client::interceptors::context::Error,
49            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
50        >,
51    > {
52        let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
53        ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point(
54            "redshift",
55            "RestoreFromClusterSnapshot",
56            input,
57            runtime_plugins,
58            stop_point,
59        )
60        .await
61    }
62
63    pub(crate) fn operation_runtime_plugins(
64        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
65        client_config: &crate::config::Config,
66        config_override: ::std::option::Option<crate::config::Builder>,
67    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
68        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
69        runtime_plugins = runtime_plugins.with_client_plugin(crate::auth_plugin::DefaultAuthOptionsPlugin::new(vec![
70            ::aws_runtime::auth::sigv4::SCHEME_ID,
71        ]));
72        if let ::std::option::Option::Some(config_override) = config_override {
73            for plugin in config_override.runtime_plugins.iter().cloned() {
74                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
75            }
76            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
77                config_override,
78                client_config.config.clone(),
79                &client_config.runtime_components,
80            ));
81        }
82        runtime_plugins
83    }
84}
85impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for RestoreFromClusterSnapshot {
86    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
87        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("RestoreFromClusterSnapshot");
88
89        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
90            RestoreFromClusterSnapshotRequestSerializer,
91        ));
92        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
93            RestoreFromClusterSnapshotResponseDeserializer,
94        ));
95
96        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
97            ::aws_smithy_runtime_api::client::auth::static_resolver::StaticAuthSchemeOptionResolverParams::new(),
98        ));
99
100        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::SensitiveOutput);
101        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
102            "RestoreFromClusterSnapshot",
103            "redshift",
104        ));
105        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
106        signing_options.double_uri_encode = true;
107        signing_options.content_sha256_header = false;
108        signing_options.normalize_uri_path = true;
109        signing_options.payload_override = None;
110
111        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
112            signing_options,
113            ..::std::default::Default::default()
114        });
115
116        ::std::option::Option::Some(cfg.freeze())
117    }
118
119    fn runtime_components(
120        &self,
121        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
122    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
123        #[allow(unused_mut)]
124        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("RestoreFromClusterSnapshot")
125            .with_interceptor(::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default())
126            .with_interceptor(RestoreFromClusterSnapshotEndpointParamsInterceptor)
127            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
128                crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError,
129            >::new())
130            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
131                crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError,
132            >::new())
133            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
134                crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError,
135            >::new());
136
137        ::std::borrow::Cow::Owned(rcb)
138    }
139}
140
141#[derive(Debug)]
142struct RestoreFromClusterSnapshotResponseDeserializer;
143impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for RestoreFromClusterSnapshotResponseDeserializer {
144    fn deserialize_nonstreaming(
145        &self,
146        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
147    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
148        let (success, status) = (response.status().is_success(), response.status().as_u16());
149        let headers = response.headers();
150        let body = response.body().bytes().expect("body loaded");
151        #[allow(unused_mut)]
152        let mut force_error = false;
153        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
154        let parse_result = if !success && status != 200 || force_error {
155            crate::protocol_serde::shape_restore_from_cluster_snapshot::de_restore_from_cluster_snapshot_http_error(status, headers, body)
156        } else {
157            crate::protocol_serde::shape_restore_from_cluster_snapshot::de_restore_from_cluster_snapshot_http_response(status, headers, body)
158        };
159        crate::protocol_serde::type_erase_result(parse_result)
160    }
161}
162#[derive(Debug)]
163struct RestoreFromClusterSnapshotRequestSerializer;
164impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for RestoreFromClusterSnapshotRequestSerializer {
165    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
166    fn serialize_input(
167        &self,
168        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
169        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
170    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
171        let input = input
172            .downcast::<crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotInput>()
173            .expect("correct type");
174        let _header_serialization_settings = _cfg
175            .load::<crate::serialization_settings::HeaderSerializationSettings>()
176            .cloned()
177            .unwrap_or_default();
178        let mut request_builder = {
179            fn uri_base(
180                _input: &crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotInput,
181                output: &mut ::std::string::String,
182            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
183                use ::std::fmt::Write as _;
184                ::std::write!(output, "/").expect("formatting should succeed");
185                ::std::result::Result::Ok(())
186            }
187            #[allow(clippy::unnecessary_wraps)]
188            fn update_http_builder(
189                input: &crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotInput,
190                builder: ::http::request::Builder,
191            ) -> ::std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
192                let mut uri = ::std::string::String::new();
193                uri_base(input, &mut uri)?;
194                ::std::result::Result::Ok(builder.method("POST").uri(uri))
195            }
196            let mut builder = update_http_builder(&input, ::http::request::Builder::new())?;
197            builder = _header_serialization_settings.set_default_header(builder, ::http::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
198            builder
199        };
200        let body = ::aws_smithy_types::body::SdkBody::from(
201            crate::protocol_serde::shape_restore_from_cluster_snapshot_input::ser_restore_from_cluster_snapshot_input_input_input(&input)?,
202        );
203        if let Some(content_length) = body.content_length() {
204            let content_length = content_length.to_string();
205            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http::header::CONTENT_LENGTH, &content_length);
206        }
207        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
208    }
209}
210#[derive(Debug)]
211struct RestoreFromClusterSnapshotEndpointParamsInterceptor;
212
213impl ::aws_smithy_runtime_api::client::interceptors::Intercept for RestoreFromClusterSnapshotEndpointParamsInterceptor {
214    fn name(&self) -> &'static str {
215        "RestoreFromClusterSnapshotEndpointParamsInterceptor"
216    }
217
218    fn read_before_execution(
219        &self,
220        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
221            '_,
222            ::aws_smithy_runtime_api::client::interceptors::context::Input,
223            ::aws_smithy_runtime_api::client::interceptors::context::Output,
224            ::aws_smithy_runtime_api::client::interceptors::context::Error,
225        >,
226        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
227    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
228        let _input = context
229            .input()
230            .downcast_ref::<RestoreFromClusterSnapshotInput>()
231            .ok_or("failed to downcast to RestoreFromClusterSnapshotInput")?;
232
233        let params = crate::config::endpoint::Params::builder()
234            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
235            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
236            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
237            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
238            .build()
239            .map_err(|err| {
240                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
241            })?;
242        cfg.interceptor_state()
243            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
244        ::std::result::Result::Ok(())
245    }
246}
247
248// The get_* functions below are generated from JMESPath expressions in the
249// operationContextParams trait. They target the operation's input shape.
250
251/// Error type for the `RestoreFromClusterSnapshotError` operation.
252#[non_exhaustive]
253#[derive(::std::fmt::Debug)]
254pub enum RestoreFromClusterSnapshotError {
255    /// <p>The owner of the specified snapshot has not authorized your account to access the snapshot.</p>
256    AccessToSnapshotDeniedFault(crate::types::error::AccessToSnapshotDeniedFault),
257    /// <p>The account already has a cluster with the given identifier.</p>
258    ClusterAlreadyExistsFault(crate::types::error::ClusterAlreadyExistsFault),
259    /// <p>The parameter group name does not refer to an existing parameter group.</p>
260    ClusterParameterGroupNotFoundFault(crate::types::error::ClusterParameterGroupNotFoundFault),
261    /// <p>The request would exceed the allowed number of cluster instances for this account. For information about increasing your quota, go to <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html">Limits in Amazon Redshift</a> in the <i>Amazon Redshift Cluster Management Guide</i>.</p>
262    ClusterQuotaExceededFault(crate::types::error::ClusterQuotaExceededFault),
263    /// <p>The cluster security group name does not refer to an existing cluster security group.</p>
264    ClusterSecurityGroupNotFoundFault(crate::types::error::ClusterSecurityGroupNotFoundFault),
265    /// <p>The snapshot identifier does not refer to an existing cluster snapshot.</p>
266    ClusterSnapshotNotFoundFault(crate::types::error::ClusterSnapshotNotFoundFault),
267    /// <p>The cluster subnet group name does not refer to an existing cluster subnet group.</p>
268    ClusterSubnetGroupNotFoundFault(crate::types::error::ClusterSubnetGroupNotFoundFault),
269    /// <p>The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.</p>
270    DependentServiceRequestThrottlingFault(crate::types::error::DependentServiceRequestThrottlingFault),
271    /// <p>Your request cannot be completed because a dependent internal service is temporarily unavailable. Wait 30 to 60 seconds and try again.</p>
272    DependentServiceUnavailableFault(crate::types::error::DependentServiceUnavailableFault),
273    /// <p>There is no Amazon Redshift HSM client certificate with the specified identifier.</p>
274    HsmClientCertificateNotFoundFault(crate::types::error::HsmClientCertificateNotFoundFault),
275    /// <p>There is no Amazon Redshift HSM configuration with the specified identifier.</p>
276    HsmConfigurationNotFoundFault(crate::types::error::HsmConfigurationNotFoundFault),
277    /// <p>The number of nodes specified exceeds the allotted capacity of the cluster.</p>
278    InsufficientClusterCapacityFault(crate::types::error::InsufficientClusterCapacityFault),
279    /// <p>The specified cluster snapshot is not in the <code>available</code> state, or other accounts are authorized to access the snapshot.</p>
280    InvalidClusterSnapshotStateFault(crate::types::error::InvalidClusterSnapshotStateFault),
281    /// <p>The cluster subnet group cannot be deleted because it is in use.</p>
282    InvalidClusterSubnetGroupStateFault(crate::types::error::InvalidClusterSubnetGroupStateFault),
283    /// <p>The provided cluster track name is not valid.</p>
284    InvalidClusterTrackFault(crate::types::error::InvalidClusterTrackFault),
285    /// <p>The Elastic IP (EIP) is invalid or cannot be found.</p>
286    InvalidElasticIpFault(crate::types::error::InvalidElasticIpFault),
287    /// <p>Indicates that the Reserved Node being exchanged is not in an active state.</p>
288    InvalidReservedNodeStateFault(crate::types::error::InvalidReservedNodeStateFault),
289    /// <p>The restore is invalid.</p>
290    InvalidRestoreFault(crate::types::error::InvalidRestoreFault),
291    /// <p>The requested subnet is not valid, or not all of the subnets are in the same VPC.</p>
292    InvalidSubnet(crate::types::error::InvalidSubnet),
293    /// <p>The tag is invalid.</p>
294    InvalidTagFault(crate::types::error::InvalidTagFault),
295    /// <p>The cluster subnet group does not cover all Availability Zones.</p>
296    InvalidVpcNetworkStateFault(crate::types::error::InvalidVpcNetworkStateFault),
297    /// <p>There are no subnets in your VPC with associated IPv6 CIDR blocks. To use dual-stack mode, associate an IPv6 CIDR block with each subnet in your VPC.</p>
298    Ipv6CidrBlockNotFoundFault(crate::types::error::Ipv6CidrBlockNotFoundFault),
299    /// <p>The encryption key has exceeded its grant limit in Amazon Web Services KMS.</p>
300    LimitExceededFault(crate::types::error::LimitExceededFault),
301    /// <p>The operation would exceed the number of nodes allowed for a cluster.</p>
302    NumberOfNodesPerClusterLimitExceededFault(crate::types::error::NumberOfNodesPerClusterLimitExceededFault),
303    /// <p>The operation would exceed the number of nodes allotted to the account. For information about increasing your quota, go to <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/amazon-redshift-limits.html">Limits in Amazon Redshift</a> in the <i>Amazon Redshift Cluster Management Guide</i>.</p>
304    NumberOfNodesQuotaExceededFault(crate::types::error::NumberOfNodesQuotaExceededFault),
305    /// <p>User already has a reservation with the given identifier.</p>
306    ReservedNodeAlreadyExistsFault(crate::types::error::ReservedNodeAlreadyExistsFault),
307    /// <p>Indicates that the reserved node has already been exchanged.</p>
308    ReservedNodeAlreadyMigratedFault(crate::types::error::ReservedNodeAlreadyMigratedFault),
309    /// <p>The specified reserved compute node not found.</p>
310    ReservedNodeNotFoundFault(crate::types::error::ReservedNodeNotFoundFault),
311    /// <p>Specified offering does not exist.</p>
312    ReservedNodeOfferingNotFoundFault(crate::types::error::ReservedNodeOfferingNotFoundFault),
313    /// <p>We could not find the specified snapshot schedule.</p>
314    SnapshotScheduleNotFoundFault(crate::types::error::SnapshotScheduleNotFoundFault),
315    /// <p>You have exceeded the number of tags allowed.</p>
316    TagLimitExceededFault(crate::types::error::TagLimitExceededFault),
317    /// <p>Your account is not authorized to perform the requested operation.</p>
318    UnauthorizedOperation(crate::types::error::UnauthorizedOperation),
319    /// <p>The requested operation isn't supported.</p>
320    UnsupportedOperationFault(crate::types::error::UnsupportedOperationFault),
321    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
322    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
323    variable wildcard pattern and check `.code()`:
324     \
325    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
326     \
327    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-RestoreFromClusterSnapshotError) for what information is available for the error.")]
328    Unhandled(crate::error::sealed_unhandled::Unhandled),
329}
330impl RestoreFromClusterSnapshotError {
331    /// Creates the `RestoreFromClusterSnapshotError::Unhandled` variant from any error type.
332    pub fn unhandled(
333        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
334    ) -> Self {
335        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
336            source: err.into(),
337            meta: ::std::default::Default::default(),
338        })
339    }
340
341    /// Creates the `RestoreFromClusterSnapshotError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
342    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
343        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
344            source: err.clone().into(),
345            meta: err,
346        })
347    }
348    ///
349    /// Returns error metadata, which includes the error code, message,
350    /// request ID, and potentially additional information.
351    ///
352    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
353        match self {
354            Self::AccessToSnapshotDeniedFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
355            Self::ClusterAlreadyExistsFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
356            Self::ClusterParameterGroupNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
357            Self::ClusterQuotaExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
358            Self::ClusterSecurityGroupNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
359            Self::ClusterSnapshotNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
360            Self::ClusterSubnetGroupNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
361            Self::DependentServiceRequestThrottlingFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
362            Self::DependentServiceUnavailableFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
363            Self::HsmClientCertificateNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
364            Self::HsmConfigurationNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
365            Self::InsufficientClusterCapacityFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
366            Self::InvalidClusterSnapshotStateFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
367            Self::InvalidClusterSubnetGroupStateFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
368            Self::InvalidClusterTrackFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
369            Self::InvalidElasticIpFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
370            Self::InvalidReservedNodeStateFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
371            Self::InvalidRestoreFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
372            Self::InvalidSubnet(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
373            Self::InvalidTagFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
374            Self::InvalidVpcNetworkStateFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
375            Self::Ipv6CidrBlockNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
376            Self::LimitExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
377            Self::NumberOfNodesPerClusterLimitExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
378            Self::NumberOfNodesQuotaExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
379            Self::ReservedNodeAlreadyExistsFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
380            Self::ReservedNodeAlreadyMigratedFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
381            Self::ReservedNodeNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
382            Self::ReservedNodeOfferingNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
383            Self::SnapshotScheduleNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
384            Self::TagLimitExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
385            Self::UnauthorizedOperation(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
386            Self::UnsupportedOperationFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
387            Self::Unhandled(e) => &e.meta,
388        }
389    }
390    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::AccessToSnapshotDeniedFault`.
391    pub fn is_access_to_snapshot_denied_fault(&self) -> bool {
392        matches!(self, Self::AccessToSnapshotDeniedFault(_))
393    }
394    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::ClusterAlreadyExistsFault`.
395    pub fn is_cluster_already_exists_fault(&self) -> bool {
396        matches!(self, Self::ClusterAlreadyExistsFault(_))
397    }
398    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::ClusterParameterGroupNotFoundFault`.
399    pub fn is_cluster_parameter_group_not_found_fault(&self) -> bool {
400        matches!(self, Self::ClusterParameterGroupNotFoundFault(_))
401    }
402    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::ClusterQuotaExceededFault`.
403    pub fn is_cluster_quota_exceeded_fault(&self) -> bool {
404        matches!(self, Self::ClusterQuotaExceededFault(_))
405    }
406    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::ClusterSecurityGroupNotFoundFault`.
407    pub fn is_cluster_security_group_not_found_fault(&self) -> bool {
408        matches!(self, Self::ClusterSecurityGroupNotFoundFault(_))
409    }
410    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::ClusterSnapshotNotFoundFault`.
411    pub fn is_cluster_snapshot_not_found_fault(&self) -> bool {
412        matches!(self, Self::ClusterSnapshotNotFoundFault(_))
413    }
414    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::ClusterSubnetGroupNotFoundFault`.
415    pub fn is_cluster_subnet_group_not_found_fault(&self) -> bool {
416        matches!(self, Self::ClusterSubnetGroupNotFoundFault(_))
417    }
418    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::DependentServiceRequestThrottlingFault`.
419    pub fn is_dependent_service_request_throttling_fault(&self) -> bool {
420        matches!(self, Self::DependentServiceRequestThrottlingFault(_))
421    }
422    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::DependentServiceUnavailableFault`.
423    pub fn is_dependent_service_unavailable_fault(&self) -> bool {
424        matches!(self, Self::DependentServiceUnavailableFault(_))
425    }
426    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::HsmClientCertificateNotFoundFault`.
427    pub fn is_hsm_client_certificate_not_found_fault(&self) -> bool {
428        matches!(self, Self::HsmClientCertificateNotFoundFault(_))
429    }
430    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::HsmConfigurationNotFoundFault`.
431    pub fn is_hsm_configuration_not_found_fault(&self) -> bool {
432        matches!(self, Self::HsmConfigurationNotFoundFault(_))
433    }
434    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::InsufficientClusterCapacityFault`.
435    pub fn is_insufficient_cluster_capacity_fault(&self) -> bool {
436        matches!(self, Self::InsufficientClusterCapacityFault(_))
437    }
438    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::InvalidClusterSnapshotStateFault`.
439    pub fn is_invalid_cluster_snapshot_state_fault(&self) -> bool {
440        matches!(self, Self::InvalidClusterSnapshotStateFault(_))
441    }
442    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::InvalidClusterSubnetGroupStateFault`.
443    pub fn is_invalid_cluster_subnet_group_state_fault(&self) -> bool {
444        matches!(self, Self::InvalidClusterSubnetGroupStateFault(_))
445    }
446    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::InvalidClusterTrackFault`.
447    pub fn is_invalid_cluster_track_fault(&self) -> bool {
448        matches!(self, Self::InvalidClusterTrackFault(_))
449    }
450    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::InvalidElasticIpFault`.
451    pub fn is_invalid_elastic_ip_fault(&self) -> bool {
452        matches!(self, Self::InvalidElasticIpFault(_))
453    }
454    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::InvalidReservedNodeStateFault`.
455    pub fn is_invalid_reserved_node_state_fault(&self) -> bool {
456        matches!(self, Self::InvalidReservedNodeStateFault(_))
457    }
458    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::InvalidRestoreFault`.
459    pub fn is_invalid_restore_fault(&self) -> bool {
460        matches!(self, Self::InvalidRestoreFault(_))
461    }
462    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::InvalidSubnet`.
463    pub fn is_invalid_subnet(&self) -> bool {
464        matches!(self, Self::InvalidSubnet(_))
465    }
466    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::InvalidTagFault`.
467    pub fn is_invalid_tag_fault(&self) -> bool {
468        matches!(self, Self::InvalidTagFault(_))
469    }
470    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::InvalidVpcNetworkStateFault`.
471    pub fn is_invalid_vpc_network_state_fault(&self) -> bool {
472        matches!(self, Self::InvalidVpcNetworkStateFault(_))
473    }
474    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::Ipv6CidrBlockNotFoundFault`.
475    pub fn is_ipv6_cidr_block_not_found_fault(&self) -> bool {
476        matches!(self, Self::Ipv6CidrBlockNotFoundFault(_))
477    }
478    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::LimitExceededFault`.
479    pub fn is_limit_exceeded_fault(&self) -> bool {
480        matches!(self, Self::LimitExceededFault(_))
481    }
482    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::NumberOfNodesPerClusterLimitExceededFault`.
483    pub fn is_number_of_nodes_per_cluster_limit_exceeded_fault(&self) -> bool {
484        matches!(self, Self::NumberOfNodesPerClusterLimitExceededFault(_))
485    }
486    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::NumberOfNodesQuotaExceededFault`.
487    pub fn is_number_of_nodes_quota_exceeded_fault(&self) -> bool {
488        matches!(self, Self::NumberOfNodesQuotaExceededFault(_))
489    }
490    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::ReservedNodeAlreadyExistsFault`.
491    pub fn is_reserved_node_already_exists_fault(&self) -> bool {
492        matches!(self, Self::ReservedNodeAlreadyExistsFault(_))
493    }
494    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::ReservedNodeAlreadyMigratedFault`.
495    pub fn is_reserved_node_already_migrated_fault(&self) -> bool {
496        matches!(self, Self::ReservedNodeAlreadyMigratedFault(_))
497    }
498    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::ReservedNodeNotFoundFault`.
499    pub fn is_reserved_node_not_found_fault(&self) -> bool {
500        matches!(self, Self::ReservedNodeNotFoundFault(_))
501    }
502    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::ReservedNodeOfferingNotFoundFault`.
503    pub fn is_reserved_node_offering_not_found_fault(&self) -> bool {
504        matches!(self, Self::ReservedNodeOfferingNotFoundFault(_))
505    }
506    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::SnapshotScheduleNotFoundFault`.
507    pub fn is_snapshot_schedule_not_found_fault(&self) -> bool {
508        matches!(self, Self::SnapshotScheduleNotFoundFault(_))
509    }
510    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::TagLimitExceededFault`.
511    pub fn is_tag_limit_exceeded_fault(&self) -> bool {
512        matches!(self, Self::TagLimitExceededFault(_))
513    }
514    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::UnauthorizedOperation`.
515    pub fn is_unauthorized_operation(&self) -> bool {
516        matches!(self, Self::UnauthorizedOperation(_))
517    }
518    /// Returns `true` if the error kind is `RestoreFromClusterSnapshotError::UnsupportedOperationFault`.
519    pub fn is_unsupported_operation_fault(&self) -> bool {
520        matches!(self, Self::UnsupportedOperationFault(_))
521    }
522}
523impl ::std::error::Error for RestoreFromClusterSnapshotError {
524    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
525        match self {
526            Self::AccessToSnapshotDeniedFault(_inner) => ::std::option::Option::Some(_inner),
527            Self::ClusterAlreadyExistsFault(_inner) => ::std::option::Option::Some(_inner),
528            Self::ClusterParameterGroupNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
529            Self::ClusterQuotaExceededFault(_inner) => ::std::option::Option::Some(_inner),
530            Self::ClusterSecurityGroupNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
531            Self::ClusterSnapshotNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
532            Self::ClusterSubnetGroupNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
533            Self::DependentServiceRequestThrottlingFault(_inner) => ::std::option::Option::Some(_inner),
534            Self::DependentServiceUnavailableFault(_inner) => ::std::option::Option::Some(_inner),
535            Self::HsmClientCertificateNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
536            Self::HsmConfigurationNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
537            Self::InsufficientClusterCapacityFault(_inner) => ::std::option::Option::Some(_inner),
538            Self::InvalidClusterSnapshotStateFault(_inner) => ::std::option::Option::Some(_inner),
539            Self::InvalidClusterSubnetGroupStateFault(_inner) => ::std::option::Option::Some(_inner),
540            Self::InvalidClusterTrackFault(_inner) => ::std::option::Option::Some(_inner),
541            Self::InvalidElasticIpFault(_inner) => ::std::option::Option::Some(_inner),
542            Self::InvalidReservedNodeStateFault(_inner) => ::std::option::Option::Some(_inner),
543            Self::InvalidRestoreFault(_inner) => ::std::option::Option::Some(_inner),
544            Self::InvalidSubnet(_inner) => ::std::option::Option::Some(_inner),
545            Self::InvalidTagFault(_inner) => ::std::option::Option::Some(_inner),
546            Self::InvalidVpcNetworkStateFault(_inner) => ::std::option::Option::Some(_inner),
547            Self::Ipv6CidrBlockNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
548            Self::LimitExceededFault(_inner) => ::std::option::Option::Some(_inner),
549            Self::NumberOfNodesPerClusterLimitExceededFault(_inner) => ::std::option::Option::Some(_inner),
550            Self::NumberOfNodesQuotaExceededFault(_inner) => ::std::option::Option::Some(_inner),
551            Self::ReservedNodeAlreadyExistsFault(_inner) => ::std::option::Option::Some(_inner),
552            Self::ReservedNodeAlreadyMigratedFault(_inner) => ::std::option::Option::Some(_inner),
553            Self::ReservedNodeNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
554            Self::ReservedNodeOfferingNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
555            Self::SnapshotScheduleNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
556            Self::TagLimitExceededFault(_inner) => ::std::option::Option::Some(_inner),
557            Self::UnauthorizedOperation(_inner) => ::std::option::Option::Some(_inner),
558            Self::UnsupportedOperationFault(_inner) => ::std::option::Option::Some(_inner),
559            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
560        }
561    }
562}
563impl ::std::fmt::Display for RestoreFromClusterSnapshotError {
564    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
565        match self {
566            Self::AccessToSnapshotDeniedFault(_inner) => _inner.fmt(f),
567            Self::ClusterAlreadyExistsFault(_inner) => _inner.fmt(f),
568            Self::ClusterParameterGroupNotFoundFault(_inner) => _inner.fmt(f),
569            Self::ClusterQuotaExceededFault(_inner) => _inner.fmt(f),
570            Self::ClusterSecurityGroupNotFoundFault(_inner) => _inner.fmt(f),
571            Self::ClusterSnapshotNotFoundFault(_inner) => _inner.fmt(f),
572            Self::ClusterSubnetGroupNotFoundFault(_inner) => _inner.fmt(f),
573            Self::DependentServiceRequestThrottlingFault(_inner) => _inner.fmt(f),
574            Self::DependentServiceUnavailableFault(_inner) => _inner.fmt(f),
575            Self::HsmClientCertificateNotFoundFault(_inner) => _inner.fmt(f),
576            Self::HsmConfigurationNotFoundFault(_inner) => _inner.fmt(f),
577            Self::InsufficientClusterCapacityFault(_inner) => _inner.fmt(f),
578            Self::InvalidClusterSnapshotStateFault(_inner) => _inner.fmt(f),
579            Self::InvalidClusterSubnetGroupStateFault(_inner) => _inner.fmt(f),
580            Self::InvalidClusterTrackFault(_inner) => _inner.fmt(f),
581            Self::InvalidElasticIpFault(_inner) => _inner.fmt(f),
582            Self::InvalidReservedNodeStateFault(_inner) => _inner.fmt(f),
583            Self::InvalidRestoreFault(_inner) => _inner.fmt(f),
584            Self::InvalidSubnet(_inner) => _inner.fmt(f),
585            Self::InvalidTagFault(_inner) => _inner.fmt(f),
586            Self::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f),
587            Self::Ipv6CidrBlockNotFoundFault(_inner) => _inner.fmt(f),
588            Self::LimitExceededFault(_inner) => _inner.fmt(f),
589            Self::NumberOfNodesPerClusterLimitExceededFault(_inner) => _inner.fmt(f),
590            Self::NumberOfNodesQuotaExceededFault(_inner) => _inner.fmt(f),
591            Self::ReservedNodeAlreadyExistsFault(_inner) => _inner.fmt(f),
592            Self::ReservedNodeAlreadyMigratedFault(_inner) => _inner.fmt(f),
593            Self::ReservedNodeNotFoundFault(_inner) => _inner.fmt(f),
594            Self::ReservedNodeOfferingNotFoundFault(_inner) => _inner.fmt(f),
595            Self::SnapshotScheduleNotFoundFault(_inner) => _inner.fmt(f),
596            Self::TagLimitExceededFault(_inner) => _inner.fmt(f),
597            Self::UnauthorizedOperation(_inner) => _inner.fmt(f),
598            Self::UnsupportedOperationFault(_inner) => _inner.fmt(f),
599            Self::Unhandled(_inner) => {
600                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
601                    write!(f, "unhandled error ({code})")
602                } else {
603                    f.write_str("unhandled error")
604                }
605            }
606        }
607    }
608}
609impl ::aws_smithy_types::retry::ProvideErrorKind for RestoreFromClusterSnapshotError {
610    fn code(&self) -> ::std::option::Option<&str> {
611        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
612    }
613    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
614        ::std::option::Option::None
615    }
616}
617impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for RestoreFromClusterSnapshotError {
618    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
619        match self {
620            Self::AccessToSnapshotDeniedFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
621            Self::ClusterAlreadyExistsFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
622            Self::ClusterParameterGroupNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
623            Self::ClusterQuotaExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
624            Self::ClusterSecurityGroupNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
625            Self::ClusterSnapshotNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
626            Self::ClusterSubnetGroupNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
627            Self::DependentServiceRequestThrottlingFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
628            Self::DependentServiceUnavailableFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
629            Self::HsmClientCertificateNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
630            Self::HsmConfigurationNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
631            Self::InsufficientClusterCapacityFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
632            Self::InvalidClusterSnapshotStateFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
633            Self::InvalidClusterSubnetGroupStateFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
634            Self::InvalidClusterTrackFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
635            Self::InvalidElasticIpFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
636            Self::InvalidReservedNodeStateFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
637            Self::InvalidRestoreFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
638            Self::InvalidSubnet(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
639            Self::InvalidTagFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
640            Self::InvalidVpcNetworkStateFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
641            Self::Ipv6CidrBlockNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
642            Self::LimitExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
643            Self::NumberOfNodesPerClusterLimitExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
644            Self::NumberOfNodesQuotaExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
645            Self::ReservedNodeAlreadyExistsFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
646            Self::ReservedNodeAlreadyMigratedFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
647            Self::ReservedNodeNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
648            Self::ReservedNodeOfferingNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
649            Self::SnapshotScheduleNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
650            Self::TagLimitExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
651            Self::UnauthorizedOperation(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
652            Self::UnsupportedOperationFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
653            Self::Unhandled(_inner) => &_inner.meta,
654        }
655    }
656}
657impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for RestoreFromClusterSnapshotError {
658    fn create_unhandled_error(
659        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
660        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
661    ) -> Self {
662        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
663            source,
664            meta: meta.unwrap_or_default(),
665        })
666    }
667}
668impl ::aws_types::request_id::RequestId for crate::operation::restore_from_cluster_snapshot::RestoreFromClusterSnapshotError {
669    fn request_id(&self) -> Option<&str> {
670        self.meta().request_id()
671    }
672}
673
674pub use crate::operation::restore_from_cluster_snapshot::_restore_from_cluster_snapshot_output::RestoreFromClusterSnapshotOutput;
675
676pub use crate::operation::restore_from_cluster_snapshot::_restore_from_cluster_snapshot_input::RestoreFromClusterSnapshotInput;
677
678mod _restore_from_cluster_snapshot_input;
679
680mod _restore_from_cluster_snapshot_output;
681
682/// Builders
683pub mod builders;