Skip to main content

aws_sdk_redshift/operation/
create_cluster.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `CreateCluster`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct CreateCluster;
6impl CreateCluster {
7    /// Creates a new `CreateCluster`
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::create_cluster::CreateClusterInput,
14    ) -> ::std::result::Result<
15        crate::operation::create_cluster::CreateClusterOutput,
16        ::aws_smithy_runtime_api::client::result::SdkError<
17            crate::operation::create_cluster::CreateClusterError,
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::create_cluster::CreateClusterError>()
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::create_cluster::CreateClusterOutput>()
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::create_cluster::CreateClusterInput,
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("Redshift", "CreateCluster", input, runtime_plugins, stop_point)
55            // Create a parent span for the entire operation. Includes a random, internal-only,
56            // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
57            .instrument(::tracing::debug_span!(
58                "Redshift.CreateCluster",
59                "rpc.service" = "Redshift",
60                "rpc.method" = "CreateCluster",
61                "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
62                "rpc.system" = "aws-api",
63            ))
64            .await
65    }
66
67    pub(crate) fn operation_runtime_plugins(
68        client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
69        client_config: &crate::config::Config,
70        config_override: ::std::option::Option<crate::config::Builder>,
71    ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
72        let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
73
74        if let ::std::option::Option::Some(config_override) = config_override {
75            for plugin in config_override.runtime_plugins.iter().cloned() {
76                runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
77            }
78            runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
79                config_override,
80                client_config.config.clone(),
81                &client_config.runtime_components,
82            ));
83        }
84        runtime_plugins
85    }
86}
87impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for CreateCluster {
88    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
89        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("CreateCluster");
90
91        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
92            CreateClusterRequestSerializer,
93        ));
94        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
95            CreateClusterResponseDeserializer,
96        ));
97
98        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
99            crate::config::auth::Params::builder()
100                .operation_name("CreateCluster")
101                .build()
102                .expect("required fields set"),
103        ));
104
105        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::SensitiveOutput);
106        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("CreateCluster", "Redshift"));
107        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
108        signing_options.double_uri_encode = true;
109        signing_options.content_sha256_header = false;
110        signing_options.normalize_uri_path = true;
111        signing_options.payload_override = None;
112
113        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
114            signing_options,
115            ..::std::default::Default::default()
116        });
117
118        ::std::option::Option::Some(cfg.freeze())
119    }
120
121    fn runtime_components(
122        &self,
123        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
124    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
125        #[allow(unused_mut)]
126        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("CreateCluster")
127            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
128                CreateClusterTelemetryInputCaptureInterceptor,
129            ))
130            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
131                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
132            ))
133            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
134                CreateClusterEndpointParamsInterceptor,
135            ))
136            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
137                crate::operation::create_cluster::CreateClusterError,
138            >::new())
139            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
140                crate::operation::create_cluster::CreateClusterError,
141            >::new())
142            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
143                crate::operation::create_cluster::CreateClusterError,
144            >::new());
145
146        ::std::borrow::Cow::Owned(rcb)
147    }
148}
149
150#[derive(Debug)]
151struct CreateClusterTelemetryInputCaptureInterceptor;
152
153#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
154impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateClusterTelemetryInputCaptureInterceptor {
155    fn name(&self) -> &'static str {
156        "CreateClusterTelemetryInputCaptureInterceptor"
157    }
158
159    fn read_before_execution(
160        &self,
161        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
162            '_,
163            ::aws_smithy_runtime_api::client::interceptors::context::Input,
164            ::aws_smithy_runtime_api::client::interceptors::context::Output,
165            ::aws_smithy_runtime_api::client::interceptors::context::Error,
166        >,
167        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
168    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
169        // Nothing to do unless the customer opted in by naming members to record.
170        let ::std::option::Option::Some(requested) = cfg
171            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
172            .filter(|r| !r.is_empty())
173        else {
174            return ::std::result::Result::Ok(());
175        };
176
177        let ::std::option::Option::Some(input) = context.input().downcast_ref::<CreateClusterInput>() else {
178            // A mismatched input is not this interceptor's concern; skip quietly.
179            return ::std::result::Result::Ok(());
180        };
181
182        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
183        if requested.should_capture("DBName") {
184            if let ::std::option::Option::Some(value) = input.db_name.as_deref() {
185                captured.insert("DBName", value);
186            }
187        }
188        if requested.should_capture("ClusterIdentifier") {
189            if let ::std::option::Option::Some(value) = input.cluster_identifier.as_deref() {
190                captured.insert("ClusterIdentifier", value);
191            }
192        }
193        if requested.should_capture("ClusterType") {
194            if let ::std::option::Option::Some(value) = input.cluster_type.as_deref() {
195                captured.insert("ClusterType", value);
196            }
197        }
198        if requested.should_capture("NodeType") {
199            if let ::std::option::Option::Some(value) = input.node_type.as_deref() {
200                captured.insert("NodeType", value);
201            }
202        }
203        if requested.should_capture("MasterUsername") {
204            if let ::std::option::Option::Some(value) = input.master_username.as_deref() {
205                captured.insert("MasterUsername", value);
206            }
207        }
208        if requested.should_capture("ClusterSubnetGroupName") {
209            if let ::std::option::Option::Some(value) = input.cluster_subnet_group_name.as_deref() {
210                captured.insert("ClusterSubnetGroupName", value);
211            }
212        }
213        if requested.should_capture("AvailabilityZone") {
214            if let ::std::option::Option::Some(value) = input.availability_zone.as_deref() {
215                captured.insert("AvailabilityZone", value);
216            }
217        }
218        if requested.should_capture("PreferredMaintenanceWindow") {
219            if let ::std::option::Option::Some(value) = input.preferred_maintenance_window.as_deref() {
220                captured.insert("PreferredMaintenanceWindow", value);
221            }
222        }
223        if requested.should_capture("ClusterParameterGroupName") {
224            if let ::std::option::Option::Some(value) = input.cluster_parameter_group_name.as_deref() {
225                captured.insert("ClusterParameterGroupName", value);
226            }
227        }
228        if requested.should_capture("ClusterVersion") {
229            if let ::std::option::Option::Some(value) = input.cluster_version.as_deref() {
230                captured.insert("ClusterVersion", value);
231            }
232        }
233        if requested.should_capture("HsmClientCertificateIdentifier") {
234            if let ::std::option::Option::Some(value) = input.hsm_client_certificate_identifier.as_deref() {
235                captured.insert("HsmClientCertificateIdentifier", value);
236            }
237        }
238        if requested.should_capture("HsmConfigurationIdentifier") {
239            if let ::std::option::Option::Some(value) = input.hsm_configuration_identifier.as_deref() {
240                captured.insert("HsmConfigurationIdentifier", value);
241            }
242        }
243        if requested.should_capture("ElasticIp") {
244            if let ::std::option::Option::Some(value) = input.elastic_ip.as_deref() {
245                captured.insert("ElasticIp", value);
246            }
247        }
248        if requested.should_capture("KmsKeyId") {
249            if let ::std::option::Option::Some(value) = input.kms_key_id.as_deref() {
250                captured.insert("KmsKeyId", value);
251            }
252        }
253        if requested.should_capture("AdditionalInfo") {
254            if let ::std::option::Option::Some(value) = input.additional_info.as_deref() {
255                captured.insert("AdditionalInfo", value);
256            }
257        }
258        if requested.should_capture("MaintenanceTrackName") {
259            if let ::std::option::Option::Some(value) = input.maintenance_track_name.as_deref() {
260                captured.insert("MaintenanceTrackName", value);
261            }
262        }
263        if requested.should_capture("SnapshotScheduleIdentifier") {
264            if let ::std::option::Option::Some(value) = input.snapshot_schedule_identifier.as_deref() {
265                captured.insert("SnapshotScheduleIdentifier", value);
266            }
267        }
268        if requested.should_capture("DefaultIamRoleArn") {
269            if let ::std::option::Option::Some(value) = input.default_iam_role_arn.as_deref() {
270                captured.insert("DefaultIamRoleArn", value);
271            }
272        }
273        if requested.should_capture("LoadSampleData") {
274            if let ::std::option::Option::Some(value) = input.load_sample_data.as_deref() {
275                captured.insert("LoadSampleData", value);
276            }
277        }
278        if requested.should_capture("MasterPasswordSecretKmsKeyId") {
279            if let ::std::option::Option::Some(value) = input.master_password_secret_kms_key_id.as_deref() {
280                captured.insert("MasterPasswordSecretKmsKeyId", value);
281            }
282        }
283        if requested.should_capture("IpAddressType") {
284            if let ::std::option::Option::Some(value) = input.ip_address_type.as_deref() {
285                captured.insert("IpAddressType", value);
286            }
287        }
288        if requested.should_capture("RedshiftIdcApplicationArn") {
289            if let ::std::option::Option::Some(value) = input.redshift_idc_application_arn.as_deref() {
290                captured.insert("RedshiftIdcApplicationArn", value);
291            }
292        }
293        if requested.should_capture("CatalogName") {
294            if let ::std::option::Option::Some(value) = input.catalog_name.as_deref() {
295                captured.insert("CatalogName", value);
296            }
297        }
298
299        cfg.interceptor_state().store_put(captured);
300        ::std::result::Result::Ok(())
301    }
302}
303#[derive(Debug)]
304struct CreateClusterResponseDeserializer;
305impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateClusterResponseDeserializer {
306    fn deserialize_nonstreaming_with_config(
307        &self,
308        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
309        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
310    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
311        let (success, status) = (response.status().is_success(), response.status().as_u16());
312        let headers = response.headers();
313        let body = response.body().bytes().expect("body loaded");
314        #[allow(unused_mut)]
315        let mut force_error = false;
316        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
317        let parse_result = if !success && status != 200 || force_error {
318            crate::protocol_serde::shape_create_cluster::de_create_cluster_http_error(status, headers, body)
319        } else {
320            crate::protocol_serde::shape_create_cluster::de_create_cluster_http_response(status, headers, body)
321        };
322        crate::protocol_serde::type_erase_result(parse_result)
323    }
324}
325#[derive(Debug)]
326struct CreateClusterRequestSerializer;
327impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for CreateClusterRequestSerializer {
328    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
329    fn serialize_input(
330        &self,
331        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
332        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
333    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
334        let input = input
335            .downcast::<crate::operation::create_cluster::CreateClusterInput>()
336            .expect("correct type");
337        let _header_serialization_settings = _cfg
338            .load::<crate::serialization_settings::HeaderSerializationSettings>()
339            .cloned()
340            .unwrap_or_default();
341        let mut request_builder = {
342            #[allow(clippy::uninlined_format_args)]
343            fn uri_base(
344                _input: &crate::operation::create_cluster::CreateClusterInput,
345                output: &mut ::std::string::String,
346            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
347                use ::std::fmt::Write as _;
348                ::std::write!(output, "/").expect("formatting should succeed");
349                ::std::result::Result::Ok(())
350            }
351            #[allow(clippy::unnecessary_wraps)]
352            fn update_http_builder(
353                input: &crate::operation::create_cluster::CreateClusterInput,
354                builder: ::http_1x::request::Builder,
355            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
356                let mut uri = ::std::string::String::new();
357                uri_base(input, &mut uri)?;
358                ::std::result::Result::Ok(builder.method("POST").uri(uri))
359            }
360            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
361            builder =
362                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
363            builder
364        };
365        let body = ::aws_smithy_types::body::SdkBody::from(crate::protocol_serde::shape_create_cluster_input::ser_create_cluster_input_input_input(
366            &input,
367        )?);
368        if let Some(content_length) = body.content_length() {
369            let content_length = content_length.to_string();
370            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
371        }
372        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
373    }
374}
375#[derive(Debug)]
376struct CreateClusterEndpointParamsInterceptor;
377
378#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
379impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateClusterEndpointParamsInterceptor {
380    fn name(&self) -> &'static str {
381        "CreateClusterEndpointParamsInterceptor"
382    }
383
384    fn read_before_execution(
385        &self,
386        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
387            '_,
388            ::aws_smithy_runtime_api::client::interceptors::context::Input,
389            ::aws_smithy_runtime_api::client::interceptors::context::Output,
390            ::aws_smithy_runtime_api::client::interceptors::context::Error,
391        >,
392        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
393    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
394        let _input = context
395            .input()
396            .downcast_ref::<CreateClusterInput>()
397            .ok_or("failed to downcast to CreateClusterInput")?;
398
399        let params = crate::config::endpoint::Params::builder()
400            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
401            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
402            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
403            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
404            .build()
405            .map_err(|err| {
406                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
407            })?;
408        cfg.interceptor_state()
409            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
410        ::std::result::Result::Ok(())
411    }
412}
413
414// The get_* functions below are generated from JMESPath expressions in the
415// operationContextParams trait. They target the operation's input shape.
416
417/// Error type for the `CreateClusterError` operation.
418#[non_exhaustive]
419#[derive(::std::fmt::Debug)]
420pub enum CreateClusterError {
421    /// <p>The account already has a cluster with the given identifier.</p>
422    ClusterAlreadyExistsFault(crate::types::error::ClusterAlreadyExistsFault),
423    /// <p>The parameter group name does not refer to an existing parameter group.</p>
424    ClusterParameterGroupNotFoundFault(crate::types::error::ClusterParameterGroupNotFoundFault),
425    /// <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>
426    ClusterQuotaExceededFault(crate::types::error::ClusterQuotaExceededFault),
427    /// <p>The cluster security group name does not refer to an existing cluster security group.</p>
428    ClusterSecurityGroupNotFoundFault(crate::types::error::ClusterSecurityGroupNotFoundFault),
429    /// <p>The cluster subnet group name does not refer to an existing cluster subnet group.</p>
430    ClusterSubnetGroupNotFoundFault(crate::types::error::ClusterSubnetGroupNotFoundFault),
431    /// <p>A dependent service denied access for the integration.</p>
432    DependentServiceAccessDeniedFault(crate::types::error::DependentServiceAccessDeniedFault),
433    /// <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>
434    DependentServiceRequestThrottlingFault(crate::types::error::DependentServiceRequestThrottlingFault),
435    /// <p>Your request cannot be completed because a dependent internal service is temporarily unavailable. Wait 30 to 60 seconds and try again.</p>
436    DependentServiceUnavailableFault(crate::types::error::DependentServiceUnavailableFault),
437    /// <p>There is no Amazon Redshift HSM client certificate with the specified identifier.</p>
438    HsmClientCertificateNotFoundFault(crate::types::error::HsmClientCertificateNotFoundFault),
439    /// <p>There is no Amazon Redshift HSM configuration with the specified identifier.</p>
440    HsmConfigurationNotFoundFault(crate::types::error::HsmConfigurationNotFoundFault),
441    /// <p>The number of nodes specified exceeds the allotted capacity of the cluster.</p>
442    InsufficientClusterCapacityFault(crate::types::error::InsufficientClusterCapacityFault),
443    /// <p>The cluster subnet group cannot be deleted because it is in use.</p>
444    InvalidClusterSubnetGroupStateFault(crate::types::error::InvalidClusterSubnetGroupStateFault),
445    /// <p>The provided cluster track name is not valid.</p>
446    InvalidClusterTrackFault(crate::types::error::InvalidClusterTrackFault),
447    /// <p>The Elastic IP (EIP) is invalid or cannot be found.</p>
448    InvalidElasticIpFault(crate::types::error::InvalidElasticIpFault),
449    /// <p>The retention period specified is either in the past or is not a valid value.</p>
450    /// <p>The value must be either -1 or an integer between 1 and 3,653.</p>
451    InvalidRetentionPeriodFault(crate::types::error::InvalidRetentionPeriodFault),
452    /// <p>The requested subnet is not valid, or not all of the subnets are in the same VPC.</p>
453    InvalidSubnet(crate::types::error::InvalidSubnet),
454    /// <p>The tag is invalid.</p>
455    InvalidTagFault(crate::types::error::InvalidTagFault),
456    /// <p>The cluster subnet group does not cover all Availability Zones.</p>
457    InvalidVpcNetworkStateFault(crate::types::error::InvalidVpcNetworkStateFault),
458    /// <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>
459    Ipv6CidrBlockNotFoundFault(crate::types::error::Ipv6CidrBlockNotFoundFault),
460    /// <p>The encryption key has exceeded its grant limit in Amazon Web Services KMS.</p>
461    LimitExceededFault(crate::types::error::LimitExceededFault),
462    /// <p>The operation would exceed the number of nodes allowed for a cluster.</p>
463    NumberOfNodesPerClusterLimitExceededFault(crate::types::error::NumberOfNodesPerClusterLimitExceededFault),
464    /// <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>
465    NumberOfNodesQuotaExceededFault(crate::types::error::NumberOfNodesQuotaExceededFault),
466    /// <p>The application you attempted to find doesn't exist.</p>
467    RedshiftIdcApplicationNotExistsFault(crate::types::error::RedshiftIdcApplicationNotExistsFault),
468    /// <p>We could not find the specified snapshot schedule.</p>
469    SnapshotScheduleNotFoundFault(crate::types::error::SnapshotScheduleNotFoundFault),
470    /// <p>You have exceeded the number of tags allowed.</p>
471    TagLimitExceededFault(crate::types::error::TagLimitExceededFault),
472    /// <p>Your account is not authorized to perform the requested operation.</p>
473    UnauthorizedOperation(crate::types::error::UnauthorizedOperation),
474    /// <p>The requested operation isn't supported.</p>
475    UnsupportedOperationFault(crate::types::error::UnsupportedOperationFault),
476    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
477    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
478    variable wildcard pattern and check `.code()`:
479     \
480    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
481     \
482    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-CreateClusterError) for what information is available for the error.")]
483    Unhandled(crate::error::sealed_unhandled::Unhandled),
484}
485impl CreateClusterError {
486    /// Creates the `CreateClusterError::Unhandled` variant from any error type.
487    pub fn unhandled(
488        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
489    ) -> Self {
490        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
491            source: err.into(),
492            meta: ::std::default::Default::default(),
493        })
494    }
495
496    /// Creates the `CreateClusterError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
497    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
498        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
499            source: err.clone().into(),
500            meta: err,
501        })
502    }
503    ///
504    /// Returns error metadata, which includes the error code, message,
505    /// request ID, and potentially additional information.
506    ///
507    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
508        match self {
509            Self::ClusterAlreadyExistsFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
510            Self::ClusterParameterGroupNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
511            Self::ClusterQuotaExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
512            Self::ClusterSecurityGroupNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
513            Self::ClusterSubnetGroupNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
514            Self::DependentServiceAccessDeniedFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
515            Self::DependentServiceRequestThrottlingFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
516            Self::DependentServiceUnavailableFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
517            Self::HsmClientCertificateNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
518            Self::HsmConfigurationNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
519            Self::InsufficientClusterCapacityFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
520            Self::InvalidClusterSubnetGroupStateFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
521            Self::InvalidClusterTrackFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
522            Self::InvalidElasticIpFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
523            Self::InvalidRetentionPeriodFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
524            Self::InvalidSubnet(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
525            Self::InvalidTagFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
526            Self::InvalidVpcNetworkStateFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
527            Self::Ipv6CidrBlockNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
528            Self::LimitExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
529            Self::NumberOfNodesPerClusterLimitExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
530            Self::NumberOfNodesQuotaExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
531            Self::RedshiftIdcApplicationNotExistsFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
532            Self::SnapshotScheduleNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
533            Self::TagLimitExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
534            Self::UnauthorizedOperation(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
535            Self::UnsupportedOperationFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
536            Self::Unhandled(e) => &e.meta,
537        }
538    }
539    /// Returns `true` if the error kind is `CreateClusterError::ClusterAlreadyExistsFault`.
540    pub fn is_cluster_already_exists_fault(&self) -> bool {
541        matches!(self, Self::ClusterAlreadyExistsFault(_))
542    }
543    /// Returns `true` if the error kind is `CreateClusterError::ClusterParameterGroupNotFoundFault`.
544    pub fn is_cluster_parameter_group_not_found_fault(&self) -> bool {
545        matches!(self, Self::ClusterParameterGroupNotFoundFault(_))
546    }
547    /// Returns `true` if the error kind is `CreateClusterError::ClusterQuotaExceededFault`.
548    pub fn is_cluster_quota_exceeded_fault(&self) -> bool {
549        matches!(self, Self::ClusterQuotaExceededFault(_))
550    }
551    /// Returns `true` if the error kind is `CreateClusterError::ClusterSecurityGroupNotFoundFault`.
552    pub fn is_cluster_security_group_not_found_fault(&self) -> bool {
553        matches!(self, Self::ClusterSecurityGroupNotFoundFault(_))
554    }
555    /// Returns `true` if the error kind is `CreateClusterError::ClusterSubnetGroupNotFoundFault`.
556    pub fn is_cluster_subnet_group_not_found_fault(&self) -> bool {
557        matches!(self, Self::ClusterSubnetGroupNotFoundFault(_))
558    }
559    /// Returns `true` if the error kind is `CreateClusterError::DependentServiceAccessDeniedFault`.
560    pub fn is_dependent_service_access_denied_fault(&self) -> bool {
561        matches!(self, Self::DependentServiceAccessDeniedFault(_))
562    }
563    /// Returns `true` if the error kind is `CreateClusterError::DependentServiceRequestThrottlingFault`.
564    pub fn is_dependent_service_request_throttling_fault(&self) -> bool {
565        matches!(self, Self::DependentServiceRequestThrottlingFault(_))
566    }
567    /// Returns `true` if the error kind is `CreateClusterError::DependentServiceUnavailableFault`.
568    pub fn is_dependent_service_unavailable_fault(&self) -> bool {
569        matches!(self, Self::DependentServiceUnavailableFault(_))
570    }
571    /// Returns `true` if the error kind is `CreateClusterError::HsmClientCertificateNotFoundFault`.
572    pub fn is_hsm_client_certificate_not_found_fault(&self) -> bool {
573        matches!(self, Self::HsmClientCertificateNotFoundFault(_))
574    }
575    /// Returns `true` if the error kind is `CreateClusterError::HsmConfigurationNotFoundFault`.
576    pub fn is_hsm_configuration_not_found_fault(&self) -> bool {
577        matches!(self, Self::HsmConfigurationNotFoundFault(_))
578    }
579    /// Returns `true` if the error kind is `CreateClusterError::InsufficientClusterCapacityFault`.
580    pub fn is_insufficient_cluster_capacity_fault(&self) -> bool {
581        matches!(self, Self::InsufficientClusterCapacityFault(_))
582    }
583    /// Returns `true` if the error kind is `CreateClusterError::InvalidClusterSubnetGroupStateFault`.
584    pub fn is_invalid_cluster_subnet_group_state_fault(&self) -> bool {
585        matches!(self, Self::InvalidClusterSubnetGroupStateFault(_))
586    }
587    /// Returns `true` if the error kind is `CreateClusterError::InvalidClusterTrackFault`.
588    pub fn is_invalid_cluster_track_fault(&self) -> bool {
589        matches!(self, Self::InvalidClusterTrackFault(_))
590    }
591    /// Returns `true` if the error kind is `CreateClusterError::InvalidElasticIpFault`.
592    pub fn is_invalid_elastic_ip_fault(&self) -> bool {
593        matches!(self, Self::InvalidElasticIpFault(_))
594    }
595    /// Returns `true` if the error kind is `CreateClusterError::InvalidRetentionPeriodFault`.
596    pub fn is_invalid_retention_period_fault(&self) -> bool {
597        matches!(self, Self::InvalidRetentionPeriodFault(_))
598    }
599    /// Returns `true` if the error kind is `CreateClusterError::InvalidSubnet`.
600    pub fn is_invalid_subnet(&self) -> bool {
601        matches!(self, Self::InvalidSubnet(_))
602    }
603    /// Returns `true` if the error kind is `CreateClusterError::InvalidTagFault`.
604    pub fn is_invalid_tag_fault(&self) -> bool {
605        matches!(self, Self::InvalidTagFault(_))
606    }
607    /// Returns `true` if the error kind is `CreateClusterError::InvalidVpcNetworkStateFault`.
608    pub fn is_invalid_vpc_network_state_fault(&self) -> bool {
609        matches!(self, Self::InvalidVpcNetworkStateFault(_))
610    }
611    /// Returns `true` if the error kind is `CreateClusterError::Ipv6CidrBlockNotFoundFault`.
612    pub fn is_ipv6_cidr_block_not_found_fault(&self) -> bool {
613        matches!(self, Self::Ipv6CidrBlockNotFoundFault(_))
614    }
615    /// Returns `true` if the error kind is `CreateClusterError::LimitExceededFault`.
616    pub fn is_limit_exceeded_fault(&self) -> bool {
617        matches!(self, Self::LimitExceededFault(_))
618    }
619    /// Returns `true` if the error kind is `CreateClusterError::NumberOfNodesPerClusterLimitExceededFault`.
620    pub fn is_number_of_nodes_per_cluster_limit_exceeded_fault(&self) -> bool {
621        matches!(self, Self::NumberOfNodesPerClusterLimitExceededFault(_))
622    }
623    /// Returns `true` if the error kind is `CreateClusterError::NumberOfNodesQuotaExceededFault`.
624    pub fn is_number_of_nodes_quota_exceeded_fault(&self) -> bool {
625        matches!(self, Self::NumberOfNodesQuotaExceededFault(_))
626    }
627    /// Returns `true` if the error kind is `CreateClusterError::RedshiftIdcApplicationNotExistsFault`.
628    pub fn is_redshift_idc_application_not_exists_fault(&self) -> bool {
629        matches!(self, Self::RedshiftIdcApplicationNotExistsFault(_))
630    }
631    /// Returns `true` if the error kind is `CreateClusterError::SnapshotScheduleNotFoundFault`.
632    pub fn is_snapshot_schedule_not_found_fault(&self) -> bool {
633        matches!(self, Self::SnapshotScheduleNotFoundFault(_))
634    }
635    /// Returns `true` if the error kind is `CreateClusterError::TagLimitExceededFault`.
636    pub fn is_tag_limit_exceeded_fault(&self) -> bool {
637        matches!(self, Self::TagLimitExceededFault(_))
638    }
639    /// Returns `true` if the error kind is `CreateClusterError::UnauthorizedOperation`.
640    pub fn is_unauthorized_operation(&self) -> bool {
641        matches!(self, Self::UnauthorizedOperation(_))
642    }
643    /// Returns `true` if the error kind is `CreateClusterError::UnsupportedOperationFault`.
644    pub fn is_unsupported_operation_fault(&self) -> bool {
645        matches!(self, Self::UnsupportedOperationFault(_))
646    }
647}
648impl ::std::error::Error for CreateClusterError {
649    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
650        match self {
651            Self::ClusterAlreadyExistsFault(_inner) => ::std::option::Option::Some(_inner),
652            Self::ClusterParameterGroupNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
653            Self::ClusterQuotaExceededFault(_inner) => ::std::option::Option::Some(_inner),
654            Self::ClusterSecurityGroupNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
655            Self::ClusterSubnetGroupNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
656            Self::DependentServiceAccessDeniedFault(_inner) => ::std::option::Option::Some(_inner),
657            Self::DependentServiceRequestThrottlingFault(_inner) => ::std::option::Option::Some(_inner),
658            Self::DependentServiceUnavailableFault(_inner) => ::std::option::Option::Some(_inner),
659            Self::HsmClientCertificateNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
660            Self::HsmConfigurationNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
661            Self::InsufficientClusterCapacityFault(_inner) => ::std::option::Option::Some(_inner),
662            Self::InvalidClusterSubnetGroupStateFault(_inner) => ::std::option::Option::Some(_inner),
663            Self::InvalidClusterTrackFault(_inner) => ::std::option::Option::Some(_inner),
664            Self::InvalidElasticIpFault(_inner) => ::std::option::Option::Some(_inner),
665            Self::InvalidRetentionPeriodFault(_inner) => ::std::option::Option::Some(_inner),
666            Self::InvalidSubnet(_inner) => ::std::option::Option::Some(_inner),
667            Self::InvalidTagFault(_inner) => ::std::option::Option::Some(_inner),
668            Self::InvalidVpcNetworkStateFault(_inner) => ::std::option::Option::Some(_inner),
669            Self::Ipv6CidrBlockNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
670            Self::LimitExceededFault(_inner) => ::std::option::Option::Some(_inner),
671            Self::NumberOfNodesPerClusterLimitExceededFault(_inner) => ::std::option::Option::Some(_inner),
672            Self::NumberOfNodesQuotaExceededFault(_inner) => ::std::option::Option::Some(_inner),
673            Self::RedshiftIdcApplicationNotExistsFault(_inner) => ::std::option::Option::Some(_inner),
674            Self::SnapshotScheduleNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
675            Self::TagLimitExceededFault(_inner) => ::std::option::Option::Some(_inner),
676            Self::UnauthorizedOperation(_inner) => ::std::option::Option::Some(_inner),
677            Self::UnsupportedOperationFault(_inner) => ::std::option::Option::Some(_inner),
678            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
679        }
680    }
681}
682impl ::std::fmt::Display for CreateClusterError {
683    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
684        match self {
685            Self::ClusterAlreadyExistsFault(_inner) => _inner.fmt(f),
686            Self::ClusterParameterGroupNotFoundFault(_inner) => _inner.fmt(f),
687            Self::ClusterQuotaExceededFault(_inner) => _inner.fmt(f),
688            Self::ClusterSecurityGroupNotFoundFault(_inner) => _inner.fmt(f),
689            Self::ClusterSubnetGroupNotFoundFault(_inner) => _inner.fmt(f),
690            Self::DependentServiceAccessDeniedFault(_inner) => _inner.fmt(f),
691            Self::DependentServiceRequestThrottlingFault(_inner) => _inner.fmt(f),
692            Self::DependentServiceUnavailableFault(_inner) => _inner.fmt(f),
693            Self::HsmClientCertificateNotFoundFault(_inner) => _inner.fmt(f),
694            Self::HsmConfigurationNotFoundFault(_inner) => _inner.fmt(f),
695            Self::InsufficientClusterCapacityFault(_inner) => _inner.fmt(f),
696            Self::InvalidClusterSubnetGroupStateFault(_inner) => _inner.fmt(f),
697            Self::InvalidClusterTrackFault(_inner) => _inner.fmt(f),
698            Self::InvalidElasticIpFault(_inner) => _inner.fmt(f),
699            Self::InvalidRetentionPeriodFault(_inner) => _inner.fmt(f),
700            Self::InvalidSubnet(_inner) => _inner.fmt(f),
701            Self::InvalidTagFault(_inner) => _inner.fmt(f),
702            Self::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f),
703            Self::Ipv6CidrBlockNotFoundFault(_inner) => _inner.fmt(f),
704            Self::LimitExceededFault(_inner) => _inner.fmt(f),
705            Self::NumberOfNodesPerClusterLimitExceededFault(_inner) => _inner.fmt(f),
706            Self::NumberOfNodesQuotaExceededFault(_inner) => _inner.fmt(f),
707            Self::RedshiftIdcApplicationNotExistsFault(_inner) => _inner.fmt(f),
708            Self::SnapshotScheduleNotFoundFault(_inner) => _inner.fmt(f),
709            Self::TagLimitExceededFault(_inner) => _inner.fmt(f),
710            Self::UnauthorizedOperation(_inner) => _inner.fmt(f),
711            Self::UnsupportedOperationFault(_inner) => _inner.fmt(f),
712            Self::Unhandled(_inner) => {
713                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
714                    write!(f, "unhandled error ({code})")
715                } else {
716                    f.write_str("unhandled error")
717                }
718            }
719        }
720    }
721}
722impl ::aws_smithy_types::retry::ProvideErrorKind for CreateClusterError {
723    fn code(&self) -> ::std::option::Option<&str> {
724        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
725    }
726    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
727        ::std::option::Option::None
728    }
729}
730impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateClusterError {
731    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
732        match self {
733            Self::ClusterAlreadyExistsFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
734            Self::ClusterParameterGroupNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
735            Self::ClusterQuotaExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
736            Self::ClusterSecurityGroupNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
737            Self::ClusterSubnetGroupNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
738            Self::DependentServiceAccessDeniedFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
739            Self::DependentServiceRequestThrottlingFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
740            Self::DependentServiceUnavailableFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
741            Self::HsmClientCertificateNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
742            Self::HsmConfigurationNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
743            Self::InsufficientClusterCapacityFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
744            Self::InvalidClusterSubnetGroupStateFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
745            Self::InvalidClusterTrackFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
746            Self::InvalidElasticIpFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
747            Self::InvalidRetentionPeriodFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
748            Self::InvalidSubnet(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
749            Self::InvalidTagFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
750            Self::InvalidVpcNetworkStateFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
751            Self::Ipv6CidrBlockNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
752            Self::LimitExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
753            Self::NumberOfNodesPerClusterLimitExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
754            Self::NumberOfNodesQuotaExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
755            Self::RedshiftIdcApplicationNotExistsFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
756            Self::SnapshotScheduleNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
757            Self::TagLimitExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
758            Self::UnauthorizedOperation(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
759            Self::UnsupportedOperationFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
760            Self::Unhandled(_inner) => &_inner.meta,
761        }
762    }
763}
764impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for CreateClusterError {
765    fn create_unhandled_error(
766        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
767        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
768    ) -> Self {
769        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
770            source,
771            meta: meta.unwrap_or_default(),
772        })
773    }
774}
775impl ::aws_types::request_id::RequestId for crate::operation::create_cluster::CreateClusterError {
776    fn request_id(&self) -> Option<&str> {
777        self.meta().request_id()
778    }
779}
780
781pub use crate::operation::create_cluster::_create_cluster_input::CreateClusterInput;
782
783pub use crate::operation::create_cluster::_create_cluster_output::CreateClusterOutput;
784
785mod _create_cluster_input;
786
787mod _create_cluster_output;
788
789/// Builders
790pub mod builders;