aws_sdk_rds/operation/create_db_cluster/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_db_cluster::_create_db_cluster_output::CreateDbClusterOutputBuilder;
3
4pub use crate::operation::create_db_cluster::_create_db_cluster_input::CreateDbClusterInputBuilder;
5
6impl crate::operation::create_db_cluster::builders::CreateDbClusterInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::create_db_cluster::CreateDbClusterOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_db_cluster::CreateDBClusterError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_db_cluster();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateDBCluster`.
24///
25/// <p>Creates a new Amazon Aurora DB cluster or Multi-AZ DB cluster.</p>
26/// <p>If you create an Aurora DB cluster, the request creates an empty cluster. You must explicitly create the writer instance for your DB cluster using the <a href="https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html">CreateDBInstance</a> operation. If you create a Multi-AZ DB cluster, the request creates a writer and two reader DB instances for you, each in a different Availability Zone.</p>
27/// <p>You can use the <code>ReplicationSourceIdentifier</code> parameter to create an Amazon Aurora DB cluster as a read replica of another DB cluster or Amazon RDS for MySQL or PostgreSQL DB instance. For more information about Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/CHAP_AuroraOverview.html">What is Amazon Aurora?</a> in the <i>Amazon Aurora User Guide</i>.</p>
28/// <p>You can also use the <code>ReplicationSourceIdentifier</code> parameter to create a Multi-AZ DB cluster read replica with an RDS for MySQL or PostgreSQL DB instance as the source. For more information about Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/multi-az-db-clusters-concepts.html">Multi-AZ DB cluster deployments</a> in the <i>Amazon RDS User Guide</i>.</p>
29#[derive(::std::clone::Clone, ::std::fmt::Debug)]
30pub struct CreateDBClusterFluentBuilder {
31    handle: ::std::sync::Arc<crate::client::Handle>,
32    inner: crate::operation::create_db_cluster::builders::CreateDbClusterInputBuilder,
33    config_override: ::std::option::Option<crate::config::Builder>,
34}
35impl
36    crate::client::customize::internal::CustomizableSend<
37        crate::operation::create_db_cluster::CreateDbClusterOutput,
38        crate::operation::create_db_cluster::CreateDBClusterError,
39    > for CreateDBClusterFluentBuilder
40{
41    fn send(
42        self,
43        config_override: crate::config::Builder,
44    ) -> crate::client::customize::internal::BoxFuture<
45        crate::client::customize::internal::SendResult<
46            crate::operation::create_db_cluster::CreateDbClusterOutput,
47            crate::operation::create_db_cluster::CreateDBClusterError,
48        >,
49    > {
50        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
51    }
52}
53impl CreateDBClusterFluentBuilder {
54    /// Creates a new `CreateDBClusterFluentBuilder`.
55    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
56        Self {
57            handle,
58            inner: ::std::default::Default::default(),
59            config_override: ::std::option::Option::None,
60        }
61    }
62    /// Access the CreateDBCluster as a reference.
63    pub fn as_input(&self) -> &crate::operation::create_db_cluster::builders::CreateDbClusterInputBuilder {
64        &self.inner
65    }
66    /// Sends the request and returns the response.
67    ///
68    /// If an error occurs, an `SdkError` will be returned with additional details that
69    /// can be matched against.
70    ///
71    /// By default, any retryable failures will be retried twice. Retry behavior
72    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
73    /// set when configuring the client.
74    pub async fn send(
75        self,
76    ) -> ::std::result::Result<
77        crate::operation::create_db_cluster::CreateDbClusterOutput,
78        ::aws_smithy_runtime_api::client::result::SdkError<
79            crate::operation::create_db_cluster::CreateDBClusterError,
80            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
81        >,
82    > {
83        let input = self
84            .inner
85            .build()
86            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
87        let runtime_plugins = crate::operation::create_db_cluster::CreateDBCluster::operation_runtime_plugins(
88            self.handle.runtime_plugins.clone(),
89            &self.handle.conf,
90            self.config_override,
91        );
92        crate::operation::create_db_cluster::CreateDBCluster::orchestrate(&runtime_plugins, input).await
93    }
94
95    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
96    pub fn customize(
97        self,
98    ) -> crate::client::customize::CustomizableOperation<
99        crate::operation::create_db_cluster::CreateDbClusterOutput,
100        crate::operation::create_db_cluster::CreateDBClusterError,
101        Self,
102    > {
103        crate::client::customize::CustomizableOperation::new(self)
104    }
105    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
106        self.set_config_override(::std::option::Option::Some(config_override.into()));
107        self
108    }
109
110    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
111        self.config_override = config_override;
112        self
113    }
114    ///
115    /// Appends an item to `AvailabilityZones`.
116    ///
117    /// To override the contents of this collection use [`set_availability_zones`](Self::set_availability_zones).
118    ///
119    /// <p>A list of Availability Zones (AZs) where you specifically want to create DB instances in the DB cluster.</p>
120    /// <p>For the first three DB instances that you create, RDS distributes each DB instance to a different AZ that you specify. For additional DB instances that you create, RDS randomly distributes them to the AZs that you specified. For example, if you create a DB cluster with one writer instance and three reader instances, RDS might distribute the writer instance to AZ 1, the first reader instance to AZ 2, the second reader instance to AZ 3, and the third reader instance to either AZ 1, AZ 2, or AZ 3.</p>
121    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.AvailabilityZones">Availability Zones</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Concepts.AuroraHighAvailability.Instances">High availability for Aurora DB instances</a> in the <i>Amazon Aurora User Guide</i>.</p>
122    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
123    /// <p>Constraints:</p>
124    /// <ul>
125    /// <li>
126    /// <p>Can't specify more than three AZs.</p></li>
127    /// </ul>
128    pub fn availability_zones(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
129        self.inner = self.inner.availability_zones(input.into());
130        self
131    }
132    /// <p>A list of Availability Zones (AZs) where you specifically want to create DB instances in the DB cluster.</p>
133    /// <p>For the first three DB instances that you create, RDS distributes each DB instance to a different AZ that you specify. For additional DB instances that you create, RDS randomly distributes them to the AZs that you specified. For example, if you create a DB cluster with one writer instance and three reader instances, RDS might distribute the writer instance to AZ 1, the first reader instance to AZ 2, the second reader instance to AZ 3, and the third reader instance to either AZ 1, AZ 2, or AZ 3.</p>
134    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.AvailabilityZones">Availability Zones</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Concepts.AuroraHighAvailability.Instances">High availability for Aurora DB instances</a> in the <i>Amazon Aurora User Guide</i>.</p>
135    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
136    /// <p>Constraints:</p>
137    /// <ul>
138    /// <li>
139    /// <p>Can't specify more than three AZs.</p></li>
140    /// </ul>
141    pub fn set_availability_zones(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
142        self.inner = self.inner.set_availability_zones(input);
143        self
144    }
145    /// <p>A list of Availability Zones (AZs) where you specifically want to create DB instances in the DB cluster.</p>
146    /// <p>For the first three DB instances that you create, RDS distributes each DB instance to a different AZ that you specify. For additional DB instances that you create, RDS randomly distributes them to the AZs that you specified. For example, if you create a DB cluster with one writer instance and three reader instances, RDS might distribute the writer instance to AZ 1, the first reader instance to AZ 2, the second reader instance to AZ 3, and the third reader instance to either AZ 1, AZ 2, or AZ 3.</p>
147    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.RegionsAndAvailabilityZones.html#Concepts.RegionsAndAvailabilityZones.AvailabilityZones">Availability Zones</a> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Concepts.AuroraHighAvailability.html#Concepts.AuroraHighAvailability.Instances">High availability for Aurora DB instances</a> in the <i>Amazon Aurora User Guide</i>.</p>
148    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
149    /// <p>Constraints:</p>
150    /// <ul>
151    /// <li>
152    /// <p>Can't specify more than three AZs.</p></li>
153    /// </ul>
154    pub fn get_availability_zones(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
155        self.inner.get_availability_zones()
156    }
157    /// <p>The number of days for which automated backups are retained.</p>
158    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
159    /// <p>Default: <code>1</code></p>
160    /// <p>Constraints:</p>
161    /// <ul>
162    /// <li>
163    /// <p>Must be a value from 1 to 35.</p></li>
164    /// </ul>
165    pub fn backup_retention_period(mut self, input: i32) -> Self {
166        self.inner = self.inner.backup_retention_period(input);
167        self
168    }
169    /// <p>The number of days for which automated backups are retained.</p>
170    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
171    /// <p>Default: <code>1</code></p>
172    /// <p>Constraints:</p>
173    /// <ul>
174    /// <li>
175    /// <p>Must be a value from 1 to 35.</p></li>
176    /// </ul>
177    pub fn set_backup_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
178        self.inner = self.inner.set_backup_retention_period(input);
179        self
180    }
181    /// <p>The number of days for which automated backups are retained.</p>
182    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
183    /// <p>Default: <code>1</code></p>
184    /// <p>Constraints:</p>
185    /// <ul>
186    /// <li>
187    /// <p>Must be a value from 1 to 35.</p></li>
188    /// </ul>
189    pub fn get_backup_retention_period(&self) -> &::std::option::Option<i32> {
190        self.inner.get_backup_retention_period()
191    }
192    /// <p>The name of the character set (<code>CharacterSet</code>) to associate the DB cluster with.</p>
193    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
194    pub fn character_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
195        self.inner = self.inner.character_set_name(input.into());
196        self
197    }
198    /// <p>The name of the character set (<code>CharacterSet</code>) to associate the DB cluster with.</p>
199    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
200    pub fn set_character_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
201        self.inner = self.inner.set_character_set_name(input);
202        self
203    }
204    /// <p>The name of the character set (<code>CharacterSet</code>) to associate the DB cluster with.</p>
205    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
206    pub fn get_character_set_name(&self) -> &::std::option::Option<::std::string::String> {
207        self.inner.get_character_set_name()
208    }
209    /// <p>The name for your database of up to 64 alphanumeric characters. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
210    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
211    pub fn database_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
212        self.inner = self.inner.database_name(input.into());
213        self
214    }
215    /// <p>The name for your database of up to 64 alphanumeric characters. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
216    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
217    pub fn set_database_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
218        self.inner = self.inner.set_database_name(input);
219        self
220    }
221    /// <p>The name for your database of up to 64 alphanumeric characters. A database named <code>postgres</code> is always created. If this parameter is specified, an additional database with this name is created.</p>
222    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
223    pub fn get_database_name(&self) -> &::std::option::Option<::std::string::String> {
224        self.inner.get_database_name()
225    }
226    /// <p>The identifier for this DB cluster. This parameter is stored as a lowercase string.</p>
227    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
228    /// <p>Constraints:</p>
229    /// <ul>
230    /// <li>
231    /// <p>Must contain from 1 to 63 (for Aurora DB clusters) or 1 to 52 (for Multi-AZ DB clusters) letters, numbers, or hyphens.</p></li>
232    /// <li>
233    /// <p>First character must be a letter.</p></li>
234    /// <li>
235    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
236    /// </ul>
237    /// <p>Example: <code>my-cluster1</code></p>
238    pub fn db_cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
239        self.inner = self.inner.db_cluster_identifier(input.into());
240        self
241    }
242    /// <p>The identifier for this DB cluster. This parameter is stored as a lowercase string.</p>
243    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
244    /// <p>Constraints:</p>
245    /// <ul>
246    /// <li>
247    /// <p>Must contain from 1 to 63 (for Aurora DB clusters) or 1 to 52 (for Multi-AZ DB clusters) letters, numbers, or hyphens.</p></li>
248    /// <li>
249    /// <p>First character must be a letter.</p></li>
250    /// <li>
251    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
252    /// </ul>
253    /// <p>Example: <code>my-cluster1</code></p>
254    pub fn set_db_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
255        self.inner = self.inner.set_db_cluster_identifier(input);
256        self
257    }
258    /// <p>The identifier for this DB cluster. This parameter is stored as a lowercase string.</p>
259    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
260    /// <p>Constraints:</p>
261    /// <ul>
262    /// <li>
263    /// <p>Must contain from 1 to 63 (for Aurora DB clusters) or 1 to 52 (for Multi-AZ DB clusters) letters, numbers, or hyphens.</p></li>
264    /// <li>
265    /// <p>First character must be a letter.</p></li>
266    /// <li>
267    /// <p>Can't end with a hyphen or contain two consecutive hyphens.</p></li>
268    /// </ul>
269    /// <p>Example: <code>my-cluster1</code></p>
270    pub fn get_db_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
271        self.inner.get_db_cluster_identifier()
272    }
273    /// <p>The name of the DB cluster parameter group to associate with this DB cluster. If you don't specify a value, then the default DB cluster parameter group for the specified DB engine and version is used.</p>
274    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
275    /// <p>Constraints:</p>
276    /// <ul>
277    /// <li>
278    /// <p>If supplied, must match the name of an existing DB cluster parameter group.</p></li>
279    /// </ul>
280    pub fn db_cluster_parameter_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
281        self.inner = self.inner.db_cluster_parameter_group_name(input.into());
282        self
283    }
284    /// <p>The name of the DB cluster parameter group to associate with this DB cluster. If you don't specify a value, then the default DB cluster parameter group for the specified DB engine and version is used.</p>
285    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
286    /// <p>Constraints:</p>
287    /// <ul>
288    /// <li>
289    /// <p>If supplied, must match the name of an existing DB cluster parameter group.</p></li>
290    /// </ul>
291    pub fn set_db_cluster_parameter_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
292        self.inner = self.inner.set_db_cluster_parameter_group_name(input);
293        self
294    }
295    /// <p>The name of the DB cluster parameter group to associate with this DB cluster. If you don't specify a value, then the default DB cluster parameter group for the specified DB engine and version is used.</p>
296    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
297    /// <p>Constraints:</p>
298    /// <ul>
299    /// <li>
300    /// <p>If supplied, must match the name of an existing DB cluster parameter group.</p></li>
301    /// </ul>
302    pub fn get_db_cluster_parameter_group_name(&self) -> &::std::option::Option<::std::string::String> {
303        self.inner.get_db_cluster_parameter_group_name()
304    }
305    ///
306    /// Appends an item to `VpcSecurityGroupIds`.
307    ///
308    /// To override the contents of this collection use [`set_vpc_security_group_ids`](Self::set_vpc_security_group_ids).
309    ///
310    /// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
311    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
312    pub fn vpc_security_group_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
313        self.inner = self.inner.vpc_security_group_ids(input.into());
314        self
315    }
316    /// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
317    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
318    pub fn set_vpc_security_group_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
319        self.inner = self.inner.set_vpc_security_group_ids(input);
320        self
321    }
322    /// <p>A list of EC2 VPC security groups to associate with this DB cluster.</p>
323    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
324    pub fn get_vpc_security_group_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
325        self.inner.get_vpc_security_group_ids()
326    }
327    /// <p>A DB subnet group to associate with this DB cluster.</p>
328    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
329    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
330    /// <p>Constraints:</p>
331    /// <ul>
332    /// <li>
333    /// <p>Must match the name of an existing DB subnet group.</p></li>
334    /// </ul>
335    /// <p>Example: <code>mydbsubnetgroup</code></p>
336    pub fn db_subnet_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
337        self.inner = self.inner.db_subnet_group_name(input.into());
338        self
339    }
340    /// <p>A DB subnet group to associate with this DB cluster.</p>
341    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
342    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
343    /// <p>Constraints:</p>
344    /// <ul>
345    /// <li>
346    /// <p>Must match the name of an existing DB subnet group.</p></li>
347    /// </ul>
348    /// <p>Example: <code>mydbsubnetgroup</code></p>
349    pub fn set_db_subnet_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
350        self.inner = self.inner.set_db_subnet_group_name(input);
351        self
352    }
353    /// <p>A DB subnet group to associate with this DB cluster.</p>
354    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
355    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
356    /// <p>Constraints:</p>
357    /// <ul>
358    /// <li>
359    /// <p>Must match the name of an existing DB subnet group.</p></li>
360    /// </ul>
361    /// <p>Example: <code>mydbsubnetgroup</code></p>
362    pub fn get_db_subnet_group_name(&self) -> &::std::option::Option<::std::string::String> {
363        self.inner.get_db_subnet_group_name()
364    }
365    /// <p>The database engine to use for this DB cluster.</p>
366    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
367    /// <p>Valid Values:</p>
368    /// <ul>
369    /// <li>
370    /// <p><code>aurora-mysql</code></p></li>
371    /// <li>
372    /// <p><code>aurora-postgresql</code></p></li>
373    /// <li>
374    /// <p><code>mysql</code></p></li>
375    /// <li>
376    /// <p><code>postgres</code></p></li>
377    /// <li>
378    /// <p><code>neptune</code> - For information about using Amazon Neptune, see the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/intro.html"> <i>Amazon Neptune User Guide</i> </a>.</p></li>
379    /// </ul>
380    pub fn engine(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
381        self.inner = self.inner.engine(input.into());
382        self
383    }
384    /// <p>The database engine to use for this DB cluster.</p>
385    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
386    /// <p>Valid Values:</p>
387    /// <ul>
388    /// <li>
389    /// <p><code>aurora-mysql</code></p></li>
390    /// <li>
391    /// <p><code>aurora-postgresql</code></p></li>
392    /// <li>
393    /// <p><code>mysql</code></p></li>
394    /// <li>
395    /// <p><code>postgres</code></p></li>
396    /// <li>
397    /// <p><code>neptune</code> - For information about using Amazon Neptune, see the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/intro.html"> <i>Amazon Neptune User Guide</i> </a>.</p></li>
398    /// </ul>
399    pub fn set_engine(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
400        self.inner = self.inner.set_engine(input);
401        self
402    }
403    /// <p>The database engine to use for this DB cluster.</p>
404    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
405    /// <p>Valid Values:</p>
406    /// <ul>
407    /// <li>
408    /// <p><code>aurora-mysql</code></p></li>
409    /// <li>
410    /// <p><code>aurora-postgresql</code></p></li>
411    /// <li>
412    /// <p><code>mysql</code></p></li>
413    /// <li>
414    /// <p><code>postgres</code></p></li>
415    /// <li>
416    /// <p><code>neptune</code> - For information about using Amazon Neptune, see the <a href="https://docs.aws.amazon.com/neptune/latest/userguide/intro.html"> <i>Amazon Neptune User Guide</i> </a>.</p></li>
417    /// </ul>
418    pub fn get_engine(&self) -> &::std::option::Option<::std::string::String> {
419        self.inner.get_engine()
420    }
421    /// <p>The version number of the database engine to use.</p>
422    /// <p>To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the following command:</p>
423    /// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
424    /// <p>You can supply either <code>5.7</code> or <code>8.0</code> to use the default engine version for Aurora MySQL version 2 or version 3, respectively.</p>
425    /// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
426    /// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
427    /// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
428    /// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
429    /// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
430    /// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
431    /// <p>For information about a specific engine, see the following topics:</p>
432    /// <ul>
433    /// <li>
434    /// <p>Aurora MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html">Database engine updates for Amazon Aurora MySQL</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
435    /// <li>
436    /// <p>Aurora PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html">Amazon Aurora PostgreSQL releases and engine versions</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
437    /// <li>
438    /// <p>RDS for MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">Amazon RDS for MySQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
439    /// <li>
440    /// <p>RDS for PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
441    /// </ul>
442    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
443    pub fn engine_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
444        self.inner = self.inner.engine_version(input.into());
445        self
446    }
447    /// <p>The version number of the database engine to use.</p>
448    /// <p>To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the following command:</p>
449    /// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
450    /// <p>You can supply either <code>5.7</code> or <code>8.0</code> to use the default engine version for Aurora MySQL version 2 or version 3, respectively.</p>
451    /// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
452    /// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
453    /// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
454    /// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
455    /// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
456    /// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
457    /// <p>For information about a specific engine, see the following topics:</p>
458    /// <ul>
459    /// <li>
460    /// <p>Aurora MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html">Database engine updates for Amazon Aurora MySQL</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
461    /// <li>
462    /// <p>Aurora PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html">Amazon Aurora PostgreSQL releases and engine versions</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
463    /// <li>
464    /// <p>RDS for MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">Amazon RDS for MySQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
465    /// <li>
466    /// <p>RDS for PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
467    /// </ul>
468    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
469    pub fn set_engine_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
470        self.inner = self.inner.set_engine_version(input);
471        self
472    }
473    /// <p>The version number of the database engine to use.</p>
474    /// <p>To list all of the available engine versions for Aurora MySQL version 2 (5.7-compatible) and version 3 (MySQL 8.0-compatible), use the following command:</p>
475    /// <p><code>aws rds describe-db-engine-versions --engine aurora-mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
476    /// <p>You can supply either <code>5.7</code> or <code>8.0</code> to use the default engine version for Aurora MySQL version 2 or version 3, respectively.</p>
477    /// <p>To list all of the available engine versions for Aurora PostgreSQL, use the following command:</p>
478    /// <p><code>aws rds describe-db-engine-versions --engine aurora-postgresql --query "DBEngineVersions\[\].EngineVersion"</code></p>
479    /// <p>To list all of the available engine versions for RDS for MySQL, use the following command:</p>
480    /// <p><code>aws rds describe-db-engine-versions --engine mysql --query "DBEngineVersions\[\].EngineVersion"</code></p>
481    /// <p>To list all of the available engine versions for RDS for PostgreSQL, use the following command:</p>
482    /// <p><code>aws rds describe-db-engine-versions --engine postgres --query "DBEngineVersions\[\].EngineVersion"</code></p>
483    /// <p>For information about a specific engine, see the following topics:</p>
484    /// <ul>
485    /// <li>
486    /// <p>Aurora MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Updates.html">Database engine updates for Amazon Aurora MySQL</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
487    /// <li>
488    /// <p>Aurora PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraPostgreSQL.Updates.20180305.html">Amazon Aurora PostgreSQL releases and engine versions</a> in the <i>Amazon Aurora User Guide</i>.</p></li>
489    /// <li>
490    /// <p>RDS for MySQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_MySQL.html#MySQL.Concepts.VersionMgmt">Amazon RDS for MySQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
491    /// <li>
492    /// <p>RDS for PostgreSQL - see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_PostgreSQL.html#PostgreSQL.Concepts">Amazon RDS for PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p></li>
493    /// </ul>
494    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
495    pub fn get_engine_version(&self) -> &::std::option::Option<::std::string::String> {
496        self.inner.get_engine_version()
497    }
498    /// <p>The port number on which the instances in the DB cluster accept connections.</p>
499    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
500    /// <p>Valid Values: <code>1150-65535</code></p>
501    /// <p>Default:</p>
502    /// <ul>
503    /// <li>
504    /// <p>RDS for MySQL and Aurora MySQL - <code>3306</code></p></li>
505    /// <li>
506    /// <p>RDS for PostgreSQL and Aurora PostgreSQL - <code>5432</code></p></li>
507    /// </ul>
508    pub fn port(mut self, input: i32) -> Self {
509        self.inner = self.inner.port(input);
510        self
511    }
512    /// <p>The port number on which the instances in the DB cluster accept connections.</p>
513    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
514    /// <p>Valid Values: <code>1150-65535</code></p>
515    /// <p>Default:</p>
516    /// <ul>
517    /// <li>
518    /// <p>RDS for MySQL and Aurora MySQL - <code>3306</code></p></li>
519    /// <li>
520    /// <p>RDS for PostgreSQL and Aurora PostgreSQL - <code>5432</code></p></li>
521    /// </ul>
522    pub fn set_port(mut self, input: ::std::option::Option<i32>) -> Self {
523        self.inner = self.inner.set_port(input);
524        self
525    }
526    /// <p>The port number on which the instances in the DB cluster accept connections.</p>
527    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
528    /// <p>Valid Values: <code>1150-65535</code></p>
529    /// <p>Default:</p>
530    /// <ul>
531    /// <li>
532    /// <p>RDS for MySQL and Aurora MySQL - <code>3306</code></p></li>
533    /// <li>
534    /// <p>RDS for PostgreSQL and Aurora PostgreSQL - <code>5432</code></p></li>
535    /// </ul>
536    pub fn get_port(&self) -> &::std::option::Option<i32> {
537        self.inner.get_port()
538    }
539    /// <p>The name of the master user for the DB cluster.</p>
540    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
541    /// <p>Constraints:</p>
542    /// <ul>
543    /// <li>
544    /// <p>Must be 1 to 16 letters or numbers.</p></li>
545    /// <li>
546    /// <p>First character must be a letter.</p></li>
547    /// <li>
548    /// <p>Can't be a reserved word for the chosen database engine.</p></li>
549    /// </ul>
550    pub fn master_username(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
551        self.inner = self.inner.master_username(input.into());
552        self
553    }
554    /// <p>The name of the master user for the DB cluster.</p>
555    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
556    /// <p>Constraints:</p>
557    /// <ul>
558    /// <li>
559    /// <p>Must be 1 to 16 letters or numbers.</p></li>
560    /// <li>
561    /// <p>First character must be a letter.</p></li>
562    /// <li>
563    /// <p>Can't be a reserved word for the chosen database engine.</p></li>
564    /// </ul>
565    pub fn set_master_username(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
566        self.inner = self.inner.set_master_username(input);
567        self
568    }
569    /// <p>The name of the master user for the DB cluster.</p>
570    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
571    /// <p>Constraints:</p>
572    /// <ul>
573    /// <li>
574    /// <p>Must be 1 to 16 letters or numbers.</p></li>
575    /// <li>
576    /// <p>First character must be a letter.</p></li>
577    /// <li>
578    /// <p>Can't be a reserved word for the chosen database engine.</p></li>
579    /// </ul>
580    pub fn get_master_username(&self) -> &::std::option::Option<::std::string::String> {
581        self.inner.get_master_username()
582    }
583    /// <p>The password for the master database user.</p>
584    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
585    /// <p>Constraints:</p>
586    /// <ul>
587    /// <li>
588    /// <p>Must contain from 8 to 41 characters.</p></li>
589    /// <li>
590    /// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
591    /// <li>
592    /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
593    /// </ul>
594    pub fn master_user_password(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
595        self.inner = self.inner.master_user_password(input.into());
596        self
597    }
598    /// <p>The password for the master database user.</p>
599    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
600    /// <p>Constraints:</p>
601    /// <ul>
602    /// <li>
603    /// <p>Must contain from 8 to 41 characters.</p></li>
604    /// <li>
605    /// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
606    /// <li>
607    /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
608    /// </ul>
609    pub fn set_master_user_password(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
610        self.inner = self.inner.set_master_user_password(input);
611        self
612    }
613    /// <p>The password for the master database user.</p>
614    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
615    /// <p>Constraints:</p>
616    /// <ul>
617    /// <li>
618    /// <p>Must contain from 8 to 41 characters.</p></li>
619    /// <li>
620    /// <p>Can contain any printable ASCII character except "/", """, or "@".</p></li>
621    /// <li>
622    /// <p>Can't be specified if <code>ManageMasterUserPassword</code> is turned on.</p></li>
623    /// </ul>
624    pub fn get_master_user_password(&self) -> &::std::option::Option<::std::string::String> {
625        self.inner.get_master_user_password()
626    }
627    /// <p>The option group to associate the DB cluster with.</p>
628    /// <p>DB clusters are associated with a default option group that can't be modified.</p>
629    pub fn option_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
630        self.inner = self.inner.option_group_name(input.into());
631        self
632    }
633    /// <p>The option group to associate the DB cluster with.</p>
634    /// <p>DB clusters are associated with a default option group that can't be modified.</p>
635    pub fn set_option_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
636        self.inner = self.inner.set_option_group_name(input);
637        self
638    }
639    /// <p>The option group to associate the DB cluster with.</p>
640    /// <p>DB clusters are associated with a default option group that can't be modified.</p>
641    pub fn get_option_group_name(&self) -> &::std::option::Option<::std::string::String> {
642        self.inner.get_option_group_name()
643    }
644    /// <p>The daily time range during which automated backups are created if automated backups are enabled using the <code>BackupRetentionPeriod</code> parameter.</p>
645    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
646    /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
647    /// <p>Constraints:</p>
648    /// <ul>
649    /// <li>
650    /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
651    /// <li>
652    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
653    /// <li>
654    /// <p>Must not conflict with the preferred maintenance window.</p></li>
655    /// <li>
656    /// <p>Must be at least 30 minutes.</p></li>
657    /// </ul>
658    pub fn preferred_backup_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
659        self.inner = self.inner.preferred_backup_window(input.into());
660        self
661    }
662    /// <p>The daily time range during which automated backups are created if automated backups are enabled using the <code>BackupRetentionPeriod</code> parameter.</p>
663    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
664    /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
665    /// <p>Constraints:</p>
666    /// <ul>
667    /// <li>
668    /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
669    /// <li>
670    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
671    /// <li>
672    /// <p>Must not conflict with the preferred maintenance window.</p></li>
673    /// <li>
674    /// <p>Must be at least 30 minutes.</p></li>
675    /// </ul>
676    pub fn set_preferred_backup_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
677        self.inner = self.inner.set_preferred_backup_window(input);
678        self
679    }
680    /// <p>The daily time range during which automated backups are created if automated backups are enabled using the <code>BackupRetentionPeriod</code> parameter.</p>
681    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
682    /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region. To view the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Managing.Backups.html#Aurora.Managing.Backups.BackupWindow"> Backup window</a> in the <i>Amazon Aurora User Guide</i>.</p>
683    /// <p>Constraints:</p>
684    /// <ul>
685    /// <li>
686    /// <p>Must be in the format <code>hh24:mi-hh24:mi</code>.</p></li>
687    /// <li>
688    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
689    /// <li>
690    /// <p>Must not conflict with the preferred maintenance window.</p></li>
691    /// <li>
692    /// <p>Must be at least 30 minutes.</p></li>
693    /// </ul>
694    pub fn get_preferred_backup_window(&self) -> &::std::option::Option<::std::string::String> {
695        self.inner.get_preferred_backup_window()
696    }
697    /// <p>The weekly time range during which system maintenance can occur.</p>
698    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
699    /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
700    /// <p>Constraints:</p>
701    /// <ul>
702    /// <li>
703    /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
704    /// <li>
705    /// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
706    /// <li>
707    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
708    /// <li>
709    /// <p>Must be at least 30 minutes.</p></li>
710    /// </ul>
711    pub fn preferred_maintenance_window(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
712        self.inner = self.inner.preferred_maintenance_window(input.into());
713        self
714    }
715    /// <p>The weekly time range during which system maintenance can occur.</p>
716    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
717    /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
718    /// <p>Constraints:</p>
719    /// <ul>
720    /// <li>
721    /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
722    /// <li>
723    /// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
724    /// <li>
725    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
726    /// <li>
727    /// <p>Must be at least 30 minutes.</p></li>
728    /// </ul>
729    pub fn set_preferred_maintenance_window(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
730        self.inner = self.inner.set_preferred_maintenance_window(input);
731        self
732    }
733    /// <p>The weekly time range during which system maintenance can occur.</p>
734    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
735    /// <p>The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week. To see the time blocks available, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_UpgradeDBInstance.Maintenance.html#AdjustingTheMaintenanceWindow.Aurora"> Adjusting the Preferred DB Cluster Maintenance Window</a> in the <i>Amazon Aurora User Guide</i>.</p>
736    /// <p>Constraints:</p>
737    /// <ul>
738    /// <li>
739    /// <p>Must be in the format <code>ddd:hh24:mi-ddd:hh24:mi</code>.</p></li>
740    /// <li>
741    /// <p>Days must be one of <code>Mon | Tue | Wed | Thu | Fri | Sat | Sun</code>.</p></li>
742    /// <li>
743    /// <p>Must be in Universal Coordinated Time (UTC).</p></li>
744    /// <li>
745    /// <p>Must be at least 30 minutes.</p></li>
746    /// </ul>
747    pub fn get_preferred_maintenance_window(&self) -> &::std::option::Option<::std::string::String> {
748        self.inner.get_preferred_maintenance_window()
749    }
750    /// <p>The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.</p>
751    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
752    pub fn replication_source_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
753        self.inner = self.inner.replication_source_identifier(input.into());
754        self
755    }
756    /// <p>The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.</p>
757    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
758    pub fn set_replication_source_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
759        self.inner = self.inner.set_replication_source_identifier(input);
760        self
761    }
762    /// <p>The Amazon Resource Name (ARN) of the source DB instance or DB cluster if this DB cluster is created as a read replica.</p>
763    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
764    pub fn get_replication_source_identifier(&self) -> &::std::option::Option<::std::string::String> {
765        self.inner.get_replication_source_identifier()
766    }
767    ///
768    /// Appends an item to `Tags`.
769    ///
770    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
771    ///
772    /// <p>Tags to assign to the DB cluster.</p>
773    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
774    pub fn tags(mut self, input: crate::types::Tag) -> Self {
775        self.inner = self.inner.tags(input);
776        self
777    }
778    /// <p>Tags to assign to the DB cluster.</p>
779    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
780    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
781        self.inner = self.inner.set_tags(input);
782        self
783    }
784    /// <p>Tags to assign to the DB cluster.</p>
785    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
786    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
787        self.inner.get_tags()
788    }
789    /// <p>Specifies whether the DB cluster is encrypted.</p>
790    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
791    pub fn storage_encrypted(mut self, input: bool) -> Self {
792        self.inner = self.inner.storage_encrypted(input);
793        self
794    }
795    /// <p>Specifies whether the DB cluster is encrypted.</p>
796    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
797    pub fn set_storage_encrypted(mut self, input: ::std::option::Option<bool>) -> Self {
798        self.inner = self.inner.set_storage_encrypted(input);
799        self
800    }
801    /// <p>Specifies whether the DB cluster is encrypted.</p>
802    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
803    pub fn get_storage_encrypted(&self) -> &::std::option::Option<bool> {
804        self.inner.get_storage_encrypted()
805    }
806    /// <p>The Amazon Web Services KMS key identifier for an encrypted DB cluster.</p>
807    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
808    /// <p>When a KMS key isn't specified in <code>KmsKeyId</code>:</p>
809    /// <ul>
810    /// <li>
811    /// <p>If <code>ReplicationSourceIdentifier</code> identifies an encrypted source, then Amazon RDS uses the KMS key used to encrypt the source. Otherwise, Amazon RDS uses your default KMS key.</p></li>
812    /// <li>
813    /// <p>If the <code>StorageEncrypted</code> parameter is enabled and <code>ReplicationSourceIdentifier</code> isn't specified, then Amazon RDS uses your default KMS key.</p></li>
814    /// </ul>
815    /// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
816    /// <p>If you create a read replica of an encrypted DB cluster in another Amazon Web Services Region, make sure to set <code>KmsKeyId</code> to a KMS key identifier that is valid in the destination Amazon Web Services Region. This KMS key is used to encrypt the read replica in that Amazon Web Services Region.</p>
817    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
818    pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
819        self.inner = self.inner.kms_key_id(input.into());
820        self
821    }
822    /// <p>The Amazon Web Services KMS key identifier for an encrypted DB cluster.</p>
823    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
824    /// <p>When a KMS key isn't specified in <code>KmsKeyId</code>:</p>
825    /// <ul>
826    /// <li>
827    /// <p>If <code>ReplicationSourceIdentifier</code> identifies an encrypted source, then Amazon RDS uses the KMS key used to encrypt the source. Otherwise, Amazon RDS uses your default KMS key.</p></li>
828    /// <li>
829    /// <p>If the <code>StorageEncrypted</code> parameter is enabled and <code>ReplicationSourceIdentifier</code> isn't specified, then Amazon RDS uses your default KMS key.</p></li>
830    /// </ul>
831    /// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
832    /// <p>If you create a read replica of an encrypted DB cluster in another Amazon Web Services Region, make sure to set <code>KmsKeyId</code> to a KMS key identifier that is valid in the destination Amazon Web Services Region. This KMS key is used to encrypt the read replica in that Amazon Web Services Region.</p>
833    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
834    pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
835        self.inner = self.inner.set_kms_key_id(input);
836        self
837    }
838    /// <p>The Amazon Web Services KMS key identifier for an encrypted DB cluster.</p>
839    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
840    /// <p>When a KMS key isn't specified in <code>KmsKeyId</code>:</p>
841    /// <ul>
842    /// <li>
843    /// <p>If <code>ReplicationSourceIdentifier</code> identifies an encrypted source, then Amazon RDS uses the KMS key used to encrypt the source. Otherwise, Amazon RDS uses your default KMS key.</p></li>
844    /// <li>
845    /// <p>If the <code>StorageEncrypted</code> parameter is enabled and <code>ReplicationSourceIdentifier</code> isn't specified, then Amazon RDS uses your default KMS key.</p></li>
846    /// </ul>
847    /// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
848    /// <p>If you create a read replica of an encrypted DB cluster in another Amazon Web Services Region, make sure to set <code>KmsKeyId</code> to a KMS key identifier that is valid in the destination Amazon Web Services Region. This KMS key is used to encrypt the read replica in that Amazon Web Services Region.</p>
849    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
850    pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
851        self.inner.get_kms_key_id()
852    }
853    /// <p>When you are replicating a DB cluster from one Amazon Web Services GovCloud (US) Region to another, an URL that contains a Signature Version 4 signed request for the <code>CreateDBCluster</code> operation to be called in the source Amazon Web Services Region where the DB cluster is replicated from. Specify <code>PreSignedUrl</code> only when you are performing cross-Region replication from an encrypted DB cluster.</p>
854    /// <p>The presigned URL must be a valid request for the <code>CreateDBCluster</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster to copy.</p>
855    /// <p>The presigned URL request must contain the following parameter values:</p>
856    /// <ul>
857    /// <li>
858    /// <p><code>KmsKeyId</code> - The KMS key identifier for the KMS key to use to encrypt the copy of the DB cluster in the destination Amazon Web Services Region. This should refer to the same KMS key for both the <code>CreateDBCluster</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
859    /// <li>
860    /// <p><code>DestinationRegion</code> - The name of the Amazon Web Services Region that Aurora read replica will be created in.</p></li>
861    /// <li>
862    /// <p><code>ReplicationSourceIdentifier</code> - The DB cluster identifier for the encrypted DB cluster to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB cluster from the us-west-2 Amazon Web Services Region, then your <code>ReplicationSourceIdentifier</code> would look like Example: <code>arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1</code>.</p></li>
863    /// </ul>
864    /// <p>To learn how to generate a Signature Version 4 signed request, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html"> Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4)</a> and <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html"> Signature Version 4 Signing Process</a>.</p><note>
865    /// <p>If you are using an Amazon Web Services SDK tool or the CLI, you can specify <code>SourceRegion</code> (or <code>--source-region</code> for the CLI) instead of specifying <code>PreSignedUrl</code> manually. Specifying <code>SourceRegion</code> autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.</p>
866    /// </note>
867    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
868    pub fn pre_signed_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
869        self.inner = self.inner.pre_signed_url(input.into());
870        self
871    }
872    /// <p>When you are replicating a DB cluster from one Amazon Web Services GovCloud (US) Region to another, an URL that contains a Signature Version 4 signed request for the <code>CreateDBCluster</code> operation to be called in the source Amazon Web Services Region where the DB cluster is replicated from. Specify <code>PreSignedUrl</code> only when you are performing cross-Region replication from an encrypted DB cluster.</p>
873    /// <p>The presigned URL must be a valid request for the <code>CreateDBCluster</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster to copy.</p>
874    /// <p>The presigned URL request must contain the following parameter values:</p>
875    /// <ul>
876    /// <li>
877    /// <p><code>KmsKeyId</code> - The KMS key identifier for the KMS key to use to encrypt the copy of the DB cluster in the destination Amazon Web Services Region. This should refer to the same KMS key for both the <code>CreateDBCluster</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
878    /// <li>
879    /// <p><code>DestinationRegion</code> - The name of the Amazon Web Services Region that Aurora read replica will be created in.</p></li>
880    /// <li>
881    /// <p><code>ReplicationSourceIdentifier</code> - The DB cluster identifier for the encrypted DB cluster to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB cluster from the us-west-2 Amazon Web Services Region, then your <code>ReplicationSourceIdentifier</code> would look like Example: <code>arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1</code>.</p></li>
882    /// </ul>
883    /// <p>To learn how to generate a Signature Version 4 signed request, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html"> Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4)</a> and <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html"> Signature Version 4 Signing Process</a>.</p><note>
884    /// <p>If you are using an Amazon Web Services SDK tool or the CLI, you can specify <code>SourceRegion</code> (or <code>--source-region</code> for the CLI) instead of specifying <code>PreSignedUrl</code> manually. Specifying <code>SourceRegion</code> autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.</p>
885    /// </note>
886    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
887    pub fn set_pre_signed_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
888        self.inner = self.inner.set_pre_signed_url(input);
889        self
890    }
891    /// <p>When you are replicating a DB cluster from one Amazon Web Services GovCloud (US) Region to another, an URL that contains a Signature Version 4 signed request for the <code>CreateDBCluster</code> operation to be called in the source Amazon Web Services Region where the DB cluster is replicated from. Specify <code>PreSignedUrl</code> only when you are performing cross-Region replication from an encrypted DB cluster.</p>
892    /// <p>The presigned URL must be a valid request for the <code>CreateDBCluster</code> API operation that can run in the source Amazon Web Services Region that contains the encrypted DB cluster to copy.</p>
893    /// <p>The presigned URL request must contain the following parameter values:</p>
894    /// <ul>
895    /// <li>
896    /// <p><code>KmsKeyId</code> - The KMS key identifier for the KMS key to use to encrypt the copy of the DB cluster in the destination Amazon Web Services Region. This should refer to the same KMS key for both the <code>CreateDBCluster</code> operation that is called in the destination Amazon Web Services Region, and the operation contained in the presigned URL.</p></li>
897    /// <li>
898    /// <p><code>DestinationRegion</code> - The name of the Amazon Web Services Region that Aurora read replica will be created in.</p></li>
899    /// <li>
900    /// <p><code>ReplicationSourceIdentifier</code> - The DB cluster identifier for the encrypted DB cluster to be copied. This identifier must be in the Amazon Resource Name (ARN) format for the source Amazon Web Services Region. For example, if you are copying an encrypted DB cluster from the us-west-2 Amazon Web Services Region, then your <code>ReplicationSourceIdentifier</code> would look like Example: <code>arn:aws:rds:us-west-2:123456789012:cluster:aurora-cluster1</code>.</p></li>
901    /// </ul>
902    /// <p>To learn how to generate a Signature Version 4 signed request, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html"> Authenticating Requests: Using Query Parameters (Amazon Web Services Signature Version 4)</a> and <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html"> Signature Version 4 Signing Process</a>.</p><note>
903    /// <p>If you are using an Amazon Web Services SDK tool or the CLI, you can specify <code>SourceRegion</code> (or <code>--source-region</code> for the CLI) instead of specifying <code>PreSignedUrl</code> manually. Specifying <code>SourceRegion</code> autogenerates a presigned URL that is a valid request for the operation that can run in the source Amazon Web Services Region.</p>
904    /// </note>
905    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
906    pub fn get_pre_signed_url(&self) -> &::std::option::Option<::std::string::String> {
907        self.inner.get_pre_signed_url()
908    }
909    /// <p>Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.</p>
910    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
911    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
912    pub fn enable_iam_database_authentication(mut self, input: bool) -> Self {
913        self.inner = self.inner.enable_iam_database_authentication(input);
914        self
915    }
916    /// <p>Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.</p>
917    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
918    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
919    pub fn set_enable_iam_database_authentication(mut self, input: ::std::option::Option<bool>) -> Self {
920        self.inner = self.inner.set_enable_iam_database_authentication(input);
921        self
922    }
923    /// <p>Specifies whether to enable mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database accounts. By default, mapping isn't enabled.</p>
924    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.html"> IAM Database Authentication</a> in the <i>Amazon Aurora User Guide</i> or <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.IAMDBAuth.html">IAM database authentication for MariaDB, MySQL, and PostgreSQL</a> in the <i>Amazon RDS User Guide</i>.</p>
925    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
926    pub fn get_enable_iam_database_authentication(&self) -> &::std::option::Option<bool> {
927        self.inner.get_enable_iam_database_authentication()
928    }
929    /// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
930    /// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
931    /// <p>Default: <code>0</code></p>
932    /// <p>Constraints:</p>
933    /// <ul>
934    /// <li>
935    /// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
936    /// </ul>
937    pub fn backtrack_window(mut self, input: i64) -> Self {
938        self.inner = self.inner.backtrack_window(input);
939        self
940    }
941    /// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
942    /// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
943    /// <p>Default: <code>0</code></p>
944    /// <p>Constraints:</p>
945    /// <ul>
946    /// <li>
947    /// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
948    /// </ul>
949    pub fn set_backtrack_window(mut self, input: ::std::option::Option<i64>) -> Self {
950        self.inner = self.inner.set_backtrack_window(input);
951        self
952    }
953    /// <p>The target backtrack window, in seconds. To disable backtracking, set this value to <code>0</code>.</p>
954    /// <p>Valid for Cluster Type: Aurora MySQL DB clusters only</p>
955    /// <p>Default: <code>0</code></p>
956    /// <p>Constraints:</p>
957    /// <ul>
958    /// <li>
959    /// <p>If specified, this value must be set to a number from 0 to 259,200 (72 hours).</p></li>
960    /// </ul>
961    pub fn get_backtrack_window(&self) -> &::std::option::Option<i64> {
962        self.inner.get_backtrack_window()
963    }
964    ///
965    /// Appends an item to `EnableCloudwatchLogsExports`.
966    ///
967    /// To override the contents of this collection use [`set_enable_cloudwatch_logs_exports`](Self::set_enable_cloudwatch_logs_exports).
968    ///
969    /// <p>The list of log types that need to be enabled for exporting to CloudWatch Logs.</p>
970    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
971    /// <p>The following values are valid for each DB engine:</p>
972    /// <ul>
973    /// <li>
974    /// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
975    /// <li>
976    /// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
977    /// <li>
978    /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
979    /// <li>
980    /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
981    /// </ul>
982    /// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
983    /// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
984    pub fn enable_cloudwatch_logs_exports(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
985        self.inner = self.inner.enable_cloudwatch_logs_exports(input.into());
986        self
987    }
988    /// <p>The list of log types that need to be enabled for exporting to CloudWatch Logs.</p>
989    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
990    /// <p>The following values are valid for each DB engine:</p>
991    /// <ul>
992    /// <li>
993    /// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
994    /// <li>
995    /// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
996    /// <li>
997    /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
998    /// <li>
999    /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
1000    /// </ul>
1001    /// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
1002    /// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
1003    pub fn set_enable_cloudwatch_logs_exports(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1004        self.inner = self.inner.set_enable_cloudwatch_logs_exports(input);
1005        self
1006    }
1007    /// <p>The list of log types that need to be enabled for exporting to CloudWatch Logs.</p>
1008    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1009    /// <p>The following values are valid for each DB engine:</p>
1010    /// <ul>
1011    /// <li>
1012    /// <p>Aurora MySQL - <code>audit | error | general | instance | slowquery | iam-db-auth-error</code></p></li>
1013    /// <li>
1014    /// <p>Aurora PostgreSQL - <code>instance | postgresql | iam-db-auth-error</code></p></li>
1015    /// <li>
1016    /// <p>RDS for MySQL - <code>error | general | slowquery | iam-db-auth-error</code></p></li>
1017    /// <li>
1018    /// <p>RDS for PostgreSQL - <code>postgresql | upgrade | iam-db-auth-error</code></p></li>
1019    /// </ul>
1020    /// <p>For more information about exporting CloudWatch Logs for Amazon RDS, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon RDS User Guide</i>.</p>
1021    /// <p>For more information about exporting CloudWatch Logs for Amazon Aurora, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_LogAccess.html#USER_LogAccess.Procedural.UploadtoCloudWatch">Publishing Database Logs to Amazon CloudWatch Logs</a> in the <i>Amazon Aurora User Guide</i>.</p>
1022    pub fn get_enable_cloudwatch_logs_exports(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1023        self.inner.get_enable_cloudwatch_logs_exports()
1024    }
1025    /// <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p>
1026    /// <p>The <code>serverless</code> engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the <code>provisioned</code> engine mode.</p>
1027    /// <p>For information about limitations and requirements for Serverless DB clusters, see the following sections in the <i>Amazon Aurora User Guide</i>:</p>
1028    /// <ul>
1029    /// <li>
1030    /// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations">Limitations of Aurora Serverless v1</a></p></li>
1031    /// <li>
1032    /// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html">Requirements for Aurora Serverless v2</a></p></li>
1033    /// </ul>
1034    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1035    pub fn engine_mode(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1036        self.inner = self.inner.engine_mode(input.into());
1037        self
1038    }
1039    /// <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p>
1040    /// <p>The <code>serverless</code> engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the <code>provisioned</code> engine mode.</p>
1041    /// <p>For information about limitations and requirements for Serverless DB clusters, see the following sections in the <i>Amazon Aurora User Guide</i>:</p>
1042    /// <ul>
1043    /// <li>
1044    /// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations">Limitations of Aurora Serverless v1</a></p></li>
1045    /// <li>
1046    /// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html">Requirements for Aurora Serverless v2</a></p></li>
1047    /// </ul>
1048    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1049    pub fn set_engine_mode(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1050        self.inner = self.inner.set_engine_mode(input);
1051        self
1052    }
1053    /// <p>The DB engine mode of the DB cluster, either <code>provisioned</code> or <code>serverless</code>.</p>
1054    /// <p>The <code>serverless</code> engine mode only applies for Aurora Serverless v1 DB clusters. Aurora Serverless v2 DB clusters use the <code>provisioned</code> engine mode.</p>
1055    /// <p>For information about limitations and requirements for Serverless DB clusters, see the following sections in the <i>Amazon Aurora User Guide</i>:</p>
1056    /// <ul>
1057    /// <li>
1058    /// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless.html#aurora-serverless.limitations">Limitations of Aurora Serverless v1</a></p></li>
1059    /// <li>
1060    /// <p><a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.requirements.html">Requirements for Aurora Serverless v2</a></p></li>
1061    /// </ul>
1062    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1063    pub fn get_engine_mode(&self) -> &::std::option::Option<::std::string::String> {
1064        self.inner.get_engine_mode()
1065    }
1066    /// <p>For DB clusters in <code>serverless</code> DB engine mode, the scaling properties of the DB cluster.</p>
1067    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1068    pub fn scaling_configuration(mut self, input: crate::types::ScalingConfiguration) -> Self {
1069        self.inner = self.inner.scaling_configuration(input);
1070        self
1071    }
1072    /// <p>For DB clusters in <code>serverless</code> DB engine mode, the scaling properties of the DB cluster.</p>
1073    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1074    pub fn set_scaling_configuration(mut self, input: ::std::option::Option<crate::types::ScalingConfiguration>) -> Self {
1075        self.inner = self.inner.set_scaling_configuration(input);
1076        self
1077    }
1078    /// <p>For DB clusters in <code>serverless</code> DB engine mode, the scaling properties of the DB cluster.</p>
1079    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1080    pub fn get_scaling_configuration(&self) -> &::std::option::Option<crate::types::ScalingConfiguration> {
1081        self.inner.get_scaling_configuration()
1082    }
1083    /// <p>Reserved for future use.</p>
1084    pub fn rds_custom_cluster_configuration(mut self, input: crate::types::RdsCustomClusterConfiguration) -> Self {
1085        self.inner = self.inner.rds_custom_cluster_configuration(input);
1086        self
1087    }
1088    /// <p>Reserved for future use.</p>
1089    pub fn set_rds_custom_cluster_configuration(mut self, input: ::std::option::Option<crate::types::RdsCustomClusterConfiguration>) -> Self {
1090        self.inner = self.inner.set_rds_custom_cluster_configuration(input);
1091        self
1092    }
1093    /// <p>Reserved for future use.</p>
1094    pub fn get_rds_custom_cluster_configuration(&self) -> &::std::option::Option<crate::types::RdsCustomClusterConfiguration> {
1095        self.inner.get_rds_custom_cluster_configuration()
1096    }
1097    /// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
1098    /// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance class</a> in the <i>Amazon RDS User Guide</i>.</p>
1099    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1100    /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1101    pub fn db_cluster_instance_class(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1102        self.inner = self.inner.db_cluster_instance_class(input.into());
1103        self
1104    }
1105    /// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
1106    /// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance class</a> in the <i>Amazon RDS User Guide</i>.</p>
1107    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1108    /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1109    pub fn set_db_cluster_instance_class(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1110        self.inner = self.inner.set_db_cluster_instance_class(input);
1111        self
1112    }
1113    /// <p>The compute and memory capacity of each DB instance in the Multi-AZ DB cluster, for example <code>db.m6gd.xlarge</code>. Not all DB instance classes are available in all Amazon Web Services Regions, or for all database engines.</p>
1114    /// <p>For the full list of DB instance classes and availability for your engine, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html">DB instance class</a> in the <i>Amazon RDS User Guide</i>.</p>
1115    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1116    /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1117    pub fn get_db_cluster_instance_class(&self) -> &::std::option::Option<::std::string::String> {
1118        self.inner.get_db_cluster_instance_class()
1119    }
1120    /// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
1121    /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1122    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1123    pub fn allocated_storage(mut self, input: i32) -> Self {
1124        self.inner = self.inner.allocated_storage(input);
1125        self
1126    }
1127    /// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
1128    /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1129    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1130    pub fn set_allocated_storage(mut self, input: ::std::option::Option<i32>) -> Self {
1131        self.inner = self.inner.set_allocated_storage(input);
1132        self
1133    }
1134    /// <p>The amount of storage in gibibytes (GiB) to allocate to each DB instance in the Multi-AZ DB cluster.</p>
1135    /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1136    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1137    pub fn get_allocated_storage(&self) -> &::std::option::Option<i32> {
1138        self.inner.get_allocated_storage()
1139    }
1140    /// <p>The storage type to associate with the DB cluster.</p>
1141    /// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
1142    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1143    /// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
1144    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1145    /// <p>Valid Values:</p>
1146    /// <ul>
1147    /// <li>
1148    /// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
1149    /// <li>
1150    /// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
1151    /// </ul>
1152    /// <p>Default:</p>
1153    /// <ul>
1154    /// <li>
1155    /// <p>Aurora DB clusters - <code>aurora</code></p></li>
1156    /// <li>
1157    /// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
1158    /// </ul><note>
1159    /// <p>When you create an Aurora DB cluster with the storage type set to <code>aurora-iopt1</code>, the storage type is returned in the response. The storage type isn't returned when you set it to <code>aurora</code>.</p>
1160    /// </note>
1161    pub fn storage_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1162        self.inner = self.inner.storage_type(input.into());
1163        self
1164    }
1165    /// <p>The storage type to associate with the DB cluster.</p>
1166    /// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
1167    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1168    /// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
1169    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1170    /// <p>Valid Values:</p>
1171    /// <ul>
1172    /// <li>
1173    /// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
1174    /// <li>
1175    /// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
1176    /// </ul>
1177    /// <p>Default:</p>
1178    /// <ul>
1179    /// <li>
1180    /// <p>Aurora DB clusters - <code>aurora</code></p></li>
1181    /// <li>
1182    /// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
1183    /// </ul><note>
1184    /// <p>When you create an Aurora DB cluster with the storage type set to <code>aurora-iopt1</code>, the storage type is returned in the response. The storage type isn't returned when you set it to <code>aurora</code>.</p>
1185    /// </note>
1186    pub fn set_storage_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1187        self.inner = self.inner.set_storage_type(input);
1188        self
1189    }
1190    /// <p>The storage type to associate with the DB cluster.</p>
1191    /// <p>For information on storage types for Aurora DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/Aurora.Overview.StorageReliability.html#aurora-storage-type">Storage configurations for Amazon Aurora DB clusters</a>. For information on storage types for Multi-AZ DB clusters, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/create-multi-az-db-cluster.html#create-multi-az-db-cluster-settings">Settings for creating Multi-AZ DB clusters</a>.</p>
1192    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1193    /// <p>When specified for a Multi-AZ DB cluster, a value for the <code>Iops</code> parameter is required.</p>
1194    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1195    /// <p>Valid Values:</p>
1196    /// <ul>
1197    /// <li>
1198    /// <p>Aurora DB clusters - <code>aurora | aurora-iopt1</code></p></li>
1199    /// <li>
1200    /// <p>Multi-AZ DB clusters - <code>io1 | io2 | gp3</code></p></li>
1201    /// </ul>
1202    /// <p>Default:</p>
1203    /// <ul>
1204    /// <li>
1205    /// <p>Aurora DB clusters - <code>aurora</code></p></li>
1206    /// <li>
1207    /// <p>Multi-AZ DB clusters - <code>io1</code></p></li>
1208    /// </ul><note>
1209    /// <p>When you create an Aurora DB cluster with the storage type set to <code>aurora-iopt1</code>, the storage type is returned in the response. The storage type isn't returned when you set it to <code>aurora</code>.</p>
1210    /// </note>
1211    pub fn get_storage_type(&self) -> &::std::option::Option<::std::string::String> {
1212        self.inner.get_storage_type()
1213    }
1214    /// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
1215    /// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
1216    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1217    /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1218    /// <p>Constraints:</p>
1219    /// <ul>
1220    /// <li>
1221    /// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
1222    /// </ul>
1223    pub fn iops(mut self, input: i32) -> Self {
1224        self.inner = self.inner.iops(input);
1225        self
1226    }
1227    /// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
1228    /// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
1229    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1230    /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1231    /// <p>Constraints:</p>
1232    /// <ul>
1233    /// <li>
1234    /// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
1235    /// </ul>
1236    pub fn set_iops(mut self, input: ::std::option::Option<i32>) -> Self {
1237        self.inner = self.inner.set_iops(input);
1238        self
1239    }
1240    /// <p>The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for each DB instance in the Multi-AZ DB cluster.</p>
1241    /// <p>For information about valid IOPS values, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Storage.html#USER_PIOPS">Provisioned IOPS storage</a> in the <i>Amazon RDS User Guide</i>.</p>
1242    /// <p>This setting is required to create a Multi-AZ DB cluster.</p>
1243    /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1244    /// <p>Constraints:</p>
1245    /// <ul>
1246    /// <li>
1247    /// <p>Must be a multiple between .5 and 50 of the storage amount for the DB cluster.</p></li>
1248    /// </ul>
1249    pub fn get_iops(&self) -> &::std::option::Option<i32> {
1250        self.inner.get_iops()
1251    }
1252    /// <p>Specifies whether the DB cluster is publicly accessible.</p>
1253    /// <p>When the DB cluster is publicly accessible and you connect from outside of the DB cluster's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to the private IP address. Access to the DB cluster is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it.</p>
1254    /// <p>When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.</p>
1255    /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1256    /// <p>Default: The default behavior varies depending on whether <code>DBSubnetGroupName</code> is specified.</p>
1257    /// <p>If <code>DBSubnetGroupName</code> isn't specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p>
1258    /// <ul>
1259    /// <li>
1260    /// <p>If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB cluster is private.</p></li>
1261    /// <li>
1262    /// <p>If the default VPC in the target Region has an internet gateway attached to it, the DB cluster is public.</p></li>
1263    /// </ul>
1264    /// <p>If <code>DBSubnetGroupName</code> is specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p>
1265    /// <ul>
1266    /// <li>
1267    /// <p>If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB cluster is private.</p></li>
1268    /// <li>
1269    /// <p>If the subnets are part of a VPC that has an internet gateway attached to it, the DB cluster is public.</p></li>
1270    /// </ul>
1271    pub fn publicly_accessible(mut self, input: bool) -> Self {
1272        self.inner = self.inner.publicly_accessible(input);
1273        self
1274    }
1275    /// <p>Specifies whether the DB cluster is publicly accessible.</p>
1276    /// <p>When the DB cluster is publicly accessible and you connect from outside of the DB cluster's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to the private IP address. Access to the DB cluster is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it.</p>
1277    /// <p>When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.</p>
1278    /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1279    /// <p>Default: The default behavior varies depending on whether <code>DBSubnetGroupName</code> is specified.</p>
1280    /// <p>If <code>DBSubnetGroupName</code> isn't specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p>
1281    /// <ul>
1282    /// <li>
1283    /// <p>If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB cluster is private.</p></li>
1284    /// <li>
1285    /// <p>If the default VPC in the target Region has an internet gateway attached to it, the DB cluster is public.</p></li>
1286    /// </ul>
1287    /// <p>If <code>DBSubnetGroupName</code> is specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p>
1288    /// <ul>
1289    /// <li>
1290    /// <p>If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB cluster is private.</p></li>
1291    /// <li>
1292    /// <p>If the subnets are part of a VPC that has an internet gateway attached to it, the DB cluster is public.</p></li>
1293    /// </ul>
1294    pub fn set_publicly_accessible(mut self, input: ::std::option::Option<bool>) -> Self {
1295        self.inner = self.inner.set_publicly_accessible(input);
1296        self
1297    }
1298    /// <p>Specifies whether the DB cluster is publicly accessible.</p>
1299    /// <p>When the DB cluster is publicly accessible and you connect from outside of the DB cluster's virtual private cloud (VPC), its Domain Name System (DNS) endpoint resolves to the public IP address. When you connect from within the same VPC as the DB cluster, the endpoint resolves to the private IP address. Access to the DB cluster is ultimately controlled by the security group it uses. That public access isn't permitted if the security group assigned to the DB cluster doesn't permit it.</p>
1300    /// <p>When the DB cluster isn't publicly accessible, it is an internal DB cluster with a DNS name that resolves to a private IP address.</p>
1301    /// <p>Valid for Cluster Type: Multi-AZ DB clusters only</p>
1302    /// <p>Default: The default behavior varies depending on whether <code>DBSubnetGroupName</code> is specified.</p>
1303    /// <p>If <code>DBSubnetGroupName</code> isn't specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p>
1304    /// <ul>
1305    /// <li>
1306    /// <p>If the default VPC in the target Region doesn’t have an internet gateway attached to it, the DB cluster is private.</p></li>
1307    /// <li>
1308    /// <p>If the default VPC in the target Region has an internet gateway attached to it, the DB cluster is public.</p></li>
1309    /// </ul>
1310    /// <p>If <code>DBSubnetGroupName</code> is specified, and <code>PubliclyAccessible</code> isn't specified, the following applies:</p>
1311    /// <ul>
1312    /// <li>
1313    /// <p>If the subnets are part of a VPC that doesn’t have an internet gateway attached to it, the DB cluster is private.</p></li>
1314    /// <li>
1315    /// <p>If the subnets are part of a VPC that has an internet gateway attached to it, the DB cluster is public.</p></li>
1316    /// </ul>
1317    pub fn get_publicly_accessible(&self) -> &::std::option::Option<bool> {
1318        self.inner.get_publicly_accessible()
1319    }
1320    /// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
1321    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB cluster.</p>
1322    /// <p>For more information about automatic minor version upgrades, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades">Automatically upgrading the minor engine version</a>.</p>
1323    pub fn auto_minor_version_upgrade(mut self, input: bool) -> Self {
1324        self.inner = self.inner.auto_minor_version_upgrade(input);
1325        self
1326    }
1327    /// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
1328    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB cluster.</p>
1329    /// <p>For more information about automatic minor version upgrades, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades">Automatically upgrading the minor engine version</a>.</p>
1330    pub fn set_auto_minor_version_upgrade(mut self, input: ::std::option::Option<bool>) -> Self {
1331        self.inner = self.inner.set_auto_minor_version_upgrade(input);
1332        self
1333    }
1334    /// <p>Specifies whether minor engine upgrades are applied automatically to the DB cluster during the maintenance window. By default, minor engine upgrades are applied automatically.</p>
1335    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB cluster.</p>
1336    /// <p>For more information about automatic minor version upgrades, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.Upgrading.html#USER_UpgradeDBInstance.Upgrading.AutoMinorVersionUpgrades">Automatically upgrading the minor engine version</a>.</p>
1337    pub fn get_auto_minor_version_upgrade(&self) -> &::std::option::Option<bool> {
1338        self.inner.get_auto_minor_version_upgrade()
1339    }
1340    /// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
1341    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1342    pub fn deletion_protection(mut self, input: bool) -> Self {
1343        self.inner = self.inner.deletion_protection(input);
1344        self
1345    }
1346    /// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
1347    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1348    pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
1349        self.inner = self.inner.set_deletion_protection(input);
1350        self
1351    }
1352    /// <p>Specifies whether the DB cluster has deletion protection enabled. The database can't be deleted when deletion protection is enabled. By default, deletion protection isn't enabled.</p>
1353    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1354    pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
1355        self.inner.get_deletion_protection()
1356    }
1357    /// <p>The global cluster ID of an Aurora cluster that becomes the primary cluster in the new global database cluster.</p>
1358    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1359    pub fn global_cluster_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1360        self.inner = self.inner.global_cluster_identifier(input.into());
1361        self
1362    }
1363    /// <p>The global cluster ID of an Aurora cluster that becomes the primary cluster in the new global database cluster.</p>
1364    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1365    pub fn set_global_cluster_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1366        self.inner = self.inner.set_global_cluster_identifier(input);
1367        self
1368    }
1369    /// <p>The global cluster ID of an Aurora cluster that becomes the primary cluster in the new global database cluster.</p>
1370    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1371    pub fn get_global_cluster_identifier(&self) -> &::std::option::Option<::std::string::String> {
1372        self.inner.get_global_cluster_identifier()
1373    }
1374    /// <p>Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled.</p>
1375    /// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
1376    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
1377    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1378    pub fn enable_http_endpoint(mut self, input: bool) -> Self {
1379        self.inner = self.inner.enable_http_endpoint(input);
1380        self
1381    }
1382    /// <p>Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled.</p>
1383    /// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
1384    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
1385    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1386    pub fn set_enable_http_endpoint(mut self, input: ::std::option::Option<bool>) -> Self {
1387        self.inner = self.inner.set_enable_http_endpoint(input);
1388        self
1389    }
1390    /// <p>Specifies whether to enable the HTTP endpoint for the DB cluster. By default, the HTTP endpoint isn't enabled.</p>
1391    /// <p>When enabled, the HTTP endpoint provides a connectionless web service API (RDS Data API) for running SQL queries on the DB cluster. You can also query your database from inside the RDS console with the RDS query editor.</p>
1392    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html">Using RDS Data API</a> in the <i>Amazon Aurora User Guide</i>.</p>
1393    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1394    pub fn get_enable_http_endpoint(&self) -> &::std::option::Option<bool> {
1395        self.inner.get_enable_http_endpoint()
1396    }
1397    /// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
1398    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1399    pub fn copy_tags_to_snapshot(mut self, input: bool) -> Self {
1400        self.inner = self.inner.copy_tags_to_snapshot(input);
1401        self
1402    }
1403    /// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
1404    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1405    pub fn set_copy_tags_to_snapshot(mut self, input: ::std::option::Option<bool>) -> Self {
1406        self.inner = self.inner.set_copy_tags_to_snapshot(input);
1407        self
1408    }
1409    /// <p>Specifies whether to copy all tags from the DB cluster to snapshots of the DB cluster. The default is not to copy them.</p>
1410    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1411    pub fn get_copy_tags_to_snapshot(&self) -> &::std::option::Option<bool> {
1412        self.inner.get_copy_tags_to_snapshot()
1413    }
1414    /// <p>The Active Directory directory ID to create the DB cluster in.</p>
1415    /// <p>For Amazon Aurora DB clusters, Amazon RDS can use Kerberos authentication to authenticate users that connect to the DB cluster.</p>
1416    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
1417    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1418    pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1419        self.inner = self.inner.domain(input.into());
1420        self
1421    }
1422    /// <p>The Active Directory directory ID to create the DB cluster in.</p>
1423    /// <p>For Amazon Aurora DB clusters, Amazon RDS can use Kerberos authentication to authenticate users that connect to the DB cluster.</p>
1424    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
1425    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1426    pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1427        self.inner = self.inner.set_domain(input);
1428        self
1429    }
1430    /// <p>The Active Directory directory ID to create the DB cluster in.</p>
1431    /// <p>For Amazon Aurora DB clusters, Amazon RDS can use Kerberos authentication to authenticate users that connect to the DB cluster.</p>
1432    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/kerberos-authentication.html">Kerberos authentication</a> in the <i>Amazon Aurora User Guide</i>.</p>
1433    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1434    pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
1435        self.inner.get_domain()
1436    }
1437    /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
1438    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1439    pub fn domain_iam_role_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1440        self.inner = self.inner.domain_iam_role_name(input.into());
1441        self
1442    }
1443    /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
1444    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1445    pub fn set_domain_iam_role_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1446        self.inner = self.inner.set_domain_iam_role_name(input);
1447        self
1448    }
1449    /// <p>The name of the IAM role to use when making API calls to the Directory Service.</p>
1450    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1451    pub fn get_domain_iam_role_name(&self) -> &::std::option::Option<::std::string::String> {
1452        self.inner.get_domain_iam_role_name()
1453    }
1454    /// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
1455    /// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
1456    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1457    pub fn enable_global_write_forwarding(mut self, input: bool) -> Self {
1458        self.inner = self.inner.enable_global_write_forwarding(input);
1459        self
1460    }
1461    /// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
1462    /// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
1463    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1464    pub fn set_enable_global_write_forwarding(mut self, input: ::std::option::Option<bool>) -> Self {
1465        self.inner = self.inner.set_enable_global_write_forwarding(input);
1466        self
1467    }
1468    /// <p>Specifies whether to enable this DB cluster to forward write operations to the primary cluster of a global cluster (Aurora global database). By default, write operations are not allowed on Aurora DB clusters that are secondary clusters in an Aurora global database.</p>
1469    /// <p>You can set this value only on Aurora DB clusters that are members of an Aurora global database. With this parameter enabled, a secondary cluster can forward writes to the current primary cluster, and the resulting changes are replicated back to this cluster. For the primary DB cluster of an Aurora global database, this value is used immediately if the primary is demoted by a global cluster API operation, but it does nothing until then.</p>
1470    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1471    pub fn get_enable_global_write_forwarding(&self) -> &::std::option::Option<bool> {
1472        self.inner.get_enable_global_write_forwarding()
1473    }
1474    /// <p>The network type of the DB cluster.</p>
1475    /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1476    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
1477    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1478    /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1479    pub fn network_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1480        self.inner = self.inner.network_type(input.into());
1481        self
1482    }
1483    /// <p>The network type of the DB cluster.</p>
1484    /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1485    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
1486    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1487    /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1488    pub fn set_network_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1489        self.inner = self.inner.set_network_type(input);
1490        self
1491    }
1492    /// <p>The network type of the DB cluster.</p>
1493    /// <p>The network type is determined by the <code>DBSubnetGroup</code> specified for the DB cluster. A <code>DBSubnetGroup</code> can support only the IPv4 protocol or the IPv4 and the IPv6 protocols (<code>DUAL</code>).</p>
1494    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html"> Working with a DB instance in a VPC</a> in the <i>Amazon Aurora User Guide.</i></p>
1495    /// <p>Valid for Cluster Type: Aurora DB clusters only</p>
1496    /// <p>Valid Values: <code>IPV4 | DUAL</code></p>
1497    pub fn get_network_type(&self) -> &::std::option::Option<::std::string::String> {
1498        self.inner.get_network_type()
1499    }
1500    /// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
1501    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
1502    pub fn serverless_v2_scaling_configuration(mut self, input: crate::types::ServerlessV2ScalingConfiguration) -> Self {
1503        self.inner = self.inner.serverless_v2_scaling_configuration(input);
1504        self
1505    }
1506    /// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
1507    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
1508    pub fn set_serverless_v2_scaling_configuration(mut self, input: ::std::option::Option<crate::types::ServerlessV2ScalingConfiguration>) -> Self {
1509        self.inner = self.inner.set_serverless_v2_scaling_configuration(input);
1510        self
1511    }
1512    /// <p>Contains the scaling configuration of an Aurora Serverless v2 DB cluster.</p>
1513    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v2.html">Using Amazon Aurora Serverless v2</a> in the <i>Amazon Aurora User Guide</i>.</p>
1514    pub fn get_serverless_v2_scaling_configuration(&self) -> &::std::option::Option<crate::types::ServerlessV2ScalingConfiguration> {
1515        self.inner.get_serverless_v2_scaling_configuration()
1516    }
1517    /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
1518    /// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1519    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1520    /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1521    /// <p>Default: <code>0</code></p>
1522    pub fn monitoring_interval(mut self, input: i32) -> Self {
1523        self.inner = self.inner.monitoring_interval(input);
1524        self
1525    }
1526    /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
1527    /// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1528    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1529    /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1530    /// <p>Default: <code>0</code></p>
1531    pub fn set_monitoring_interval(mut self, input: ::std::option::Option<i32>) -> Self {
1532        self.inner = self.inner.set_monitoring_interval(input);
1533        self
1534    }
1535    /// <p>The interval, in seconds, between points when Enhanced Monitoring metrics are collected for the DB cluster. To turn off collecting Enhanced Monitoring metrics, specify <code>0</code>.</p>
1536    /// <p>If <code>MonitoringRoleArn</code> is specified, also set <code>MonitoringInterval</code> to a value other than <code>0</code>.</p>
1537    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1538    /// <p>Valid Values: <code>0 | 1 | 5 | 10 | 15 | 30 | 60</code></p>
1539    /// <p>Default: <code>0</code></p>
1540    pub fn get_monitoring_interval(&self) -> &::std::option::Option<i32> {
1541        self.inner.get_monitoring_interval()
1542    }
1543    /// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting up and enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
1544    /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1545    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1546    pub fn monitoring_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1547        self.inner = self.inner.monitoring_role_arn(input.into());
1548        self
1549    }
1550    /// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting up and enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
1551    /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1552    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1553    pub fn set_monitoring_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1554        self.inner = self.inner.set_monitoring_role_arn(input);
1555        self
1556    }
1557    /// <p>The Amazon Resource Name (ARN) for the IAM role that permits RDS to send Enhanced Monitoring metrics to Amazon CloudWatch Logs. An example is <code>arn:aws:iam:123456789012:role/emaccess</code>. For information on creating a monitoring role, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Monitoring.OS.html#USER_Monitoring.OS.Enabling">Setting up and enabling Enhanced Monitoring</a> in the <i>Amazon RDS User Guide</i>.</p>
1558    /// <p>If <code>MonitoringInterval</code> is set to a value other than <code>0</code>, supply a <code>MonitoringRoleArn</code> value.</p>
1559    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1560    pub fn get_monitoring_role_arn(&self) -> &::std::option::Option<::std::string::String> {
1561        self.inner.get_monitoring_role_arn()
1562    }
1563    /// <p>The mode of Database Insights to enable for the DB cluster.</p>
1564    /// <p>If you set this value to <code>advanced</code>, you must also set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
1565    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1566    pub fn database_insights_mode(mut self, input: crate::types::DatabaseInsightsMode) -> Self {
1567        self.inner = self.inner.database_insights_mode(input);
1568        self
1569    }
1570    /// <p>The mode of Database Insights to enable for the DB cluster.</p>
1571    /// <p>If you set this value to <code>advanced</code>, you must also set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
1572    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1573    pub fn set_database_insights_mode(mut self, input: ::std::option::Option<crate::types::DatabaseInsightsMode>) -> Self {
1574        self.inner = self.inner.set_database_insights_mode(input);
1575        self
1576    }
1577    /// <p>The mode of Database Insights to enable for the DB cluster.</p>
1578    /// <p>If you set this value to <code>advanced</code>, you must also set the <code>PerformanceInsightsEnabled</code> parameter to <code>true</code> and the <code>PerformanceInsightsRetentionPeriod</code> parameter to 465.</p>
1579    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1580    pub fn get_database_insights_mode(&self) -> &::std::option::Option<crate::types::DatabaseInsightsMode> {
1581        self.inner.get_database_insights_mode()
1582    }
1583    /// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
1584    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
1585    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1586    pub fn enable_performance_insights(mut self, input: bool) -> Self {
1587        self.inner = self.inner.enable_performance_insights(input);
1588        self
1589    }
1590    /// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
1591    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
1592    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1593    pub fn set_enable_performance_insights(mut self, input: ::std::option::Option<bool>) -> Self {
1594        self.inner = self.inner.set_enable_performance_insights(input);
1595        self
1596    }
1597    /// <p>Specifies whether to turn on Performance Insights for the DB cluster.</p>
1598    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html"> Using Amazon Performance Insights</a> in the <i>Amazon RDS User Guide</i>.</p>
1599    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1600    pub fn get_enable_performance_insights(&self) -> &::std::option::Option<bool> {
1601        self.inner.get_enable_performance_insights()
1602    }
1603    /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1604    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1605    /// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
1606    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1607    pub fn performance_insights_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1608        self.inner = self.inner.performance_insights_kms_key_id(input.into());
1609        self
1610    }
1611    /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1612    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1613    /// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
1614    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1615    pub fn set_performance_insights_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1616        self.inner = self.inner.set_performance_insights_kms_key_id(input);
1617        self
1618    }
1619    /// <p>The Amazon Web Services KMS key identifier for encryption of Performance Insights data.</p>
1620    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.</p>
1621    /// <p>If you don't specify a value for <code>PerformanceInsightsKMSKeyId</code>, then Amazon RDS uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
1622    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1623    pub fn get_performance_insights_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
1624        self.inner.get_performance_insights_kms_key_id()
1625    }
1626    /// <p>The number of days to retain Performance Insights data.</p>
1627    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1628    /// <p>Valid Values:</p>
1629    /// <ul>
1630    /// <li>
1631    /// <p><code>7</code></p></li>
1632    /// <li>
1633    /// <p><i>month</i> * 31, where <i>month</i> is a number of months from 1-23. Examples: <code>93</code> (3 months * 31), <code>341</code> (11 months * 31), <code>589</code> (19 months * 31)</p></li>
1634    /// <li>
1635    /// <p><code>731</code></p></li>
1636    /// </ul>
1637    /// <p>Default: <code>7</code> days</p>
1638    /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
1639    pub fn performance_insights_retention_period(mut self, input: i32) -> Self {
1640        self.inner = self.inner.performance_insights_retention_period(input);
1641        self
1642    }
1643    /// <p>The number of days to retain Performance Insights data.</p>
1644    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1645    /// <p>Valid Values:</p>
1646    /// <ul>
1647    /// <li>
1648    /// <p><code>7</code></p></li>
1649    /// <li>
1650    /// <p><i>month</i> * 31, where <i>month</i> is a number of months from 1-23. Examples: <code>93</code> (3 months * 31), <code>341</code> (11 months * 31), <code>589</code> (19 months * 31)</p></li>
1651    /// <li>
1652    /// <p><code>731</code></p></li>
1653    /// </ul>
1654    /// <p>Default: <code>7</code> days</p>
1655    /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
1656    pub fn set_performance_insights_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
1657        self.inner = self.inner.set_performance_insights_retention_period(input);
1658        self
1659    }
1660    /// <p>The number of days to retain Performance Insights data.</p>
1661    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1662    /// <p>Valid Values:</p>
1663    /// <ul>
1664    /// <li>
1665    /// <p><code>7</code></p></li>
1666    /// <li>
1667    /// <p><i>month</i> * 31, where <i>month</i> is a number of months from 1-23. Examples: <code>93</code> (3 months * 31), <code>341</code> (11 months * 31), <code>589</code> (19 months * 31)</p></li>
1668    /// <li>
1669    /// <p><code>731</code></p></li>
1670    /// </ul>
1671    /// <p>Default: <code>7</code> days</p>
1672    /// <p>If you specify a retention period that isn't valid, such as <code>94</code>, Amazon RDS issues an error.</p>
1673    pub fn get_performance_insights_retention_period(&self) -> &::std::option::Option<i32> {
1674        self.inner.get_performance_insights_retention_period()
1675    }
1676    /// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
1677    /// <p>Valid for: Aurora DB clusters only</p><note>
1678    /// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting.</p>
1679    /// </note>
1680    pub fn enable_limitless_database(mut self, input: bool) -> Self {
1681        self.inner = self.inner.enable_limitless_database(input);
1682        self
1683    }
1684    /// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
1685    /// <p>Valid for: Aurora DB clusters only</p><note>
1686    /// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting.</p>
1687    /// </note>
1688    pub fn set_enable_limitless_database(mut self, input: ::std::option::Option<bool>) -> Self {
1689        self.inner = self.inner.set_enable_limitless_database(input);
1690        self
1691    }
1692    /// <p>Specifies whether to enable Aurora Limitless Database. You must enable Aurora Limitless Database to create a DB shard group.</p>
1693    /// <p>Valid for: Aurora DB clusters only</p><note>
1694    /// <p>This setting is no longer used. Instead use the <code>ClusterScalabilityType</code> setting.</p>
1695    /// </note>
1696    pub fn get_enable_limitless_database(&self) -> &::std::option::Option<bool> {
1697        self.inner.get_enable_limitless_database()
1698    }
1699    /// <p>Specifies the scalability mode of the Aurora DB cluster. When set to <code>limitless</code>, the cluster operates as an Aurora Limitless Database. When set to <code>standard</code> (the default), the cluster uses normal DB instance creation.</p>
1700    /// <p>Valid for: Aurora DB clusters only</p><note>
1701    /// <p>You can't modify this setting after you create the DB cluster.</p>
1702    /// </note>
1703    pub fn cluster_scalability_type(mut self, input: crate::types::ClusterScalabilityType) -> Self {
1704        self.inner = self.inner.cluster_scalability_type(input);
1705        self
1706    }
1707    /// <p>Specifies the scalability mode of the Aurora DB cluster. When set to <code>limitless</code>, the cluster operates as an Aurora Limitless Database. When set to <code>standard</code> (the default), the cluster uses normal DB instance creation.</p>
1708    /// <p>Valid for: Aurora DB clusters only</p><note>
1709    /// <p>You can't modify this setting after you create the DB cluster.</p>
1710    /// </note>
1711    pub fn set_cluster_scalability_type(mut self, input: ::std::option::Option<crate::types::ClusterScalabilityType>) -> Self {
1712        self.inner = self.inner.set_cluster_scalability_type(input);
1713        self
1714    }
1715    /// <p>Specifies the scalability mode of the Aurora DB cluster. When set to <code>limitless</code>, the cluster operates as an Aurora Limitless Database. When set to <code>standard</code> (the default), the cluster uses normal DB instance creation.</p>
1716    /// <p>Valid for: Aurora DB clusters only</p><note>
1717    /// <p>You can't modify this setting after you create the DB cluster.</p>
1718    /// </note>
1719    pub fn get_cluster_scalability_type(&self) -> &::std::option::Option<crate::types::ClusterScalabilityType> {
1720        self.inner.get_cluster_scalability_type()
1721    }
1722    /// <p>Reserved for future use.</p>
1723    pub fn db_system_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1724        self.inner = self.inner.db_system_id(input.into());
1725        self
1726    }
1727    /// <p>Reserved for future use.</p>
1728    pub fn set_db_system_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1729        self.inner = self.inner.set_db_system_id(input);
1730        self
1731    }
1732    /// <p>Reserved for future use.</p>
1733    pub fn get_db_system_id(&self) -> &::std::option::Option<::std::string::String> {
1734        self.inner.get_db_system_id()
1735    }
1736    /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
1737    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
1738    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1739    /// <p>Constraints:</p>
1740    /// <ul>
1741    /// <li>
1742    /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
1743    /// </ul>
1744    pub fn manage_master_user_password(mut self, input: bool) -> Self {
1745        self.inner = self.inner.manage_master_user_password(input);
1746        self
1747    }
1748    /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
1749    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
1750    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1751    /// <p>Constraints:</p>
1752    /// <ul>
1753    /// <li>
1754    /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
1755    /// </ul>
1756    pub fn set_manage_master_user_password(mut self, input: ::std::option::Option<bool>) -> Self {
1757        self.inner = self.inner.set_manage_master_user_password(input);
1758        self
1759    }
1760    /// <p>Specifies whether to manage the master user password with Amazon Web Services Secrets Manager.</p>
1761    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon RDS User Guide</i> and <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/rds-secrets-manager.html">Password management with Amazon Web Services Secrets Manager</a> in the <i>Amazon Aurora User Guide.</i></p>
1762    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1763    /// <p>Constraints:</p>
1764    /// <ul>
1765    /// <li>
1766    /// <p>Can't manage the master user password with Amazon Web Services Secrets Manager if <code>MasterUserPassword</code> is specified.</p></li>
1767    /// </ul>
1768    pub fn get_manage_master_user_password(&self) -> &::std::option::Option<bool> {
1769        self.inner.get_manage_master_user_password()
1770    }
1771    /// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
1772    /// <p>Valid for: Aurora DB clusters only</p>
1773    pub fn enable_local_write_forwarding(mut self, input: bool) -> Self {
1774        self.inner = self.inner.enable_local_write_forwarding(input);
1775        self
1776    }
1777    /// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
1778    /// <p>Valid for: Aurora DB clusters only</p>
1779    pub fn set_enable_local_write_forwarding(mut self, input: ::std::option::Option<bool>) -> Self {
1780        self.inner = self.inner.set_enable_local_write_forwarding(input);
1781        self
1782    }
1783    /// <p>Specifies whether read replicas can forward write operations to the writer DB instance in the DB cluster. By default, write operations aren't allowed on reader DB instances.</p>
1784    /// <p>Valid for: Aurora DB clusters only</p>
1785    pub fn get_enable_local_write_forwarding(&self) -> &::std::option::Option<bool> {
1786        self.inner.get_enable_local_write_forwarding()
1787    }
1788    /// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
1789    /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster.</p>
1790    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
1791    /// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
1792    /// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
1793    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1794    pub fn master_user_secret_kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1795        self.inner = self.inner.master_user_secret_kms_key_id(input.into());
1796        self
1797    }
1798    /// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
1799    /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster.</p>
1800    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
1801    /// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
1802    /// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
1803    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1804    pub fn set_master_user_secret_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1805        self.inner = self.inner.set_master_user_secret_kms_key_id(input);
1806        self
1807    }
1808    /// <p>The Amazon Web Services KMS key identifier to encrypt a secret that is automatically generated and managed in Amazon Web Services Secrets Manager.</p>
1809    /// <p>This setting is valid only if the master user password is managed by RDS in Amazon Web Services Secrets Manager for the DB cluster.</p>
1810    /// <p>The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN.</p>
1811    /// <p>If you don't specify <code>MasterUserSecretKmsKeyId</code>, then the <code>aws/secretsmanager</code> KMS key is used to encrypt the secret. If the secret is in a different Amazon Web Services account, then you can't use the <code>aws/secretsmanager</code> KMS key to encrypt the secret, and you must use a customer managed KMS key.</p>
1812    /// <p>There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services Region.</p>
1813    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1814    pub fn get_master_user_secret_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
1815        self.inner.get_master_user_secret_kms_key_id()
1816    }
1817    /// <p>The CA certificate identifier to use for the DB cluster's server certificate.</p>
1818    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1819    /// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
1820    pub fn ca_certificate_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1821        self.inner = self.inner.ca_certificate_identifier(input.into());
1822        self
1823    }
1824    /// <p>The CA certificate identifier to use for the DB cluster's server certificate.</p>
1825    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1826    /// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
1827    pub fn set_ca_certificate_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1828        self.inner = self.inner.set_ca_certificate_identifier(input);
1829        self
1830    }
1831    /// <p>The CA certificate identifier to use for the DB cluster's server certificate.</p>
1832    /// <p>For more information, see <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html">Using SSL/TLS to encrypt a connection to a DB instance</a> in the <i>Amazon RDS User Guide</i>.</p>
1833    /// <p>Valid for Cluster Type: Multi-AZ DB clusters</p>
1834    pub fn get_ca_certificate_identifier(&self) -> &::std::option::Option<::std::string::String> {
1835        self.inner.get_ca_certificate_identifier()
1836    }
1837    /// <p>The life cycle type for this DB cluster.</p><note>
1838    /// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB cluster will fail if the DB major version is past its end of standard support date.</p>
1839    /// </note>
1840    /// <p>You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:</p>
1841    /// <ul>
1842    /// <li>
1843    /// <p>Amazon Aurora - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html">Amazon RDS Extended Support with Amazon Aurora</a> in the <i>Amazon Aurora User Guide</i></p></li>
1844    /// <li>
1845    /// <p>Amazon RDS - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i></p></li>
1846    /// </ul>
1847    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1848    /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
1849    /// <p>Default: <code>open-source-rds-extended-support</code></p>
1850    pub fn engine_lifecycle_support(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1851        self.inner = self.inner.engine_lifecycle_support(input.into());
1852        self
1853    }
1854    /// <p>The life cycle type for this DB cluster.</p><note>
1855    /// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB cluster will fail if the DB major version is past its end of standard support date.</p>
1856    /// </note>
1857    /// <p>You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:</p>
1858    /// <ul>
1859    /// <li>
1860    /// <p>Amazon Aurora - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html">Amazon RDS Extended Support with Amazon Aurora</a> in the <i>Amazon Aurora User Guide</i></p></li>
1861    /// <li>
1862    /// <p>Amazon RDS - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i></p></li>
1863    /// </ul>
1864    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1865    /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
1866    /// <p>Default: <code>open-source-rds-extended-support</code></p>
1867    pub fn set_engine_lifecycle_support(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1868        self.inner = self.inner.set_engine_lifecycle_support(input);
1869        self
1870    }
1871    /// <p>The life cycle type for this DB cluster.</p><note>
1872    /// <p>By default, this value is set to <code>open-source-rds-extended-support</code>, which enrolls your DB cluster into Amazon RDS Extended Support. At the end of standard support, you can avoid charges for Extended Support by setting the value to <code>open-source-rds-extended-support-disabled</code>. In this case, creating the DB cluster will fail if the DB major version is past its end of standard support date.</p>
1873    /// </note>
1874    /// <p>You can use this setting to enroll your DB cluster into Amazon RDS Extended Support. With RDS Extended Support, you can run the selected major engine version on your DB cluster past the end of standard support for that engine version. For more information, see the following sections:</p>
1875    /// <ul>
1876    /// <li>
1877    /// <p>Amazon Aurora - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/extended-support.html">Amazon RDS Extended Support with Amazon Aurora</a> in the <i>Amazon Aurora User Guide</i></p></li>
1878    /// <li>
1879    /// <p>Amazon RDS - <a href="https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/extended-support.html">Amazon RDS Extended Support with Amazon RDS</a> in the <i>Amazon RDS User Guide</i></p></li>
1880    /// </ul>
1881    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1882    /// <p>Valid Values: <code>open-source-rds-extended-support | open-source-rds-extended-support-disabled</code></p>
1883    /// <p>Default: <code>open-source-rds-extended-support</code></p>
1884    pub fn get_engine_lifecycle_support(&self) -> &::std::option::Option<::std::string::String> {
1885        self.inner.get_engine_lifecycle_support()
1886    }
1887    /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB cluster.</p>
1888    /// <p>You can specify one of the following values:</p>
1889    /// <ul>
1890    /// <li>
1891    /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
1892    /// <li>
1893    /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
1894    /// </ul>
1895    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1896    /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
1897    pub fn master_user_authentication_type(mut self, input: crate::types::MasterUserAuthenticationType) -> Self {
1898        self.inner = self.inner.master_user_authentication_type(input);
1899        self
1900    }
1901    /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB cluster.</p>
1902    /// <p>You can specify one of the following values:</p>
1903    /// <ul>
1904    /// <li>
1905    /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
1906    /// <li>
1907    /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
1908    /// </ul>
1909    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1910    /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
1911    pub fn set_master_user_authentication_type(mut self, input: ::std::option::Option<crate::types::MasterUserAuthenticationType>) -> Self {
1912        self.inner = self.inner.set_master_user_authentication_type(input);
1913        self
1914    }
1915    /// <p>Specifies the authentication type for the master user. With IAM master user authentication, you can configure the master DB user with IAM database authentication when you create a DB cluster.</p>
1916    /// <p>You can specify one of the following values:</p>
1917    /// <ul>
1918    /// <li>
1919    /// <p><code>password</code> - Use standard database authentication with a password.</p></li>
1920    /// <li>
1921    /// <p><code>iam-db-auth</code> - Use IAM database authentication for the master user.</p></li>
1922    /// </ul>
1923    /// <p>Valid for Cluster Type: Aurora DB clusters and Multi-AZ DB clusters</p>
1924    /// <p>This option is only valid for RDS for PostgreSQL and Aurora PostgreSQL engines.</p>
1925    pub fn get_master_user_authentication_type(&self) -> &::std::option::Option<crate::types::MasterUserAuthenticationType> {
1926        self.inner.get_master_user_authentication_type()
1927    }
1928}