Skip to main content

aws_sdk_rds/operation/
create_db_instance_read_replica.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `CreateDBInstanceReadReplica`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct CreateDBInstanceReadReplica;
6impl CreateDBInstanceReadReplica {
7    /// Creates a new `CreateDBInstanceReadReplica`
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_db_instance_read_replica::CreateDbInstanceReadReplicaInput,
14    ) -> ::std::result::Result<
15        crate::operation::create_db_instance_read_replica::CreateDbInstanceReadReplicaOutput,
16        ::aws_smithy_runtime_api::client::result::SdkError<
17            crate::operation::create_db_instance_read_replica::CreateDBInstanceReadReplicaError,
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_db_instance_read_replica::CreateDBInstanceReadReplicaError>()
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_db_instance_read_replica::CreateDbInstanceReadReplicaOutput>()
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_db_instance_read_replica::CreateDbInstanceReadReplicaInput,
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("RDS", "CreateDBInstanceReadReplica", 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                "RDS.CreateDBInstanceReadReplica",
59                "rpc.service" = "RDS",
60                "rpc.method" = "CreateDBInstanceReadReplica",
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 CreateDBInstanceReadReplica {
88    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
89        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("CreateDBInstanceReadReplica");
90
91        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
92            CreateDBInstanceReadReplicaRequestSerializer,
93        ));
94        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
95            CreateDBInstanceReadReplicaResponseDeserializer,
96        ));
97
98        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
99            crate::config::auth::Params::builder()
100                .operation_name("CreateDBInstanceReadReplica")
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(
107            "CreateDBInstanceReadReplica",
108            "RDS",
109        ));
110        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
111        signing_options.double_uri_encode = true;
112        signing_options.content_sha256_header = false;
113        signing_options.normalize_uri_path = true;
114        signing_options.payload_override = None;
115
116        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
117            signing_options,
118            ..::std::default::Default::default()
119        });
120
121        ::std::option::Option::Some(cfg.freeze())
122    }
123
124    fn runtime_components(
125        &self,
126        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
127    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
128        #[allow(unused_mut)]
129        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("CreateDBInstanceReadReplica")
130            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
131                CreateDBInstanceReadReplicaTelemetryInputCaptureInterceptor,
132            ))
133            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
134                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
135            ))
136            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
137                CreateDBInstanceReadReplicaEndpointParamsInterceptor,
138            ))
139            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
140                crate::operation::create_db_instance_read_replica::CreateDBInstanceReadReplicaError,
141            >::new())
142            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
143                crate::operation::create_db_instance_read_replica::CreateDBInstanceReadReplicaError,
144            >::new())
145            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
146                crate::operation::create_db_instance_read_replica::CreateDBInstanceReadReplicaError,
147            >::new())
148            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
149                crate::operation::create_db_instance_read_replica::CreateDBInstanceReadReplicaError,
150            >::new());
151
152        ::std::borrow::Cow::Owned(rcb)
153    }
154}
155
156#[derive(Debug)]
157struct CreateDBInstanceReadReplicaTelemetryInputCaptureInterceptor;
158
159#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
160impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateDBInstanceReadReplicaTelemetryInputCaptureInterceptor {
161    fn name(&self) -> &'static str {
162        "CreateDBInstanceReadReplicaTelemetryInputCaptureInterceptor"
163    }
164
165    fn read_before_execution(
166        &self,
167        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
168            '_,
169            ::aws_smithy_runtime_api::client::interceptors::context::Input,
170            ::aws_smithy_runtime_api::client::interceptors::context::Output,
171            ::aws_smithy_runtime_api::client::interceptors::context::Error,
172        >,
173        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
174    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
175        // Nothing to do unless the customer opted in by naming members to record.
176        let ::std::option::Option::Some(requested) = cfg
177            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
178            .filter(|r| !r.is_empty())
179        else {
180            return ::std::result::Result::Ok(());
181        };
182
183        let ::std::option::Option::Some(input) = context.input().downcast_ref::<CreateDbInstanceReadReplicaInput>() else {
184            // A mismatched input is not this interceptor's concern; skip quietly.
185            return ::std::result::Result::Ok(());
186        };
187
188        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
189        if requested.should_capture("DBInstanceIdentifier") {
190            if let ::std::option::Option::Some(value) = input.db_instance_identifier.as_deref() {
191                captured.insert("DBInstanceIdentifier", value);
192            }
193        }
194        if requested.should_capture("SourceDBInstanceIdentifier") {
195            if let ::std::option::Option::Some(value) = input.source_db_instance_identifier.as_deref() {
196                captured.insert("SourceDBInstanceIdentifier", value);
197            }
198        }
199        if requested.should_capture("DBInstanceClass") {
200            if let ::std::option::Option::Some(value) = input.db_instance_class.as_deref() {
201                captured.insert("DBInstanceClass", value);
202            }
203        }
204        if requested.should_capture("AvailabilityZone") {
205            if let ::std::option::Option::Some(value) = input.availability_zone.as_deref() {
206                captured.insert("AvailabilityZone", value);
207            }
208        }
209        if requested.should_capture("OptionGroupName") {
210            if let ::std::option::Option::Some(value) = input.option_group_name.as_deref() {
211                captured.insert("OptionGroupName", value);
212            }
213        }
214        if requested.should_capture("DBParameterGroupName") {
215            if let ::std::option::Option::Some(value) = input.db_parameter_group_name.as_deref() {
216                captured.insert("DBParameterGroupName", value);
217            }
218        }
219        if requested.should_capture("DBSubnetGroupName") {
220            if let ::std::option::Option::Some(value) = input.db_subnet_group_name.as_deref() {
221                captured.insert("DBSubnetGroupName", value);
222            }
223        }
224        if requested.should_capture("StorageType") {
225            if let ::std::option::Option::Some(value) = input.storage_type.as_deref() {
226                captured.insert("StorageType", value);
227            }
228        }
229        if requested.should_capture("MonitoringRoleArn") {
230            if let ::std::option::Option::Some(value) = input.monitoring_role_arn.as_deref() {
231                captured.insert("MonitoringRoleArn", value);
232            }
233        }
234        if requested.should_capture("KmsKeyId") {
235            if let ::std::option::Option::Some(value) = input.kms_key_id.as_deref() {
236                captured.insert("KmsKeyId", value);
237            }
238        }
239        if requested.should_capture("PerformanceInsightsKMSKeyId") {
240            if let ::std::option::Option::Some(value) = input.performance_insights_kms_key_id.as_deref() {
241                captured.insert("PerformanceInsightsKMSKeyId", value);
242            }
243        }
244        if requested.should_capture("Domain") {
245            if let ::std::option::Option::Some(value) = input.domain.as_deref() {
246                captured.insert("Domain", value);
247            }
248        }
249        if requested.should_capture("DomainIAMRoleName") {
250            if let ::std::option::Option::Some(value) = input.domain_iam_role_name.as_deref() {
251                captured.insert("DomainIAMRoleName", value);
252            }
253        }
254        if requested.should_capture("DomainFqdn") {
255            if let ::std::option::Option::Some(value) = input.domain_fqdn.as_deref() {
256                captured.insert("DomainFqdn", value);
257            }
258        }
259        if requested.should_capture("DomainOu") {
260            if let ::std::option::Option::Some(value) = input.domain_ou.as_deref() {
261                captured.insert("DomainOu", value);
262            }
263        }
264        if requested.should_capture("DomainAuthSecretArn") {
265            if let ::std::option::Option::Some(value) = input.domain_auth_secret_arn.as_deref() {
266                captured.insert("DomainAuthSecretArn", value);
267            }
268        }
269        if requested.should_capture("NetworkType") {
270            if let ::std::option::Option::Some(value) = input.network_type.as_deref() {
271                captured.insert("NetworkType", value);
272            }
273        }
274        if requested.should_capture("BackupTarget") {
275            if let ::std::option::Option::Some(value) = input.backup_target.as_deref() {
276                captured.insert("BackupTarget", value);
277            }
278        }
279        if requested.should_capture("CustomIamInstanceProfile") {
280            if let ::std::option::Option::Some(value) = input.custom_iam_instance_profile.as_deref() {
281                captured.insert("CustomIamInstanceProfile", value);
282            }
283        }
284        if requested.should_capture("SourceDBClusterIdentifier") {
285            if let ::std::option::Option::Some(value) = input.source_db_cluster_identifier.as_deref() {
286                captured.insert("SourceDBClusterIdentifier", value);
287            }
288        }
289        if requested.should_capture("CACertificateIdentifier") {
290            if let ::std::option::Option::Some(value) = input.ca_certificate_identifier.as_deref() {
291                captured.insert("CACertificateIdentifier", value);
292            }
293        }
294
295        cfg.interceptor_state().store_put(captured);
296        ::std::result::Result::Ok(())
297    }
298}
299#[derive(Debug)]
300struct CreateDBInstanceReadReplicaResponseDeserializer;
301impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for CreateDBInstanceReadReplicaResponseDeserializer {
302    fn deserialize_nonstreaming_with_config(
303        &self,
304        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
305        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
306    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
307        let (success, status) = (response.status().is_success(), response.status().as_u16());
308        let headers = response.headers();
309        let body = response.body().bytes().expect("body loaded");
310        #[allow(unused_mut)]
311        let mut force_error = false;
312        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
313        let parse_result = if !success && status != 200 || force_error {
314            crate::protocol_serde::shape_create_db_instance_read_replica::de_create_db_instance_read_replica_http_error(status, headers, body)
315        } else {
316            crate::protocol_serde::shape_create_db_instance_read_replica::de_create_db_instance_read_replica_http_response(status, headers, body)
317        };
318        crate::protocol_serde::type_erase_result(parse_result)
319    }
320}
321#[derive(Debug)]
322struct CreateDBInstanceReadReplicaRequestSerializer;
323impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for CreateDBInstanceReadReplicaRequestSerializer {
324    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
325    fn serialize_input(
326        &self,
327        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
328        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
329    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
330        let input = input
331            .downcast::<crate::operation::create_db_instance_read_replica::CreateDbInstanceReadReplicaInput>()
332            .expect("correct type");
333        let _header_serialization_settings = _cfg
334            .load::<crate::serialization_settings::HeaderSerializationSettings>()
335            .cloned()
336            .unwrap_or_default();
337        let mut request_builder = {
338            #[allow(clippy::uninlined_format_args)]
339            fn uri_base(
340                _input: &crate::operation::create_db_instance_read_replica::CreateDbInstanceReadReplicaInput,
341                output: &mut ::std::string::String,
342            ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::BuildError> {
343                use ::std::fmt::Write as _;
344                ::std::write!(output, "/").expect("formatting should succeed");
345                ::std::result::Result::Ok(())
346            }
347            #[allow(clippy::unnecessary_wraps)]
348            fn update_http_builder(
349                input: &crate::operation::create_db_instance_read_replica::CreateDbInstanceReadReplicaInput,
350                builder: ::http_1x::request::Builder,
351            ) -> ::std::result::Result<::http_1x::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
352                let mut uri = ::std::string::String::new();
353                uri_base(input, &mut uri)?;
354                ::std::result::Result::Ok(builder.method("POST").uri(uri))
355            }
356            let mut builder = update_http_builder(&input, ::http_1x::request::Builder::new())?;
357            builder =
358                _header_serialization_settings.set_default_header(builder, ::http_1x::header::CONTENT_TYPE, "application/x-www-form-urlencoded");
359            builder
360        };
361        let body = ::aws_smithy_types::body::SdkBody::from(
362            crate::protocol_serde::shape_create_db_instance_read_replica_input::ser_create_db_instance_read_replica_input_input_input(&input)?,
363        );
364        if let Some(content_length) = body.content_length() {
365            let content_length = content_length.to_string();
366            request_builder = _header_serialization_settings.set_default_header(request_builder, ::http_1x::header::CONTENT_LENGTH, &content_length);
367        }
368        ::std::result::Result::Ok(request_builder.body(body).expect("valid request").try_into().unwrap())
369    }
370}
371#[derive(Debug)]
372struct CreateDBInstanceReadReplicaEndpointParamsInterceptor;
373
374#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
375impl ::aws_smithy_runtime_api::client::interceptors::Intercept for CreateDBInstanceReadReplicaEndpointParamsInterceptor {
376    fn name(&self) -> &'static str {
377        "CreateDBInstanceReadReplicaEndpointParamsInterceptor"
378    }
379
380    fn read_before_execution(
381        &self,
382        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
383            '_,
384            ::aws_smithy_runtime_api::client::interceptors::context::Input,
385            ::aws_smithy_runtime_api::client::interceptors::context::Output,
386            ::aws_smithy_runtime_api::client::interceptors::context::Error,
387        >,
388        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
389    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
390        let _input = context
391            .input()
392            .downcast_ref::<CreateDbInstanceReadReplicaInput>()
393            .ok_or("failed to downcast to CreateDbInstanceReadReplicaInput")?;
394
395        let params = crate::config::endpoint::Params::builder()
396            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
397            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
398            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
399            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
400            .build()
401            .map_err(|err| {
402                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
403            })?;
404        cfg.interceptor_state()
405            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
406        ::std::result::Result::Ok(())
407    }
408}
409
410// The get_* functions below are generated from JMESPath expressions in the
411// operationContextParams trait. They target the operation's input shape.
412
413/// Error type for the `CreateDBInstanceReadReplicaError` operation.
414#[non_exhaustive]
415#[derive(::std::fmt::Debug)]
416pub enum CreateDBInstanceReadReplicaError {
417    /// <p><code>CertificateIdentifier</code> doesn't refer to an existing certificate.</p>
418    CertificateNotFoundFault(crate::types::error::CertificateNotFoundFault),
419    /// <p><code>DBClusterIdentifier</code> doesn't refer to an existing DB cluster.</p>
420    DbClusterNotFoundFault(crate::types::error::DbClusterNotFoundFault),
421    /// <p>The user already has a DB instance with the given identifier.</p>
422    DbInstanceAlreadyExistsFault(crate::types::error::DbInstanceAlreadyExistsFault),
423    /// <p><code>DBInstanceIdentifier</code> doesn't refer to an existing DB instance.</p>
424    DbInstanceNotFoundFault(crate::types::error::DbInstanceNotFoundFault),
425    /// <p><code>DBParameterGroupName</code> doesn't refer to an existing DB parameter group.</p>
426    DbParameterGroupNotFoundFault(crate::types::error::DbParameterGroupNotFoundFault),
427    /// <p><code>DBSecurityGroupName</code> doesn't refer to an existing DB security group.</p>
428    DbSecurityGroupNotFoundFault(crate::types::error::DbSecurityGroupNotFoundFault),
429    /// <p>Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one Availability Zone.</p>
430    DbSubnetGroupDoesNotCoverEnoughAZs(crate::types::error::DbSubnetGroupDoesNotCoverEnoughAZs),
431    /// <p>The DBSubnetGroup shouldn't be specified while creating read replicas that lie in the same region as the source instance.</p>
432    DbSubnetGroupNotAllowedFault(crate::types::error::DbSubnetGroupNotAllowedFault),
433    /// <p><code>DBSubnetGroupName</code> doesn't refer to an existing DB subnet group.</p>
434    DbSubnetGroupNotFoundFault(crate::types::error::DbSubnetGroupNotFoundFault),
435    /// <p><code>Domain</code> doesn't refer to an existing Active Directory domain.</p>
436    DomainNotFoundFault(crate::types::error::DomainNotFoundFault),
437    /// <p>The request would result in the user exceeding the allowed number of DB instances.</p>
438    InstanceQuotaExceededFault(crate::types::error::InstanceQuotaExceededFault),
439    /// <p>The specified DB instance class isn't available in the specified Availability Zone.</p>
440    InsufficientDbInstanceCapacityFault(crate::types::error::InsufficientDbInstanceCapacityFault),
441    /// <p>The requested operation can't be performed while the cluster is in this state.</p>
442    InvalidDbClusterStateFault(crate::types::error::InvalidDbClusterStateFault),
443    /// <p>The DB instance isn't in a valid state.</p>
444    InvalidDbInstanceStateFault(crate::types::error::InvalidDbInstanceStateFault),
445    /// <p>The DBSubnetGroup doesn't belong to the same VPC as that of an existing cross-region read replica of the same source instance.</p>
446    InvalidDbSubnetGroupFault(crate::types::error::InvalidDbSubnetGroupFault),
447    /// <p>The requested subnet is invalid, or multiple subnets were requested that are not all in a common VPC.</p>
448    InvalidSubnet(crate::types::error::InvalidSubnet),
449    /// <p>The DB subnet group doesn't cover all Availability Zones after it's created because of users' change.</p>
450    InvalidVpcNetworkStateFault(crate::types::error::InvalidVpcNetworkStateFault),
451    /// <p>An error occurred accessing an Amazon Web Services KMS key.</p>
452    KmsKeyNotAccessibleFault(crate::types::error::KmsKeyNotAccessibleFault),
453    /// <p>The network type is invalid for the DB instance. Valid nework type values are <code>IPV4</code> and <code>DUAL</code>.</p>
454    NetworkTypeNotSupported(crate::types::error::NetworkTypeNotSupported),
455    /// <p>The specified option group could not be found.</p>
456    OptionGroupNotFoundFault(crate::types::error::OptionGroupNotFoundFault),
457    /// <p>Provisioned IOPS not available in the specified Availability Zone.</p>
458    ProvisionedIopsNotAvailableInAzFault(crate::types::error::ProvisionedIopsNotAvailableInAzFault),
459    /// <p>The request would result in the user exceeding the allowed amount of storage available across all DB instances.</p>
460    StorageQuotaExceededFault(crate::types::error::StorageQuotaExceededFault),
461    /// <p>The specified <code>StorageType</code> can't be associated with the DB instance.</p>
462    StorageTypeNotSupportedFault(crate::types::error::StorageTypeNotSupportedFault),
463    /// <p>You attempted to create more tenant databases than are permitted in your Amazon Web Services account.</p>
464    TenantDatabaseQuotaExceededFault(crate::types::error::TenantDatabaseQuotaExceededFault),
465    /// <p>The operation violates VPC encryption control settings. Make sure that your DB instance type supports the Nitro encryption-in-transit capability, or modify your VPC's encryption controls to not enforce encryption-in-transit.</p>
466    VpcEncryptionControlViolationException(crate::types::error::VpcEncryptionControlViolationException),
467    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
468    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
469    variable wildcard pattern and check `.code()`:
470     \
471    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
472     \
473    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-CreateDBInstanceReadReplicaError) for what information is available for the error.")]
474    Unhandled(crate::error::sealed_unhandled::Unhandled),
475}
476impl CreateDBInstanceReadReplicaError {
477    /// Creates the `CreateDBInstanceReadReplicaError::Unhandled` variant from any error type.
478    pub fn unhandled(
479        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
480    ) -> Self {
481        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
482            source: err.into(),
483            meta: ::std::default::Default::default(),
484        })
485    }
486
487    /// Creates the `CreateDBInstanceReadReplicaError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
488    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
489        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
490            source: err.clone().into(),
491            meta: err,
492        })
493    }
494    ///
495    /// Returns error metadata, which includes the error code, message,
496    /// request ID, and potentially additional information.
497    ///
498    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
499        match self {
500            Self::CertificateNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
501            Self::DbClusterNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
502            Self::DbInstanceAlreadyExistsFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
503            Self::DbInstanceNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
504            Self::DbParameterGroupNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
505            Self::DbSecurityGroupNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
506            Self::DbSubnetGroupDoesNotCoverEnoughAZs(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
507            Self::DbSubnetGroupNotAllowedFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
508            Self::DbSubnetGroupNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
509            Self::DomainNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
510            Self::InstanceQuotaExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
511            Self::InsufficientDbInstanceCapacityFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
512            Self::InvalidDbClusterStateFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
513            Self::InvalidDbInstanceStateFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
514            Self::InvalidDbSubnetGroupFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
515            Self::InvalidSubnet(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
516            Self::InvalidVpcNetworkStateFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
517            Self::KmsKeyNotAccessibleFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
518            Self::NetworkTypeNotSupported(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
519            Self::OptionGroupNotFoundFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
520            Self::ProvisionedIopsNotAvailableInAzFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
521            Self::StorageQuotaExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
522            Self::StorageTypeNotSupportedFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
523            Self::TenantDatabaseQuotaExceededFault(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
524            Self::VpcEncryptionControlViolationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
525            Self::Unhandled(e) => &e.meta,
526        }
527    }
528    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::CertificateNotFoundFault`.
529    pub fn is_certificate_not_found_fault(&self) -> bool {
530        matches!(self, Self::CertificateNotFoundFault(_))
531    }
532    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::DbClusterNotFoundFault`.
533    pub fn is_db_cluster_not_found_fault(&self) -> bool {
534        matches!(self, Self::DbClusterNotFoundFault(_))
535    }
536    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::DbInstanceAlreadyExistsFault`.
537    pub fn is_db_instance_already_exists_fault(&self) -> bool {
538        matches!(self, Self::DbInstanceAlreadyExistsFault(_))
539    }
540    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::DbInstanceNotFoundFault`.
541    pub fn is_db_instance_not_found_fault(&self) -> bool {
542        matches!(self, Self::DbInstanceNotFoundFault(_))
543    }
544    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::DbParameterGroupNotFoundFault`.
545    pub fn is_db_parameter_group_not_found_fault(&self) -> bool {
546        matches!(self, Self::DbParameterGroupNotFoundFault(_))
547    }
548    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::DbSecurityGroupNotFoundFault`.
549    pub fn is_db_security_group_not_found_fault(&self) -> bool {
550        matches!(self, Self::DbSecurityGroupNotFoundFault(_))
551    }
552    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::DbSubnetGroupDoesNotCoverEnoughAZs`.
553    pub fn is_db_subnet_group_does_not_cover_enough_azs(&self) -> bool {
554        matches!(self, Self::DbSubnetGroupDoesNotCoverEnoughAZs(_))
555    }
556    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::DbSubnetGroupNotAllowedFault`.
557    pub fn is_db_subnet_group_not_allowed_fault(&self) -> bool {
558        matches!(self, Self::DbSubnetGroupNotAllowedFault(_))
559    }
560    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::DbSubnetGroupNotFoundFault`.
561    pub fn is_db_subnet_group_not_found_fault(&self) -> bool {
562        matches!(self, Self::DbSubnetGroupNotFoundFault(_))
563    }
564    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::DomainNotFoundFault`.
565    pub fn is_domain_not_found_fault(&self) -> bool {
566        matches!(self, Self::DomainNotFoundFault(_))
567    }
568    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::InstanceQuotaExceededFault`.
569    pub fn is_instance_quota_exceeded_fault(&self) -> bool {
570        matches!(self, Self::InstanceQuotaExceededFault(_))
571    }
572    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::InsufficientDbInstanceCapacityFault`.
573    pub fn is_insufficient_db_instance_capacity_fault(&self) -> bool {
574        matches!(self, Self::InsufficientDbInstanceCapacityFault(_))
575    }
576    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::InvalidDbClusterStateFault`.
577    pub fn is_invalid_db_cluster_state_fault(&self) -> bool {
578        matches!(self, Self::InvalidDbClusterStateFault(_))
579    }
580    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::InvalidDbInstanceStateFault`.
581    pub fn is_invalid_db_instance_state_fault(&self) -> bool {
582        matches!(self, Self::InvalidDbInstanceStateFault(_))
583    }
584    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::InvalidDbSubnetGroupFault`.
585    pub fn is_invalid_db_subnet_group_fault(&self) -> bool {
586        matches!(self, Self::InvalidDbSubnetGroupFault(_))
587    }
588    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::InvalidSubnet`.
589    pub fn is_invalid_subnet(&self) -> bool {
590        matches!(self, Self::InvalidSubnet(_))
591    }
592    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::InvalidVpcNetworkStateFault`.
593    pub fn is_invalid_vpc_network_state_fault(&self) -> bool {
594        matches!(self, Self::InvalidVpcNetworkStateFault(_))
595    }
596    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::KmsKeyNotAccessibleFault`.
597    pub fn is_kms_key_not_accessible_fault(&self) -> bool {
598        matches!(self, Self::KmsKeyNotAccessibleFault(_))
599    }
600    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::NetworkTypeNotSupported`.
601    pub fn is_network_type_not_supported(&self) -> bool {
602        matches!(self, Self::NetworkTypeNotSupported(_))
603    }
604    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::OptionGroupNotFoundFault`.
605    pub fn is_option_group_not_found_fault(&self) -> bool {
606        matches!(self, Self::OptionGroupNotFoundFault(_))
607    }
608    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::ProvisionedIopsNotAvailableInAzFault`.
609    pub fn is_provisioned_iops_not_available_in_az_fault(&self) -> bool {
610        matches!(self, Self::ProvisionedIopsNotAvailableInAzFault(_))
611    }
612    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::StorageQuotaExceededFault`.
613    pub fn is_storage_quota_exceeded_fault(&self) -> bool {
614        matches!(self, Self::StorageQuotaExceededFault(_))
615    }
616    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::StorageTypeNotSupportedFault`.
617    pub fn is_storage_type_not_supported_fault(&self) -> bool {
618        matches!(self, Self::StorageTypeNotSupportedFault(_))
619    }
620    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::TenantDatabaseQuotaExceededFault`.
621    pub fn is_tenant_database_quota_exceeded_fault(&self) -> bool {
622        matches!(self, Self::TenantDatabaseQuotaExceededFault(_))
623    }
624    /// Returns `true` if the error kind is `CreateDBInstanceReadReplicaError::VpcEncryptionControlViolationException`.
625    pub fn is_vpc_encryption_control_violation_exception(&self) -> bool {
626        matches!(self, Self::VpcEncryptionControlViolationException(_))
627    }
628}
629impl ::std::error::Error for CreateDBInstanceReadReplicaError {
630    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
631        match self {
632            Self::CertificateNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
633            Self::DbClusterNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
634            Self::DbInstanceAlreadyExistsFault(_inner) => ::std::option::Option::Some(_inner),
635            Self::DbInstanceNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
636            Self::DbParameterGroupNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
637            Self::DbSecurityGroupNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
638            Self::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => ::std::option::Option::Some(_inner),
639            Self::DbSubnetGroupNotAllowedFault(_inner) => ::std::option::Option::Some(_inner),
640            Self::DbSubnetGroupNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
641            Self::DomainNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
642            Self::InstanceQuotaExceededFault(_inner) => ::std::option::Option::Some(_inner),
643            Self::InsufficientDbInstanceCapacityFault(_inner) => ::std::option::Option::Some(_inner),
644            Self::InvalidDbClusterStateFault(_inner) => ::std::option::Option::Some(_inner),
645            Self::InvalidDbInstanceStateFault(_inner) => ::std::option::Option::Some(_inner),
646            Self::InvalidDbSubnetGroupFault(_inner) => ::std::option::Option::Some(_inner),
647            Self::InvalidSubnet(_inner) => ::std::option::Option::Some(_inner),
648            Self::InvalidVpcNetworkStateFault(_inner) => ::std::option::Option::Some(_inner),
649            Self::KmsKeyNotAccessibleFault(_inner) => ::std::option::Option::Some(_inner),
650            Self::NetworkTypeNotSupported(_inner) => ::std::option::Option::Some(_inner),
651            Self::OptionGroupNotFoundFault(_inner) => ::std::option::Option::Some(_inner),
652            Self::ProvisionedIopsNotAvailableInAzFault(_inner) => ::std::option::Option::Some(_inner),
653            Self::StorageQuotaExceededFault(_inner) => ::std::option::Option::Some(_inner),
654            Self::StorageTypeNotSupportedFault(_inner) => ::std::option::Option::Some(_inner),
655            Self::TenantDatabaseQuotaExceededFault(_inner) => ::std::option::Option::Some(_inner),
656            Self::VpcEncryptionControlViolationException(_inner) => ::std::option::Option::Some(_inner),
657            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
658        }
659    }
660}
661impl ::std::fmt::Display for CreateDBInstanceReadReplicaError {
662    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
663        match self {
664            Self::CertificateNotFoundFault(_inner) => _inner.fmt(f),
665            Self::DbClusterNotFoundFault(_inner) => _inner.fmt(f),
666            Self::DbInstanceAlreadyExistsFault(_inner) => _inner.fmt(f),
667            Self::DbInstanceNotFoundFault(_inner) => _inner.fmt(f),
668            Self::DbParameterGroupNotFoundFault(_inner) => _inner.fmt(f),
669            Self::DbSecurityGroupNotFoundFault(_inner) => _inner.fmt(f),
670            Self::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => _inner.fmt(f),
671            Self::DbSubnetGroupNotAllowedFault(_inner) => _inner.fmt(f),
672            Self::DbSubnetGroupNotFoundFault(_inner) => _inner.fmt(f),
673            Self::DomainNotFoundFault(_inner) => _inner.fmt(f),
674            Self::InstanceQuotaExceededFault(_inner) => _inner.fmt(f),
675            Self::InsufficientDbInstanceCapacityFault(_inner) => _inner.fmt(f),
676            Self::InvalidDbClusterStateFault(_inner) => _inner.fmt(f),
677            Self::InvalidDbInstanceStateFault(_inner) => _inner.fmt(f),
678            Self::InvalidDbSubnetGroupFault(_inner) => _inner.fmt(f),
679            Self::InvalidSubnet(_inner) => _inner.fmt(f),
680            Self::InvalidVpcNetworkStateFault(_inner) => _inner.fmt(f),
681            Self::KmsKeyNotAccessibleFault(_inner) => _inner.fmt(f),
682            Self::NetworkTypeNotSupported(_inner) => _inner.fmt(f),
683            Self::OptionGroupNotFoundFault(_inner) => _inner.fmt(f),
684            Self::ProvisionedIopsNotAvailableInAzFault(_inner) => _inner.fmt(f),
685            Self::StorageQuotaExceededFault(_inner) => _inner.fmt(f),
686            Self::StorageTypeNotSupportedFault(_inner) => _inner.fmt(f),
687            Self::TenantDatabaseQuotaExceededFault(_inner) => _inner.fmt(f),
688            Self::VpcEncryptionControlViolationException(_inner) => _inner.fmt(f),
689            Self::Unhandled(_inner) => {
690                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
691                    write!(f, "unhandled error ({code})")
692                } else {
693                    f.write_str("unhandled error")
694                }
695            }
696        }
697    }
698}
699impl ::aws_smithy_types::retry::ProvideErrorKind for CreateDBInstanceReadReplicaError {
700    fn code(&self) -> ::std::option::Option<&str> {
701        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
702    }
703    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
704        ::std::option::Option::None
705    }
706}
707impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for CreateDBInstanceReadReplicaError {
708    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
709        match self {
710            Self::CertificateNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
711            Self::DbClusterNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
712            Self::DbInstanceAlreadyExistsFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
713            Self::DbInstanceNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
714            Self::DbParameterGroupNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
715            Self::DbSecurityGroupNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
716            Self::DbSubnetGroupDoesNotCoverEnoughAZs(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
717            Self::DbSubnetGroupNotAllowedFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
718            Self::DbSubnetGroupNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
719            Self::DomainNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
720            Self::InstanceQuotaExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
721            Self::InsufficientDbInstanceCapacityFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
722            Self::InvalidDbClusterStateFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
723            Self::InvalidDbInstanceStateFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
724            Self::InvalidDbSubnetGroupFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
725            Self::InvalidSubnet(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
726            Self::InvalidVpcNetworkStateFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
727            Self::KmsKeyNotAccessibleFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
728            Self::NetworkTypeNotSupported(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
729            Self::OptionGroupNotFoundFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
730            Self::ProvisionedIopsNotAvailableInAzFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
731            Self::StorageQuotaExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
732            Self::StorageTypeNotSupportedFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
733            Self::TenantDatabaseQuotaExceededFault(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
734            Self::VpcEncryptionControlViolationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
735            Self::Unhandled(_inner) => &_inner.meta,
736        }
737    }
738}
739impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for CreateDBInstanceReadReplicaError {
740    fn create_unhandled_error(
741        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
742        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
743    ) -> Self {
744        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
745            source,
746            meta: meta.unwrap_or_default(),
747        })
748    }
749}
750impl ::aws_types::request_id::RequestId for crate::operation::create_db_instance_read_replica::CreateDBInstanceReadReplicaError {
751    fn request_id(&self) -> Option<&str> {
752        self.meta().request_id()
753    }
754}
755
756pub use crate::operation::create_db_instance_read_replica::_create_db_instance_read_replica_input::CreateDbInstanceReadReplicaInput;
757
758pub use crate::operation::create_db_instance_read_replica::_create_db_instance_read_replica_output::CreateDbInstanceReadReplicaOutput;
759
760mod _create_db_instance_read_replica_input;
761
762mod _create_db_instance_read_replica_output;
763
764/// Builders
765pub mod builders;