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